/* ==========================================================================
   6686体育 · 中国导航站 — 共享站点包 /assets/site.css
   夜间球场指挥台 · 深墨绿底 + 荧光青 / 琥珀橙 / 玫红
   ========================================================================== */

/* ---------- 01 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; line-height: inherit; }

/* ---------- 02 变量 ---------- */
:root {
  --ink: #07110D;
  --ink-deep: #040A07;
  --carbon: #121614;
  --paper: #F2EAD9;
  --paper-dim: #DED3BC;
  --nearwhite: #EAF2EC;
  --cyan: #2CF2D0;
  --cyan-soft: rgba(44, 242, 208, 0.12);
  --amber: #FFB347;
  --amber-soft: rgba(255, 179, 71, 0.15);
  --rose: #FF4D7E;
  --fog: #3E6B5A;
  --fog-dim: rgba(62, 107, 90, 0.42);
  --gold: #B8863B;
  --slate: #8A9A92;

  --font-display: "Arial Narrow", "Helvetica Neue", Impact, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "SimSun", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --maxw: 1320px;
  --gutter: clamp(16px, 3.4vw, 40px);

  --shadow-panel: 0 26px 64px -34px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- 03 基础排版 ---------- */
body {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--nearwhite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(44, 242, 208, 0.09), transparent 62%),
    radial-gradient(720px 460px at 6% 104%, rgba(255, 179, 71, 0.07), transparent 60%);
}

main { position: relative; z-index: 1; display: block; }

:where([id]) { scroll-margin-top: 96px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
p { text-wrap: pretty; }

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

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

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

/* ---------- 04 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 05 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 6px;
  z-index: 200;
  transform: translateY(-180%);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: -4px; }

/* ---------- 06 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cyan);
  color: var(--ink-deep);
  box-shadow: 0 10px 26px -14px rgba(44, 242, 208, 0.9);
}
.btn-primary:hover { background: #63F8E0; color: var(--ink-deep); }

.btn-amber { background: var(--amber); color: #1A1103; }
.btn-amber:hover { background: #FFC975; }

.btn-ghost {
  border-color: var(--fog);
  color: var(--nearwhite);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }

.btn-schedule { position: relative; }
.btn-label { display: inline-block; }

.btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-deep);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary .btn-dot { animation: dot-pulse 2.6s ease-out infinite; }
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(4, 17, 12, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(4, 17, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 17, 12, 0); }
}

/* ---------- 07 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 17, 13, 0.93);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--fog-dim);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 12%, var(--amber) 52%, var(--rose) 78%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.scroll-meter {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(62, 107, 90, 0.28);
  overflow: hidden;
}
.scroll-meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.cmdbar {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 2.2vw, 32px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--nearwhite);
}
.brand-mark { position: relative; width: 26px; height: 26px; flex: none; }
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--cyan);
  border-radius: 5px;
  transform: rotate(45deg) scale(0.78);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 31%;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.75);
}
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.brand:hover .brand-name { color: var(--cyan); }

/* 导航 */
.nav { min-width: 0; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 1px; flex-wrap: nowrap; }
.nav-item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--nearwhite);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s var(--ease);
}
.nav-label { display: inline-block; white-space: nowrap; }
.nav-link:hover { color: var(--cyan); background: var(--cyan-soft); }
.nav-link:hover .nav-index { color: var(--cyan); }
.nav-link[aria-current="page"] { color: var(--ink-deep); background: var(--cyan); font-weight: 700; }
.nav-link[aria-current="page"] .nav-index { color: rgba(4, 17, 12, 0.62); }

/* 右侧动作 */
.cmdbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--fog);
  border-radius: 10px;
  background: transparent;
  color: var(--nearwhite);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 08 目录抽屉 ---------- */
.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.drawer-shell[data-open] { pointer-events: auto; }

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 13, 0.74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.drawer-shell[data-open] .drawer-scrim { opacity: 1; }

.drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(180deg, #0C1A15 0%, var(--carbon) 68%);
  border-left: 1px solid var(--fog);
  box-shadow: -30px 0 80px -40px #000;
  transform: translateX(103%);
  transition: transform 0.32s var(--ease);
}
.drawer-shell[data-open] .drawer { transform: translateX(0); }

