/* ==========================================================================
   W88赛事 · 哨声频道  /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }
img, svg, video, canvas { 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; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-weight: 700; }
strong, b { font-weight: 700; }

/* 2. 变量 ------------------------------------------------------------------ */
:root {
  /* 品牌色 */
  --ink-900: #0A1B33;   /* 深渊哨蓝 */
  --ink-800: #12294A;   /* 夜航蓝 */
  --ink-700: #0d2340;
  --whistle: #E8FF3B;   /* 荧光哨黄 */
  --cyan: #3BE0C8;      /* 电光青 */
  --ice: #F2F6FC;       /* 冰雪冷白 */
  --mist: #93A7C4;      /* 雾面蓝灰 */
  --graphite: #10151F;  /* 石墨墨黑 */
  --turf: #0F3A2C;      /* 草皮深绿 */
  --alarm: #FF4B5C;     /* 哨鸣红 */
  --line: #D7E0EE;      /* 细线银 */

  --text-on-dark: rgba(242, 246, 252, 0.86);
  --text-on-dark-dim: rgba(147, 167, 196, 0.92);
  --hairline: rgba(215, 224, 238, 0.12);
  --hairline-soft: rgba(215, 224, 238, 0.07);

  /* 字体 */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 节奏 */
  --gutter: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 22px 44px -36px rgba(0, 0, 0, 0.95);
  --shadow-pop: 0 -22px 60px rgba(4, 10, 22, 0.6);
}

/* 3. 基础排版 -------------------------------------------------------------- */
body {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(215, 224, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 224, 238, 0.045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { color: var(--ice); line-height: 1.2; }

.display,
h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--whistle);
}

.heading-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.text-mist { color: var(--mist); }
.text-whistle { color: var(--whistle); }

.annotation {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.3em;
}

.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. 布局骨架 -------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}

.band { height: 5px; background: linear-gradient(90deg, var(--whistle), var(--cyan)); }
.band--thin { height: 2px; background: var(--hairline); }
.divider { height: 1px; background: var(--hairline); border: 0; }

.prose {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-on-dark);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-top: 1.6em; }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin-top: 1.4em; color: var(--ice); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(59, 224, 200, 0.4); }
.prose a:hover { color: var(--whistle); border-bottom-color: var(--whistle); }
.prose strong { color: var(--ice); }

