/* ============================================================
   PG娱乐中心 内容索引 / 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, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }

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

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

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

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

main { display: block; }

#main-content { scroll-margin-top: 168px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061826;
  --ink-panel: #0C2538;
  --ink-slate: #1D3B50;
  --paper: #F3EDE2;
  --amber: #D9A441;
  --orange: #FF6B35;
  --index: #8FA6B2;
  --line: #2B4C63;
  --card: #E8E0D2;
  --card-ink: #12202A;

  --font-display: "Alibaba PuHuiTi 3.0 105 Heavy", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --w-max: 1440px;
  --rail: 220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 78% -10%, rgba(29, 59, 80, 0.55), transparent 70%),
    radial-gradient(900px 520px at -6% 32%, rgba(217, 164, 65, 0.07), transparent 66%),
    linear-gradient(to right, rgba(43, 76, 99, 0.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 76, 99, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 0.95; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.34; }

p { line-height: 1.85; }

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

::selection { background: var(--amber); color: #06121C; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- 4. 工具与共用元素 ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.9;
  max-width: 62ch;
  color: #DCE4E8;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  line-height: 1.5;
  color: var(--index);
  text-transform: uppercase;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.34em;
}

.signal {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.32);
  animation: signal-pulse 1.9s var(--ease) infinite;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.34; }
}

/* ---------- 5. 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(6, 24, 38, 0.98), rgba(6, 24, 38, 0.92));
  border-bottom: 1px solid var(--amber);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--amber);
  color: #06121C;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.header-brand { min-width: 0; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--amber);
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.22), rgba(217, 164, 65, 0) 62%);
}

.brand-mark-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  animation: signal-pulse 1.9s var(--ease) infinite;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--index);
  line-height: 1.3;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--index);
  text-align: right;
}

.header-meta-line { display: inline-flex; align-items: center; gap: 8px; }

.header-meta-label {
  color: var(--amber);
  letter-spacing: 0.2em;
}

.header-nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
  max-width: var(--w-max);
  min-height: 56px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: border-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--amber); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 1px;
  background: var(--amber);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.site-header[data-open] .nav-toggle { border-color: var(--amber); }
.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-label {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

.site-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--index);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.header-cta:hover { background: var(--amber); color: #08192A; }

/* 滚动进度信号条（由 site.js 注入页头） */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: rgba(43, 76, 99, 0.6);
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--amber);
  background: linear-gradient(180deg, #082031 0%, #061826 100%);
}

.footer-frame {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(20px, 3vw, 28px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-block { min-width: 0; }

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-brand-tail { color: var(--amber); }

.footer-note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--index);
}

.footer-cta { margin-top: 18px; }

.footer-index { min-width: 0; }

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--amber);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 20px;
}

.footer-links li { display: flex; }

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--index);
  transition: color 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  width: 12px;
  height: 1px;
  margin-right: 8px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
}

.footer-link:hover { color: var(--paper); }
.footer-link:hover::before { transform: scaleX(1); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.footer-contact-item { display: flex; flex-direction: column; gap: 4px; }

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--index);
}

.footer-contact-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-service {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--index);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--index);
}

/* ---------- 7. 章节画板 ---------- */
.section {
  padding-block: clamp(40px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--amber);
}

.section-index::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.section-title { color: var(--paper); }

.section-lead {
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: #CFDAE0;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--index);
}

/* ---------- 8. 栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-full { grid-column: 1 / -1; }

/* ---------- 9. 索引轨 ---------- */
.index-rail {
  position: sticky;
  top: 152px;
  align-self: start;
  min-width: 0;
}

.rail-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--index);
}

.rail-list { display: grid; gap: 2px; }

.rail-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 13.5px;
  color: var(--index);
  transition: color 0.18s var(--ease);
}

.rail-link::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line);
  transition: width 0.18s var(--ease), background 0.18s var(--ease);
}

.rail-link:hover { color: var(--paper); }
.rail-link:hover::before { width: 20px; background: var(--amber); }

.rail-link[aria-current="true"] { color: var(--paper); }
.rail-link[aria-current="true"]::before { width: 20px; background: var(--orange); }

.rail-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--index);
}

/* ---------- 10. 面板 ---------- */
.panel {
  position: relative;
  min-width: 0;
  background: var(--ink-panel);
  border: 1px solid var(--line);
}

.panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--amber);
  border-top: 1px solid var(--amber);
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--paper);
}

.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.panel-body { padding: 20px; }

.panel-body > * + * { margin-top: 14px; }

.panel--paper {
  background: var(--card);
  border-color: #C9BFAE;
  color: var(--card-ink);
}

.panel--paper::before { border-color: var(--amber); }

.panel--paper .panel-head { border-bottom-color: #C9BFAE; }
.panel--paper .panel-title { color: var(--card-ink); }
.panel--paper .panel-eyebrow { color: #8A6A1F; }
.panel--paper .section-note,
.panel--paper .annotation { color: #5B6670; }

/* ---------- 11. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--amber);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { background: rgba(217, 164, 65, 0.14); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #0A1B28;
}

.btn--primary:hover { background: #E8B856; color: #0A1B28; }

.btn--ghost {
  border-color: var(--line);
  color: var(--index);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--paper);
  background: rgba(217, 164, 65, 0.08);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

/* ---------- 12. 标签与筛选 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(29, 59, 80, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--index);
}

.tag--amber { border-color: var(--amber); color: var(--amber); background: rgba(217, 164, 65, 0.1); }
.tag--orange { border-color: var(--orange); color: var(--orange); background: rgba(255, 107, 53, 0.1); }
.tag--solid { border-color: var(--orange); background: var(--orange); color: #0A1B28; }

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--index);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.chip:hover { color: var(--paper); border-color: var(--amber); }

.chip[aria-pressed="true"] {
  border-color: var(--amber);
  background: rgba(217, 164, 65, 0.12);
  color: var(--paper);
}

/* ---------- 13. 标签页 ---------- */
.tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--index);
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tab:hover { color: var(--paper); }

.tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.tab-panel { padding-top: 24px; }

.tab-panel[hidden] { display: none; }

/* ---------- 14. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--index);
}

.crumb-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--index);
  transition: color 0.18s var(--ease);
}

.crumb-link:hover { color: var(--amber); }

.crumb-sep { color: var(--line); }

.crumb-current { color: var(--paper); }

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(29, 59, 80, 0.9), rgba(12, 37, 56, 0.9)),
    repeating-linear-gradient(90deg, rgba(43, 76, 99, 0.55) 0 1px, transparent 1px 24px);
  aspect-ratio: 16 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--index);
}

.media-caption::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--amber);
}

/* ---------- 16. 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s var(--ease), transform 0.32s var(--ease);
}

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

/* ---------- 17. 响应式 ---------- */
@media (min-width: 961px) {
  .site-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--amber), var(--orange));
    z-index: 4;
  }
}

@media (max-width: 1180px) {
  .header-meta { display: none; }
}

@media (max-width: 960px) {
  #main-content { scroll-margin-top: 128px; }

  .nav-toggle { display: inline-flex; }

  .header-nav-bar { min-height: 58px; gap: 14px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--ink-panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--amber);
  }

  .site-header[data-open] .site-nav {
    display: block;
    animation: nav-drop 0.32s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { display: block; }

  .nav-link {
    width: 100%;
    min-height: 52px;
    padding: 0 var(--gutter);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--paper);
    background: rgba(217, 164, 65, 0.1);
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .header-cta { min-height: 38px; padding: 0 12px; font-size: 11.5px; }

  .index-rail {
    position: static;
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .rail-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0 20px;
    overflow-x: auto;
  }

  .radio-none { display: none; }

  .annotation--vertical {
    writing-mode: horizontal-tb;
    letter-spacing: 0.26em;
  }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-6, .col-8, .col-9 { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-note { max-width: 46ch; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .grid-12 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .col-3, .col-4, .col-6, .col-8, .col-9 { grid-column: 1 / -1; }

  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: 10px; letter-spacing: 0.16em; }

  .panel-head { padding: 14px 16px; }
  .panel-body { padding: 16px; }

  .btn { width: 100%; }
  .btn--sm { width: auto; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. 降低动效 ---------- */
@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;
  }

  .reveal { opacity: 1; transform: none; }
  .signal, .brand-mark-dot { animation: none; }
  .scroll-meter-fill { transition: none; }
}
