/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.navbar-nav li {
    margin-left: 30px;
}

.navbar-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.navbar-nav a:hover {
    color: #3498db;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
}

/* Hero区域样式 */
.hero {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    text-align: center;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.hero-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
}

.contact-item i {
    margin-right: 8px;
    color: #3498db;
}

/* 内容区域通用样式 */
.section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    margin-top: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* 关于我样式 */
.about-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content p {
    font-size: 17px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

/* 教育背景样式 */
.education-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.education-date {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
}

.education-school {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.education-major {
    color: #7f8c8d;
    font-size: 16px;
}

/* 工作经历样式 */
.experience-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #3498db;
    border-radius: 50%;
}

.experience-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% - 15px);
    background-color: #e0e0e0;
}

.experience-item:last-child::after {
    display: none;
}

.experience-date {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
}

.experience-company {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.experience-position {
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.experience-description {
    color: #555;
    line-height: 1.8;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    color: #ecf0f1;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #3498db;
    width: 0%;
    z-index: 1001;
    transition: width 0.2s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-name {
        font-size: 28px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-contacts {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .experience-item {
        padding-left: 20px;
    }

    .experience-company {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 24px;
    }

    .hero-title {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .education-item,
    .experience-item {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.8s ease-out;
}

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .menu-toggle,
    .scroll-progress {
        display: none;
    }

    .hero {
        margin-top: 0;
        padding: 20px 0;
    }

    .section {
        break-inside: avoid;
        page-break-after: always;
    }
}