/* ==========================================================================
   三亿体育主站 · 共享样式 /assets/site.css
   夜场记分牌体系：暗底荧光、粗边框、偏移硬阴影、非对称网格
   ========================================================================== */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, 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, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #06120E;
  --deep: #0C211A;
  --lift: #163226;
  --neon: #C7FF3D;
  --flare: #FF4E20;
  --cream: #F3F0E2;
  --mist: #8FB7A4;
  --sand: #D8CFAE;
  --gold: #B58A2B;
  --claret: #7A2314;

  --rail-w: 232px;
  --bar-h: 56px;
  --wrap: 1280px;
  --edge: clamp(16px, 3.6vw, 48px);
  --bw: 2px;

  --shadow-neon: 6px 6px 0 rgba(199, 255, 61, .18);
  --shadow-flare: 6px 6px 0 rgba(255, 78, 32, .22);

  --font-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 420ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 420px at 84% 2%, rgba(199, 255, 61, .10), transparent 62%),
    radial-gradient(720px 380px at 4% 98%, rgba(255, 78, 32, .10), transparent 62%),
    repeating-linear-gradient(180deg, rgba(143, 183, 164, .055) 0 1px, transparent 1px 96px);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 300; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 8.4vw, 150px); line-height: .95; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.6vw, 48px); }
h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--neon); color: var(--ink); }
#main-content { display: block; scroll-margin-top: calc(var(--bar-h) + 14px); }

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap, clamp(12px, 1.8vw, 24px));
}
.grid-12 > * { grid-column: span var(--span, 12); min-width: 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(22px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: var(--bw) solid var(--lift);
}
.section-title { font-size: clamp(26px, 3.4vw, 46px); margin: 0; }
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 12px;
  background: var(--flare);
}
.section-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.page-head { padding: clamp(30px, 5vw, 68px) 0 clamp(18px, 3vw, 34px); }
.page-title { font-size: clamp(38px, 7.4vw, 116px); margin: 0; }
.page-lead { max-width: 60ch; margin-top: 20px; color: var(--mist); }
.slant-band {
  position: relative;
  margin: clamp(40px, 7vw, 92px) 0;
  padding: clamp(28px, 4vw, 54px) clamp(20px, 4vw, 48px);
  background: var(--lift);
  border-top: var(--bw) solid var(--neon);
  border-bottom: var(--bw) solid var(--flare);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 16px 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li::after { content: "/"; margin: 0 10px; color: rgba(143, 183, 164, .5); }
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb [aria-current="page"] { color: var(--cream); }

/* ---------- 5. 文字与数据零件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--neon);
  transform: rotate(45deg);
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.data-xl {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(60px, 13vw, 148px);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--neon);
}
.data-xl.is-flare { color: var(--flare); }
.prose { max-width: 68ch; color: rgba(243, 240, 226, .88); }
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin: 2em 0 .6em; }
.prose ul, .prose ol { margin: 1em 0; display: flex; flex-direction: column; gap: .5em; }
.prose li { padding-left: 20px; position: relative; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--neon); }
.prose a { color: var(--neon); border-bottom: 2px solid rgba(199, 255, 61, .4); }
.prose a:hover { border-bottom-color: var(--neon); }

/* ---------- 6. 按钮 / 胶囊 / 图例 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: var(--bw) solid var(--lift);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease),
              color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-neon); }
.btn-primary {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--cream); border-color: var(--cream); box-shadow: var(--shadow-flare); }
.btn-ghost { border-color: var(--mist); color: var(--cream); }
.btn-ghost:hover { background: var(--lift); border-color: var(--neon); color: var(--neon); box-shadow: none; transform: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: var(--bw) solid var(--lift);
  color: var(--mist);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.chip:hover { border-color: var(--mist); color: var(--cream); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 14px 0;
  border-top: var(--bw) solid var(--lift);
  border-bottom: var(--bw) solid var(--lift);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}
.legend-dot { width: 9px; height: 9px; flex: none; background: var(--mist); transform: rotate(45deg); }
.legend-dot.is-live { background: var(--neon); }
.legend-dot.is-flare { background: var(--flare); }
.legend-dot.is-gold { background: var(--gold); }

/* ---------- 7. 容器 / 表格 / 折叠 / 图片 ---------- */
.panel {
  border: var(--bw) solid var(--lift);
  background: linear-gradient(180deg, rgba(22, 50, 38, .5), rgba(12, 33, 26, .32));
  box-shadow: var(--shadow-neon);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  background: var(--lift);
  border-bottom: var(--bw) solid var(--lift);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.panel-body { padding: clamp(16px, 2.4vw, 26px); }
.data-table { font-size: 15px; }
.data-table caption { text-align: left; padding-bottom: 10px; color: var(--mist); font-size: 13px; }
.data-table th {
  padding: 11px 12px;
  background: var(--lift);
  border-bottom: var(--bw) solid var(--neon);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(143, 183, 164, .18);
  vertical-align: baseline;
}
.data-table tbody tr:hover { background: rgba(199, 255, 61, .06); }
.data-table .num { color: var(--cream); }
.accordion { border-top: var(--bw) solid var(--lift); }
.accordion-item { border-bottom: var(--bw) solid var(--lift); }
.accordion-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  list-style: none;
  font-size: 17px;
  color: var(--cream);
  transition: color 180ms var(--ease);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--neon);
  flex: none;
}
.accordion-item[open] summary { color: var(--neon); }
.accordion-item[open] summary::after { content: "–"; }
.accordion-panel { padding: 0 4px 22px; max-width: 66ch; color: var(--mist); }
.media-frame {
  position: relative;
  overflow: hidden;
  border: var(--bw) solid var(--lift);
  background: var(--deep);
  box-shadow: var(--shadow-flare);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); }
