/* ============================================================
   616 游戏官 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 轨道导航 / 页脚 / 通用组件
   ============================================================ */

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, blockquote, fieldset { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

::selection {
  background: var(--cyan-400);
  color: var(--void-900);
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* 品牌色 */
  --void-900: #05070F;
  --hull-800: #0B1122;
  --grid-700: #1B2742;
  --paper-100: #F3ECDF;
  --ink: #14171F;
  --cyan-400: #3CE7F2;
  --violet-500: #8F6BFF;
  --amber-400: #FFB627;
  --lime-300: #9BE86B;
  --alert-500: #FF4D5E;
  --text-100: #E9EFFA;
  --text-300: #93A3BF;

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

  /* 度量 */
  --header-h: 64px;
  --rail-w: 84px;
  --rail-w-open: 232px;
  --wrap: 1440px;
  --gutter: 32px;
  --gap: 24px;
  --line: 1px solid var(--grid-700);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --skew: -3deg;
}

/* ---------- 3. 基础排版 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-left: var(--rail-w);
  background-color: var(--void-900);
  background-image:
    linear-gradient(to right, rgba(27, 39, 66, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 39, 66, 0.42) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-100);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

strong, b { font-weight: 700; color: #FFFFFF; }

code, kbd, samp, time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 4. 焦点与可访问性 ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.panel--paper :where(a, button):focus-visible,
.prose--paper :where(a, button):focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--cyan-400);
  color: var(--void-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.16s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ---------- 5. 头部 HUD ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(5, 7, 15, 0.94);
  border-bottom: 1px solid var(--grid-700);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hud {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 4px 0;
}

.hud-brand__mark {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan-400);
  padding: 5px 7px;
  border: 1px solid var(--grid-700);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.hud-brand:hover .hud-brand__mark {
  border-color: var(--cyan-400);
}

.hud-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hud-brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--text-100);
}

.hud-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--text-300);
  text-transform: uppercase;
}

.hud__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--grid-700);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-300);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--text-300);
  box-shadow: 0 0 0 3px rgba(147, 163, 191, 0.12);
}

.status-dot--live {
  background: var(--lime-300);
  box-shadow: 0 0 0 3px rgba(155, 232, 107, 0.14), 0 0 10px rgba(155, 232, 107, 0.55);
}

.status-dot--soon {
  background: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(255, 182, 39, 0.14), 0 0 10px rgba(255, 182, 39, 0.5);
}

.status-dot--warn {
  background: var(--alert-500);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.16), 0 0 10px rgba(255, 77, 94, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot--live { animation: dot-pulse 2.8s ease-in-out infinite; }
  @keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.42; }
  }
}

.hud__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.hud-link {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-300);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.hud-link:hover {
  color: var(--cyan-400);
  border-color: var(--grid-700);
}

.hud-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--cyan-400);
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.hud-cta::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.hud-cta:hover {
  background: var(--cyan-400);
  color: var(--void-900);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--grid-700);
  color: var(--text-100);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.nav-toggle__bars {
  display: block;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px 0;
  background: var(--cyan-400);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars i:first-child { margin-top: 0; }
.nav-toggle__bars i:last-child { margin-bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400) 0%, var(--violet-500) 100%);
}

/* ---------- 6. 左侧轨道导航 ---------- */
.rail {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 16px 0 20px;
  background: linear-gradient(180deg, #080C18 0%, var(--void-900) 100%);
  border-right: 1px solid var(--grid-700);
  overflow: hidden;
  transition: width 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-left: 2px solid transparent;
  color: var(--text-300);
  overflow: hidden;
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.rail__index {
  flex: none;
  width: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.75;
}

.rail__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.rail__link:hover {
  color: var(--cyan-400);
  background: rgba(60, 231, 242, 0.05);
}

.rail__link[aria-current="page"] {
  color: var(--cyan-400);
  border-left-color: var(--cyan-400);
  background: rgba(60, 231, 242, 0.08);
}

.rail__link[aria-current="page"] .rail__index {
  color: var(--cyan-400);
  opacity: 1;
}

.rail__link[aria-current="page"] .rail__label {
  color: var(--cyan-400);
}

.rail__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 14px 16px 0;
  margin-top: auto;
  border-top: 1px solid var(--grid-700);
  overflow: hidden;
}

.rail__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-300);
  opacity: 0.55;
  white-space: nowrap;
}

