/* ==========================================================================
   完美体育主站 · 共享样式 /assets/site.css
   赛场夜战指挥台：深蓝连续画布 + 数据网格 + 切角面板 + 等宽索引
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-950: #050A14;
  --ink-900: #0A1424;
  --steel-800: #172238;
  --steel-700: #1F2D46;
  --ice-100: #EAF3FF;
  --cyan: #00E5FF;
  --lime: #B7FF3C;
  --orange: #FF7A1A;
  --violet: #8C6BFF;
  --fog-400: #8494A8;
  --red: #FF4D5E;

  --bg: var(--ink-950);
  --bg-soft: var(--ink-900);
  --panel: var(--steel-800);
  --line: rgba(234, 243, 255, 0.10);
  --line-strong: rgba(234, 243, 255, 0.20);
  --text: var(--ice-100);
  --text-dim: var(--fog-400);

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --hdr-h: 66px;
  --notch: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::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, figure, blockquote, dl, dd, ul, ol { 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; }

[id] { scroll-margin-top: calc(var(--hdr-h) + 20px); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    radial-gradient(900px 520px at 82% -8%, rgba(0, 229, 255, 0.11), transparent 70%),
    radial-gradient(760px 480px at 4% 2%, rgba(140, 107, 255, 0.10), transparent 72%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 13.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: top 0.18s var(--ease);
}
.skip-link:focus-visible { top: 10px; outline-offset: 0; }

/* ---------- 5. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 10, 20, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hdr-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--hdr-h);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ice-100);
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--ink-950);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brand__text { display: grid; gap: 1px; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--fog-400);
  line-height: 1.2;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--ice-100);
  background: rgba(23, 34, 56, 0.6);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { color: var(--cyan); border-color: rgba(0, 229, 255, 0.55); }
.nav-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 主命令目录 */
.nav { min-width: 0; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.7vw, 8px);
  counter-reset: navidx;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { flex: 0 0 auto; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: rgba(234, 243, 255, 0.74);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: rgba(132, 148, 168, 0.85);
  transition: color 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--ice-100);
  background: rgba(0, 229, 255, 0.08);
}
.nav__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
  color: var(--ice-100);
}
.nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
}
.nav__link[aria-current="page"]::before { color: var(--cyan); }
.nav__link[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

/* 快捷命令 */
.quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.quick__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: rgba(234, 243, 255, 0.78);
  background: rgba(23, 34, 56, 0.55);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.quick__link:hover {
  color: var(--ice-100);
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.10);
}
.quick__link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.quick__link--cta {
  color: #170800;
  font-weight: 700;
  background: var(--orange);
  border-color: var(--orange);
}
.quick__link--cta:hover {
  color: #170800;
  background: #FF9243;
  border-color: #FF9243;
}

/* 阅读进度 */
.hdr-progress {
  height: 2px;
  background: rgba(234, 243, 255, 0.07);
}
.hdr-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  transition: width 0.1s linear;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 76px) 0 clamp(24px, 3vw, 34px);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 120% at 88% 0%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(50% 110% at 6% 100%, rgba(255, 122, 26, 0.09), transparent 70%);
}
.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(110px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ice-100);
}
.footer-brand__tag {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.footer-brand__note {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fog-400);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--fog-400);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(234, 243, 255, 0.74);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s var(--ease);
}
.footer-col__link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: width 0.18s var(--ease), opacity 0.18s var(--ease);
}
.footer-col__link:hover { color: var(--cyan); }
.footer-col__link:hover::before { width: 18px; opacity: 1; }

.footer-contact {
  margin-top: clamp(30px, 4.5vw, 52px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2.4vw, 32px);
}
.footer-contact__item { display: grid; gap: 5px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fog-400);
}
.footer-contact__val {
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.3vw, 14.5px);
  letter-spacing: 0.01em;
  color: var(--ice-100);
  overflow-wrap: anywhere;
}

.footer-base {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog-400);
}
.footer-base__meta { color: rgba(132, 148, 168, 0.8); }

