/* ==========================================================================
   KOK体育主站 · 共享站点头 CSS  (/assets/site.css)
   深墨蓝底 + 荧光青 / 赛道橙 + 斜切网格 + 等宽刻度
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-950: #071426;
  --ink-900: #0B1F3A;
  --ink-800: #12345A;
  --line: #1E4A6E;

  --cyan: #38F2D2;
  --orange: #FF7A2F;
  --mint: #7CF7C4;
  --amber: #FFD166;
  --violet: #7C8CFF;
  --teal: #0F5B5B;

  --paper: #EAF6FF;
  --muted: #9FB6CC;

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

  --shell-w: 1240px;
  --pad-x: clamp(16px, 3.4vw, 40px);

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .24s;
}

/* ---------- 3. 基础排版与背景节奏 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.02vw, 17px);
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(56, 242, 210, .10), transparent 68%),
    radial-gradient(900px 520px at 96% 0%, rgba(255, 122, 47, .09), transparent 70%),
    linear-gradient(180deg, #071426 0%, #06101f 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--paper);
}

h1 { font-size: clamp(36px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: 0; }
h4 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: 0; }

p { line-height: 1.75; }

strong { font-weight: 700; color: #FFFFFF; }

::selection { background: rgba(56, 242, 210, .28); color: #FFFFFF; }

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }

.grid--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }

.grid--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(20px, 3vw, 36px);
  background: linear-gradient(90deg, var(--line), rgba(30, 74, 110, .1) 70%, transparent);
}

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

/* ---------- 5. 文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 242, 210, 0));
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
  color: #C6D8E8;
  max-width: 62ch;
}

.prose { max-width: 70ch; }

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

.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }

.prose p { color: #DCEAF6; }

.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cyan); }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(56, 242, 210, .4);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.prose blockquote {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  color: var(--muted);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  color: #04121f;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--mint) 100%);
  box-shadow: 0 10px 26px -14px rgba(56, 242, 210, .95),
              inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(56, 242, 210, .95),
              inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.btn--ghost {
  color: var(--paper);
  background: rgba(18, 52, 90, .38);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- 7. 标签 / 指标 / 面板 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 52, 90, .42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--orange { color: var(--orange); border-color: rgba(255, 122, 47, .45); background: rgba(255, 122, 47, .1); }
.tag--mint { color: var(--mint); border-color: rgba(124, 247, 196, .4); background: rgba(124, 247, 196, .1); }
.tag--violet { color: var(--violet); border-color: rgba(124, 140, 255, .42); background: rgba(124, 140, 255, .1); }

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

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

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

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 52, 90, .55) 0%, rgba(11, 31, 58, .78) 100%);
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, .05);
}

.panel--flat { background: rgba(11, 31, 58, .62); }

/* ---------- 8. 图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950) 72%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) contrast(1.06) brightness(.92);
  transition: transform .5s var(--ease), filter .4s var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, 0) 46%, rgba(7, 20, 38, .82) 100%),
    repeating-linear-gradient(90deg, rgba(56, 242, 210, .075) 0 1px, transparent 1px 46px);
}

.media-frame:hover > img {
  transform: scale(1.03);
  filter: saturate(.8) contrast(1.08) brightness(.98);
}

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

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs { margin-block: clamp(16px, 2.4vw, 26px); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.breadcrumbs li { display: flex; align-items: center; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a { transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. 页头 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04121f;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 20, 38, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

/* 上层 HUD 条 */
.hud-strip {
  border-bottom: 1px solid rgba(30, 74, 110, .7);
  background: rgba(7, 20, 38, .72);
  font-size: 12px;
}

.hud-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 5px;
}

.hud-strip__note {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-pip {
  flex: none;
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hud-strip__meta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  flex: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 247, 196, .3);
  background: rgba(124, 247, 196, .08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mint);
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: hud-pulse 2.6s ease-out infinite;
}

@keyframes hud-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 247, 196, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(124, 247, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 247, 196, 0); }
}