@media (hover: hover) and (min-width: 1081px) {
  .rail:hover,
  .rail:focus-within {
    width: var(--rail-w-open);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
  }
  .rail:hover .rail__label,
  .rail:focus-within .rail__label {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding-top: 56px;
  background: var(--hull-800);
  border-top: 1px solid var(--grid-700);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.3fr;
  gap: var(--gap);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 52px;
}

.footer__brand { min-width: 0; }

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.footer-logo__num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-100);
  transition: color 0.16s var(--ease);
}

.footer-logo__cn {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

.footer-logo:hover .footer-logo__num { color: var(--cyan-400); }

.footer__sig {
  max-width: 30ch;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-300);
}

.footer__cta { margin-top: 20px; }

.footer__col { min-width: 0; }

.footer__title {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid-700);
  color: var(--text-300);
}

.footer__list {
  display: grid;
  gap: 9px;
}

.footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-100);
  transition: color 0.16s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--cyan-400);
  transition: width 0.2s var(--ease);
}

.footer__link:hover { color: var(--cyan-400); }
.footer__link:hover::after { width: 100%; }

.footer__meta p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-300);
  overflow-wrap: anywhere;
}

.footer__mail,
.footer__tel {
  font-family: var(--font-mono);
  font-size: 13px !important;
  letter-spacing: 0.01em;
  color: var(--text-100) !important;
}

.footer__tel { margin-bottom: 6px; }

.footer__addr { margin-bottom: 6px; }

.footer__hours { color: var(--text-300) !important; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--grid-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-300);
}

.footer__legal { color: var(--text-300); }
.footer__sign { color: var(--text-300); }
.footer__copy { color: var(--grid-700); }

.to-top {
  margin-left: auto;
  padding: 7px 13px;
  border: 1px solid var(--grid-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-300);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.to-top:hover { color: var(--cyan-400); border-color: var(--cyan-400); }

/* ---------- 8. 通用容器与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.section + .section { border-top: 1px solid var(--grid-700); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grid-700);
}

.section__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
  color: var(--violet-500);
}

.section__title {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--gap);
  align-items: start;
}

/* ---------- 9. 微型标签 / 徽标 ---------- */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-300);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--grid-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--text-300);
  white-space: nowrap;
}

.chip--live { color: var(--lime-300); border-color: rgba(155, 232, 107, 0.36); }
.chip--soon { color: var(--amber-400); border-color: rgba(255, 182, 39, 0.36); }
.chip--warn { color: var(--alert-500); border-color: rgba(255, 77, 94, 0.36); }
.chip--info { color: var(--cyan-400); border-color: rgba(60, 231, 242, 0.36); }
.chip--violet { color: var(--violet-500); border-color: rgba(143, 107, 255, 0.4); }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--grid-700);
  background: transparent;
  color: var(--text-100);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}

.btn:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

.btn--line {
  border-color: rgba(60, 231, 242, 0.5);
  color: var(--cyan-400);
}

.btn--line:hover {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--void-900);
}

.btn--solid {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--void-900);
}

.btn--solid:hover {
  background: var(--text-100);
  border-color: var(--text-100);
  color: var(--void-900);
}

.btn--paper {
  background: var(--paper-100);
  border-color: var(--paper-100);
  color: var(--ink);
}

.btn--paper:hover {
  background: transparent;
  border-color: var(--paper-100);
  color: var(--paper-100);
}