/* 固定联系侧边标签 */
.side-tag {
  position: fixed;
  right: 0;
  top: 52%;
  z-index: 55;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  padding: 20px 9px;
  background: var(--orange);
  color: #170800;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  box-shadow: -6px 0 26px rgba(255, 122, 26, 0.3);
  transition: background 0.2s var(--ease), transform 0.22s var(--ease);
}
.side-tag:hover { background: #FF9243; transform: translateY(-50%) translateX(-3px); }
.side-tag:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink-950); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 56;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--steel-800);
  color: var(--ice-100);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--cyan); color: #04121A; }
.to-top:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.to-top__arrow { font-family: var(--font-mono); font-size: 17px; line-height: 1; }

/* ---------- 7. 通用容器与按钮 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary { background: var(--cyan); color: #04121A; }
.btn--primary:hover { background: #5EF1FF; }
.btn--accent { background: var(--orange); color: #170800; }
.btn--accent:hover { background: #FF9243; }
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.45);
}
.btn--ghost:hover { background: rgba(0, 229, 255, 0.10); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ice-100); }

/* ---------- 8. 标题区与索引元素 ---------- */
.page-head { padding-block: clamp(34px, 6vw, 74px) clamp(22px, 4vw, 46px); }
.page-title { font-size: clamp(34px, 7vw, 78px); line-height: 1.02; letter-spacing: 0.005em; }
.section-title { font-size: clamp(24px, 3.2vw, 42px); line-height: 1.06; }
.lede {
  margin-top: 18px;
  max-width: 64ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: rgba(234, 243, 255, 0.78);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--fog-400);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(132, 148, 168, 0.5); }
.crumbs a { color: var(--fog-400); text-decoration: none; transition: color 0.18s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ice-100); }

/* ---------- 9. 标签、面板、轨道、网格 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.tag--lime { color: var(--lime); background: rgba(183, 255, 60, 0.12); }
.tag--orange { color: var(--orange); background: rgba(255, 122, 26, 0.14); }
.tag--violet { color: var(--violet); background: rgba(140, 107, 255, 0.16); }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--steel-800);
  color: var(--ice-100);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.panel--soft { background: var(--ink-900); }

.rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-color: var(--steel-700) transparent;
  scrollbar-width: thin;
}
.rail > * {
  flex: 0 0 clamp(240px, 32vw, 360px);
  scroll-snap-align: start;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(234, 243, 255, 0.06); }
.rail::-webkit-scrollbar-thumb { background: var(--steel-700); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.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)); }

/* ---------- 10. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--steel-800) 0%, var(--ink-900) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0) 38%, rgba(5, 10, 20, 0.88) 100%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.media__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(5, 10, 20, 0.82);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* ---------- 11. 显现动效协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .hdr-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "quick quick";
    align-items: center;
    row-gap: 0;
    padding-top: 9px;
    padding-bottom: 9px;
    min-height: 0;
  }
  .brand { grid-area: brand; }
  .nav-toggle { grid-area: toggle; }

  .nav { grid-area: nav; display: none; }
  .quick { grid-area: quick; display: none; }

  .site-header[data-open] .nav { display: block; padding-top: 10px; }
  .site-header[data-open] .quick { display: flex; padding: 10px 0 12px; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow: visible;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .nav__link {
    padding: 12px 13px;
    font-size: 15px;
    background: rgba(23, 34, 56, 0.55);
  }
  .nav__link::before { font-size: 10.5px; }
  .quick { flex-wrap: wrap; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --hdr-h: 60px; }

  .side-tag {
    writing-mode: horizontal-tb;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.3em;
    clip-path: none;
    box-shadow: 0 -6px 24px rgba(255, 122, 26, 0.28);
  }
  .side-tag:hover { transform: none; }
  .to-top { right: 14px; bottom: 68px; width: 42px; height: 42px; }
  .site-footer { padding-bottom: 76px; }

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

@media (max-width: 520px) {
  .brand__sub { display: none; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .rail > * { flex-basis: 78%; }
}

/* ---------- 13. 减少动态偏好 ---------- */
@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; }
  .to-top { transform: none; }
}
