/* =========================================================
   问鼎娱乐汇 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 侧边鼎轨导航 / 页脚
   设计语言：青铜鼎纹 × 电路走线 × 粗野主义硬阴影
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dd, table, th, td { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0A0B0E;
  --ink-2: #14161C;
  --jade-deep: #0C2624;
  --wine: #6E1B1B;
  --cinnabar: #C8342B;
  --gold: #D9A441;
  --gold-light: #F0D08A;
  --jade: #2F6F6B;
  --cyan: #4FA79E;
  --ivory: #F2EFE9;
  --stone: #9AA3AE;

  --rail: 96px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --line: rgba(217, 164, 65, 0.28);
  --line-soft: rgba(242, 239, 233, 0.14);
  --shadow: 4px 8px 0 rgba(0, 0, 0, 0.55);
  --shadow-sm: 3px 4px 0 rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1180px) {
  :root { --rail: 108px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.22;
  color: var(--ivory);
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 900; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
h4 { font-size: 1.0625rem; letter-spacing: 0.06em; }

p + p { margin-top: 1em; }

strong { color: var(--gold-light); font-weight: 700; }

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

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.link {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(79, 167, 158, 0.5);
  text-underline-offset: 0.22em;
  transition: color 0.18s var(--ease);
}
.link:hover { color: var(--gold-light); text-decoration-color: currentColor; }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1480px; }
.shell--narrow { max-width: 780px; }

.section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.section--ink2 {
  background: var(--ink-2);
  border-block: 2px solid var(--line-soft);
}
.section--jade {
  background: var(--jade-deep);
  border-block: 2px solid rgba(47, 111, 107, 0.6);
}
.section--wine {
  background: linear-gradient(180deg, var(--wine), #4A1010);
  border-block: 2px solid rgba(217, 164, 65, 0.35);
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--12 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

@media (min-width: 900px) {
  .grid--12 { grid-template-columns: repeat(12, 1fr); }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

/* ---------- 5. 章节标题与色带 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.65), transparent);
}

.chapter-head {
  display: grid;
  gap: 0.85rem;
  max-width: 60ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--cinnabar);
}
.chapter-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; }
.chapter-kicker { color: var(--stone); max-width: 54ch; }

.lede {
  max-width: 64ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: #D8D4CC;
}

.rule-band {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
  border-block: 2px solid var(--cinnabar);
  background: rgba(200, 52, 43, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: rgba(217, 164, 65, 0.14);
  border-color: var(--gold-light);
  color: #fff;
}
.btn--primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: #E0443A;
  border-color: #E0443A;
  transform: translate(-2px, -2px);
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.6);
}
.btn--ghost {
  border-color: rgba(242, 239, 233, 0.32);
  color: var(--ivory);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(217, 164, 65, 0.1);
}
.btn--small {
  padding: 0.45rem 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}
.btn--block { width: 100%; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: rgba(217, 164, 65, 0.6); }
.breadcrumbs a { transition: color 0.18s var(--ease); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 8. 卡片 / 表格 / 标签 / 数据 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  background: var(--ink-2);
  border: 2px solid var(--line-soft);
  border-left: 6px solid var(--cinnabar);
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-left-color 0.22s var(--ease);
}
.card:hover {
  transform: translate(-2px, -2px);
  border-left-color: var(--gold);
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.6);
}
.card__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.card__title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 0.5rem; }
.card__text { color: var(--stone); font-size: 0.9375rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ink-2);
  border: 2px solid var(--line);
  font-size: 0.9375rem;
}
.data-table caption {
  padding: 0.7rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-align: left;
  border-bottom: 2px solid var(--line);
}
.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.07);
}
.data-table tbody tr:hover { background: rgba(200, 52, 43, 0.08); }
.data-table td:first-child { font-family: var(--font-mono); color: var(--gold-light); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(79, 167, 158, 0.5);
  background: rgba(47, 111, 107, 0.16);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}
.tag--gold {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.12);
  color: var(--gold-light);
}
.tag--red {
  border-color: rgba(200, 52, 43, 0.6);
  background: rgba(200, 52, 43, 0.16);
  color: #F0A79F;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.stat { padding: 1rem 0; border-top: 2px solid var(--line); }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.stat--red .stat__value { color: var(--cinnabar); }
.stat__label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--stone);
}

/* ---------- 9. 媒体占位容器 ---------- */
.media {
  display: block;
  position: relative;
  border: 2px solid rgba(217, 164, 65, 0.35);
  background: linear-gradient(140deg, #14161C, #0C2624);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.media__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0C2624;
  background-image:
    repeating-linear-gradient(90deg, rgba(217, 164, 65, 0.15) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(217, 164, 65, 0.15) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 50% 45%, rgba(200, 52, 43, 0.35), transparent 62%);
}
.media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__index {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25rem 0.5rem;
  background: var(--ink);
  border-right: 2px solid var(--cinnabar);
  border-bottom: 2px solid var(--cinnabar);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}
.media__caption {
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.65);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media--wide .media__frame { aspect-ratio: 21 / 9; }

/* ---------- 10. 展开组 / 标签页 ---------- */
.accordion { border-top: 2px solid var(--line); }
.accordion__item { border-bottom: 2px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem clamp(0.5rem, 2vw, 1.25rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--ivory);
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.accordion__trigger:hover { background: rgba(217, 164, 65, 0.07); color: var(--gold-light); }
.accordion__index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}
.accordion__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-left: auto; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}
.accordion__icon::after { transform: translateY(-50%) rotate(90deg); transition: transform 0.25s var(--ease); }
.accordion__trigger[aria-expanded="true"] { color: var(--gold-light); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translateY(-50%) rotate(0deg); }
.accordion__panel {
  padding: 0 clamp(0.5rem, 2vw, 1.25rem) 1.35rem;
  color: var(--stone);
}
.accordion__panel-inner { max-width: 72ch; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--line);
}
.tabs__tab {
  padding: 0.6rem 0.9rem;
  border: 2px solid transparent;
  border-bottom: 0;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.tabs__tab:hover { color: var(--gold-light); }
.tabs__tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.tabs__panel { color: #D8D4CC; }

/* ---------- 11. 显现与复制 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.copyable {
  position: relative;
  cursor: pointer;
  border-bottom: 1px dashed rgba(217, 164, 65, 0.6);
  transition: color 0.2s var(--ease);
}
.copyable:hover { color: var(--gold-light); }
.copyable[data-copy-state="done"] { color: var(--cyan); }
.copyable[data-copy-state="done"]::after {
  content: "已复制";
  margin-left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

/* ---------- 12. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 0.6rem 1rem;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  transform: translate(-50%, -220%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 13. 头部：移动端吸顶条 + 抽屉 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-2);
  border-bottom: 2px solid var(--cinnabar);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 60px;
  padding: 0.55rem var(--gutter);
}

.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }

.brand-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid #3A2A08;
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 60%, #A9791F);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}

.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(217, 164, 65, 0.5);
  background: rgba(217, 164, 65, 0.08);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 6, 8, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.site-header[data-nav-open] .nav-scrim { opacity: 1; visibility: visible; }

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(88vw, 360px);
  padding: 1.25rem 1.25rem 2rem;
  background: linear-gradient(180deg, #14161C, #0A0B0E 55%, #0C2624);
  border-left: 2px solid var(--gold);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(103%);
  transition: transform 0.32s var(--ease);
}
.site-nav[data-open] { transform: translateX(0); }

.nav-caption {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.nav-list { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  border-left: 3px solid transparent;
  color: var(--ivory);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover {
  background: rgba(200, 52, 43, 0.14);
  border-left-color: var(--cinnabar);
  color: #fff;
}
.nav-link[aria-current="page"] {
  background: rgba(217, 164, 65, 0.14);
  border-left-color: var(--gold);
  color: var(--gold-light);
}
.nav-link[aria-current="page"] .nav-num { color: var(--cinnabar); }

.nav-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.nav-label { font-size: 0.9375rem; line-height: 1.35; }

.nav-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.35rem; }

.nav-note {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.rail-progress {
  --p: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: rgba(217, 164, 65, 0.18);
  pointer-events: none;
}
.rail-progress__bar {
  display: block;
  width: calc(var(--p) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}

/* ---------- 14. 桌面端：左侧鼎轨 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--rail);
    border-bottom: 0;
    border-right: 2px solid var(--gold);
    background: linear-gradient(180deg, #14161C 0%, #0A0B0E 55%, #0C2624 100%);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45);
  }

  .header-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.85rem 0.5rem 0.7rem;
    border-bottom: 1px solid var(--line);
  }

  .brand { flex-direction: column; gap: 0.45rem; text-align: center; }
  .brand-seal { width: 42px; height: 42px; font-size: 1.2rem; }
  .brand-copy { align-items: center; gap: 0.3rem; }
  .brand-name { font-size: 0.875rem; letter-spacing: 0.08em; white-space: normal; line-height: 1.3; }
  .brand-sub {
    writing-mode: vertical-rl;
    max-height: 7.5rem;
    overflow: hidden;
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    color: var(--stone);
  }

  .nav-toggle { display: none; }
  .nav-scrim { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    gap: 0.6rem;
    padding: 0.75rem 0.5rem 1rem;
    border-left: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .nav-caption { font-size: 0.5625rem; letter-spacing: 0.18em; text-align: center; }

  .nav-link {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.2rem;
    border-left: 0;
    border-top: 2px solid transparent;
    text-align: center;
  }
  .nav-link:hover {
    border-left: 0;
    border-top-color: var(--cinnabar);
    background: rgba(200, 52, 43, 0.1);
  }
  .nav-link[aria-current="page"] {
    border-left: 0;
    border-top-color: var(--gold);
    background: rgba(217, 164, 65, 0.12);
  }

  .nav-num { font-size: 0.5625rem; }
  .nav-label { font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.02em; overflow-wrap: anywhere; }

  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn--small { padding: 0.4rem 0.35rem; font-size: 0.625rem; letter-spacing: 0.04em; line-height: 1.35; }
  .nav-note { display: none; }

  .rail-progress {
    left: auto;
    right: 0;
    bottom: 0;
    top: 0;
    width: 3px;
    height: auto;
  }
  .rail-progress__bar {
    width: 100%;
    height: calc(var(--p) * 100%);
    background: linear-gradient(180deg, var(--cinnabar), var(--gold));
  }
}

@media (min-width: 1180px) {
  .nav-label { font-size: 0.75rem; }
  .nav-num { font-size: 0.625rem; }
  .brand-name { font-size: 0.9375rem; }
}

html.nav-open { overflow: hidden; }
@media (min-width: 1024px) { html.nav-open { overflow: auto; } }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0A0B0E 0%, #14161C 42%, #0C2624 100%);
  border-top: 2px solid var(--gold);
}

.footer-band {
  height: 6px;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--wine) 35%, var(--jade-deep) 68%, var(--ink-2) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; max-width: 40ch; }
.footer-seal {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #3A2A08;
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 65%, #A9791F);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.footer-lede {
  padding-left: 0.85rem;
  border-left: 4px solid var(--cinnabar);
  color: var(--stone);
  font-size: 0.9375rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
  padding: 0.25rem 0;
  border-bottom: 1px dashed transparent;
  color: #CFCAC2;
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-links a:hover {
  padding-left: 0.35rem;
  border-bottom-color: rgba(217, 164, 65, 0.5);
  color: var(--gold-light);
}

.footer-contact {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  border: 2px solid rgba(79, 167, 158, 0.4);
  background: rgba(12, 38, 36, 0.6);
}
.footer-contact-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
}
.footer-contact-note { color: var(--stone); font-size: 0.8125rem; line-height: 1.7; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.25rem 2.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.footer-meta-line { overflow-wrap: anywhere; }
.footer-icp { color: var(--gold); letter-spacing: 0.14em; }
.footer-copy { color: rgba(154, 163, 174, 0.85); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* ---------- 16. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .card:hover,
  .btn--primary:hover { transform: none; }
}