/* ---------- 11. 面板 / 数据 / 图片容器 ---------- */
.panel {
  padding: 20px;
  background: var(--hull-800);
  border: 1px solid var(--grid-700);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.panel:hover { border-color: rgba(60, 231, 242, 0.45); }

.panel--paper {
  background: var(--paper-100);
  border-color: var(--paper-100);
  color: var(--ink);
}

.panel--paper:hover { border-color: var(--ink); }

.panel--slanted {
  transform: skewX(var(--skew));
}

.panel--slanted > * { transform: skewX(calc(var(--skew) * -1)); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan-400);
}

.stat__unit {
  margin-left: 4px;
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-300);
}

.stat__key {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-300);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--grid-700);
  background:
    linear-gradient(155deg, #0B1122 0%, #05070F 72%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0) 42%, rgba(5, 7, 15, 0.76) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(60, 231, 242, 0.055) 0,
      rgba(60, 231, 242, 0.055) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size: 100% 100%, 100% 4px;
}

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

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-100);
}

/* ---------- 12. 面包屑 / 正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-300);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--grid-700);
}

.breadcrumb a { transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb [aria-current="page"] { color: var(--text-100); }

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-100);
}

.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 1.7em;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-100);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45em;
}

.prose li {
  position: relative;
  padding-left: 1.15em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 1px;
  background: var(--cyan-400);
}

.prose a {
  color: var(--cyan-400);
  border-bottom: 1px solid rgba(60, 231, 242, 0.36);
  transition: border-color 0.16s var(--ease);
}

.prose a:hover { border-bottom-color: var(--cyan-400); }

.prose--paper {
  padding: 28px 26px;
  background: var(--paper-100);
  color: var(--ink);
}

.prose--paper h2,
.prose--paper h3,
.prose--paper strong { color: var(--ink); }

.prose--paper a {
  color: var(--ink);
  border-bottom-color: rgba(20, 23, 31, 0.42);
}

.prose--paper a:hover { border-bottom-color: var(--ink); }

.prose--paper li::before { background: var(--ink); }

/* ---------- 13. 显现动画协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 平板断点 ---------- */
@media (max-width: 1280px) {
  .hud__status { display: none; }
  .console { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  :root { --header-h: 56px; }

  body {
    padding-left: 0;
    background-size: 24px 24px;
  }

  .hud { padding: 0 16px; gap: 12px; }

  .hud__links { display: none; }

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

  .rail {
    top: var(--header-h);
    bottom: 0;
    width: min(82vw, 320px);
    transform: translateX(-102%);
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
    padding-top: 12px;
    border-right: 1px solid var(--grid-700);
  }

  .rail[data-open="true"] {
    transform: translateX(0);
    box-shadow: 40px 0 90px rgba(0, 0, 0, 0.78);
  }

  .rail__label {
    opacity: 1;
    transform: none;
  }

  .rail__link { padding: 15px 20px; }
  .rail__index { width: 24px; font-size: 12px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-bottom: 44px;
  }

  .footer__brand { grid-column: 1 / -1; }

  .section { padding: 56px var(--gutter); }
}

/* ---------- 15. 手机断点 ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --gap: 18px; }

  body { font-size: 15px; }

  .hud-brand__sub { display: none; }
  .hud-cta { display: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 var(--gutter) 36px;
  }

  .footer__base {
    gap: 8px 16px;
    padding: 16px var(--gutter) 22px;
  }

  .to-top { margin-left: 0; }

  .section { padding: 44px var(--gutter); }

  .section__head { margin-bottom: 24px; }

  .panel { padding: 16px; }

  .prose--paper { padding: 20px 18px; }
}

@media (max-width: 420px) {
  .hud-brand__mark { font-size: 15px; padding: 4px 6px; }
  .hud-brand__name { font-size: 14px; }
  .nav-toggle__text { display: none; }
}

/* ---------- 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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rail,
  .rail__label,
  .progress__bar {
    transition: none !important;
  }
}
