/* ============================================
   杨耀懋 教授 · 个人网站 v2
   编辑设计 · 现代主义 · 极致克制
   ============================================ */

/* ---------- 字体引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Noto+Serif+SC:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

/* ---------- 设计令牌 (Design Tokens) ---------- */
:root {
    /* 主色 - 暖象牙白 */
    --paper:        #f5f1ea;
    --paper-2:      #efe9de;
    --paper-3:      #e8e0d2;
    /* 文字 */
    --ink:          #0a0a0a;
    --ink-2:        #1a1a1a;
    --ink-3:        #2a2520;
    --mute:         #6b6258;
    --mute-2:       #8a8074;
    /* 强调 */
    --gold:         #8b6f3a;
    --gold-2:       #a98950;
    --gold-3:       #6d5530;
    --gold-soft:    rgba(139, 111, 58, 0.12);
    /* 线 */
    --line:         rgba(10, 10, 10, 0.08);
    --line-2:       rgba(10, 10, 10, 0.16);
    --line-gold:    rgba(139, 111, 58, 0.4);
    /* 字体 */
    --serif-cn:     'Noto Serif SC', 'STSong', '宋体', serif;
    --serif-en:     'Cormorant Garamond', 'Times New Roman', serif;
    --sans-cn:      'Noto Sans SC', 'PingFang SC', sans-serif;
    --sans-en:      'Inter', -apple-system, sans-serif;
    /* 间距尺度 - 8 倍数 */
    --space-1:  0.5rem;
    --space-2:  1rem;
    --space-3:  1.5rem;
    --space-4:  2rem;
    --space-5:  3rem;
    --space-6:  4rem;
    --space-8:  6rem;
    --space-10: 8rem;
    --space-12: 10rem;
    /* 缓动 */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    /* 容器 */
    --container-max: 1440px;
    --container-pad: clamp(2rem, 6vw, 6rem);
}

/* =========================================================
   与杨教授视频对话 · 右下角悬浮按钮
   ========================================================= */
.video-chat-fab {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--sans-cn);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    box-shadow:
        0 8px 24px rgba(10, 10, 10, 0.18),
        0 2px 6px rgba(10, 10, 10, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                background 0.4s var(--ease),
                border-color 0.4s var(--ease);
    will-change: transform;
    cursor: pointer;
}

.video-chat-fab::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(135deg,
        var(--gold) 0%,
        var(--gold-2) 50%,
        var(--gold) 100%);
    z-index: -1;
    opacity: 0.35;
    filter: blur(10px);
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.video-chat-fab:hover,
.video-chat-fab:focus-visible {
    transform: translateY(-2px) scale(1.03);
    background: var(--ink-2);
    border-color: var(--gold);
    box-shadow:
        0 14px 32px rgba(139, 111, 58, 0.28),
        0 4px 10px rgba(10, 10, 10, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    outline: none;
}

.video-chat-fab:hover::before,
.video-chat-fab:focus-visible::before {
    opacity: 0.7;
}

.video-chat-fab:active {
    transform: translateY(0) scale(0.98);
}

.video-chat-icon {
    color: var(--gold-2);
    flex-shrink: 0;
    transition: color 0.4s var(--ease);
}

.video-chat-fab:hover .video-chat-icon,
.video-chat-fab:focus-visible .video-chat-icon {
    color: var(--gold);
}

.video-chat-text {
    white-space: nowrap;
}

/* 手机：紧凑 + 文案更短 + 上移避免遮挡底部导航栏 */
@media (max-width: 640px) {
    .video-chat-fab {
        padding: 12px 16px;
        font-size: 14px;
        gap: 8px;
        /* 上移避开 Safari / Chrome 底部导航栏（~44-50px）+ 16px 安全距离 */
        bottom: 72px;
    }
    .video-chat-text {
        /* 手机保留完整文案，但允许缩小 */
        font-size: 14px;
    }
}

/* 极小屏（< 380px）：只显图标 */
@media (max-width: 380px) {
    .video-chat-fab {
        padding: 14px;
        border-radius: 50%;
        aspect-ratio: 1;
    }
    .video-chat-text {
        display: none;
    }
}

/* 尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
    .video-chat-fab,
    .video-chat-fab::before,
    .video-chat-icon {
        transition: none;
    }
}

/* 打印隐藏 */
@media print {
    .video-chat-fab { display: none; }
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans-cn);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 精细纸张纹理 - 极致细节 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(at 20% 30%, rgba(139, 111, 58, 0.025) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(10, 10, 10, 0.015) 0px, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

img { display: block; max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s var(--ease);
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- 字体实用类 ---------- */
.font-serif-en { font-family: var(--serif-en); }
.font-serif-cn { font-family: var(--serif-cn); }
.italic { font-style: italic; }

/* Old style figures & 装饰 */
.tabular { font-variant-numeric: oldstyle-nums; }

/* ============================================
   1. 左侧垂直边栏导航（桌面端）
   ============================================ */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 72px;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: var(--paper);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
}

.side-nav__brand {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    color: var(--ink);
}

.side-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    list-style: none;
}

.side-nav__link {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--mute);
    position: relative;
    transition: color 0.3s var(--ease);
    letter-spacing: 0.02em;
}

