/* ==========================================================================
   乐竞体育 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / 头部浮岛 / 竖排快捷条 / 页脚 / 通用组件
   页面专属布局请在页面级 CSS 中追加，不要覆盖本文件的结构性规则。
   ========================================================================== */

/* ---------- 1. 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 { margin: 0; }

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩：深空黑为夜场底色，荧光绿为导视，电光橙只给比分与时效 */
  --ink: #080B0A;
  --panel: #141A17;
  --panel-deep: #0E1411;
  --volt: #C8FF3D;
  --volt-soft: #E6FFA3;
  --flare: #FF6B2C;
  --flare-soft: #FFB184;
  --steel: #93A7B8;
  --mist: #F3F6EE;
  --line: #2B352F;
  --paper: #D8D1C0;

  --text-dim: rgba(243, 246, 238, 0.72);
  --text-mute: rgba(147, 167, 184, 0.78);
  --line-soft: rgba(43, 53, 47, 0.9);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Noto Sans SC", monospace;

  /* 形状：同一视口不超过三种圆角 */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --pill: 999px;
  --cut: 14px;

  /* 节奏 */
  --shell: 1240px;
  --gutter: clamp(14px, 4vw, 40px);
  --section-gap: clamp(48px, 6vw, 96px);
  --ease: cubic-bezier(0.22, 0.8, 0.32, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p { text-wrap: pretty; }

::selection { background: var(--volt); color: var(--ink); }

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

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--volt);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  display: block;
  min-height: 50vh;
}

.site-main:focus { outline: none; }

.section { padding-block: var(--section-gap); }

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--volt);
  border-radius: 2px;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- 6. 按钮体系 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--mist);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.68em 1.15em;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--btn-bd);
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-solid { --btn-bg: var(--volt); --btn-fg: var(--ink); --btn-bd: var(--volt); }
.btn-solid:hover { --btn-bg: var(--volt-soft); --btn-bd: var(--volt-soft); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--mist); --btn-bd: rgba(147, 167, 184, 0.42); }
.btn-ghost:hover { --btn-bg: rgba(200, 255, 61, 0.12); --btn-fg: var(--volt); --btn-bd: var(--volt); }

.btn-flare { --btn-bg: var(--flare); --btn-fg: var(--ink); --btn-bd: var(--flare); }
.btn-flare:hover { --btn-bg: var(--flare-soft); --btn-bd: var(--flare-soft); }

/* 切角通道按钮：clip-path 切开左上与右下，14px */
.btn-cut {
  border: 0;
  border-radius: 0;
  padding: 0.8em 1.4em;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.btn-cut:hover { transform: translateY(-2px); }

/* clip-path 会裁掉外描边，焦点环改用内阴影 */
.btn-cut:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--volt);
}

.btn-cut.btn-solid:focus-visible,
.btn-cut.btn-flare:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.8em;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  border: 1px solid transparent;
}

.tag--volt { background: rgba(200, 255, 61, 0.14); color: var(--volt); border-color: rgba(200, 255, 61, 0.34); }
.tag--flare { background: rgba(255, 107, 44, 0.14); color: var(--flare); border-color: rgba(255, 107, 44, 0.34); }
.tag--steel { background: rgba(147, 167, 184, 0.12); color: var(--steel); border-color: rgba(147, 167, 184, 0.3); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.breadcrumb a { color: var(--text-dim); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--volt); }

.breadcrumb-sep { color: rgba(147, 167, 184, 0.45); }

.breadcrumb [aria-current="page"] { color: var(--volt); font-weight: 700; }

/* ---------- 9. Bento 与面板 ---------- */
.bento {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.bento-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.bento-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 61, 0.34);
}

/* 旧版场馆档案区：档案纸 + 打孔线 */
.paper-panel {
  background:
    repeating-linear-gradient(90deg, rgba(8, 11, 10, 0.05) 0 1px, transparent 1px 5px),
    var(--paper);
  color: #1A1F1B;
  border: 1px solid rgba(43, 53, 47, 0.35);
  border-radius: var(--r-md);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(200, 255, 61, 0.14), transparent 62%),
    linear-gradient(150deg, #161D19 0%, var(--panel-deep) 100%);
}

.media-frame > img,
.media-frame > video,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 场馆结构线稿叠层 */
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(147, 167, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 167, 184, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 22% 16%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 100% at 22% 16%, #000 0%, transparent 74%);
}

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

.media-frame--paper {
  border-color: rgba(43, 53, 47, 0.4);
  background:
    repeating-linear-gradient(90deg, rgba(8, 11, 10, 0.06) 0 1px, transparent 1px 5px),
    var(--paper);
}

.media-frame--paper::after { opacity: 0.45; }

