/* ==========================================================================
   THINK.BECOMING.FUND — Deep Obsidian Observatory × Archival Philosophy
   Zero external font/CDN dependencies for ultra-fast loading on Alibaba Cloud
   ========================================================================== */

:root {
  --bg-deep: #07090f;
  --bg-surface: #0c101b;
  --bg-elevated: #121827;
  --bg-card: rgba(16, 22, 36, 0.72);
  --border-subtle: rgba(212, 175, 106, 0.14);
  --border-strong: rgba(212, 175, 106, 0.34);
  --border-cool: rgba(126, 200, 227, 0.22);

  --text-primary: #eae6dc;
  --text-secondary: #b5afa2;
  --text-muted: #7c7870;

  --gold: #d4af6a;
  --gold-bright: #f0d290;
  --gold-dim: rgba(212, 175, 106, 0.16);

  --cyan: #7ec8e3;
  --cyan-dim: rgba(126, 200, 227, 0.14);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1160px;
  --narrow-width: 760px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.85;
  background: radial-gradient(circle at 50% 0%, #101728 0%, var(--bg-deep) 52%);
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 175, 106, 0.28);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono,
.mono-tag {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 48px, var(--narrow-width));
}

/* ================= 顶部进度条与导航 ================= */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.08s linear;
}

.site-header {
  position: fixed;
  top: 2px;
  left: 0;
  width: 100%;
  z-index: 90;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 175, 106, 0.12);
}

.header-inner {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 106, 0.8);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.top-nav a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--gold-bright);
}

.top-nav a.active::after,
.top-nav a:hover::after {
  width: 100%;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.motion-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.motion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.motion-toggle[aria-pressed="false"] .motion-dot {
  background: var(--text-muted);
  box-shadow: none;
}

/* 右侧悬浮章节轨道 */
.chapter-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 80;
}

.rail-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 15, 0.7);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.rail-item:hover,
.rail-item.active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 175, 106, 0.14);
  transform: scale(1.1);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 112px 0 84px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 18%, rgba(7, 9, 15, 0.65) 75%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.4) 0%, transparent 25%, rgba(7, 9, 15, 0.85) 88%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(12, 16, 27, 0.68);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-eyebrow .mono-tag {
  color: var(--gold);
}

.eyebrow-sep {
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.85rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: #f6f3eb;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
  text-wrap: balance;
}

.gold-punctuation {
  color: var(--gold);
}

.mobile-br {
  display: none;
}

.hero-subtitle {
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  color: var(--text-secondary);
  line-height: 1.95;
}

.hero-subtitle strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.24), rgba(212, 175, 106, 0.08));
  color: var(--gold-bright);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 0 28px rgba(212, 175, 106, 0.14);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.38), rgba(212, 175, 106, 0.16));
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(212, 175, 106, 0.26);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 27, 0.55);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.3s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-coordinates {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.74rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ================= 通用章节排版 ================= */
.section {
  padding: 112px 0;
  position: relative;
}

.alt-surface {
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.65) 0%, rgba(9, 13, 22, 0.92) 50%, rgba(14, 19, 32, 0.65) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.chapter-header {
  max-width: 780px;
  margin-bottom: 52px;
}

.chapter-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.32;
  font-weight: 600;
  color: #f6f3eb;
}

.chapter-lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* 引言 */
.prologue {
  padding-top: 84px;
  padding-bottom: 92px;
}

.lead-quote {
  margin: 0 0 36px;
  padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 106, 0.08), transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.lead-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.1vw, 1.46rem);
  line-height: 1.78;
  color: #f4efe3;
}

