/* ============================================================
   乐竞体育 · 共享站点样式 /assets/site.css
   结构：令牌 → 重置 → 排版 → 布局 → 组件 → 头部 → 页脚 → 响应式 → 无障碍
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #081C17;
  --ink-700: #0F3B31;
  --cyan-400: #2FE3C4;
  --cyan-200: #A6F7E7;
  --orange-500: #FF8A3D;
  --orange-100: #FFE1CC;
  --paper: #F3F6F2;
  --white: #FFFFFF;
  --graphite: #41544D;
  --line: #C7D4CC;
  --ink-text: #E8F3EE;

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

  --step: 8px;
  --gutter: clamp(16px, 3vw, 24px);
  --shell-max: 1240px;
  --pill: 999px;
  --bevel: 24px;
  --dur: 200ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-1: 0 14px 34px -24px rgba(8, 28, 23, .85);
  --ring: 0 0 0 8px rgba(47, 227, 196, .22);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }

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

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

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

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

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

/* ---------- 3. 中文排版与基础文字 ---------- */
body {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 250; letter-spacing: -.015em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 300; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }

p + p { margin-top: 1.2em; }

strong { color: var(--ink-900); font-weight: 600; }

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

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

.is-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 4. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: 42em; }

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

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ---------- 5. 章节与索引 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.index-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--orange-500);
  font-variant-numeric: tabular-nums;
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.btn-primary { background: var(--cyan-400); color: var(--ink-900); }
.btn-primary:hover { background: var(--orange-500); color: #200F03; }

.btn-ghost {
  background: transparent;
  color: var(--ink-text);
  border-color: rgba(232, 243, 238, .34);
}
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

.btn-quiet {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--cyan-400); color: var(--ink-700); }

/* ---------- 7. 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--graphite);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--cyan-400); color: var(--ink-900); }
.chip[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--cyan-400);
}

/* ---------- 8. 面板与卡片（切角语言） ---------- */
.panel {
  --bevel: 24px;
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(
    var(--bevel) 0,
    100% 0,
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    0 100%,
    0 var(--bevel)
  );
}

.panel-ink {
  --bevel: 24px;
  background: var(--ink-900);
  border-color: rgba(47, 227, 196, .24);
  color: var(--ink-text);
}
.panel-ink h2,
.panel-ink h3 { color: var(--ink-text); }
.panel-ink .label { color: rgba(232, 243, 238, .62); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-400);
  box-shadow: var(--shadow-1);
}

/* ---------- 9. 数值 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink-900);
}

.stat-label {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--graphite);
}

.panel-ink .stat-value { color: var(--cyan-400); }
.panel-ink .stat-label { color: rgba(232, 243, 238, .66); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { margin-bottom: clamp(16px, 2vw, 24px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb-list a:hover { color: var(--ink-900); }
.breadcrumb-list [aria-current="page"] { color: var(--orange-500); }

/* ---------- 11. 标签页 ---------- */
.tabs { display: block; }

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--graphite);
  font-size: 13px;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.tab:hover { border-color: var(--cyan-400); color: var(--ink-900); }
.tab[aria-selected="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--cyan-400);
}

.tab-panel { padding-block: 4px; }
.tab-panel[hidden] { display: none; }

/* ---------- 12. 折叠面板 ---------- */
.fold {
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.fold + .fold { margin-top: 8px; }
.fold:hover { border-color: var(--cyan-400); }

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--orange-500);
  transition: transform var(--dur) var(--ease);
}
.fold[open] summary::after { transform: rotate(45deg); }
.fold[open] summary { border-bottom: 1px solid var(--line); }

.fold-body {
  padding: 16px 20px 20px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 13. 媒体容器（响应式图片基础） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 227, 196, .16) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(47, 227, 196, .16) 0 1px, transparent 1px 56px);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.06);
}

.media-frame[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3-4"] { aspect-ratio: 3 / 4; }
.media-frame[data-ratio="21-9"] { aspect-ratio: 21 / 9; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--graphite);
}

/* ---------- 14. 斜切分割带 ---------- */
.divider-bevel {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}

.divider-bevel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.divider-bevel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400) 42%, var(--orange-500) 68%, transparent);
  opacity: .85;
}

/* ---------- 15. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 12px var(--gutter) 0;
  font-family: var(--font-sans);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 10px; }

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}

.scroll-meter-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  transition: width 90ms linear;
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  background: var(--ink-900);
  border: 1px solid rgba(47, 227, 196, .26);
  border-radius: var(--pill);
  box-shadow: 0 20px 44px -32px rgba(8, 28, 23, .95);
  transition: padding var(--dur) var(--ease), border-radius var(--dur) var(--ease),
              max-width var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] .header-shell {
  max-width: 1156px;
  padding-block: 5px;
  border-radius: 22px;
  box-shadow: 0 16px 34px -26px rgba(8, 28, 23, .95);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 10px;
}

.brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(140deg, var(--cyan-400) 0 58%, var(--orange-500) 58% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

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

.brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .07em;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(232, 243, 238, .58);
  margin-top: 2px;
}

/* 主导航 */
.primary-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  color: rgba(232, 243, 238, .82);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover {
  color: var(--cyan-400);
  background: rgba(47, 227, 196, .12);
}
.nav-link[aria-current="page"] {
  background: var(--cyan-400);
  color: var(--ink-900);
  font-weight: 600;
}

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

