/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4ecdc4;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f5f7fa;
    --card-color: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-img {
    display: flex;
    justify-content: center;
}

.avatar {
    width: 120px;
    height: 120px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-text {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航样式 */
nav {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav li {
    padding: 15px 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 15px 25px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 25px;
    right: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* 主要内容样式 */
main {
    display: grid;
    gap: 30px;
}

.card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.content {
    padding: 10px;
}

/* 教育经历时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
}

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

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

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--card-color);
}

.timeline-content {
    padding-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.period {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* 荣誉奖项列表 */
.awards-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.awards-list li {
    display: flex;
    align-items: flex-start;
    background-color: rgba(74, 111, 165, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.awards-list li:hover {
    background-color: rgba(74, 111, 165, 0.1);
    transform: translateY(-3px);
}

.award-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.award-text h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 联系方式 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(74, 111, 165, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 10px 15px;
    }
    
    .awards-list {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

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

section {
    animation: fadeIn 0.6s ease-out forwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}