.lead-quote strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.prose p {
  margin: 0 0 22px;
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.95;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ================= 数据标尺 ================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.metric-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.metric-num {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.15;
  margin-bottom: 10px;
}

.metric-num .unit {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================= 交互展箱通用 ================= */
.exhibit-box {
  border-radius: var(--radius-lg);
  background: rgba(11, 15, 25, 0.88);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  margin-bottom: 48px;
}

.exhibit-top {
  padding: 28px 30px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exhibit-tag {
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 8px;
}

.exhibit-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.36rem;
  color: #f6f3eb;
}

.exhibit-desc {
  margin: 0;
  max-width: 600px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.exhibit-canvas,
.paradigm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Exhibit 1: 桥梁图解 */
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.84rem;
  transition: all 0.25s ease;
}

.stage-tab .tab-year {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stage-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.stage-tab.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.stage-tab.active .tab-year {
  color: var(--gold);
}

.bridge-stage-wrap {
  position: relative;
  height: 340px;
  background: radial-gradient(circle at 50% 50%, #10192b 0%, #070a12 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bridge-controls {
  padding: 24px 30px 28px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}

.exp-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(212, 175, 106, 0.08);
  margin-bottom: 10px;
}

.bridge-explanation h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: #f6f3eb;
}

.bridge-explanation p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.slider-panel {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(126, 200, 227, 0.05);
  border: 1px solid var(--border-cool);
  transition: opacity 0.3s ease;
}

.slider-panel.inactive {
  opacity: 0.42;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.slider-value {
  color: var(--cyan);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.slider-panel input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.slider-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 2026 时间轴四格 */
.timeline-2026 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.55;
}

.tl-date {
  font-size: 0.76rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.timeline-card h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #f6f3eb;
}

.timeline-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

/* ================= CHAPTER II：27 位数学家星图 ================= */
.constellation-filters {
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-chip.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.constellation-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: 460px;
}

.constellation-stage {
  position: relative;
  min-height: 460px;
  background: radial-gradient(circle at 46% 48%, #10182b 0%, #070a11 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.constellation-hint {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
}

.star-inspector {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  background: rgba(12, 16, 27, 0.92);
}

.inspector-era {
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.inspector-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: #f6f3eb;
}

.inspector-en {
  font-size: 0.8rem;
  color: var(--cyan);
  margin: 4px 0 18px;
}

.inspector-desc {
  margin: 0 0 22px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.85;
  flex: 1;
}

.inspector-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.star-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 148px;
  overflow-y: auto;
  padding-right: 4px;
}

.roster-pill {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.roster-pill:hover {
  color: var(--text-primary);
  border-color: rgba(212, 175, 106, 0.35);
}

.roster-pill.active {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* 原声手记卡片 */
.archival-letter {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(28, 25, 20, 0.72), rgba(14, 17, 26, 0.88));
  border: 1px solid rgba(212, 175, 106, 0.24);
  position: relative;
}

.letter-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.letter-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 106, 0.4), transparent);
}

.letter-title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.56rem);
  color: var(--gold-bright);
  line-height: 1.5;
}

.letter-body p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.04rem;
  color: #e4dfd4;
  line-height: 2;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

/* 思想转折卡 */
.pivot-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(126, 200, 227, 0.08), rgba(212, 175, 106, 0.06));
  border: 1px solid var(--border-cool);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.pivot-icon {
  font-size: 1.7rem;
  color: var(--cyan);
  line-height: 1;
  margin-top: 4px;
}

.pivot-label {
  font-size: 0.74rem;
  color: var(--cyan);
  margin-bottom: 8px;
}

.pivot-content h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #f6f3eb;
}

.pivot-content p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.pivot-content strong {
  color: var(--text-primary);
}

/* ================= CHAPTER III：范式对照与七次文明外化 ================= */
.paradigm-box {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.paradigm-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  min-height: 290px;
}

.paradigm-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.paradigm-card {
  flex: 1;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.paradigm-card.bright {
  border-color: var(--border-strong);
  background: linear-gradient(140deg, rgba(212, 175, 106, 0.1), rgba(16, 22, 36, 0.82));
}

.p-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.paradigm-card.bright .p-tag {
  color: var(--gold);
}

.paradigm-card h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #f6f3eb;
}

.math-inline {
  font-family: var(--mono);
  color: var(--cyan);
}

.paradigm-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 七大文明纪元轨道 */
.epoch-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 19, 0.75);
}