.media-frame[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.media-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.media-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.media-caption {
  padding: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 8. 跳转链接与显现 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border: var(--bw) solid var(--ink);
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: none; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes whistle-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(199, 255, 61, .18); }
  50% { opacity: .55; box-shadow: 0 0 0 11px rgba(199, 255, 61, 0); }
}

/* ---------- 9. 站点头部 ---------- */
.site-header { position: relative; z-index: 80; }

/* 9.1 命令栏 */
.command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(6, 18, 14, .92);
  backdrop-filter: blur(8px);
  border-bottom: var(--bw) solid var(--lift);
}
.command-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 2.4vw, 30px);
  min-height: var(--bar-h);
  padding: 6px var(--edge);
}
.command-loc, .command-sync, .command-round {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}
.command-loc { padding: 6px 12px; border: var(--bw) solid var(--lift); background: var(--deep); }
.command-k { color: rgba(143, 183, 164, .8); flex: none; }
.command-v { color: var(--cream); }
.command-loc .command-v { color: var(--neon); font-weight: 600; }
.command-sync { margin-right: auto; }
.command-sync-text { color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-round .command-v { white-space: nowrap; }
.pulse-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--neon);
  transform: rotate(45deg);
  animation: whistle-pulse 2.4s var(--ease) infinite;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: var(--bw) solid var(--lift);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle[aria-expanded="true"] { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.nav-toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-toggle-text { line-height: 1; }

/* 9.2 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px 24px;
  background: linear-gradient(180deg, var(--deep) 0%, #09180F 62%, var(--ink) 100%);
  border-right: var(--bw) solid var(--lift);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brand-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  background-image: repeating-linear-gradient(180deg, var(--neon) 0 2px, transparent 2px 18px);
  opacity: .2;
  pointer-events: none;
}
.rail-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: var(--bw) solid var(--lift);
}
.rail-logo { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.rail-logo-mark { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.rail-logo-ring { position: absolute; inset: 0; border: var(--bw) solid var(--neon); border-radius: 50%; opacity: .45; }
.rail-logo-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  animation: whistle-pulse 2.4s var(--ease) infinite;
}
.rail-logo-type { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rail-logo-name { font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--cream); }
.rail-logo-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}
.rail-motto { font-size: 12.5px; line-height: 1.7; color: var(--mist); }

.rail-nav { display: flex; flex-direction: column; gap: 10px; }
.rail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.rail-label::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--flare); transform: rotate(45deg); }
.rail-nav-list { display: flex; flex-direction: column; gap: 2px; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-left: var(--bw) solid transparent;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.4;
  transition: color 180ms var(--ease), background-color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}
.rail-link:hover {
  color: var(--cream);
  background: rgba(22, 50, 38, .72);
  border-left-color: var(--mist);
  transform: translateX(3px);
}
.rail-link[aria-current="page"] {
  color: var(--cream);
  background: var(--lift);
  border-left-color: var(--neon);
  box-shadow: inset 0 0 0 1px rgba(199, 255, 61, .16);
}
.rail-link[aria-current="page"] .rail-num { color: var(--neon); }
.rail-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(143, 183, 164, .7);
}
.rail-text { min-width: 0; }

.rail-league { display: flex; flex-direction: column; gap: 10px; }
.league-list { display: flex; flex-direction: column; gap: 8px; }
.league-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}
.league-dot { width: 8px; height: 8px; flex: none; background: var(--mist); transform: rotate(45deg); }
.league-code { color: inherit; }
.league-name { font-family: var(--font-sans); font-size: 13px; letter-spacing: .02em; color: var(--mist); }
.league-item.is-live .league-dot { background: var(--neon); animation: whistle-pulse 2.4s var(--ease) infinite; }
.league-item.is-live .league-code { color: var(--neon); }
.league-item.is-live .league-name { color: var(--cream); }
.rail-note { font-size: 11px; line-height: 1.6; color: rgba(143, 183, 164, .72); }

.rail-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: var(--bw) solid var(--lift);
}
.rail-round {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rail-round-k { color: var(--mist); }
.rail-round-v { color: var(--neon); }
.rail-cta { width: 100%; }

/* 9.3 遮罩与滚动进度 */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(6, 18, 14, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.brand-rail[data-open="true"] ~ .rail-scrim { opacity: 1; pointer-events: auto; }
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
  background: rgba(22, 50, 38, .7);
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--flare));
  transition: transform 140ms linear;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  background: var(--deep);
  border-top: var(--bw) solid var(--lift);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: clamp(96px, 16vw, 240px);
  height: 5px;
  background: var(--neon);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: clamp(48px, 8vw, 120px);
  height: 5px;
  background: var(--flare);
}
.footer-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--edge);
  background: var(--lift);
  border-bottom: var(--bw) solid rgba(143, 183, 164, .22);
}
.footer-strip-line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(143, 183, 164, .6) 0 8px, transparent 8px 16px);
}
.footer-strip-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  padding: clamp(34px, 5vw, 62px) var(--edge);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 44ch; }
.footer-wordmark { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: .02em; color: var(--cream); }
.footer-wordmark::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; background: var(--neon); }
.footer-summary { font-size: 14.5px; line-height: 1.8; color: var(--mist); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 9px 12px;
  border: var(--bw) solid var(--lift);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-badge-dot { width: 8px; height: 8px; flex: none; background: var(--gold); transform: rotate(45deg); }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col-title {
  padding-bottom: 10px;
  border-bottom: var(--bw) solid var(--lift);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--mist);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}
