/* ============================================================
   金花游戏 · 共享样式 /assets/site.css
   墨绿基底 + 午夜蓝数据区 + 暖金锚点 + 粗边框硬阴影
   ============================================================ */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 1. 令牌 ---------- */
:root {
  --ink-green-950: #0F2E24;
  --midnight-900: #101A33;
  --gold-400: #E8B04B;
  --gold-100: #F6E3B4;
  --coral-500: #FF7A5C;
  --cyan-400: #35E0D0;
  --bone-50: #F4F1E8;
  --sage-400: #8FA79B;
  --line-700: #1E4538;
  --shadow-950: #05100C;

  --bg: var(--ink-green-950);
  --surface: rgba(16, 26, 51, 0.74);
  --surface-deep: rgba(5, 16, 12, 0.62);

  --rail-w: 88px;
  --bar-h: 62px;
  --wrap: 1200px;
  --gap: 24px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
  --hard-shadow: 6px 6px 0 var(--shadow-950);
  --hard-shadow-sm: 4px 4px 0 var(--shadow-950);

  --font-display: "Source Han Sans SC", "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. 基底与网格底纹 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  color: var(--bone-50);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 520px at 10% -8%, rgba(232, 176, 75, 0.10), transparent 62%),
    radial-gradient(680px 440px at 98% 2%, rgba(53, 224, 208, 0.07), transparent 60%),
    linear-gradient(to right, rgba(30, 69, 56, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 69, 56, 0.34) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, scroll, scroll;
}
::selection { background: var(--gold-400); color: var(--shadow-950); }

#main-content { display: block; outline: 0; scroll-margin-top: 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; }
p { max-width: 42ch; }

/* ---------- 3. 焦点与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(53, 224, 208, 0.18);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 16px);
  z-index: 120;
  padding: 10px 16px;
  background: var(--gold-400);
  color: var(--shadow-950);
  border: 2px solid var(--shadow-950);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.col-3 { grid-column: span 3; }
.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; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- 5. 文字层级 ---------- */
.display-1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 900; line-height: 1.06; letter-spacing: -0.015em; }
.display-2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }
.display-3 { font-size: clamp(21px, 2.3vw, 30px); font-weight: 700; line-height: 1.25; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.lead { font-size: 18px; line-height: 1.8; color: rgba(244, 241, 232, 0.88); }
.note { font-size: 13px; line-height: 1.75; color: var(--sage-400); letter-spacing: 0.02em; }
.muted { color: var(--sage-400); }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ---------- 6. 章节 ---------- */
.section { padding-block: clamp(34px, 5vw, 64px); }
.section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line-700);
}
.section__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--gold-400); }
.section__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }

/* ---------- 7. 面板 ---------- */
.panel {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--line-700);
  box-shadow: var(--hard-shadow);
}
.panel--gold {
  border-color: var(--gold-400);
  background: linear-gradient(180deg, rgba(232, 176, 75, 0.12), rgba(16, 26, 51, 0.8));
}
.panel--cyan { border-color: var(--cyan-400); }
.panel--coral { border-color: var(--coral-500); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--gold-400);
  background: transparent;
  color: var(--gold-100);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: var(--hard-shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow-950);
  background: rgba(232, 176, 75, 0.14);
  color: var(--bone-50);
}
.btn--primary { background: var(--gold-400); color: var(--shadow-950); }
.btn--primary:hover { background: var(--gold-100); color: var(--shadow-950); }
.btn--ghost { border-color: var(--line-700); color: var(--bone-50); }
.btn--ghost:hover { border-color: var(--cyan-400); background: rgba(53, 224, 208, 0.08); }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- 9. 标签与状态 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--surface-deep);
  border: 1px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sage-400);
}
.chip--gold { border-color: var(--gold-400); color: var(--gold-100); }
.chip--cyan { border-color: var(--cyan-400); color: var(--cyan-400); }
.chip--coral { border-color: var(--coral-500); color: var(--coral-500); }