.epoch-node {
  padding: 16px 10px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.epoch-node:last-child {
  border-right: none;
}

.epoch-node:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.epoch-node.active {
  background: rgba(212, 175, 106, 0.09);
  border-bottom-color: var(--gold);
  color: var(--gold-bright);
}

.en-idx {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.epoch-node.active .en-idx {
  color: var(--gold);
}

.en-title {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.en-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.epoch-stage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  min-height: 410px;
}

.epoch-canvas-wrap {
  position: relative;
  min-height: 360px;
  background: radial-gradient(circle at 50% 50%, #11192a 0%, #060910 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.epoch-canvas-caption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 0.72rem;
  color: rgba(234, 230, 220, 0.55);
  pointer-events: none;
}

.epoch-detail {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.epoch-era {
  font-size: 0.76rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.epoch-heading {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.44rem;
  color: #f6f3eb;
  line-height: 1.4;
}

.epoch-summary {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.88;
}

.epoch-triad {
  display: grid;
  gap: 12px;
}

.triad-item {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.triad-item.highlight {
  background: rgba(212, 175, 106, 0.07);
  border-color: rgba(212, 175, 106, 0.25);
}

.triad-label {
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.triad-item.highlight .triad-label {
  color: var(--gold);
}

.triad-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.autoplay-btn.playing {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* 量子力学与 1700 万行代码回响 */
.quantum-parallel {
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 24, 42, 0.85), rgba(10, 14, 24, 0.92));
  border: 1px solid var(--border-cool);
}

.qp-eyebrow {
  font-size: 0.74rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.quantum-parallel h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.56rem);
  color: #f6f3eb;
}

.qp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.qp-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.qp-col p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.qp-col strong {
  color: var(--text-primary);
}

/* ================= CHAPTER IV：四重境界 ================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-card {
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 27, 0.84);
  border: 1px solid var(--border-subtle);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.pillar-num {
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--gold-dim);
}

.pillar-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.24rem;
  color: #f6f3eb;
  line-height: 1.45;
}

.pillar-shift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.shift-old {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.shift-arrow {
  color: var(--gold);
}

.shift-new {
  color: var(--cyan);
}

.pillar-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.pillar-card strong {
  color: var(--text-primary);
}

/* ================= EPILOGUE & FOOTER ================= */
.epilogue {
  text-align: center;
  padding: 124px 0 116px;
  background: radial-gradient(circle at 50% 60%, rgba(212, 175, 106, 0.09) 0%, transparent 62%);
}

.epilogue-seal {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 18px;
}

.epilogue-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: #f6f3eb;
}

.epilogue-text {
  margin: 0 0 24px;
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 2;
}

.epilogue-closing {
  margin: 0 0 42px;
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--gold-bright);
  line-height: 1.95;
}

.epilogue-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 0;
  background: #05070c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-sep {
  margin: 0 10px;
}

/* ================= 滚动渐显动画 ================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.95);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  z-index: 200;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= 响应式适配 ================= */
@media (max-width: 1080px) {
  .chapter-rail {
    display: none;
  }

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

  .constellation-layout,
  .paradigm-box,
  .epoch-stage-grid,
  .bridge-controls {
    grid-template-columns: 1fr;
  }

  .constellation-stage,
  .epoch-canvas-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

@media (max-width: 960px) {
  .top-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .mobile-br {
    display: inline;
  }

  .desktop-br {
    display: none;
  }

  .container,
  .container.narrow,
  .header-inner {
    width: calc(100% - 32px);
  }

  .section {
    padding: 76px 0;
  }

  .metrics-grid,
  .timeline-2026,
  .qp-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .epoch-node:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .archival-letter {
    padding: 28px 22px;
  }

  .pivot-card {
    flex-direction: column;
    padding: 24px 22px;
  }

  .exhibit-top,
  .bridge-controls,
  .epoch-detail,
  .quantum-parallel {
    padding: 22px 18px;
  }

  .bridge-stage-wrap {
    height: 270px;
  }

  .constellation-stage {
    min-height: 350px;
  }

  .epoch-canvas-wrap {
    min-height: 260px;
  }

  .hero-coordinates {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