/* ---------- 11. 头部浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 12px 0;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 10, 0.96) 0%,
    rgba(8, 11, 10, 0.86) 62%,
    rgba(8, 11, 10, 0) 100%
  );
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(43, 53, 47, 0.55);
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--volt) 0%, var(--volt-soft) 55%, var(--flare) 100%);
  transition: transform 0.08s linear;
}

.dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 10px 8px 14px;
  border-radius: var(--pill);
  background: rgba(20, 26, 23, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -34px #000, inset 0 1px 0 rgba(200, 255, 61, 0.08);
  pointer-events: auto;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-stuck .dock {
  background: rgba(16, 22, 19, 0.98);
  border-color: rgba(200, 255, 61, 0.24);
  box-shadow: 0 26px 54px -30px #000, inset 0 1px 0 rgba(200, 255, 61, 0.14);
}

/* 品牌块 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 8px;
  border-radius: var(--pill);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--volt) 0%, #8FD21A 100%);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.4), 0 8px 20px -10px rgba(200, 255, 61, 0.9);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--ink);
  transform: skewX(-12deg);
}

.brand-mark::before { left: 10px; }
.brand-mark::after { left: 18px; opacity: 0.55; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.brand-descriptor {
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  color: var(--steel);
  white-space: nowrap;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 20px);
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: auto;
}

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

.nav-item { display: block; }

.nav-link {
  display: inline-block;
  padding: 0.52em 0.82em;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(243, 246, 238, 0.78);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--volt);
  background: rgba(200, 255, 61, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--volt);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0.5em 0.9em;
  border-radius: var(--pill);
  border: 1px solid rgba(200, 255, 61, 0.35);
  background: rgba(200, 255, 61, 0.08);
  color: var(--volt);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  flex: 0 0 auto;
}

.nav-toggle:focus-visible { outline-offset: 2px; }

.nav-toggle-mark {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-mark::before { top: -5px; }
.nav-toggle-mark::after { top: 5px; }

.site-header[data-open="true"] .nav-toggle-mark { background: transparent; }
.site-header[data-open="true"] .nav-toggle-mark::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-mark::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 12. 右侧竖排快捷条 ---------- */
.quick-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border-radius: var(--pill);
  background: rgba(20, 26, 23, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px #000;
}

.quick-link {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 0.34em;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--steel);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.quick-link:hover {
  color: var(--ink);
  background: var(--volt);
}

@media (min-width: 1200px) {
  .quick-rail { display: flex; }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, #0B110E 0%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* 场馆平面坐标网格 */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 53, 47, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 53, 47, 0.7) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 74%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 74%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 64px);
}

.footer-brand { display: block; }

.footer-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
  margin-bottom: 18px;
}

.footer-mark::before,
.footer-mark::after {
  content: "";
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--volt);
}

.footer-mark::before { top: 0; width: 34px; }
.footer-mark::after { bottom: 0; width: 20px; background: var(--flare); }

.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.footer-brand-line {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.footer-brand-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: var(--steel);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--volt);
}

.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--volt);
  transform: rotate(45deg);
}

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

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: rgba(243, 246, 238, 0.7);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--volt);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.contact-value {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.footer-note {
  max-width: 58ch;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-mute);
}

/* ---------- 14. 滚动显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

/* ---------- 15. 平板 ---------- */
@media (max-width: 1080px) {
  .brand-descriptor { display: none; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  .nav-link {
    padding: 0.5em 0.62em;
    font-size: 0.8125rem;
  }
}

/* ---------- 16. 移动端：浮岛沉底为胶囊条 ---------- */
@media (max-width: 899px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  .site-header {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 140;
  }

  .site-header::before { display: none; }

  .progress-track {
    background: rgba(43, 53, 47, 0.7);
  }

  .dock {
    width: calc(100% - 24px);
    max-width: 560px;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    border-radius: var(--pill);
    background: rgba(20, 26, 23, 0.97);
    border-color: rgba(200, 255, 61, 0.22);
    box-shadow: 0 -18px 44px -30px #000, inset 0 1px 0 rgba(200, 255, 61, 0.12);
  }

  .brand { padding-right: 0; }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark::before,
  .brand-mark::after { top: 7px; height: 16px; }

  .brand-mark::before { left: 9px; }
  .brand-mark::after { left: 16px; }

  .brand-name { font-size: 0.9375rem; }

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

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 24px;
    background: rgba(20, 26, 23, 0.985);
    border: 1px solid var(--line);
    box-shadow: 0 -24px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
      visibility 0.24s var(--ease);
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.78em 1em;
    border-radius: 14px;
    font-size: 0.9375rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-actions .btn {
    width: 100%;
  }

  .quick-rail { display: none; }

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

/* ---------- 17. 小屏 ---------- */
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: stretch; }
  .footer-note { max-width: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 0.6em 0.75em; }
}

/* ---------- 18. Reduced motion ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .bento-panel:hover,
  .footer-link:hover {
    transform: none;
  }
}