.side-nav__link:hover,
.side-nav__link.is-active {
    color: var(--gold);
}

.side-nav__link::before {
    content: attr(data-num);
    font-size: 0.625rem;
    vertical-align: super;
    margin-right: 2px;
    color: var(--gold);
    font-style: normal;
}

.side-nav__year {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--mute-2);
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
}

/* ============================================
   2. 主内容容器
   ============================================ */
.main {
    margin-left: 72px;
    position: relative;
    z-index: 2;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--space-10) 0;
    position: relative;
}

.section + .section {
    border-top: 1px solid var(--line);
}

/* ---------- 章节头部 ---------- */
.section-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-6);
    margin-bottom: var(--space-5);
    align-items: end;
}

.section-num {
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-num::before,
.section-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-2);
}

.section-num::before { flex: 0 0 40px; }
.section-num::after { flex: 1; }

.section-title {
    font-family: var(--serif-cn);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-title em {
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.section-sub {
    font-family: var(--serif-cn);
    font-size: 1rem;
    color: var(--mute);
    margin-top: 0.75rem;
    letter-spacing: 0.08em;
}

/* ============================================
   3. HERO 首屏 - 杂志感封面
   ============================================ */
.hero {
    min-height: auto;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    min-height: auto;
    padding: var(--space-8) var(--container-pad) var(--space-10);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
}

/* 装饰编号 - 极致巨大字号背景水印 */
.hero__index {
    position: absolute;
    bottom: -5%;
    left: -2%;
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(12rem, 22vw, 26rem);
    line-height: 0.8;
    color: var(--gold);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ---------- 左侧：文字 ---------- */
.hero__text {
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--gold);
    letter-spacing: 0.15em;
}

.hero__eyebrow::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--gold);
}

.hero__title {
    font-family: var(--serif-cn);
    font-size: clamp(2.5rem, 6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 2rem;
    max-width: 100%;
}

.hero__title-line {
    display: block;
}

.hero__title em {
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.hero__subtitle {
    font-family: var(--sans-cn);
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--mute);
    max-width: 480px;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.hero__cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--sans-cn);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.4s var(--ease);
    text-transform: none;
}

.btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.4s var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
}