.drawer-head {
  position: relative;
  padding: clamp(20px, 4vw, 30px) clamp(20px, 4vw, 30px) 16px;
  border-bottom: 1px solid var(--fog-dim);
}
.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--nearwhite);
  padding-right: 44px;
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--fog);
  border-radius: 50%;
  background: transparent;
  color: var(--nearwhite);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.drawer-close:hover { border-color: var(--rose); color: var(--rose); background: rgba(255, 77, 126, 0.1); }

.drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px clamp(12px, 3vw, 18px); }
.drawer-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.drawer-link:hover,
.drawer-link:focus-visible {
  background: rgba(44, 242, 208, 0.07);
  border-left-color: var(--cyan);
}
.drawer-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.drawer-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drawer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--nearwhite);
}
.drawer-desc { font-size: 0.76rem; line-height: 1.45; color: var(--slate); }

.drawer-foot {
  margin-top: auto;
  padding: 16px clamp(20px, 4vw, 30px) 22px;
  border-top: 1px solid var(--fog-dim);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- 09 站点页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1200px 420px at 82% 0%, rgba(44, 242, 208, 0.07), transparent 70%),
    var(--carbon);
  border-top: 1px solid var(--fog-dim);
  color: var(--nearwhite);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 42%, var(--rose) 72%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.25fr;
  gap: clamp(24px, 3.4vw, 52px);
}

.footer-brand .brand-name { font-size: 1.14rem; }
.footer-tagline {
  margin-top: 16px;
  max-width: 24ch;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-dim);
}
.footer-note {
  margin-top: 8px;
  max-width: 26ch;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--slate);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--fog-dim);
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--nearwhite);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--fog);
  transform: rotate(45deg);
  transition: background-color 0.18s var(--ease);
}
.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::before { background: var(--cyan); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--fog-dim);
}
.footer-contact li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.55;
}
.contact-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  padding-top: 3px;
}
.contact-val { color: var(--paper-dim); word-break: break-word; }

.footer-base {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--fog-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-size: 0.78rem;
  color: var(--slate);
}
.footer-copy { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-icp { font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--slate); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--fog);
  border-radius: 999px;
  background: rgba(18, 22, 20, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--nearwhite);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              visibility 0s linear 0.24s, border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 10 通用组件 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 38px);
  background: var(--carbon);
  border: 1px solid var(--fog-dim);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-panel);
}
.panel--paper { background: var(--paper); color: #132018; border-color: var(--paper-dim); }
.panel--paper a { color: #0B5C4C; }
.panel--ink { background: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.eyebrow--amber { color: var(--amber); }
.eyebrow--rose { color: var(--rose); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-cyan { color: var(--cyan); }
.tag-amber { color: var(--amber); }
.tag-rose { color: var(--rose); }
.tag-gold { color: var(--gold); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--fog); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--nearwhite); }

/* 图片容器基础规则 */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--fog-dim);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, rgba(44, 242, 208, 0.10), rgba(255, 179, 71, 0.08)),
    var(--ink-deep);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(115deg, rgba(44, 242, 208, 0.07) 0 1px, transparent 1px 22px);
  opacity: 0.6;
  pointer-events: none;
}
.media img,
.media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media-caption {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--slate);
}

/* 入场显现 */
[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
[data-js] [data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 11 响应式 ---------- */
@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--carbon);
    border-top: 1px solid var(--fog-dim);
    border-bottom: 1px solid var(--fog);
    box-shadow: 0 30px 52px -30px #000;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.32s var(--ease), visibility 0s linear 0.32s;
  }
  .nav[data-open] {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.32s var(--ease), visibility 0s linear 0s;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
  }
  .nav-link { justify-content: flex-start; padding: 14px; font-size: 0.98rem; border-radius: 10px; }
  .nav-index { font-size: 0.66rem; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline, .footer-note { max-width: 52ch; }
}

@media (max-width: 620px) {
  .cmdbar { gap: 8px; min-height: 58px; padding-block: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { display: none; }
  .btn { padding: 8px 12px; font-size: 0.74rem; gap: 6px; }
  .btn-ghost { padding: 8px 11px; }
  .nav-toggle { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { font-size: 0.72rem; padding: 10px 14px; }
}

/* ---------- 12 减少动效 ---------- */
@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;
  }
  [data-js] [data-reveal] { opacity: 1 !important; transform: none !important; }
  .drawer { transition: none !important; }
}
