:root {
    /*--dark-bg: #1a1a1a;*/
    --dark-bg: #f9f9f9;
    --dark-secondary: #eeeeee;
    --text-primary: #333333;
    --text-secondary: #1a1a1a;
    --accent: #fe2062;
    --section-padding: 30px 0;
}

/* 全局样式 */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: left;
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 25px 0;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 15px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-primary) !important;
    margin: 0 15px;
    position: relative; /* 添加相对定位 */
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: white !important; /* 滚动时字体颜色变为白色 */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* 游标高度 */
    background-color: var(--accent); /* 游标颜色 */
    left: 0;
    bottom: -5px; /* 游标距离底部的距离 */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%; /* 悬停时游标宽度变为100% */
}

.nav-link:hover {
    color: var(--accent) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent) !important; /* 滚动时悬停字体颜色变为宝蓝色 */
}

/* 英雄区域样式 */
.hero {
    padding: 160px 0 80px;
    background-color: var(--dark-secondary);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(26, 26, 26, 0.8); !* 半透明背景 *!*/
    /*backdrop-filter: blur(10px); !* 背景模糊效果 *!*/
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h2 {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-info a,
.contact-info span {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.profile-image img {
    border: 5px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 技能卡片样式 */
.skill-card {
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skill-card ul li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-card ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* 工作经历卡片样式 */
.experience-card {
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
}

.experience-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.experience-card ul li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.experience-card ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.timeline-title {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem; /* 确保标题字体大小 */
}

.timeline-title .timeline-company {
    font-size: 0.9rem; /* 将时间部分字体大小调整为 0.9rem */
    color: var(--text-secondary);
    margin-left: 0.5rem; /* 添加一些左边距以分隔项目名称和时间 */
}

.timeline-item {
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 卡片样式 */
.card {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

/* 页脚样式 */
.footer {
    /*background: linear-gradient(135deg, #1a1a1a, #333333);*/
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer i {
    transition: transform 0.3s ease;
}

.footer i:hover {
    transform: scale(1.2);
}

.highlight-value {
    /*font-weight: bold;*/
    background-color: transparent; /* 移除背景色 */
    color: inherit; /* 继承文字颜色 */
    font-weight: bold;
    font-size: 1.5rem; /* 使文字变大 */
    /*text-shadow: 0 0 5px #FFA500, 0 0 10px #FFA500, 0 0 15px #FFA500, 0 0 20px #FFA500, 0 0 30px #FFA500, 0 0 40px #FFA500; !* 添加发光效果 *!*/
    text-align: center; /* 居中显示 */
    /*animation: glow 1.5s infinite alternate; !* 添加动画效果 *!*/
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #FFA500, 0 0 10px #FFA500, 0 0 15px #FFA500, 0 0 20px #FFA500, 0 0 30px #FFA500, 0 0 40px #FFA500;
    }
    to {
        text-shadow: 0 0 20px #FFA500, 0 0 30px #FFA500, 0 0 40px #FFA500, 0 0 50px #FFA500, 0 0 60px #FFA500, 0 0 70px #FFA500;
    }
}


/* 响应式调整 */
@media (max-width: 768px) {
    #education .card {
        margin-bottom: 30px;
    }
}




/* 教育背景部分样式 */
.education-card {
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.education-card:hover {
    transform: translateY(-10px);
}

.education-card .card-title {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.education-card ul li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.education-card ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.education-icon {
    display: flex;
    justify-content: left;
    margin-bottom: 20px;
}

.education-icon i {
    font-size: 2.5rem;
    color: var(--accent);
}


/* 二维码*/
#qr-code-image {
    max-width: 80%;
    max-height: 80%;
    display: none; /* 初始状态为隐藏 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white; /* 二维码图片背景色 */
    padding: 20px; /* 二维码图片内边距 */
    border-radius: 10px; /* 二维码图片圆角 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* 二维码图片阴影 */
}

#overlay {
    display: none; /* 初始状态为隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 黑色半透明背景 */
    z-index: 999;
    cursor: pointer;
}


/*#qr-code-image {*/
/*    max-width: 80%;*/
/*    max-height: 80%;*/
/*    display: none;*/
/*    position: fixed;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*    z-index: 1000;*/
/*    background-color: white; !* 二维码图片背景色 *!*/
/*    padding: 20px; !* 二维码图片内边距 *!*/
/*    border-radius: 10px; !* 二维码图片圆角 *!*/
/*    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); !* 二维码图片阴影 *!*/
/*}*/

/*#overlay {*/
/*    display: none;*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(0, 0, 0, 0.5); !* 黑色半透明背景 *!*/
/*    z-index: 999;*/
/*    cursor: pointer;*/
/*}*/


/* 从 index.html 移动过来的样式 */
nav.main-nav {
    background-color: white;
}

.devlei-brand {
    color: #fe2062;
}
.navbar-toggler, .navbar-toggler i, .nav-items, .nav-items .nav-link {
    color: black;
}
.hero-section {
    background-color: #eeeeee;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fe2062;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    color: black;
    margin-bottom: 30px;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-link {
    color: #fe2062;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.contact-item {
    color: #fe2062;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-link i, .contact-item i {
    font-size: 1.25rem;
}
.hero-description {
    font-size: 1.1rem;
    color: black;
    line-height: 1.6;
}
