/* ========== IOMI Design System: Rational & Architectural (Pro Max) ========== */
/* 
   Key Principles:
   1. Rational Order: Grids, Lines, Alignment.
   2. Information Density: Avoid "empty" minimalism. multi-column layouts.
   3. Editorial Aesthetic: Serif headings, solid sans body, magazine feel.
   4. Architectural Palette: Stone, Clay, Slate, Concrete.
*/

:root {
    /* --- Palette: Morandi & Materials --- */
    --bg-body: #F7F7F5;
    /* Warm architectural white */
    --bg-paper: #FFFFFF;
    --bg-subtle: #F0F0EB;

    /* Text Hierarchy */
    --text-primary: #1C1C1E;
    /* Obsidian */
    --text-secondary: #58585D;
    /* Stone Dark */
    --text-tertiary: #8E8E93;
    /* Stone Light */
    --text-invert: #FFFFFF;

    /* Architectural Accents */
    --accent-main: #2C3E50;
    /* Deep Blueprint Blue */
    --accent-secondary: #5D6D7E;
    /* Slate */
    --accent-clay: #A68A64;
    /* Earth/Clay - Warmth */
    --accent-success: #388E3C;
    /* Muted Green */
    --accent-alert: #C62828;
    /* Brick Red */

    /* Borders & Lines */
    --line-light: #E5E5E5;
    --line-medium: #D1D1D6;
    --line-active: #1C1C1E;

    /* Spacing System (Golden Ratio-ish) */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;

    /* Layout Variables */
    --container-max: 1920px;
    /* Ultrawide Support */
    --content-width: 1440px;
    /* Reading content max */
    --gutter: clamp(24px, 4vw, 64px);
    /* Fluid padding */
    --sidebar-width: 320px;

    /* Typography */
    --font-heading: 'Noto Sans SC', system-ui, sans-serif;
    /* Clean, architectural */
    --font-body: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    --font-serif: 'Lora', serif;
    /* For Editorial nuancce */

    /* Components */
    --radius-xs: 2px;
    /* Sharp, precise */
    --radius-sm: 4px;
    --radius-md: 8px;

    --shadow-soft: 0 4px 20px -2px rgba(28, 28, 30, 0.05);
    --shadow-float: 0 12px 40px -4px rgba(28, 28, 30, 0.1);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open,
body[data-lightbox-open="true"] {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.2, 0, 0, 1);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

img[data-lightbox] {
    cursor: zoom-in;
}

/* Typography Scale (Fluid) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.text-display {
    font-size: clamp(36px, 4.5vw, 72px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-h1 {
    font-size: clamp(28px, 3vw, 48px);
}

.text-h2 {
    font-size: clamp(22px, 2.2vw, 36px);
}

.text-h3 {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
}

.text-body {
    font-size: clamp(14px, 0.95vw, 16px);
    color: var(--text-secondary);
}

.text-body-lg {
    font-size: clamp(15px, 1.05vw, 17px);
    color: var(--text-secondary);
}

.text-caption {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.font-serif {
    font-family: var(--font-serif);
}

/* --- Layout System (Ultrawide Optimized) --- */
.app-wrapper {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    background-color: var(--bg-paper);
    min-height: 100vh;
    border-left: 1px solid var(--line-light);
    border-right: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
}

.container {
    padding: 0 var(--gutter);
    width: 100%;
}

main {
    display: block;
}

/* 12-Column Grid (CSS Grid) */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
}

/* Asymmetric Grid (Editorial) */
.grid-editorial {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 66% - 33% */
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 1600px) {
    .grid-editorial {
        grid-template-columns: 3fr 1fr;
        /* 75% - 25% on huge screens */
    }
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--line-light);
}

.section-toned {
    background: linear-gradient(180deg, rgba(240, 240, 235, 0.7), rgba(255, 255, 255, 0.9));
}

.section-header {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-intro {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--line-light);
    margin-bottom: var(--space-xl);
}

.page-intro .text-display,
.page-intro h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.3;
}

.page-kicker {
    display: block;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 13px;
}

.news-section .section-header,
.news-section .news-list,
.news-section .news-list-home {
    padding-left: 12px;
}

/* --- Header & Navigation --- */
.site-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line-light);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: height 0.32s ease, padding 0.32s ease, background-color 0.32s ease, box-shadow 0.32s ease, backdrop-filter 0.32s ease;
}

