/* ==========================================================================
   非凡娱乐汇 · 共享外框样式 /assets/site.css
   高原夜空底色 + 经幡五色功能色 + 侧边品牌轨道 + 框景内容窗
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, details, summary {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; }

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --night-950: #06132E;
  --night-900: #0B1B3A;
  --glass-800: #112A57;
  --sky-500: #4C9AFF;
  --snow-050: #F7FBFF;
  --mist-100: #DCE7F7;
  --saffron-500: #F2B84B;
  --vermillion-600: #C8372D;
  --turquoise-500: #159E94;
  --prayer-green-600: #1F8A5B;
  --muted-400: #8FA6C8;
  --ink-900: #071021;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, ui-monospace, Consolas, monospace;
  --font-num: "Bebas Neue", "DIN Condensed", "Oswald", "Arial Narrow", var(--font-sans);

  --rail-w: 96px;
  --topbar-h: 64px;
  --edge: rgba(143, 166, 200, 0.22);
  --edge-strong: rgba(143, 166, 200, 0.38);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night-900);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(76, 154, 255, 0.18), transparent 62%),
    radial-gradient(880px 520px at 6% 104%, rgba(21, 158, 148, 0.12), transparent 60%),
    repeating-linear-gradient(118deg, rgba(143, 166, 200, 0.05) 0 1px, transparent 1px 36px);
  background-attachment: fixed;
  color: var(--mist-100);
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 0.42vw + 14.6px, 17px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--snow-050);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 900; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.16rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: 0.02em; }

strong { color: var(--snow-050); font-weight: 700; }

::selection { background: var(--saffron-500); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content:focus { outline: none; }

/* ---------- 4. 可访问性工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--saffron-500);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 80;
}

/* 左缘阅读进度线 */
.read-progress {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  z-index: 95;
  pointer-events: none;
  background: rgba(143, 166, 200, 0.14);
}
.read-progress-bar {
  display: block;
  width: 100%; height: 100%;
  transform: scaleY(var(--read-progress, 0));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--sky-500) 0%, var(--saffron-500) 46%, var(--vermillion-600) 100%);
  transition: transform 0.16s linear;
}

/* 侧轨 / 抽屉 */
.rail {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0 14px;
  background:
    linear-gradient(180deg, rgba(17, 42, 87, 0.94), rgba(6, 19, 46, 0.97)),
    repeating-linear-gradient(0deg, rgba(247, 251, 255, 0.04) 0 1px, transparent 1px 30px);
  border-right: 1px solid var(--edge);
  box-shadow: inset -1px 0 0 rgba(247, 251, 255, 0.05), 12px 0 40px -30px #000;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 4px 14px;
  border-bottom: 1px solid var(--edge);
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--vermillion-600) 0%, var(--saffron-500) 52%, var(--turquoise-500) 100%);
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.14rem;
  box-shadow: 0 8px 20px -8px rgba(242, 184, 75, 0.6), inset 0 0 0 1px rgba(247, 251, 255, 0.4);
  transition: transform 0.22s var(--ease);
}
.brand:hover .brand-glyph { transform: rotate(-6deg) scale(1.04); }
.brand-name {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--snow-050);
}
.brand-tag {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted-400);
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 166, 200, 0.4) transparent;
}
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(143, 166, 200, 0.35); border-radius: 4px; }

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 0;
}
.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 10px;
  color: var(--mist-100);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--saffron-500);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted-400);
  transition: color 0.2s var(--ease);
}
.nav-label {
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
}
.nav-link:hover {
  color: var(--snow-050);
  background: rgba(76, 154, 255, 0.12);
}
.nav-link[aria-current="page"] {
  color: var(--snow-050);
  background: linear-gradient(180deg, rgba(242, 184, 75, 0.16), rgba(242, 184, 75, 0.06));
}
.nav-link[aria-current="page"]::before { transform: scaleY(1); }
.nav-link[aria-current="page"] .nav-index { color: var(--saffron-500); }

