/* ============================================================
   水磨腔长卷 · 昆曲六百年 —— 公共史学数字展演
   视觉语言：水墨长卷 / 宣纸与夜色相间 / 朱砂点染 / 留白缓现
   ============================================================ */

:root {
  --paper: #f4eee1;
  --paper-warm: #ede4d0;
  --paper-deep: #e7dcc4;
  --ink: #1d1a16;
  --ink-soft: #4a443b;
  --ink-faint: #8a8172;
  --cinnabar: #b03a2e;
  --cinnabar-deep: #8e2b21;
  --dai: #33505c;
  --gold: #a8894f;
  --night: #101216;
  --night-2: #16181e;
  --moon: #ece7da;
  --moon-dim: #b9b2a2;
  --font-song: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-kai: "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", "TW-Kai", "BiauKai", serif;
  --ease-out: cubic-bezier(.22, .75, .25, 1);
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-song);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cinnabar); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }

section[id], header[id] { scroll-margin-top: 56px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  color: var(--moon);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s;
}
.nav.is-solid {
  background: rgba(244, 238, 225, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(29, 26, 22, .08);
}
.nav-brand {
  font-family: var(--font-kai); font-size: 1.35rem; letter-spacing: .18em;
  color: inherit; text-decoration: none;
}
.nav-brand span { color: var(--cinnabar); margin-left: .35em; }
.nav-links { display: flex; gap: clamp(.8rem, 2.4vw, 1.9rem); }
.nav-links a {
  color: inherit; text-decoration: none; font-size: .92rem; letter-spacing: .28em;
  opacity: .72; transition: opacity .3s, color .3s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px;
  background: var(--cinnabar); transition: width .35s var(--ease-out), left .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; left: 0; }
.nav-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: rgba(140, 130, 110, .18);
}
.nav-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}

/* ---------------- 卷首 ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 10%, #1b1e26 0%, var(--night) 55%, #0a0b0e 100%);
  color: var(--moon);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; text-align: center; padding: 6rem 1.5rem 4rem; }
.hero-kicker {
  font-size: .82rem; letter-spacing: .5em; text-indent: .5em; color: var(--moon-dim);
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}
.hero-title {
  display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.6rem);
  font-family: var(--font-kai);
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 1; font-weight: 400;
  text-shadow: 0 0 60px rgba(176, 58, 46, .25);
}
.hero-title span {
  display: inline-block;
  animation: titleIn 1.6s var(--ease-out) both;
}
.hero-title span:nth-child(2) { animation-delay: .35s; }
@keyframes titleIn {
  from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.hero-sub {
  margin-top: clamp(1.4rem, 3.5vh, 2.4rem);
  font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: .62em; text-indent: .62em;
  color: var(--gold);
  animation: fadeUp 1.4s .9s var(--ease-out) both;
}
.hero-quote {
  margin-top: clamp(2rem, 6vh, 4rem);
  animation: fadeUp 1.4s 1.3s var(--ease-out) both;
}
.hero-quote p {
  font-family: var(--font-kai); font-size: clamp(1.25rem, 3vw, 1.8rem);
  letter-spacing: .14em; color: var(--moon);
}
.hero-quote cite {
  display: block; margin-top: .9rem; font-style: normal;
  font-size: .85rem; letter-spacing: .3em; color: var(--moon-dim);
}
.hero-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: var(--moon-dim); text-decoration: none;
  font-size: .8rem; letter-spacing: .5em; text-indent: .5em;
  writing-mode: vertical-rl;
  animation: fadeUp 1.4s 1.8s var(--ease-out) both;
}
.hero-hint i {
  width: 1px; height: 56px; background: linear-gradient(var(--cinnabar), transparent);
  animation: hintFlow 2.2s ease-in-out infinite;
}
@keyframes hintFlow {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 章节通用 ---------------- */
.sec { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }

.sec-paper {
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(176, 58, 46, .045), transparent 60%),
    var(--paper);
  color: var(--ink);
}
.sec-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sec-alt { background-color: var(--paper-warm); }

.sec-night {
  background:
    radial-gradient(100% 50% at 50% 0%, rgba(51, 80, 92, .18), transparent 65%),
    linear-gradient(var(--night-2), var(--night));
  color: var(--moon);
}
.sec-stage {
  background:
    radial-gradient(80% 55% at 50% 0%, #1c1f27 0%, var(--night) 70%);
  color: var(--moon);
}

.sec-head { text-align: center; margin-bottom: clamp(3rem, 7vh, 5rem); position: relative; }
.seal {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.2rem;
  background: var(--cinnabar); color: var(--paper);
  font-family: var(--font-kai); font-size: 1.7rem; font-style: normal;
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--cinnabar);
  transform: rotate(-3deg);
}
.sec-night .seal, .sec-stage .seal { box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--cinnabar); }
.sec-no { font-size: .82rem; letter-spacing: .55em; text-indent: .55em; color: var(--cinnabar); margin-bottom: .7rem; }
.sec-title {
  font-family: var(--font-kai); font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: .12em; line-height: 1.3;
}
.sec-desc {
  max-width: 46rem; margin: 1.4rem auto 0;
  color: inherit; opacity: .72; font-size: clamp(.95rem, 2vw, 1.05rem);
}

