/* ============================================================
   押注正规电竞 — 共享 Site Kit / 夜间电竞控制室
   /assets/site.css
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-950: #050814;
  --ink-900: #0B1026;
  --ink-800: #070B18;
  --panel: #141C3D;
  --line: #2E3B63;
  --line-soft: rgba(46, 59, 99, 0.62);
  --cyan: #22E6D6;
  --gold: #FFB13B;
  --magenta: #FF3D9A;
  --mist: #A9B4D0;
  --paper: #F2E9D8;
  --white: #F7FAFF;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia,
    "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-soft: 0 24px 48px -32px rgba(0, 0, 0, 0.95);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(46, 59, 99, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 59, 99, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 460px at 10% -10%, rgba(34, 230, 214, 0.11), transparent 70%),
    radial-gradient(720px 420px at 94% 2%, rgba(255, 61, 154, 0.09), transparent 72%);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }

p { line-height: 1.7; }

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

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.content { position: relative; z-index: 1; }

.page-section { padding-block: clamp(40px, 6vw, 72px); }

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

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

.prose h2, .prose h3 { color: var(--white); }

.paper-panel {
  background: var(--paper);
  color: #1D2540;
  border: 1px solid rgba(29, 37, 64, 0.18);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.9);
}

.paper-panel a { color: #0B1026; }

.paper-panel .prose { color: #2A3454; }

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 28, 61, 0.4);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

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

.btn:active {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 61, 154, 0.22);
}

.btn--primary {
  border-color: rgba(34, 230, 214, 0.62);
  color: var(--cyan);
  background: rgba(34, 230, 214, 0.08);
}

.btn--primary:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04121A;
  box-shadow: 0 10px 26px -14px rgba(34, 230, 214, 0.9);
}

.btn--primary:active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #17030C;
}

.btn--gold {
  border-color: rgba(255, 177, 59, 0.6);
  color: var(--gold);
  background: rgba(255, 177, 59, 0.09);
}

.btn--gold:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #1A1204;
}

.btn--ghost { background: transparent; }

/* ---------- 6. 跳转链接 / 滚动进度 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: #04121A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 12px; }

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 400;
  pointer-events: none;
  background: rgba(46, 59, 99, 0.35);
}

.scroll-meter span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 58%, var(--magenta) 100%);
  box-shadow: 0 0 12px rgba(34, 230, 214, 0.55);
  transition: transform 0.12s linear;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.99), rgba(11, 16, 38, 0.99));
  border-bottom: 1px solid var(--line-soft);
}

.hud-rail {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(7, 11, 24, 0.96), rgba(20, 28, 61, 0.78));
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.hud-rail__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.hud-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  animation: hud-pulse 2.6s var(--ease) infinite;
}

@keyframes hud-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 230, 214, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(34, 230, 214, 0); }
}

.hud-rail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rail-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.rail-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.build-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 177, 59, 0.45);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.build-tag b { font-weight: 700; }

.header-inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 230, 214, 0.55);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(34, 230, 214, 0.18), rgba(7, 11, 24, 0.92));
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  opacity: 0.85;
}

.brand__mark::before {
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
}

.brand__mark::after {
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  transform: translateY(-50%);
}

.brand__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px 2px rgba(255, 177, 59, 0.45);
}

.brand:hover .brand__mark {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(34, 230, 214, 0.12);
}

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

.brand__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--white);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--cyan);
}

/* 导航 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--white); }

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 177, 59, 0.6);
}

.header-cta { flex: 0 0 auto; }

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cyan);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(34, 230, 214, 0.08); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 55%, var(--magenta) 100%);
  opacity: 0.9;
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 60px) 24px 28px;
}

.footer-ledger {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.brand--footer .brand__name { font-size: 16px; }

.footer-ledger__line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(169, 180, 208, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 32px 0;
}

.footer-col__title {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 9px;
  background: var(--cyan);
}

.footer-col__list { display: flex; flex-direction: column; gap: 2px; }

.footer-col__list a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mist);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-col__list a:hover {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-cell { min-width: 0; }

.contact-cell__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(169, 180, 208, 0.72);
}

.contact-cell__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--white);
}

.contact-cell__value > span {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.copy-btn {
  padding: 3px 9px;
  border: 1px solid rgba(34, 230, 214, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.copy-btn:hover {
  background: rgba(34, 230, 214, 0.14);
  border-color: var(--cyan);
}

.copy-btn[data-copied="true"] {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(255, 61, 154, 0.12);
}

.footer-contact__note {
  margin-top: 20px;
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(169, 180, 208, 0.82);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(169, 180, 208, 0.78);
}

.footer-base a {
  color: rgba(169, 180, 208, 0.9);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-base a:hover { color: var(--cyan); }

.footer-base__icp { color: rgba(169, 180, 208, 0.62); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb { padding: 20px 0 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 10. 网格与卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-soft);
}

.panel > * + * { margin-top: 0.8em; }

/* ---------- 11. 媒体容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(34, 230, 214, 0.1), transparent 55%),
    linear-gradient(320deg, rgba(255, 61, 154, 0.1), transparent 60%),
    var(--ink-950);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(34, 230, 214, 0.07) 0 1px,
      transparent 1px 4px
    );
  opacity: 0.5;
}

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

/* ---------- 12. 小元素 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
  margin: 24px 0;
}

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

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
  white-space: nowrap;
}

.tag--cyan { border-color: rgba(34, 230, 214, 0.5); color: var(--cyan); }
.tag--gold { border-color: rgba(255, 177, 59, 0.5); color: var(--gold); }
.tag--magenta { border-color: rgba(255, 61, 154, 0.5); color: var(--magenta); }

/* ---------- 13. 筛选与折叠 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

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

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121A;
}

.filter-btn[aria-pressed="true"]:hover { color: #04121A; }

.accordion { border-top: 1px solid var(--line-soft); }

.accordion details { border-bottom: 1px solid var(--line-soft); }

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}

.accordion details[open] summary::after { content: "−"; }

.accordion details > *:not(summary) { padding-bottom: 16px; }

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(10px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 11, 24, 0.985);
    box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(34, 230, 214, 0.12);
  }

  .site-nav[data-open] { display: flex; }

  .site-nav a {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(46, 59, 99, 0.5);
  }

  .site-nav a:last-child { border-bottom: 0; }

  .site-nav a::after { display: none; }

  .site-nav a[aria-current="page"] {
    color: var(--gold);
    background: rgba(34, 230, 214, 0.07);
  }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { padding-inline: 18px; }
  .hud-rail__inner { padding: 8px 18px; }
  .header-inner { padding: 12px 18px; }
  .footer-inner { padding-inline: 18px; }
  .rail-link { display: none; }
  .page-section { padding-block: 40px; }
}

@media (max-width: 640px) {
  .header-inner { gap: 12px; padding: 12px 16px; }
  .hud-rail__inner { padding: 8px 16px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 15px; }
  .brand__sub { display: none; }
  .header-tools { gap: 8px; }
  .header-cta { padding: 8px 10px; font-size: 12px; letter-spacing: 0.02em; }
  .nav-toggle { width: 40px; height: 40px; }

  .footer-grid,
  .footer-contact__row { grid-template-columns: 1fr; gap: 20px; }

  .footer-base { font-size: 11px; gap: 10px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .prose { font-size: 16px; }
}

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

  .hud-dot { animation: none; }

  .scroll-meter span { transition: none; }

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