/* 经幡五色索引 */
.nav-list > li:nth-child(1) .nav-index { color: var(--sky-500); }
.nav-list > li:nth-child(2) .nav-index { color: var(--snow-050); }
.nav-list > li:nth-child(3) .nav-index { color: var(--saffron-500); }
.nav-list > li:nth-child(4) .nav-index { color: var(--prayer-green-600); }
.nav-list > li:nth-child(5) .nav-index { color: var(--vermillion-600); }
.nav-list > li:nth-child(6) .nav-index { color: var(--turquoise-500); }

.rail-note {
  writing-mode: vertical-rl;
  max-height: 130px;
  overflow: hidden;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted-400);
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--topbar-h);
  padding: 10px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(6, 19, 46, 0.92), rgba(11, 27, 58, 0.74));
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.topbar-brand {
  display: none;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: 0.06em;
  color: var(--snow-050);
}
.topbar-note {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted-400);
}
.topbar-cta { margin-left: auto; }

/* 抽屉开关 */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(220, 231, 247, 0.3);
  background: rgba(17, 42, 87, 0.72);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(76, 154, 255, 0.2); border-color: var(--sky-500); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--snow-050);
  transition: transform 0.22s var(--ease), background 0.18s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(6, 19, 46, 0.66);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

html.nav-locked { overflow: hidden; }

/* 桌面：为固定侧轨让位 */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
  .nav-scrim { display: none; }
}

@media (max-height: 820px) {
  .rail-note { display: none; }
}

/* 移动 / 平板：侧轨变抽屉 */
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .topbar-brand { display: block; }

  .rail {
    width: min(86vw, 320px);
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px 24px;
    transform: translateX(-102%);
    transition: transform 0.28s var(--ease);
    box-shadow: 24px 0 60px -30px #000;
  }
  .site-header[data-open] .rail { transform: none; }

  .brand {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 0 0 14px;
  }
  .brand-glyph { grid-row: 1 / span 2; width: 44px; height: 44px; font-size: 1.24rem; }
  .brand-name {
    writing-mode: horizontal-tb;
    align-self: end;
    font-size: 1.16rem;
    letter-spacing: 0.08em;
  }
  .brand-tag {
    writing-mode: horizontal-tb;
    align-self: start;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .nav { flex: 0 0 auto; justify-content: flex-start; overflow: visible; }
  .nav-list { align-items: stretch; gap: 6px; padding: 0; }
  .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17, 42, 87, 0.6);
    border: 1px solid rgba(143, 166, 200, 0.16);
  }
  .nav-index { font-size: 0.68rem; }
  .nav-label { writing-mode: horizontal-tb; font-size: 0.98rem; letter-spacing: 0.04em; }
  .nav-link::before { left: 0; top: 6px; bottom: 6px; }
  .nav-link[aria-current="page"] {
    border-color: rgba(242, 184, 75, 0.44);
    background: rgba(242, 184, 75, 0.14);
  }

  .rail-note {
    writing-mode: horizontal-tb;
    max-height: none;
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 599px) {
  .topbar { gap: 10px; padding: 8px 14px; }
  .topbar-note { display: none; }
  .topbar-cta { font-size: 0.78rem; padding: 0.5em 0.92em; margin-left: auto; }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.35em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--glass-800);
  color: var(--snow-050);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(140deg, var(--saffron-500), #E9A73A);
  color: var(--ink-900);
  box-shadow: 0 10px 24px -12px rgba(242, 184, 75, 0.9);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(242, 184, 75, 1); }

.btn-ghost {
  background: transparent;
  border-color: rgba(220, 231, 247, 0.4);
  color: var(--snow-050);
}
.btn-ghost:hover { background: rgba(76, 154, 255, 0.16); border-color: var(--sky-500); }