/* 引文 */
.pull {
  max-width: 50rem; margin: 0 auto clamp(3rem, 7vh, 4.5rem);
  text-align: center; position: relative; padding: 0 1rem;
}
.pull p {
  font-family: var(--font-kai); font-size: clamp(1.3rem, 3.4vw, 2rem);
  line-height: 2; letter-spacing: .08em;
}
.pull cite {
  display: block; margin-top: 1.2rem; font-style: normal;
  font-size: .85rem; letter-spacing: .25em; opacity: .6;
}
.pull::before, .pull::after {
  font-family: var(--font-song); position: absolute; font-size: 3.2rem;
  color: var(--cinnabar); opacity: .55; line-height: 1;
}
.pull::before { content: "「"; left: -.4em; top: -.55em; }
.pull::after { content: "」"; right: -.4em; bottom: .35em; }

/* ---------------- 第一章 ---------------- */
.intro-grid {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-lead p { font-size: clamp(1rem, 2.2vw, 1.14rem); margin-bottom: 1.4em; text-align: justify; }
.intro-lead .em {
  color: var(--cinnabar); font-weight: 600;
  border-bottom: 1px solid rgba(176, 58, 46, .35); padding-bottom: 1px;
}
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
.stat {
  padding: 1.4rem 1.2rem; border: 1px solid rgba(29, 26, 22, .14);
  background: rgba(255, 252, 244, .55); border-radius: 4px;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(29, 26, 22, .35); }
.stat b {
  display: block; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.1;
  font-weight: 900; color: var(--cinnabar); font-variant-numeric: tabular-nums;
}
.stat span { font-size: .86rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------------- 第二章 · 长卷 ---------------- */
.timeline { position: relative; padding: 2rem 0 1rem; }
.tl-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: rgba(236, 231, 218, .1); overflow: hidden;
}
.tl-line i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(var(--cinnabar), var(--gold));
  transform: scaleY(0); transform-origin: top;
}
.tl-item {
  position: relative; width: 50%; padding: 1.3rem clamp(2rem, 4vw, 3.4rem) 1.3rem 0;
  text-align: right;
}
.tl-item:nth-child(even) {
  margin-left: 50%; padding: 1.3rem 0 1.3rem clamp(2rem, 4vw, 3.4rem); text-align: left;
}
.tl-year {
  font-family: var(--font-kai); font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--gold); letter-spacing: .1em; margin-bottom: .45rem;
}
.tl-star .tl-year { color: var(--cinnabar); }
.tl-card {
  display: inline-block; text-align: left; max-width: 30rem;
  background: rgba(236, 231, 218, .05);
  border: 1px solid rgba(236, 231, 218, .12);
  border-left: 3px solid rgba(236, 231, 218, .25);
  padding: 1.2rem 1.4rem; border-radius: 4px;
  transition: border-color .4s, background .4s, transform .5s var(--ease-out);
}
.tl-card:hover { background: rgba(236, 231, 218, .09); transform: translateY(-3px); }
.tl-star .tl-card { border-left-color: var(--cinnabar); }
.tl-card h3 { font-size: 1.18rem; letter-spacing: .08em; margin-bottom: .5rem; color: var(--moon); }
.tl-card p { font-size: .94rem; line-height: 1.95; color: var(--moon-dim); }
.tl-item::before {
  content: ""; position: absolute; top: 2.6rem; right: -7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold);
}
.tl-star::before { border-color: var(--cinnabar); box-shadow: 0 0 12px rgba(176, 58, 46, .7); }
.tl-item:nth-child(even)::before { right: auto; left: -7px; }
.tl-note {
  text-align: center; margin-top: 3rem; font-size: .82rem;
  letter-spacing: .12em; opacity: .55;
}

