/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maroon: #7B2D3B;
    --maroon-light: #9B3D4B;
    --maroon-bg: #F9F5F6;
    --text: #2D2D2D;
    --text-secondary: #5A5A5A;
    --text-muted: #888;
    --bg: #FFFFFF;
    --bg-gray: #F7F7F5;
    --border: #E2E2DE;
    --border-light: #EDEDE8;
    --link: #7B2D3B;
    --link-hover: #9B3D4B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 4px;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', 
                 -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: #2D2D2D;
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right a {
    color: #ccc;
    margin-left: 4px;
}

.top-bar-right a:hover {
    color: #fff;
}

.top-bar .sep {
    margin: 0 10px;
    color: #555;
}

/* ========== 页头 ========== */
.header {
    background: #fff;
    border-bottom: 3px solid var(--maroon);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo-mark {
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--maroon);
    letter-spacing: 1px;
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.main-nav {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-light);
}

.main-nav a {
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.main-nav a:first-child {
    padding-left: 0;
}

.main-nav a:hover {
    color: var(--maroon);
    border-bottom-color: var(--maroon);
}

.main-nav a.active {
    color: var(--maroon);
    border-bottom-color: var(--maroon);
    font-weight: 600;
}

/* ========== Banner ========== */
.banner {
    background: linear-gradient(135deg, #FAFAF8 0%, #F0EDE5 100%);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,45,59,0.04) 0%, transparent 70%);
}

.banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: center;
}

.banner-eyebrow {
    font-size: 12px;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.banner-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.banner-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.banner-actions {
    display: flex;
    gap: 28px;
}

.btn-text {
    font-size: 14px;
    color: var(--maroon);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: var(--transition);
}

.btn-text:hover {
    border-bottom-color: var(--maroon);
    color: var(--maroon);
}

/* Banner 侧边卡片 */
.banner-side {
    display: flex;
    justify-content: flex-end;
}

.banner-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--maroon);
    border-radius: var(--radius);
    padding: 28px 32px;
    max-width: 320px;
    box-shadow: var(--shadow);
}

.card-label {
    font-size: 11px;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.card-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.card-divider {
    height: 1px;
    background: var(--border-light);
    margin: 14px 0;
}

.banner-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 通用 Section ========== */
.section {
    padding: 72px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-maroon {
    background: var(--maroon);
    color: #fff;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-head.light {
    border-bottom-color: rgba(255,255,255,0.2);
}

.section-num {
    font-size: 13px;
    color: var(--maroon);
    font-weight: 700;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.section-num.light {
    color: rgba(255,255,255,0.6);
}

.section-head h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.section-head.light h2 {
    color: #fff;
}

.section-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.section-note a {
    text-decoration: underline;
}

/* ========== 研究方向 ========== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.research-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.section-gray .research-item {
    background: #fff;
}

.research-item:hover {
    box-shadow: var(--shadow);
    border-color: #ccc;
}

.research-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.research-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.research-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-tags li {
    padding: 3px 12px;
    background: var(--maroon-bg);
    color: var(--maroon);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 团队成员 ========== */
.sub-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 36px 0 20px;
    padding-left: 12px;
    border-left: 3px solid var(--maroon);
}

.pi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.master-grid {
    grid-template-columns: repeat(4, 1fr);
}

.person-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.section-gray .person-card {
    background: #fff;
}

.person-card:hover {
    box-shadow: var(--shadow);
}

.pi-card .person-photo {
    height: 200px;
    background-color: #e8e0d8;
}

.person-photo.small {
    height: 140px;
}

.person-info {
    padding: 20px;
}

.person-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.person-role {
    font-size: 12px;
    color: var(--maroon);
    font-weight: 500;
    margin-bottom: 10px;
}

.person-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.person-email {
    font-size: 12px;
    color: var(--maroon);
    display: inline-block;
    margin-top: 10px;
    word-break: break-all;
}

/* 硕士卡片简化版 */
.master-card {
    padding: 20px;
    text-align: center;
}

.master-card .person-name {
    font-size: 15px;
}

.master-card .person-role {
    margin-bottom: 8px;
}

.master-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 本科实习生 */
.intern-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.intern-list span {
    padding: 6px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.section-gray .intern-list span {
    background: #fff;
}

.intern-list span:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

/* ========== 发表论文 ========== */
.pub-year-group {
    margin-bottom: 36px;
}

.pub-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    display: inline-block;
    min-width: 60px;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-item {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.pub-item:hover {
    border-left-color: var(--maroon);
    box-shadow: var(--shadow-sm);
}

.pub-venue {
    display: inline-block;
    padding: 2px 10px;
    background: var(--maroon);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.pub-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.5;
}

.pub-authors {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pub-authors strong {
    color: var(--maroon);
    font-weight: 600;
}

.pub-venue-text {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.pub-tag {
    display: inline-block;
    padding: 1px 8px;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    font-style: normal;
    margin-left: 6px;
}

.pub-more {
    margin-top: 32px;
    text-align: center;
}

.btn-outline-small {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--maroon);
    color: var(--maroon);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-small:hover {
    background: var(--maroon);
    color: #fff;
}

/* ========== 科研项目 ========== */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.proj-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.section-gray .proj-card {
    background: #fff;
}

.proj-card:hover {
    box-shadow: var(--shadow);
}

.proj-period {
    font-size: 12px;
    color: #fff;
    background: var(--maroon);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    font-weight: 500;
}

.proj-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text);
}

.proj-fund {
    font-size: 13px;
    color: var(--maroon);
    font-weight: 500;
    margin-bottom: 8px;
}

.proj-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ========== 组内动态 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    padding-left: 8px;
}

.news-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 8px 0;
    background: var(--maroon-bg);
    border-radius: var(--radius);
    height: fit-content;
}

.news-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--maroon);
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.news-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.5;
}

.news-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== 招生 ========== */
.section-maroon .section-note {
    color: rgba(255,255,255,0.7);
}

.section-maroon .section-note a {
    color: #fff;
    text-decoration: underline;
}

.recruit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recruit-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.recruit-card:hover {
    background: rgba(255,255,255,0.12);
}

.recruit-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.recruit-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 8px;
}

.recruit-contact {
    color: #fff !important;
    font-weight: 500;
}

.recruit-note {
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== 联系我们 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.contact-block h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 12px;
}

.contact-block p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.contact-block a {
    color: var(--maroon);
    font-size: 13px;
    line-height: 2;
}

/* 地图占位 */
.map-placeholder {
    width: 100%;
    height: 280px;
    background: #F0EDE5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-text p {
    margin: 0;
}

/* ========== 页脚 ========== */
.footer {
    background: #2D2D2D;
    color: #aaa;
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid #444;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 12px;
    color: #999;
    line-height: 1.9;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 2.2;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #777;
}

.footer-credit {
    font-size: 11px !important;
    color: #666 !important;
}

/* ========== 滚动动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .banner-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .banner-side {
        justify-content: flex-start;
    }

    .people-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .master-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }

    .header-inner {
        padding: 14px 20px 0;
    }

    .logo-text h1 {
        font-size: 17px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .banner {
        padding: 40px 0;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .section {
        padding: 48px 0;
    }

    .section-inner {
        padding: 0 20px;
    }

    .research-grid,
    .proj-grid,
    .pi-grid,
    .recruit-grid {
        grid-template-columns: 1fr;
    }

    .people-grid,
    .master-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-date {
        width: auto;
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        padding: 4px 12px;
    }

    .news-month {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .people-grid,
    .master-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .pub-item {
        padding: 14px 16px;
    }

    .pub-title {
        font-size: 14px;
    }
}