/* 现代化学术个人网站样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素和字体设置 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background-color: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --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: var(--background-color);
    font-size: 16px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* 导航样式 */
.nav {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: var(--card-background);
    border-bottom-color: var(--secondary-color);
}

/* 主要内容区域 */
.main-content {
    padding: 60px 0;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.card h3:first-child {
    margin-top: 0;
}

/* 个人简介样式 */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 20px;
}

/* 研究兴趣样式 */
.research-interests {
    background: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.research-interests h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.research-interests ul {
    list-style: none;
    padding-left: 0;
}

.research-interests li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.research-interests li::before {
    content: '▶';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* 列表样式 */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list li:hover {
    background-color: var(--card-background);
    padding-left: 10px;
    border-radius: var(--border-radius);
}

.content-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.content-list a:hover {
    color: var(--secondary-color);
}

/* 教育经历样式 */
.education-item {
    background: white;
    border-left: 4px solid var(--secondary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.education-item .degree {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.education-item .gpa {
    color: var(--text-light);
    font-style: italic;
}

/* 研究项目样式 */
.research-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.research-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.research-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.research-meta {
    background: var(--card-background);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.research-meta p {
    margin-bottom: 5px;
}

.research-meta strong {
    color: var(--primary-color);
}

.research-item ul {
    padding-left: 20px;
}

.research-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 出版物样式 */
.publication-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.publication-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.publication-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.publication-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .intro-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profile-image {
        order: -1;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .card h2 {
        font-size: 1.6rem;
    }
    
    .research-item h3,
    .education-item h3 {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-background);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