/* ---------------- 第三章 · 水袖 ---------------- */
.sleeve-lab {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 7vh, 4.5rem);
}
.sleeve-stage {
  position: relative; min-height: 420px; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(51, 80, 92, .25), transparent 70%),
    #0b0c10;
  border: 1px solid rgba(236, 231, 218, .1);
}
.sleeve-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sleeve-hint {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  font-size: .8rem; letter-spacing: .4em; text-indent: .4em; color: var(--moon-dim);
  pointer-events: none; transition: opacity .6s;
}
.sleeve-moods { display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.mood {
  font-family: var(--font-song); text-align: left; cursor: pointer;
  background: rgba(236, 231, 218, .04); color: var(--moon);
  border: 1px solid rgba(236, 231, 218, .12); border-radius: 6px;
  padding: 1rem 1.2rem; transition: all .35s var(--ease-out);
}
.mood b { display: block; font-size: 1.06rem; letter-spacing: .14em; margin-bottom: .3rem; }
.mood span { font-size: .84rem; color: var(--moon-dim); }
.mood:hover { border-color: rgba(236, 231, 218, .35); transform: translateX(4px); }
.mood.is-active {
  background: rgba(176, 58, 46, .14);
  border-color: var(--cinnabar);
}
.mood.is-active b { color: #e8b7a9; }

.sleeve-notes { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sleeve-chart h3, .side-quote h3 { font-size: 1.2rem; letter-spacing: .12em; margin-bottom: .6rem; }
.sleeve-chart-sub { font-size: .88rem; color: var(--moon-dim); margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .86rem; color: var(--moon-dim);
  border: 1px solid rgba(236, 231, 218, .16); border-radius: 999px;
  padding: .38rem .95rem; transition: all .3s var(--ease-out);
}
.chip b { color: var(--moon); font-weight: 600; margin-right: .45em; }
.chip:hover { border-color: var(--cinnabar); color: var(--moon); transform: translateY(-2px); }
.side-quote {
  border-left: 3px solid var(--cinnabar); padding: .4rem 0 .4rem 1.4rem;
}
.side-quote p { font-size: 1.02rem; line-height: 2.1; }
.side-quote cite { display: block; margin-top: .8rem; font-size: .8rem; font-style: normal; color: var(--moon-dim); }

/* ---------------- 第四章 · 声之形 ---------------- */
.voice-lab {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 7vh, 4.5rem);
}
.voice-screen {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 340px;
  background: linear-gradient(#14161c, #0d0f13);
  border: 1px solid rgba(29, 26, 22, .2);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .5);
}
.voice-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.voice-readout {
  position: absolute; top: 1.1rem; left: 1.3rem; color: var(--moon);
}
.voice-readout b {
  display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900;
  color: #e9c8b4; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.voice-readout span { font-size: .82rem; letter-spacing: .1em; color: var(--moon-dim); }
.voice-controls { display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.voice-presets { display: flex; gap: .6rem; flex-wrap: wrap; }
.vpreset {
  font-family: var(--font-song); cursor: pointer; font-size: .95rem; letter-spacing: .08em;
  padding: .55rem 1.3rem; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid rgba(29, 26, 22, .3); transition: all .3s var(--ease-out);
}
.vpreset:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.vpreset.is-active { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper); }
.voice-listen {
  font-family: var(--font-song); cursor: pointer;
  display: inline-flex; align-items: center; gap: .8rem; align-self: flex-start;
  padding: .75rem 1.6rem; border-radius: 999px; font-size: .98rem; letter-spacing: .1em;
  background: var(--ink); color: var(--paper); border: none;
  transition: all .35s var(--ease-out);
}
.voice-listen:hover { background: var(--cinnabar); transform: translateY(-2px); }
.voice-listen[aria-pressed="true"] { background: var(--cinnabar); }
.vl-icon {
  width: 10px; height: 10px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(244, 238, 225, .5);
}
.voice-listen[aria-pressed="true"] .vl-icon { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 238, 225, .55); }
  100% { box-shadow: 0 0 0 12px rgba(244, 238, 225, 0); }
}
.voice-note { font-size: .86rem; color: var(--ink-soft); line-height: 1.95; max-width: 26rem; }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.voice-card {
  padding: 1.6rem 1.5rem; border-radius: 6px;
  background: rgba(255, 252, 244, .6); border: 1px solid rgba(29, 26, 22, .12);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(29, 26, 22, .4); }
.voice-card h3 { font-size: 1.1rem; letter-spacing: .12em; margin-bottom: .7rem; color: var(--cinnabar); }
.voice-card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------------- 第五章 · 行当 ---------------- */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: clamp(2.4rem, 6vh, 4rem); }
.role-card {
  position: relative; padding: 1.8rem 1.4rem 1.5rem; border-radius: 6px; overflow: hidden;
  background: rgba(255, 252, 244, .65); border: 1px solid rgba(29, 26, 22, .12);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.role-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.role-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(29, 26, 22, .42); }