.btn-sm { padding: 0.5em 1em; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------- 7. 布局与排版组件 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.4vw, 48px);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section-head { margin-bottom: clamp(20px, 3vw, 36px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-500);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.display {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--snow-050);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--snow-050);
}

.lede {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--mist-100);
}

.prose { max-width: 40em; color: var(--mist-100); }
.prose p + p { margin-top: 1em; }
.prose ul { margin-top: 1em; display: grid; gap: 0.4em; }
.prose li { position: relative; padding-left: 1.1em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turquoise-500);
}
.prose h3 { margin-top: 1.4em; margin-bottom: 0.5em; }

.measure { max-width: 40em; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted-400);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: var(--saffron-500);
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted-400);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 44px);
  background: linear-gradient(90deg, var(--edge-strong), rgba(143, 166, 200, 0));
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-500);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}
.link-more::after { content: "→"; transition: transform 0.18s var(--ease); }
.link-more:hover { border-bottom-color: currentColor; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- 8. 面板 / 展签 / 标签 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(17, 42, 87, 0.84), rgba(11, 27, 58, 0.72));
  border: 1px solid var(--edge);
  box-shadow: 0 24px 48px -34px #000, inset 0 1px 0 rgba(247, 251, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--snow-050);
}
.panel-body { color: var(--mist-100); }

.placard {
  position: relative;
  padding: 16px 20px 16px 26px;
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97), rgba(220, 231, 247, 0.92));
  color: var(--ink-900);
  box-shadow: 0 18px 34px -22px rgba(6, 19, 46, 0.95);
}
.placard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--sky-500), var(--saffron-500) 50%, var(--vermillion-600));
}
.placard-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #4a5d7a;
}
.placard-title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-900);
}
.placard-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #40536e;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.22em 0.72em;
  border-radius: 999px;
  border: 1px solid rgba(247, 251, 255, 0.24);
  background: rgba(247, 251, 255, 0.1);
  color: var(--snow-050);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.tag-sky { color: #BFDBFF; border-color: rgba(76, 154, 255, 0.52); background: rgba(76, 154, 255, 0.16); }
.tag-snow { color: var(--snow-050); border-color: rgba(247, 251, 255, 0.55); background: rgba(247, 251, 255, 0.14); }
.tag-saffron { color: var(--saffron-500); border-color: rgba(242, 184, 75, 0.52); background: rgba(242, 184, 75, 0.14); }
.tag-red { color: #F5A9A2; border-color: rgba(200, 55, 45, 0.58); background: rgba(200, 55, 45, 0.2); }
.tag-green { color: #8FE0BB; border-color: rgba(31, 138, 91, 0.58); background: rgba(31, 138, 91, 0.22); }
.tag-turquoise { color: #7FE3DA; border-color: rgba(21, 158, 148, 0.58); background: rgba(21, 158, 148, 0.2); }

/* ---------- 9. 网格 / 媒体容器 ---------- */
.shelf {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
}
.shelf-item { display: flex; flex-direction: column; gap: 10px; }

.split { display: grid; gap: clamp(22px, 3.4vw, 48px); }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid rgba(220, 231, 247, 0.18);
  background:
    radial-gradient(120% 84% at 18% 0%, rgba(76, 154, 255, 0.3), transparent 56%),
    radial-gradient(90% 70% at 100% 100%, rgba(21, 158, 148, 0.24), transparent 60%),
    linear-gradient(160deg, var(--glass-800), var(--night-950));
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(247, 251, 255, 0.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(247, 251, 255, 0.05) 0 1px, transparent 1px 26px);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-400);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted-400);
}
.breadcrumb > * + *::before {
  content: "/";
  margin-right: 0.55em;
  color: rgba(143, 166, 200, 0.55);
}
.breadcrumb-link { color: var(--mist-100); transition: color 0.18s var(--ease); }
.breadcrumb-link:hover { color: var(--sky-500); }
.breadcrumb-current { color: var(--saffron-500); }

/* ---------- 11. 折叠面板 ---------- */
.disclosure {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: rgba(17, 42, 87, 0.45);
  overflow: hidden;
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--snow-050);
  list-style: none;
  transition: background 0.18s var(--ease);
}
.disclosure-summary::-webkit-details-marker { display: none; }
.disclosure-summary:hover { background: rgba(76, 154, 255, 0.12); }
.disclosure-summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--saffron-500);
}
.disclosure[open] .disclosure-summary::after { content: "–"; }
.disclosure-body {
  padding: 0 18px 16px;
  font-size: 0.94rem;
  color: var(--mist-100);
}