.site-header .brand,
.site-header .brand-logo,
.site-header .nav-link,
.site-header .nav-toggle {
    transition: transform 0.32s ease, gap 0.32s ease, height 0.32s ease, font-size 0.32s ease, opacity 0.32s ease;
}

.site-header.is-compact {
    height: 78px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.site-header.is-compact .brand {
    gap: 10px;
    transform: scale(0.96);
    transform-origin: left center;
}

.site-header.is-compact .brand-logo {
    transform: scale(0.92);
}

.site-header.is-compact .nav-link {
    transform: scale(0.96);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand svg {
    height: 32px;
    width: 32px;
    color: var(--accent-main);
}

.brand-logo {
    height: 32px;
    width: 32px;
    max-height: 32px;
    max-width: 32px;
    object-fit: contain;
}

.nav-desktop {
    display: flex;
    gap: 36px;
    height: 100%;
    margin-left: auto;
    /* 菜单靠右 */
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-medium);
    background: var(--bg-paper);
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 19, 22, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    background: var(--bg-paper);
    border-left: 1px solid var(--line-light);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-float);
}

body.nav-open .nav-mobile {
    transform: translateX(0);
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.nav-mobile-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
}

.nav-close {
    background: transparent;
    border: 1px solid var(--line-medium);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--text-primary);
}

.nav-mobile-links {
    display: grid;
    gap: 12px;
    padding-top: var(--space-md);
    border-top: 1px solid var(--line-light);
}

.nav-mobile-links a {
    padding: 12px 6px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--line-light);
}

.nav-mobile-links a:last-child {
    border-bottom: none;
}

.nav-mobile-footer {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line-light);
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* --- Hero Section --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Asymmetric */
    border-bottom: 1px solid var(--line-light);
    min-height: 82vh;
    /* Large presence */
}

.hero-text {
    padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) var(--gutter);
    border-right: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

/* 非轮播图的hero图片 */
.hero-visual > img:not(.carousel-main-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(105%);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模糊背景层 */
.carousel-bg-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(25px) brightness(0.7);
    transform: scale(1.1);
    z-index: 0;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 主图片 - 宽度填满，高度自适应，垂直居中 */
.carousel-slide .carousel-main-img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: none;
}

/* 兼容旧的img选择器 */
.carousel-slide img:not(.carousel-main-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(105%);
}

.carousel-caption {
    position: absolute;
    left: var(--space-xl);
    bottom: var(--space-xl);
    background: rgba(18, 19, 22, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-invert);
    padding: 18px 20px;
    max-width: 70%;
    border-left: 2px solid var(--accent-clay);
    box-shadow: var(--shadow-soft);
    z-index: 3;
}

.carousel-caption .text-caption {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.carousel-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.carousel-indicators {
    position: absolute;
    right: var(--space-xl);
    bottom: var(--space-xl);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel-indicators button {
    width: 28px;
    height: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicators button.is-active {
    background: var(--accent-clay);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(18, 19, 22, 0.2);
    color: rgba(255, 255, 255, 0.4);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0.3;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 轮播图区域悬停时显示按钮 */
.hero-carousel:hover .carousel-control {
    opacity: 1;
    background: rgba(18, 19, 22, 0.45);
    color: var(--text-invert);
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-control:hover {
    opacity: 1;
    background: rgba(18, 19, 22, 0.7);
    color: var(--text-invert);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-control:active {
    opacity: 1;
    background: rgba(18, 19, 22, 0.85);
}

.carousel-control.prev {
    left: var(--space-xl);
}

.carousel-control.next {
    right: var(--space-xl);
}

.carousel-control svg {
    width: 18px;
    height: 18px;
}

/* --- Cards & Lists --- */
/* --- Cards & Lists --- */
.news-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line-light);
}

.news-row {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--line-light);
    align-items: start;
    transition: background 0.1s ease;
    cursor: pointer;
    border-radius: var(--radius-xs);
}

.news-row:hover {
    background-color: var(--bg-subtle);
}

.news-row:first-child {
    border-top: none;
}

.news-date {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    padding-top: 2px;
    min-width: 70px;
}

.news-date-year {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.news-date-md {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.1s ease;
}

.news-row:hover .news-content h3 {
    color: var(--accent-main);
}

.news-content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    background-color: #ECECEE;
    /* Subtle grey */
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    justify-self: end;
    white-space: nowrap;
}

/* --- News Timeline (Homepage) --- */
.news-timeline {
    position: relative;
    padding-left: 100px;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--line-light), var(--line-medium), var(--line-light));
}

.news-timeline-item {
    display: grid;
    grid-template-columns: 70px 12px 1fr;
    gap: 16px;
    align-items: start;
    padding: var(--space-lg) 0;
    position: relative;
}

.news-timeline-item:not(:last-child) {
    border-bottom: 1px solid var(--line-light);
}

.news-timeline-date {
    text-align: right;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.news-timeline-date .news-year {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-tertiary);
    min-height: 16px;
}

.news-timeline-date .news-year-spacer {
    display: block;
    min-height: 16px;
}

.news-timeline-date .news-month-day {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.news-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-main);
    margin-top: 4px;
    transition: background 0.2s;
}