.aux-nav { display: flex; align-items: center; gap: 14px; }

.aux-nav a {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.aux-nav a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 242, 210, .55);
}

/* 主栏 */
.masthead {
  background: linear-gradient(180deg, rgba(18, 52, 90, .34), rgba(7, 20, 38, 0));
}

.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  color: #04121f;
  background: linear-gradient(140deg, var(--cyan), var(--mint));
  box-shadow: 0 0 0 1px rgba(56, 242, 210, .4),
              0 12px 26px -14px rgba(56, 242, 210, .95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav { display: block; min-width: 0; }

.nav-index {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-index a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 1px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-index a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

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

.nav-index a[aria-current="page"] { color: var(--paper); }
.nav-index a[aria-current="page"]::after { transform: scaleX(1); }
.nav-index a[aria-current="page"] .nav-index__no { color: var(--cyan); }

.nav-index__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(56, 242, 210, .42);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 52, 90, .5);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(18, 52, 90, .8); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 阅读进度轨 */
.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(30, 74, 110, .38);
  overflow: hidden;
}

.progress-rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 58%, var(--orange));
  box-shadow: 0 0 14px rgba(56, 242, 210, .65);
  transition: width .12s linear;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 31, 58, .28) 0%, var(--ink-900) 22%, #050e1b 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(30, 74, 110, .45) 0 1px, transparent 1px 140px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 62%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 242, 210, 0));
}

.site-footer .shell { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--paper);
}

.footer-brand__summary {
  max-width: 34ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 247, 196, .3);
  background: rgba(124, 247, 196, .07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mint);
}

.footer-stamp__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.footer-col__list li + li { margin-top: 2px; }

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-col__list a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.footer-col__list a:hover { color: var(--paper); transform: translateX(2px); }
.footer-col__list a:hover::before { width: 16px; background: var(--cyan); }

.contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(159, 182, 204, .75);
  padding-top: 3px;
  white-space: nowrap;
}

.contact-list dd {
  color: var(--paper);
  word-break: break-word;
  line-height: 1.6;
}

.contact-note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px dashed rgba(30, 74, 110, .8);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(30, 74, 110, .8);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-base__copy { color: var(--muted); }

.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: rgba(159, 182, 204, .85);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-base__links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-base__links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 242, 210, .55);
}

/* ---------- 12. 滚动渐显 / 返回顶部 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 31, 58, .94);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 10px var(--pad-x) 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 31, 58, .99), rgba(7, 20, 38, .99));
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .9);
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-index {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-index a {
    justify-content: flex-start;
    padding: 14px 0;
    font-size: 17px;
    color: var(--paper);
    border-bottom: 1px dashed rgba(30, 74, 110, .7);
  }

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

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

  .nav-index a[aria-current="page"] { color: var(--cyan); }
  .nav-index a[aria-current="page"] .nav-index__no { color: var(--orange); }

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

  .masthead__inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .footer-brand { grid-column: 1 / -1; }
  .grid--split,
  .grid--wide-left { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hud-strip__note { display: none; }
  .hud-strip__inner { justify-content: flex-end; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 118px; }
  .masthead__inner { min-height: 68px; gap: 14px; }
  .brand__mark { padding: 9px 10px; font-size: 12px; }
  .brand__name { font-size: 17px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-base__links { margin-left: 0; width: 100%; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dt { padding-top: 8px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .masthead__actions .btn--primary { padding: 9px 14px; font-size: 12.5px; }
  .status-chip { font-size: 10.5px; }
}

@media (max-width: 600px) {
  .aux-nav { display: none; }
  .hud-strip__inner { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .grid--cols { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .panel { border-radius: var(--radius-md); }
  .media-frame { border-radius: var(--radius-md); }
}

@media (max-width: 380px) {
  .masthead__actions .btn--primary { display: none; }
  .brand__sub { display: none; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .progress-rail__bar { transition: none; }
  .media-frame:hover > img { transform: none; }
}