.status-dot { display: inline-block; width: 8px; height: 8px; background: var(--sage-400); }
.status-dot--gold { background: var(--gold-400); box-shadow: 0 0 8px rgba(232, 176, 75, 0.7); }
.status-dot--coral { background: var(--coral-500); box-shadow: 0 0 8px rgba(255, 122, 92, 0.65); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sage-400);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li::after { content: "/"; color: var(--line-700); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--gold-100); border-bottom: 1px solid rgba(232, 176, 75, 0.45); }
.breadcrumb a:hover { color: var(--gold-400); border-color: var(--gold-400); }
.breadcrumb__current { color: var(--bone-50); }

/* ---------- 11. 横向对比条 ---------- */
.hscroll {
  position: relative;
  background: var(--midnight-900);
  border: 2px solid var(--line-700);
  box-shadow: var(--hard-shadow);
}
.hscroll__track {
  display: flex;
  gap: 16px;
  padding: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-400) var(--shadow-950);
}
.hscroll__track > * { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; }
.hscroll__track:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: -4px; }
.hscroll__track::-webkit-scrollbar { height: 9px; }
.hscroll__track::-webkit-scrollbar-track { background: var(--shadow-950); }
.hscroll__track::-webkit-scrollbar-thumb { background: var(--gold-400); }

/* ---------- 12. 数据表 ---------- */
.data-table {
  background: rgba(16, 26, 51, 0.7);
  border: 2px solid var(--line-700);
  font-size: 14.5px;
}
.data-table caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sage-400);
}
.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-700);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: rgba(5, 16, 12, 0.78);
  color: var(--gold-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(232, 176, 75, 0.07); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 13. 图片容器（页面阶段放置素材） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line-700);
  background: linear-gradient(135deg, #0B231C 0%, #101A33 55%, #123227 100%);
  box-shadow: var(--hard-shadow);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 167, 155, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 167, 155, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.media-frame img, .media-frame video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  background: var(--shadow-950);
  border-top: 2px solid var(--gold-400);
  border-right: 2px solid var(--gold-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-100);
}

/* ---------- 14. 分隔线与显现 ---------- */
.rule { height: 2px; border: 0; background: var(--line-700); }
.rule--gold { background: linear-gradient(90deg, var(--gold-400), rgba(232, 176, 75, 0)); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 15. 头部：桌面竖向轨道 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px 16px;
  background: linear-gradient(180deg, #0B231C 0%, var(--midnight-900) 58%, #0B231C 100%);
  border-right: 2px solid var(--line-700);
  box-shadow: 4px 0 0 rgba(5, 16, 12, 0.75);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: var(--surface-deep);
  border: 2px solid var(--line-700);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.brand-mark:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.brand-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  background: var(--shadow-950);
  border: 2px solid var(--gold-400);
  box-shadow: 3px 3px 0 var(--shadow-950);
}
.brand-name {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sage-400);
  text-align: center;
}

.rail-crumb {
  display: block;
  padding: 6px 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--sage-400);
  border: 1px dashed var(--line-700);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail-crumb:hover { color: var(--gold-100); border-color: var(--gold-400); border-style: solid; }

.nav-toggle { display: none; }

.site-nav { flex: 1 1 auto; min-height: 0; }
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 4px;
  border: 2px solid transparent;
  color: var(--bone-50);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.nav-link__icon {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sage-400);
}
.nav-link__label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: break-word;
}
.nav-link:hover {
  background: rgba(232, 176, 75, 0.1);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--shadow-950);
}
.nav-link[aria-current="page"] {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--shadow-950);
  box-shadow: 3px 3px 0 var(--shadow-950);
}
.nav-link[aria-current="page"] .nav-link__icon { color: rgba(5, 16, 12, 0.72); }

.nav-hint {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 5;
  width: 176px;
  padding: 8px 10px;
  background: var(--midnight-900);
  border: 2px solid var(--gold-400);
  box-shadow: 5px 5px 0 var(--shadow-950);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--bone-50);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) linear;
}
.nav-item:hover .nav-hint,
.nav-item:focus-within .nav-hint {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-700);
}
.rail-status {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sage-400);
}
.rail-status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--sage-400);
  box-shadow: 0 0 0 3px rgba(143, 167, 155, 0.18);
}