/* 浅色反转分区 */
.section--ice {
  background: var(--ice);
  color: var(--graphite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--ice h2, .section--ice h3, .section--ice h4 { color: var(--graphite); }
.section--ice .prose { color: #28313f; }
.section--ice .prose a { color: #0a5b6b; }
.section--ice .annotation { color: #5c6a80; }
.section--ice :focus-visible { outline-color: var(--ink-900); }

/* 5. 通用按钮 -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn--whistle { background: var(--whistle); color: var(--ink-900); }
.btn--whistle:hover { background: #f3ff72; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(215, 224, 238, 0.3); color: var(--ice); }
.btn--ghost:hover { border-color: var(--whistle); color: var(--whistle); }
.btn--cyan { border-color: rgba(59, 224, 200, 0.5); color: var(--cyan); }
.btn--cyan:hover { background: rgba(59, 224, 200, 0.12); }
.btn--sm { padding: 8px 13px; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* 6. 标签 / 卡片 ----------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  border: 1px solid rgba(147, 167, 196, 0.4);
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag--whistle { color: var(--whistle); border-color: rgba(232, 255, 59, 0.5); }
.tag--cyan { color: var(--cyan); border-color: rgba(59, 224, 200, 0.5); }
.tag--live { color: var(--alarm); border-color: rgba(255, 75, 92, 0.55); }
.tag--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--alarm);
  box-shadow: 0 0 0 3px rgba(255, 75, 92, 0.18);
}

.card {
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-card);
}
.card--panel {
  background: linear-gradient(180deg, rgba(15, 58, 44, 0.4), rgba(18, 41, 74, 0.92));
}
.card--ice {
  background: var(--ice);
  color: var(--graphite);
  border-color: var(--line);
}
.card--ice h3, .card--ice h4 { color: var(--graphite); }

/* 7. 数据面板基础 ---------------------------------------------------------- */
.data-panel {
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-panel__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-panel table { min-width: 560px; font-size: 0.88rem; }
.data-panel thead th {
  background: var(--ink-700);
  text-align: left;
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
  border-bottom: 1px solid rgba(215, 224, 238, 0.16);
}
.data-panel tbody td {
  padding: 12px 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--hairline-soft);
}
.data-panel tbody tr:hover td { background: rgba(232, 255, 59, 0.06); }
.data-panel .num { text-align: right; }
.data-panel .panel-note {
  padding: 12px 14px;
  font-size: 0.76rem;
  color: var(--mist);
  border-top: 1px solid var(--hairline);
}

/* 8. 坐标索引组件 ---------------------------------------------------------- */
.index-list { border-top: 1px solid var(--hairline); }
.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.22s var(--ease);
}
.index-item:hover { background: rgba(59, 224, 200, 0.06); }
.index-item__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--whistle);
  padding-top: 4px;
}
.index-item__name { font-weight: 600; color: var(--ice); }
.index-item__desc { grid-column: 2; font-size: 0.85rem; color: var(--mist); }

.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.index-nav__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.index-nav__link:hover { color: var(--ice); }
.index-nav__link[aria-current] { color: var(--whistle); border-bottom-color: var(--whistle); }

/* 9. 章节标题 -------------------------------------------------------------- */
.chapter {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 92px);
  transition: background-color 0.5s var(--ease);
}
.chapter[data-active="true"] { background: rgba(18, 41, 74, 0.55); }
.chapter__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 26px);
  margin-bottom: clamp(18px, 3vw, 34px);
}
.chapter__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  padding-top: 0.65em;
  transition: color 0.4s var(--ease);
}
.chapter[data-active="true"] .chapter__num { color: var(--whistle); }
.chapter__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ice);
}
.chapter__note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mist);
  font-family: var(--font-mono);
  max-height: 6.2em;
}