.news-timeline-item:hover .news-timeline-dot {
    background: var(--accent-main);
}

.news-timeline-content {
    padding-right: var(--space-lg);
}

.news-timeline-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-timeline-item:hover .news-timeline-title {
    color: var(--accent-main);
}

.news-timeline-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.news-timeline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.news-link {
    font-size: 13px;
    color: var(--accent-main);
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-timeline {
        padding-left: 0;
    }

    .news-timeline::before {
        display: none;
    }

    .news-timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .news-timeline-date {
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .news-timeline-date .news-year {
        display: inline;
        font-size: 12px;
    }

    .news-timeline-date .news-month-day {
        display: inline;
        font-size: 14px;
    }

    .news-timeline-dot {
        display: none;
    }

    .news-timeline-content {
        padding-right: 0;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--text-invert);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--text-invert);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding-bottom: 2px;
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.2s;
}

.link-arrow:hover::after {
    width: 100%;
}

/* --- Footer --- */
.site-footer {
    padding: var(--space-3xl) var(--gutter);
    border-top: 1px solid var(--line-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-link {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

/* --- Motion --- */
[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="left"] {
    transform: translateX(-20px);
}

[data-animate="right"] {
    transform: translateX(20px);
}

[data-animate="scale"] {
    transform: scale(0.96);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    :root {
        --space-3xl: 96px;
        --space-2xl: 72px;
        --space-xl: 48px;
        --space-lg: 28px;
    }

    .nav-desktop {
        gap: 28px;
    }

    .hero-wrapper {
        min-height: 70vh;
    }
}

@media (max-width: 992px) {
    :root {
        --space-3xl: 80px;
        --space-2xl: 56px;
        --space-xl: 40px;
        --space-lg: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-row {
        grid-template-columns: 120px 1fr 120px;
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding: 0 24px;
        height: 80px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        border-right: none;
    }

    .hero-text {
        border-right: none;
        padding: 56px 24px;
    }

    .hero-visual {
        height: 400px;
        order: -1;
    }

    .news-row {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }

    .tag {
        display: none;
    }

    /* 轮播图移动端优化 */
    .carousel-caption {
        left: var(--space-md);
        bottom: var(--space-md);
        padding: 14px 16px;
        max-width: 85%;
    }

    .carousel-title {
        font-size: 16px;
    }

    .carousel-indicators {
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .carousel-control {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {

    /* Mobile improvements */
    :root {
        --gutter: 20px;
    }

    .site-header {
        height: 72px;
        padding: 0 20px;
    }

    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .carousel-caption {
        left: var(--space-lg);
        right: var(--space-lg);
        max-width: none;
        padding: 14px 16px;
    }

    .carousel-control.prev {
        left: var(--space-lg);
    }

    .carousel-control.next {
        right: var(--space-lg);
    }

    .carousel-indicators {
        right: var(--space-lg);
        bottom: var(--space-lg);
    }

    .news-row {
        grid-template-columns: 1fr;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .news-date {
        order: -1;
        margin-bottom: 4px;
    }

    .text-display {
        font-size: 40px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .page-intro {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .page-intro .text-display,
    .page-intro h1 {
        font-size: clamp(20px, 5vw, 28px);
    }

    .btn {
        padding: 12px 22px;
        font-size: 13px;
    }

    .site-footer {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .footer-col {
        min-width: 0;
    }
}

@media (max-width: 576px) {
    :root {
        --gutter: 18px;
    }

    .text-display {
        font-size: 34px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
    }

    .carousel-caption {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
    }
}

@media (max-width: 420px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* --- Utilities (Added) --- */
.mb-xs {
    margin-bottom: var(--space-xs) !important;
}

.mb-sm {
    margin-bottom: var(--space-sm) !important;
}

.mb-md {
    margin-bottom: var(--space-md) !important;
}

.mb-lg {
    margin-bottom: var(--space-lg) !important;
}

.mb-xl {
    margin-bottom: var(--space-xl) !important;
}

.mb-2xl {
    margin-bottom: var(--space-2xl) !important;
}

.mb-3xl {
    margin-bottom: var(--space-3xl) !important;
}

.mt-md {
    margin-top: var(--space-md) !important;
}

.mt-lg {
    margin-top: var(--space-lg) !important;
}

.mt-xl {
    margin-top: var(--space-xl) !important;
}

.text-center {
    text-align: center;
}

.d-block {
    display: block;
}

.w-full {
    width: 100%;
}

.text-muted {
    color: var(--text-tertiary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 14, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
    padding: clamp(16px, 4vw, 48px);
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(1200px, 100%);
    max-height: 85vh;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-float);
    background: #111;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(18, 19, 22, 0.6);
    color: var(--text-invert);
    font-size: 20px;
    cursor: pointer;
}

.lightbox-caption {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 80vw;
}

/* ========== Page: People Grid ========== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-light);
    /* Borders */
    border: 1px solid var(--line-light);
    border-right: none;
    border-bottom: none;
}

.person-card {
    background: var(--bg-paper);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    text-decoration: none;
}

.person-card:hover {
    background: #FAFAFA;
    z-index: 10;
}

.avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 32px;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
    border: 1px solid var(--line-light);
    background: #F0F0F0;
}

.person-card:hover .avatar {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.person-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.person-role {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-link {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto;
    /* Push to bottom */
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-link:hover {
    color: var(--text-primary);
}

/* People Grid Responsive */
@media (max-width: 1400px) {
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .person-card {
        padding: 32px 24px;
    }

    .avatar {
        width: 84px;
        height: 84px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .people-grid {
        grid-template-columns: 1fr;
    }

    .person-card {
        padding: 32px 24px;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .avatar {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .person-info {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .person-name {
        font-size: 16px;
    }

    .contact-link {
        font-size: 12px;
    }
}

/* ========== Page: Research List ========== */
.research-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line-light);
    /* divider effect */
    border-top: 1px solid var(--line-light);
}

.research-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Fixed visual width + fluid content */
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    background: var(--bg-paper);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.research-row:hover {
    background-color: #FAFAFA;
}

.research-visual {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-subtle);
    overflow: hidden;
    position: relative;
}

.research-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.research-row:hover .research-visual img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.research-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: var(--space-xl);
}

.research-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.research-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.research-abstract {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 800px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag-pill {
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--line-medium);
    padding: 4px 12px;
    border-radius: 100px;
    transition: all 0.2s;
}

.research-row:hover .tag-pill {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Research List Responsive */
@media (max-width: 1024px) {
    .research-row {
        grid-template-columns: 240px 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 900px) {
    .research-row {
        grid-template-columns: 200px 1fr;
        padding: var(--space-xl) 0;
    }

    .research-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .research-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .research-visual {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 576px) {
    .research-row {
        padding: var(--space-lg) 0;
    }

    .research-title {
        font-size: 20px;
    }

    .research-abstract {
        font-size: 15px;
    }
}

/* ========== Page: Profile Detail ========== */
.profile-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: auto;
    align-items: start;
    border-bottom: 1px solid var(--line-light);
}

.profile-sidebar {
    padding: var(--space-xl) var(--space-xl) var(--space-3xl) var(--gutter);
    border-right: 1px solid var(--line-light);
    background: var(--bg-paper);
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
}

.profile-content {
    padding: var(--space-xl) var(--space-3xl) var(--space-3xl) var(--space-xl);
    background: var(--bg-body);
}

.profile-avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: var(--space-lg);
    filter: grayscale(100%);
    border: 1px solid var(--line-light);
    background: #F0F0F0;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-role {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--line-light);
    display: block;
}

.contact-list {
    list-style: none;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--text-tertiary);
}

.content-section {
    margin-bottom: var(--space-3xl);
    max-width: 800px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    display: block;
    font-weight: 600;
}

.about-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1em;
}

.about-text a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--line-medium);
}

.about-text a:hover {
    text-decoration-color: var(--text-primary);
}

/* Publication List */
.pub-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--line-medium);
    display: block;
    text-decoration: none;
}

.pub-item:first-child {
    border-top: 1px solid var(--line-medium);
}

.pub-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
}

.pub-meta {
    font-size: 14px;
    color: var(--text-tertiary);
}

.pub-item:hover .pub-title {
    color: var(--accent-main);
}

/* Profile Detail Responsive */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--line-light);
        padding: var(--space-xl) var(--gutter);
    }

    .profile-content {
        padding: var(--space-xl) var(--gutter);
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        padding: var(--space-lg) var(--gutter);
    }

    .profile-content {
        padding: var(--space-lg) var(--gutter);
    }

    .profile-name {
        font-size: 26px;
    }

    .about-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-role {
        font-size: 12px;
    }

    .contact-list {
        font-size: 13px;
    }
}

/* ========== Page: Research Detail (Article) ========== */
.article-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-lead {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    border-left: 2px solid var(--accent-clay);
    padding-left: 24px;
}

.figure-caption {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 12px;
    text-align: center;
}

/* Research Detail Responsive */
@media (max-width: 900px) {
    .article-lead {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .article-lead {
        font-size: 16px;
        padding-left: 16px;
    }
}

/* ========== Language Switcher & Mobile Controls ========== */
/* Desktop Language Switch */
.lang-switch {
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border: 1px solid var(--line-medium) !important;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.lang-switch::after {
    display: none !important;
    /* 移除下划线 */
}

.lang-switch:hover {
    background: var(--text-primary);
    color: var(--text-invert) !important;
    border-color: var(--text-primary) !important;
}

/* Mobile Controls Container */
.nav-mobile-controls {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-medium);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.mobile-lang-switch:hover {
    background: var(--text-primary);
    color: var(--text-invert);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-mobile-controls {
        display: flex;
    }

    /* Hide standalone nav-toggle when mobile controls exist */
    .site-header>.nav-toggle {
        display: none;
    }

    .nav-mobile-controls .nav-toggle {
        display: flex;
    }
}

/* Mobile Footer Brand */
.nav-mobile-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.nav-mobile-team {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Search Icon in Nav */
.nav-search svg {
    display: block;
}

.nav-search.active {
    color: var(--text-primary);
}

/* === Homepage Fixes === */

/* Hero wrapper - reduce top padding on mobile */
.hero-wrapper {
    padding-top: var(--space-xl);
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding-top: var(--space-lg);
    }

    .hero-text {
        padding-top: var(--space-md);
    }
}

/* News section header - add right margin to "View All" link */
.news-section .section-header {
    padding-right: var(--space-xl);
}

.news-section .section-header .link-arrow {
    margin-right: var(--space-lg);
    flex-shrink: 0;
}

.news-section .news-list-home {
    padding-right: 12px;
}

/* Homepage News List - Year in separate column like news page */
.news-list-home {
    display: flex;
    flex-direction: column;
}

.news-row-home {
    display: grid;
    grid-template-columns: 80px 60px 1fr auto;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--line-light);
    align-items: start;
    transition: background 0.1s ease;
    cursor: pointer;
    border-radius: var(--radius-xs);
}

.news-row-home:hover {
    background-color: var(--bg-subtle);
}

.news-row-home:first-child {
    border-top: none;
}

.news-year-col {
    min-width: 60px;
}

.news-year-label-home {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.news-date-col {
    font-family: var(--font-heading);
    color: var(--text-tertiary);
    font-size: 14px;
    padding-top: 3px;
}

.news-links-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 120px;
}

.news-links-col .news-att-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--accent-main);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.news-links-col .news-att-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-row-home {
        grid-template-columns: 50px 45px 1fr;
        gap: var(--space-sm);
    }
    
    .news-year-label-home {
        font-size: 14px;
    }
    
    .news-links-col {
        grid-column: 3;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        min-width: auto;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .news-row-home {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .news-year-col,
    .news-date-col {
        display: inline;
    }
    
    .news-row-home .news-year-col {
        margin-bottom: 4px;
    }
    
    .news-links-col {
        grid-column: 1;
        margin-top: 8px;
    }
}