.tool-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 13px;
  color: rgba(232, 243, 238, .76);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tool-link:hover {
  color: var(--cyan-400);
  border-color: rgba(47, 227, 196, .42);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--orange-500);
  color: #21100A;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header-cta:hover {
  background: var(--cyan-400);
  color: var(--ink-900);
  transform: translateY(-1px);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 227, 196, .32);
  border-radius: var(--pill);
  color: var(--ink-text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: rgba(47, 227, 196, .12);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background var(--dur) var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.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); }

/* 收藏联赛快捷栏 */
.header-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 8px auto 0;
  padding: 6px 14px;
  max-height: 72px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  transition: max-height 220ms var(--ease), margin-top 220ms var(--ease),
              opacity 160ms var(--ease), padding 220ms var(--ease),
              border-width 120ms var(--ease);
}

.site-header[data-scrolled="true"] .header-rail {
  max-height: 0;
  margin-top: 0;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
}

.rail-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--graphite);
}

.rail-list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-list::-webkit-scrollbar { display: none; }

.rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink-700);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.rail-link:hover {
  background: var(--orange-100);
  border-color: var(--orange-500);
  color: #5A2A08;
}

.rail-note {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--graphite);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  background: var(--ink-900);
  color: var(--ink-text);
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(47, 227, 196, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 227, 196, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 96px;
  z-index: 0;
  background: linear-gradient(96deg, transparent 0 47%, rgba(47, 227, 196, .5) 47% 47.3%, transparent 47.3%),
              linear-gradient(96deg, transparent 0 41%, rgba(255, 138, 61, .45) 41% 41.25%, transparent 41.25%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.footer-wordmark {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--white);
}

.footer-note {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 243, 238, .72);
}

.footer-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--orange-500);
}

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

.footer-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-group-title::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--orange-500);
  transform: rotate(-12deg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(232, 243, 238, .78);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-link:hover {
  color: var(--cyan-400);
  transform: translateX(2px);
}

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

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(232, 243, 238, .5);
}

.contact-val {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-text);
  word-break: break-word;
}

.contact-hours {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--orange-500);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(232, 243, 238, .62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(47, 227, 196, .18);
  font-size: 12.5px;
  color: rgba(232, 243, 238, .55);
}

.legal-copy { min-width: 0; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.legal-links a {
  color: rgba(232, 243, 238, .72);
  transition: color var(--dur) var(--ease);
}
.legal-links a:hover { color: var(--cyan-400); }

.legal-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(232, 243, 238, .48);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 0 8px; font-size: 13px; }
  .tool-link { display: none; }
}

@media (max-width: 960px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 10px 7px 14px;
    border-radius: 26px;
  }

  .site-header[data-scrolled="true"] .header-shell { border-radius: 22px; }

  .brand-sub { display: none; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    justify-content: stretch;
    padding: 8px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: var(--ink-900);
    border: 1px solid rgba(47, 227, 196, .26);
    border-radius: 20px;
    box-shadow: 0 24px 48px -30px rgba(8, 28, 23, 1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  }

  .primary-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    font-size: 14.5px;
    border-radius: 12px;
  }

  .header-rail { margin-top: 6px; padding: 6px 12px; }
  .rail-note { display: none; }
}

@media (max-width: 720px) {
  .header-cta { padding: 0 12px; font-size: 12.5px; min-height: 38px; }
  .nav-toggle { width: 40px; height: 40px; }

  .header-rail { gap: 8px; }
  .rail-label { font-size: 9.5px; letter-spacing: .1em; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-icp { margin-left: 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 14.5px; }
  .header-cta { font-size: 12px; padding: 0 10px; }
}

@media (min-width: 721px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.5fr .75fr .75fr .85fr 1.2fr;
    align-items: start;
  }
  .footer-brand { grid-column: auto; }
}

/* ---------- 18. 无障碍与动效降级 ---------- */
:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  box-shadow: var(--ring);
  border-radius: 4px;
}

.panel-ink :where(a, button, summary):focus-visible,
.site-footer :where(a, button, summary):focus-visible {
  outline-color: var(--cyan-400);
  box-shadow: 0 0 0 8px rgba(47, 227, 196, .2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .btn:hover,
  .header-cta:hover,
  .footer-link:hover { transform: none; }
}