.rail-progress {
  position: fixed;
  top: 0;
  left: calc(var(--rail-w) - 3px);
  width: 3px;
  height: 100vh;
  z-index: 59;
  background: rgba(30, 69, 56, 0.55);
  pointer-events: none;
}
.rail-progress__fill {
  display: block;
  width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(180deg, var(--gold-400), var(--coral-500));
  transition: height 0.1s linear;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--midnight-900), #0B1526);
  border-top: 3px solid var(--gold-400);
  box-shadow: 0 -8px 0 rgba(5, 16, 12, 0.55);
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 52px) 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr;
  gap: 32px;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold-100);
}
.footer-brand__tag {
  margin-top: 10px;
  max-width: 24ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sage-400);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-list a {
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-list a:hover { color: var(--gold-100); border-color: var(--gold-400); }
.footer-list--plain li { font-size: 13px; line-height: 1.75; color: var(--sage-400); }
.footer-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(143, 167, 155, 0.7);
}
.footer-note {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sage-400);
}
.footer-legal {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: 1px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--sage-400);
}
.footer-legal__item { max-width: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1199px) and (min-width: 980px) {
  :root { --rail-w: 76px; }
}

@media (max-width: 979px) {
  body { padding-left: 0; padding-top: calc(var(--bar-h) + 6px); }
  .skip-link { top: calc(var(--bar-h) + 10px); left: 16px; }

  .site-header {
    inset: 0 0 auto 0;
    width: auto;
    min-height: var(--bar-h);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 2px solid var(--line-700);
    box-shadow: 0 4px 0 rgba(5, 16, 12, 0.75);
  }

  .brand-mark {
    order: 1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
  }
  .brand-mark:hover { transform: none; }
  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 12px;
    letter-spacing: 0.08em;
    box-shadow: 2px 2px 0 var(--shadow-950);
  }
  .brand-name { font-size: 11.5px; letter-spacing: 0.14em; }

  .rail-crumb { display: none; }

  .rail-foot {
    order: 2;
    margin: 0 0 0 auto;
    padding-top: 0;
    border-top: 0;
    flex-direction: row;
    align-items: center;
  }

  .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    background: var(--surface-deep);
    border: 2px solid var(--line-700);
    color: var(--bone-50);
    font-size: 12.5px;
    letter-spacing: 0.12em;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .nav-toggle:hover { border-color: var(--gold-400); color: var(--gold-100); }
  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .site-header[data-open] .nav-toggle { border-color: var(--gold-400); color: var(--gold-100); }
  .site-header[data-open] .nav-toggle__bars { background: transparent; }
  .site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.24s var(--ease), opacity var(--dur) var(--ease), visibility var(--dur) linear;
  }
  .site-header[data-open] .site-nav {
    max-height: calc(100vh - var(--bar-h) - 20px);
    overflow-y: auto;
    padding: 6px 0 14px;
    opacity: 1;
    visibility: visible;
  }
  .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
    border-color: var(--line-700);
    background: rgba(5, 16, 12, 0.4);
  }
  .nav-link__label { font-size: 14px; text-align: left; }
  .nav-link:hover { transform: translateY(-2px); }
  .nav-hint { display: none; }

  .rail-progress {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(30, 69, 56, 0.6);
  }
  .rail-progress__fill {
    width: calc(var(--progress, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--gold-400), var(--coral-500));
    transition: width 0.1s linear;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  [class*="col-"] { grid-column: 1 / -1; }
  .panel { padding: 18px; }
  .nav-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { padding-inline: 18px; font-size: 11px; letter-spacing: 0.1em; }
}

@media (max-height: 700px) and (min-width: 980px) {
  .nav-link { padding: 6px 4px; }
  .brand-mark { padding: 6px 4px; gap: 4px; }
  .brand-seal { width: 38px; height: 38px; font-size: 13px; }
}

/* ---------- 18. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .nav-link:hover, .brand-mark:hover { transform: none; }
  .rail-progress__fill { transition: none; }
}
