@charset "UTF-8";

/* ================================
   Global & Scrollbar
================================ */
html {
    overflow-y: scroll;
}

/* ================================
   CSS Variables
================================ */
:root {
    --primary-color: #003366;    /* 深学术蓝 */
    --accent-color: #c49b66;     /* 雅金色 */
    --text-dark: #2c3e50;        /* 深灰 */
    --text-medium: #546e7a;      /* 中灰 */
    --text-light: #90a4ae;       /* 浅灰 */
    --bg-light: #f8f9fa;         /* 极浅背景 */
    --sidebar-width: 280px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --section-spacing: 50px;
}

/* ================================
   Reset
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #f0f2f5;
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    padding: 20px 0;
}

/* ================================
   Base Elements
================================ */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

strong {
    color: var(--text-dark);
    font-weight: 600;
}

.highlight-gold {
    color: var(--accent-color);
    font-weight: 600;
}

/* ================================
   Main Container
================================ */
.container {
    display: flex;
    width: 95%;
    max-width: 1150px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* ================================
   Sidebar (Left)
================================ */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: #fafbfc;
    padding: 50px 30px;
    border-right: 1px solid #eaeaea;
    text-align: center;
}

.sidebar h1,
.sidebar .author-name,
.sidebar .author-title,
.sidebar .author-aff,
.sidebar .contact-list {
    font-family: var(--font-body);
}

.avatar-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
}

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

.author-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.author-title {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.author-aff {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.contact-list {
    list-style: none;
    text-align: left;
    margin-top: 40px;
    font-size: 0.9rem;
}

.contact-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.contact-list i {
    width: 30px;
    color: var(--accent-color);
    margin-right: 5px;
    text-align: center;
}

/* ================================
   Main Content (Right)
================================ */
.main-content {
    flex: 1;
    padding: 50px 60px;
    overflow: hidden; /* 防止内部内容溢出 */
}

/* 导航菜单 - 参考 news.html 逻辑 */
.nav-menu {
    display: flex;
    border-bottom: 2px solid #eeeeee;
    margin-bottom: 40px;
    padding-bottom: 0px;
    overflow-x: auto; /* 允许横向滚动 */
    white-space: nowrap; /* 强制在一行不换行 */
    -webkit-overflow-scrolling: touch; /* iOS 滑动优化 */
}

/* 隐藏滚动条但保留功能 */
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    margin-right: 35px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
    flex-shrink: 0; /* 核心：防止文字被压缩 */
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 紧贴父容器边框 */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* ================================
   Sections
================================ */
section {
    margin-bottom: var(--section-spacing);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.bio-text p {
    margin-bottom: 0.8em;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ================================
   News List
================================ */
.news-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    align-items: baseline;
}

.news-date {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 20px;
    min-width: 85px;
    text-align: center;
    font-family: var(--font-body);
}

/* ================================
   Timeline
================================ */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #eee;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-color);
}

.timeline-item h4 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin-bottom: 2px;
}

/* ================================
   Research Overview
================================ */
.pillar-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.5;
}

.pillar-intro {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin: 15px 0 15px 0;
}

.pillar-title {
    font-family: var(--font-body) !important;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem !important;
    margin-top: 6px;
    margin-bottom: 6px;
    display: block;
}

ul.pub-list {
    list-style: disc !important;
    padding-left: 20px !important;
    margin-bottom: 25px;
}

ul.pub-list li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ================================
   Footer & Other
================================ */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eeeeee;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.icp-info { font-size: 0.8rem; }

/* ================================
   Responsive (自适应优化)
================================ */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding: 40px 20px;
    }

    .main-content {
        padding: 40px 20px; /* 手机端减小边距 */
    }

    .nav-menu {
        margin-bottom: 30px;
        /* 继承上方的 overflow-x: auto 和 white-space: nowrap */
    }

    .nav-menu a {
        margin-right: 25px;
        font-size: 0.95rem; /* 稍微缩小一点文字 */
    }
}