.btn-primary:hover {
    background: var(--gold-3);
    border-color: var(--gold-3);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    color: var(--ink);
    border: 1px solid var(--line-2);
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-ghost:hover::after {
    width: 100%;
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

/* ---------- 右侧：名片图 ---------- */
.hero__visual {
    position: relative;
    z-index: 2;
    /* 名片图原始比例 1.87:1（横长方形），不要再硬性 3/4 */
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.hero__card {
    position: relative;
    width: 100%;
    /* 1.87:1 名片图实际比例 */
    aspect-ratio: 1717 / 916;
    overflow: hidden;
    background: var(--paper-2);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 30px 80px -20px rgba(10, 10, 10, 0.25),
        0 0 0 1px rgba(139, 111, 58, 0.15);
    transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.hero__card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 40px 100px -20px rgba(10, 10, 10, 0.35),
        0 0 0 1px var(--gold);
}

.hero__card img {
    width: 100%;
    height: 100%;
    /* contain 让图片完整显示，不裁剪；图片比例已对齐容器 */
    object-fit: contain;
    object-position: center;
}

/* 名片上覆盖的精致文字 */
.hero__card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
    color: var(--ink);
}

/* 名片下方标签 - 杂志感三项荣誉 */
.hero__tags {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero__tag {
    position: relative;
    padding: 0.625rem 0.75rem 0.625rem 1.25rem;
    font-family: var(--serif-cn);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    letter-spacing: 0.05em;
    line-height: 1.5;
    background: var(--paper-2);
    border-left: 2px solid var(--gold);
}

.hero__tag::before {
    content: '◆';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: var(--gold);
}

.hero__card-name {
    font-family: var(--serif-cn);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.hero__card-title {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.8125rem;
    color: rgba(245, 241, 234, 0.75);
    letter-spacing: 0.1em;
}

/* 名片左上角小标签 */
.hero__card-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(245, 241, 234, 0.95);
    color: var(--ink);
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    z-index: 2;
}

/* ---------- 底部小信息条 ---------- */
.hero__meta {
    display: flex;
    gap: 4rem;
    grid-column: 1 / -1;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 30%;
    min-width: 120px;
}

.hero__meta-label {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.6875rem;
    color: var(--mute-2);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__meta-value {
    font-family: var(--serif-cn);
    font-size: 0.875rem;
    color: var(--ink-2);
    letter-spacing: 0.05em;
}

/* ============================================
   4. 关于区 - 大数字 + 引用
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
    align-items: start;
}

.about__lead {
    font-family: var(--serif-cn);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about__lead em {
    font-family: var(--serif-en);
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

.about__body {
    display: grid;
    gap: 1.25rem;
    font-family: var(--sans-cn);
    font-size: 0.9375rem;
    line-height: 1.95;
    color: var(--mute);
    letter-spacing: 0.02em;
}

/* 大数字统计 */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: var(--space-8);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border-right: 1px solid var(--line);
    position: relative;
}

.stat:last-child { border-right: none; }

.stat__num {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.stat__num sup {
    font-size: 0.4em;
    color: var(--gold);
    font-weight: 500;
    margin-left: 0.15em;
    font-style: normal;
}

.stat__label {
    font-family: var(--sans-cn);
    font-size: 0.8125rem;
    color: var(--mute);
    letter-spacing: 0.15em;
}

.stat__label-en {
    display: block;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.6875rem;
    color: var(--mute-2);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   5. 服务区 - 编辑级 4 列卡片
   ============================================ */
.services {
    padding-top: var(--space-10);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service {
    padding: var(--space-6) var(--space-4);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: all 0.5s var(--ease);
    cursor: default;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.service__index {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.service__name {
    font-family: var(--serif-cn);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.service__desc {
    font-family: var(--sans-cn);
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--mute);
    flex: 1;
    margin-bottom: 1.5rem;
}

.service__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service__tag {
    font-family: var(--sans-cn);
    font-size: 0.6875rem;
    color: var(--mute);
    letter-spacing: 0.1em;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--line-2);
}

.service:hover {
    background: var(--paper-2);
}

.service:hover .service__name {
    color: var(--gold);
}

/* ============================================
   6. 项目区 - 5 列卡片网格
   ============================================ */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-5) var(--space-3);
    background: var(--paper);
    transition: all 0.5s var(--ease);
    text-decoration: none;
    cursor: default;
    min-height: 280px;
    justify-content: flex-start;
}

.project-card:hover {
    background: var(--paper-2);
}

.project-card__logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    /* 临时隐藏 logo,等新图 */
    display: none;
}

.project-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
    filter: grayscale(0.4) opacity(0.75);
    /* 去除黑色背景 */
    mix-blend-mode: multiply;
}

/* 横版 logo:更宽更扁的容器,让蓝字 logo 视觉饱满 */
.project-card__logo--wide {
    width: 160px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.project-card:hover .project-card__logo img {
    transform: scale(1.08);
    filter: grayscale(0) opacity(1);
}

.project-card__name {
    font-family: var(--serif-cn);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.project-card__role {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.6875rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.project-card__desc {
    font-family: var(--sans-cn);
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--mute);
    letter-spacing: 0.02em;
}

/* ============================================
   7. 活动区 - 不规则 12 列网格
   ============================================ */
.activities__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3);
}

.activity {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
    cursor: pointer;
}

.activity img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
    filter: grayscale(0.3);
}

.activity:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.activity__caption {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, transparent 30%, transparent 60%, rgba(10,10,10,0.85) 100%);
    color: var(--paper);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.activity:hover .activity__caption {
    opacity: 1;
}

.activity__caption-num {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--gold-2);
    letter-spacing: 0.2em;
}

.activity__caption-title {
    font-family: var(--serif-cn);
    font-size: 1.125rem;
    font-weight: 500;
}

/* 大小不规则布局 - 杂志感 */
.activity:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.activity:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; }
.activity:nth-child(3) { grid-column: span 4; aspect-ratio: 3/4; }
.activity:nth-child(4) { grid-column: span 4; aspect-ratio: 3/4; }
.activity:nth-child(5) { grid-column: span 4; aspect-ratio: 3/4; }
.activity:nth-child(6) { grid-column: span 8; aspect-ratio: 16/9; }
.activity:nth-child(7) { grid-column: span 4; aspect-ratio: 4/3; }