.role-card:hover::before { transform: scaleX(1); }
.role-card h3 {
  font-family: var(--font-kai); font-size: 2.1rem; font-weight: 400;
  color: var(--cinnabar); margin-bottom: .4rem;
}
.role-sub { font-size: .78rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: .8rem; }
.role-card p:last-child { font-size: .9rem; color: var(--ink-soft); }
.roles-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.rf {
  padding: 1.8rem 1.7rem; border-radius: 6px;
  background: var(--ink); color: var(--moon);
  position: relative; overflow: hidden;
}
.rf::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(176, 58, 46, .35), transparent 70%);
}
.rf h3 { font-size: 1.12rem; letter-spacing: .1em; margin-bottom: .8rem; color: #e9c8b4; }
.rf p { font-size: .92rem; color: var(--moon-dim); }

/* ---------------- 第六章 · 文本之脉 ---------------- */
.strata {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1.2rem; align-items: stretch; margin-bottom: clamp(3rem, 7vh, 4.5rem);
}
.stratum {
  padding: 1.5rem 1.3rem; border-radius: 6px;
  background: rgba(236, 231, 218, .05); border: 1px solid rgba(236, 231, 218, .13);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.stratum:hover { transform: translateY(-4px); border-color: rgba(168, 137, 79, .55); }
.stratum-tag {
  display: inline-block; font-size: .74rem; letter-spacing: .18em;
  color: var(--night); background: var(--gold); border-radius: 3px;
  padding: .18rem .6rem; margin-bottom: .9rem;
}
.stratum h3 { font-size: 1.1rem; letter-spacing: .06em; margin-bottom: .6rem; color: var(--moon); }
.stratum p { font-size: .87rem; color: var(--moon-dim); }
.stratum-arrow { align-self: center; width: 26px; height: 2px; background: var(--gold); position: relative; opacity: .7; }
.stratum-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 5px solid transparent; border-left-color: var(--gold);
}
.text-coda {
  max-width: 46rem; margin: 0 auto; text-align: center;
  padding: 2rem 1.6rem; border-top: 1px solid rgba(236, 231, 218, .15);
}
.text-coda h3 { font-family: var(--font-kai); font-size: 1.5rem; font-weight: 400; color: var(--gold); margin-bottom: .8rem; }
.text-coda p { font-size: .95rem; color: var(--moon-dim); }

/* ---------------- 第七章 · 知音 ---------------- */
.bosom-flow { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; }
.bosom-quote {
  padding: clamp(2.2rem, 6vh, 3.6rem) 0;
  border-bottom: 1px solid rgba(236, 231, 218, .09);
  text-align: center;
}
.bosom-quote:nth-child(even) { text-align: center; }
.bosom-quote p {
  font-family: var(--font-kai);
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  line-height: 1.9; letter-spacing: .06em;
}
.bosom-quote cite {
  display: block; margin-top: 1.1rem; font-style: normal;
  font-size: .84rem; letter-spacing: .22em; color: var(--moon-dim);
}
.bosom-quote:last-child { border-bottom: none; }
.bosom-quote:last-child p { color: #e9c8b4; }

/* ---------------- 卷末 ---------------- */
.colophon { max-width: 44rem; margin: 0 auto 2.6rem; text-align: center; }
.colophon p { color: var(--ink-soft); }
.biblio {
  max-width: 46rem; margin: 0 auto; padding-left: 1.6rem;
  font-size: .92rem; color: var(--ink-soft);
}
.biblio li { margin-bottom: .7rem; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--night); color: var(--moon-dim);
  padding: 3.4rem 0 2.8rem; text-align: center;
}
.footer-title { font-family: var(--font-kai); font-size: 1.5rem; letter-spacing: .2em; color: var(--moon); }
.footer-meta { font-size: .82rem; letter-spacing: .3em; margin-top: .7rem; }
.footer-icp { font-size: .82rem; letter-spacing: .12em; margin-top: 1.6rem; opacity: .75; }

/* ---------------- 浮现动画 ---------------- */
.reveal {
  opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .intro-grid, .sleeve-lab, .voice-lab, .sleeve-notes, .roles-feature { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .strata { grid-template-columns: 1fr; }
  .stratum-arrow { width: 2px; height: 26px; justify-self: center; }
  .stratum-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--gold); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-kicker { font-size: .72rem; letter-spacing: .28em; text-indent: .28em; }
  .hero-sub { letter-spacing: .4em; text-indent: .4em; }
  .timeline { padding-left: 0; }
  .tl-line { left: 8px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; text-align: left;
    padding: 1.1rem 0 1.1rem 2.2rem;
  }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 2px; right: auto; }
  .hero-title { font-size: clamp(5rem, 30vw, 9rem); }
  .sleeve-stage { min-height: 320px; }
  .voice-grid { grid-template-columns: 1fr; }
}

/* ---------------- 动效偏好 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-title span, .hero-sub, .hero-quote, .hero-hint { animation: none; }
  .hero-hint i { animation: none; }
}