/* ---------- 12. 分段切换 ---------- */
.tabular { display: block; }
.segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(17, 42, 87, 0.72);
  border: 1px solid var(--edge);
}
.segment-tab {
  padding: 0.48em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mist-100);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.segment-tab:hover { background: rgba(76, 154, 255, 0.18); }
.segment-tab[aria-selected="true"] {
  background: var(--saffron-500);
  color: var(--ink-900);
}
.segment-panel { margin-top: clamp(18px, 3vw, 28px); }
.segment-panel[hidden] { display: none; }

/* ---------- 13. 进入动效协议 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.44s var(--ease), transform 0.44s var(--ease);
}
html[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(28px, 4.5vw, 60px) clamp(18px, 4vw, 56px) clamp(20px, 3vw, 32px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(76, 154, 255, 0.16), transparent 62%),
    radial-gradient(90% 80% at 96% 100%, rgba(31, 138, 91, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(6, 19, 46, 0.6), var(--night-950) 72%);
  border-top: 1px solid var(--edge-strong);
  color: var(--mist-100);
}

.footer-flags {
  display: flex;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto clamp(22px, 3vw, 34px);
}
.footer-flag {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 3px;
  opacity: 0.9;
}
.footer-flag:nth-child(1) { background: var(--sky-500); }
.footer-flag:nth-child(2) { background: var(--snow-050); }
.footer-flag:nth-child(3) { background: var(--vermillion-600); }
.footer-flag:nth-child(4) { background: var(--prayer-green-600); }
.footer-flag:nth-child(5) { background: var(--saffron-500); }

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  gap: clamp(26px, 4vw, 54px);
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.4fr);
    align-items: start;
  }
}

.footer-brand-mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  color: var(--snow-050);
}
.footer-tagline {
  margin-top: 10px;
  max-width: 30em;
  font-size: 0.95rem;
  color: var(--mist-100);
}

.footer-contact-list {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}
.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.footer-contact-key {
  min-width: 4.4em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted-400);
}
.footer-contact-value {
  color: var(--snow-050);
  word-break: break-word;
}

.footer-cols {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--snow-050);
}
.footer-col-title::before {
  content: "";
  width: 10px; height: 2px;
  border-radius: 2px;
  background: var(--sky-500);
}
.footer-col:nth-child(2) .footer-col-title::before { background: var(--saffron-500); }
.footer-col:nth-child(3) .footer-col-title::before { background: var(--turquoise-500); }

.footer-links { display: grid; gap: 9px; }
.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 0.92rem;
  color: var(--mist-100);
  transition: color 0.18s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.footer-link:hover { color: var(--snow-050); }
.footer-link:hover::after { transform: scaleX(1); }

.footer-meta {
  max-width: 1200px;
  margin: clamp(26px, 4vw, 44px) auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--mist-100);
}
.footer-reply {
  max-width: 56ch;
  font-size: 0.78rem;
  color: var(--muted-400);
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .read-progress-bar { transition: none; }
  html[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .read-progress,
  .nav-scrim { display: none !important; }
  body {
    background: #fff;
    color: #111;
    padding-left: 0;
    font-size: 11pt;
  }
  h1, h2, h3, h4 { color: #111; }
  .panel, .placard { border: 1px solid #999; background: #fff; box-shadow: none; color: #111; }
}
