/* ==================================================
   自定义变量定义
   ================================================== */
:root {
    --primary-color: #1F2041;
    --secondary-color: #4B644A;
    --accent-color: #89A58A;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ==================================================
   基础重置与全局样式
   ================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f7f5; /* 浅色背景 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================================================
   头部区域样式
   ================================================== */
header {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

h2 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
/* ==================================================
   语言切换器样式
   ================================================== */
.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================================================
   导航栏样式（使用Bootstrap基础）
   ================================================== */
.navbar {
    background-color: var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: var(--border-radius);
}

.navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.navbar .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: var(--transition);
}

.navbar .nav-link span {
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

/* 按钮悬停效果 */
.navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
    z-index: -1;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.navbar .nav-link:hover::before {
    height: 100%;
}

.navbar .nav-link:hover, 
.navbar .nav-link.active {
    color: white;
}

.navbar .nav-link:hover i, 
.navbar .nav-link.active i {
    transform: translateY(-3px);
}

.navbar .nav-link:hover span, 
.navbar .nav-link.active span {
    transform: translateY(3px);
}

/* 活动状态指示器 */
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* ==================================================
   简历内容样式
   ================================================== */

.cv-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cv-section {
    background: #EFDDD0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border-left: 4px solid #9B949C;
}

/* ==================================================
   时间线样式
   ================================================== */
.timeline-item {
    position: relative;
    padding: 0 0 30px 30px;
    margin-bottom: 20px;
    border-left: 2px solid #9B949C;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9B949C;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
    font-size: 1.1rem;
}

.timeline-content {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.timeline-location {
    color: #777;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.thesis-info {
    background: #F1E3D8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 12px;
    border-left: 3px solid #4B3F72;
}

.thesis-info div {
    margin-bottom: 8px;
}

.thesis-info strong {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ==================================================
   技能部分样式
   ================================================== */
.skill-category {
    background: rgba(237, 218, 203, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(237, 218, 203, 0.3);
    height: 100%;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--accent-color);
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.skill-category li:before {
    content: '•';
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 10px;
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4B3F72;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 111, 165, 0.3);
}

/* ==================================================
   页脚样式
   ================================================== */
footer {
    margin-top: 3rem;
    padding: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    background: rgba(237, 218, 203, 0.2);
    border-radius: var(--border-radius);
}

/* ==================================================
   响应式设计
   ================================================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    /* 移动端导航按钮样式 */
    .nav-btn {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        text-align: left;
    }
    
    .nav-btn i {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .nav-btn.active::after {
        display: none;
    }
}