/* ============================================
   8. 联系区 - 编辑级简洁版
   ============================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    border-top: 1px solid var(--line);
    padding-top: var(--space-8);
}

.contact__block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact__label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.contact__value {
    font-family: var(--serif-cn);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.contact__value a {
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 0.15em;
    transition: border-color 0.4s var(--ease);
}

.contact__value a:hover {
    border-bottom-color: var(--gold);
}

.contact__hint {
    font-family: var(--sans-cn);
    font-size: 0.8125rem;
    color: var(--mute);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* 大引用 */
.contact__quote {
    grid-column: 1 / -1;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
    text-align: center;
}

.contact__quote-text {
    font-family: var(--serif-cn);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.contact__quote-text::before {
    content: '"';
    font-family: var(--serif-en);
    font-style: italic;
    color: var(--gold);
    font-size: 1.5em;
    line-height: 0;
    margin-right: 0.1em;
    vertical-align: -0.2em;
}

.contact__quote-text::after {
    content: '"';
    font-family: var(--serif-en);
    font-style: italic;
    color: var(--gold);
    font-size: 1.5em;
    line-height: 0;
    margin-left: 0.05em;
    vertical-align: -0.2em;
}

.contact__quote-author {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--mute);
    letter-spacing: 0.15em;
}

/* ============================================
   9. 页脚
   ============================================ */
.footer {
    padding: var(--space-6) 0 var(--space-4);
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-4);
}

.footer__brand {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ink);
    letter-spacing: 0.15em;
}

.footer__brand-en {
    display: block;
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 400;
    font-size: 0.6875rem;
    color: var(--mute-2);
    letter-spacing: 0.25em;
    margin-top: 0.5rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--mute);
    letter-spacing: 0.05em;
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.6875rem;
    color: var(--mute-2);
    letter-spacing: 0.15em;
}