/* 10. 面包屑 --------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs a { color: var(--mist); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--whistle); }
.breadcrumbs__sep { color: rgba(147, 167, 196, 0.5); }
.breadcrumbs [aria-current="page"] { color: var(--ice); }

/* 11. 图片容器基础（页面阶段放置占位图） ----------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--turf) 100%);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 27, 51, 0) 42%, rgba(10, 27, 51, 0.74) 100%);
  pointer-events: none;
  z-index: 1;
}
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 246, 252, 0.84);
}
.media__tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }

/* 12. 入场显现 ------------------------------------------------------------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
html.has-js [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* 13. 头部 ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--ice);
  background: var(--ink-900);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 140;
  padding: 10px 16px;
  background: var(--whistle);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: rgba(215, 224, 238, 0.12);
  z-index: 3;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--whistle));
  transition: width 0.12s linear;
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.header-utility {
  height: 36px;
  overflow: hidden;
  background: #08152a;
  border-bottom: 1px solid rgba(215, 224, 238, 0.08);
  transition: height 0.3s var(--ease), opacity 0.2s var(--ease), border-color 0.3s var(--ease);
}
.site-header[data-stuck="true"] .header-utility {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
}
.header-utility__brand {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.utility-list {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}
.utility-list__item--code {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.utility-list__dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--whistle);
  box-shadow: 0 0 0 3px rgba(232, 255, 59, 0.18);
  vertical-align: middle;
}

.header-bar {
  background: rgba(10, 27, 51, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s var(--ease);
}
.site-header[data-stuck="true"] .header-bar {
  box-shadow: 0 16px 36px -28px rgba(0, 0, 0, 0.95);
}
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  min-height: 64px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1.5px solid var(--whistle);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(232, 255, 59, 0.3), transparent 62%);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 14px;
  height: 2px;
  background: var(--whistle);
  transform: rotate(-38deg);
  transform-origin: left center;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--ice);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--whistle);
}
.brand--footer .brand__name { font-size: 1.2rem; }

/* 栏目导航 */
.nav-primary { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(242, 246, 252, 0.86);
  transition: color 0.22s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--whistle);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--ice); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--whistle); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(232, 255, 59, 0.45);
  border-radius: var(--radius);
  color: var(--whistle);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-toggle:hover { background: rgba(232, 255, 59, 0.1); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 70%; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 81;
  background: rgba(4, 10, 22, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}
.site-header[data-open="true"] .nav-scrim { opacity: 1; pointer-events: auto; }

/* 14. 页脚 ----------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: linear-gradient(180deg, var(--ink-900) 0%, #08152a 100%);
  border-top: 1px solid var(--hairline);
  color: var(--ice);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: min(40%, 420px);
  height: 2px;
  background: linear-gradient(90deg, var(--whistle), rgba(232, 255, 59, 0));
}

.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 46px);
}

.footer-brand__line {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-on-dark);
  max-width: 30ch;
}
.footer-brand__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}
.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ice);
}
.footer-col__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--whistle);
}
.footer-list li + li { margin-top: 10px; }
.footer-list a {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--mist);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-list a:hover { color: var(--whistle); padding-left: 6px; }

.footer-contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(215, 224, 238, 0.08);
}
.footer-contact__k {
  flex: 0 0 42px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.footer-contact__v {
  font-size: 0.9rem;
  color: var(--ice);
  word-break: break-all;
}
.copy-btn {
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(59, 224, 200, 0.5);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-btn:hover { background: rgba(59, 224, 200, 0.12); }
.copy-btn[data-copied="true"] { color: var(--whistle); border-color: var(--whistle); }
.copy-btn[data-copied="fail"] { color: var(--alarm); border-color: rgba(255, 75, 92, 0.6); }
.footer-contact__note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mist);
}

.wave-divider {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  height: 34px;
}
.wave-divider svg { width: 100%; height: 100%; overflow: visible; }
.wave-divider path {
  fill: none;
  stroke: var(--whistle);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  animation: whistleWave 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes whistleWave {
  0%, 100% { opacity: 0.42; transform: translateY(0); }
  50% { opacity: 0.92; transform: translateY(-2px); }
}

.footer-legal {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  border-top: 1px solid rgba(215, 224, 238, 0.1);
  font-size: 0.78rem;
  color: var(--mist);
}
.footer-legal__icp { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-legal__links a { color: var(--mist); transition: color 0.2s var(--ease); }
.footer-legal__links a:hover { color: var(--whistle); }

/* 15. 响应式 --------------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1.5fr; }
}

@media (min-width: 880px) {
  .nav-scrim { display: none; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .footer-inner { grid-template-columns: 1.1fr 1.5fr 1.15fr; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

  .nav-primary {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 82;
    display: block;
    max-height: 82vh;
    overflow-y: auto;
    padding: 20px var(--gutter) 34px;
    background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
    border-top: 1px solid rgba(232, 255, 59, 0.35);
    border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow-pop);
    transform: translateY(115%);
    visibility: hidden;
    transition: transform 0.42s var(--ease), visibility 0.42s var(--ease);
  }
  .site-header[data-open="true"] .nav-primary {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; counter-reset: navi; }
  .nav-list__item { border-bottom: 1px solid rgba(215, 224, 238, 0.1); counter-increment: navi; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 1.02rem;
  }
  .nav-link::before {
    content: "0" counter(navi);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--mist);
    margin-right: 12px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--whistle);
    border-left: 3px solid var(--whistle);
    padding-left: 14px;
  }
  .nav-link[aria-current="page"]::before { color: var(--whistle); }

  .header-cta { padding: 8px 12px; }
}

@media (max-width: 719px) {
  .header-utility { display: none; }
  .header-bar__inner { min-height: 58px; }
  .brand__sub { letter-spacing: 0.24em; }
  .footer-contact__k { flex-basis: 100%; }
}

@media (max-width: 379px) {
  .header-cta { display: none; }
}

/* 16. 动效降级 ------------------------------------------------------------- */
@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;
  }
  html.has-js [data-reveal] { opacity: 1; transform: none; }
  .nav-primary { transform: none; }
}