.footer-links a::before {
  content: "";
  width: 6px;
  height: 2px;
  background: var(--mist);
  transition: background-color 180ms var(--ease), width 180ms var(--ease);
}
.footer-links a:hover { color: var(--neon); transform: translateX(3px); }
.footer-links a:hover::before { background: var(--neon); width: 12px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-contact-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}
.footer-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-v { min-width: 0; color: var(--cream); line-height: 1.6; }
.footer-mail { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; color: var(--neon); word-break: break-all; }
.copy-btn {
  align-self: flex-start;
  padding: 9px 14px;
  border: var(--bw) solid var(--neon);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.copy-btn:hover { background: var(--neon); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(255, 78, 32, .25); }
.copy-status { min-height: 1.2em; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--neon); }
.footer-note { max-width: 42ch; font-size: 12.5px; line-height: 1.75; color: rgba(143, 183, 164, .85); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 18px var(--edge) 26px;
  border-top: var(--bw) solid var(--lift);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-legal { color: var(--sand); }
.footer-copy { color: rgba(143, 183, 164, .8); }
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: var(--bw) solid var(--neon);
  background: rgba(6, 18, 14, .92);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease),
              background-color 180ms var(--ease), color 180ms var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--neon); color: var(--ink); }

/* ---------- 11. 焦点与无障碍 ---------- */
:focus-visible { outline: var(--bw) solid var(--neon); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1023px) {
  .brand-rail {
    width: min(320px, 86vw);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 320ms var(--ease), visibility 0s linear 320ms;
  }
  .brand-rail[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 12px 0 0 rgba(199, 255, 61, .16);
    transition: transform 320ms var(--ease), visibility 0s;
  }
  body.is-nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .nav-toggle { display: none; }
  .rail-scrim { display: none; }
  .scroll-progress { left: var(--rail-w); }
}
@media (max-width: 900px) {
  .command-round { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-12 > * { grid-column: span var(--span-m, 6); }
  .footer-strip-text { font-size: 9px; letter-spacing: .12em; }
  .footer-strip { padding-inline: 14px; gap: 10px; }
  .footer-base { padding-inline: var(--edge); }
}
@media (max-width: 560px) {
  .command-sync { display: none; }
  .command-loc { padding: 5px 10px; }
}
@media (max-width: 600px) {
  .grid-12 { grid-template-columns: 1fr; }
  .grid-12 > * { grid-column: span 1; }
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.7fr .8fr .8fr .8fr 1.5fr; gap: clamp(20px, 3vw, 40px); }
}

/* ---------- 13. 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress-bar { transition: none; }
  .to-top { transform: none; }
}