/* ============================================
   10. 滚动渐入动画
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================
   11. 项目提交弹窗（保留功能）
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.modal-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line-gold);
    padding: var(--space-6) var(--space-6) var(--space-5);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.5s var(--ease);
}

.modal-overlay[aria-hidden="false"] .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-header {
    margin-bottom: var(--space-5);
    padding-right: 3rem;
}

.modal-eyebrow {
    display: block;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--serif-cn);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.modal-title em {
    font-family: var(--serif-en);
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

.modal-sub {
    font-size: 0.875rem;
    color: var(--mute);
    letter-spacing: 0.05em;
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-family: var(--serif-cn);
    font-size: 0.8125rem;
    color: var(--ink);
    letter-spacing: 0.08em;
}

.form-field .req { color: var(--gold); margin-left: 2px; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--sans-cn);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-bottom: 1px solid var(--line-2);
    transition: all 0.3s var(--ease);
    outline: none;
    border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: var(--gold);
    background: rgba(255, 255, 255, 0.9);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--mute-2);
    opacity: 0.7;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6f3a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 14px;
    padding-right: 2.5rem;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.char-count {
    font-size: 0.75rem;
    color: var(--mute-2);
    text-align: right;
    letter-spacing: 0.05em;
}

.form-field input[type="file"] {
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: var(--space-3);
}

.modal-success {
    text-align: center;
    padding: var(--space-5) 0;
}

.modal-success svg {
    width: 60px;
    height: 60px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.modal-success h3 {
    font-family: var(--serif-cn);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
}

.modal-success p {
    font-size: 0.9375rem;
    color: var(--mute);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-success a {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
}

body.modal-open { overflow: hidden; }

/* ============================================
   12. 响应式
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-pad: 2rem;
    }

    .main { margin-left: 0; }

    /* 边栏变顶部水平条 */
    .side-nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 1rem 2rem;
        background: var(--paper);
        align-items: center;
        gap: 2rem;
    }

    .side-nav__brand {
        writing-mode: horizontal-tb;
        font-size: 0.8125rem;
        flex-shrink: 0;
        margin-right: auto;
    }

    .side-nav__menu {
        flex-direction: row;
        gap: 1.5rem;
        margin: 0;
    }

    .side-nav__link {
        font-size: 0.8125rem;
    }

    .side-nav__link::before {
        display: inline;
        margin-right: 3px;
    }

    .side-nav__year { display: none; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-5) var(--container-pad) var(--space-6);
    }

    .hero__visual {
        aspect-ratio: 16/10;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .hero__meta {
        position: static;
        margin-top: var(--space-6);
        gap: 2rem;
        flex-wrap: wrap;
        grid-column: 1;
        border-top: 1px solid var(--line);
        padding-top: var(--space-4);
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activities__grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .activity:nth-child(1) { grid-column: span 6; aspect-ratio: 16/9; }
    .activity:nth-child(2) { grid-column: span 6; aspect-ratio: 16/9; }
    .activity:nth-child(3),
    .activity:nth-child(4),
    .activity:nth-child(5) { grid-column: span 2; aspect-ratio: 3/4; }
    .activity:nth-child(6) { grid-column: span 6; aspect-ratio: 16/9; }
    .activity:nth-child(7) { grid-column: span 6; aspect-ratio: 16/9; }

    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3);
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: clamp(2.25rem, 8vw, 3.25rem);
        max-width: 100%;
    }

    .hero__subtitle {
        max-width: 100%;
        font-size: 0.9375rem;
    }

    .hero__cta {
        width: 100%;
    }

    .hero__cta .btn {
        flex: 1;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }

    .hero__meta {
        gap: 1.5rem;
    }

    .hero__meta-item {
        flex: 1 1 40%;
    }

    /* 边栏变底部导航条 - 居中显示,溢出可滚动 */
    .side-nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        border-right: none;
        border-top: 1px solid var(--line);
        padding: 0.625rem 0;
        background: var(--paper);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: center;
        gap: 0;
    }

    .side-nav::-webkit-scrollbar { display: none; }

    .side-nav__brand,
    .side-nav__year { display: none; }

    .side-nav__menu {
        flex-direction: row;
        justify-content: center;
        width: max-content;
        gap: 0;
        padding: 0 1rem;
        margin: 0 auto;
    }

    .side-nav__link {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
    }

    .side-nav__link::before {
        font-size: 0.625rem;
        margin: 0;
    }

    .main {
        margin-left: 0;
        padding-bottom: 64px;
    }

    /* section 在小屏幕用更小间距 */
    .section {
        padding: var(--space-8) 0;
    }

    /* 章节头部字号缩放 */
    .section-num {
        font-size: 0.8125rem;
    }

    .section-num::before {
        flex: 0 0 24px;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    /* 关于区引语字号 */
    .about__lead {
        font-size: 1.375rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: var(--space-4) var(--space-3);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .stat__num {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        white-space: nowrap;
    }

    /* 服务卡片 */
    .service {
        min-height: 0;
        padding: var(--space-4) var(--space-3);
    }

    .service__name {
        font-size: 1.25rem;
    }

    /* 我的项目卡片 */
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        min-height: 220px;
        padding: var(--space-4) var(--space-2);
    }

    .project-card__logo {
        width: 90px;
        height: 60px;
    }

    .project-card__logo--wide {
        width: 130px;
        height: 40px;
    }

    .project-card__name {
        font-size: 0.875rem;
    }

    .project-card__role {
        font-size: 0.625rem;
    }

    .project-card__desc {
        font-size: 0.6875rem;
        line-height: 1.5;
    }

    /* 联系区 */
    .contact__value {
        font-size: 1.5rem;
        word-break: break-all;
    }

    /* 弹窗 */
    .modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal-card {
        padding: var(--space-4);
        max-height: 95vh;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* 隐藏 hero 水印（小屏太占空间） */
    .hero__index {
        display: none;
    }
}

/* 减少动效 - 无障碍 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
