/* ═══════════════════════════════════════════════════════
   爱游戏赛场 · 共享样式 /assets/site.css
   高原靛蓝 + 湖青冷底，荧光橙与信号绿做计分牌爆点
   ═══════════════════════════════════════════════════════ */

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

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

:root {
  --indigo: #0E2C4F;
  --indigo-deep: #0A2038;
  --teal: #0F5E63;
  --cream: #F6F1E4;
  --cream-soft: #FBF8EF;
  --ink: #1B1512;
  --orange: #FF6A2B;
  --green: #38D47A;
  --sand: #E8DFC9;
  --mist: #C9D8D6;
  --ember: #C8401E;
  --ice: #7FD3D8;

  --rail-w: 88px;
  --rail-open: 252px;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;

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

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-rail: 0 24px 64px rgba(10, 32, 56, 0.32);
  --shadow-card: 0 18px 40px rgba(14, 44, 79, 0.10);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
main { display: block; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--ice); }

#main-content { scroll-margin-top: 84px; }
#main-content:focus { outline: none; }

[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--ink); }

@media (min-width: 640px) {
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── 2. 排版原子 ─────────────────────────────────────── */
.display {
  font-size: clamp(40px, 9vw, 112px);
  line-height: 0.94;
  font-weight: 200;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.7;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}

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

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-title {
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-note {
  max-width: 48ch;
  margin: 0;
  font-size: 15px;
  color: rgba(27, 21, 18, 0.72);
}

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

.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--ink { background: var(--indigo); color: var(--cream); }
.section--teal { background: var(--teal); color: var(--cream); }
.section--sand { background: var(--sand); }

.section--ink .section-note,
.section--teal .section-note { color: rgba(246, 241, 228, 0.74); }
.section--ink .eyebrow,
.section--teal .eyebrow { color: var(--ice); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
}

.stack { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.rule {
  border: 0;
  border-top: 1px dashed rgba(27, 21, 18, 0.22);
  margin: clamp(22px, 3vw, 40px) 0;
}
.section--ink .rule,
.section--teal .rule { border-top-color: rgba(246, 241, 228, 0.24); }

/* ── 4. 按钮 / 标签 / 筛选 ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 106, 43, 0.28);
}
.btn--primary:hover { background: #ff7d47; transform: translateY(-1px); }
.btn--primary:active { background: var(--ember); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(27, 21, 18, 0.26);
}
.btn--ghost:hover { background: var(--sand); border-color: rgba(27, 21, 18, 0.44); }

.btn--onDark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 228, 0.4);
}
.btn--onDark:hover { background: rgba(246, 241, 228, 0.12); border-color: var(--cream); }

.btn--small { padding: 8px 16px; font-size: 13.5px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--sand);
  color: var(--ink);
}
.pill--orange { background: var(--orange); color: var(--ink); }
.pill--green { background: rgba(56, 212, 122, 0.18); color: #0B5232; }
.pill--teal { background: var(--teal); color: var(--cream); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(56, 212, 122, 0.22);
  display: inline-block;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pip-pulse 2.4s var(--ease) infinite; }
}

@keyframes pip-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 212, 122, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(56, 212, 122, 0.05); }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: var(--r-pill);
  background: rgba(232, 223, 201, 0.78);
  width: fit-content;
  max-width: 100%;
}

.filter-btn {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(27, 21, 18, 0.68);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.72); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--indigo); color: var(--cream); }
.filter-btn[aria-pressed="true"] .filter-count { color: var(--ice); }
.filter-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.filter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.72;
}

.filter-empty,
.empty-note {
  font-size: 14px;
  color: rgba(27, 21, 18, 0.6);
  padding: 14px 2px;
}

.is-filtered { display: none !important; }

.is-muted {
  opacity: 0.3;
  filter: grayscale(0.4);
  transition: opacity var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  [data-filter-item].is-shown { animation: item-fade 320ms var(--ease) both; }
}

@keyframes item-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── 5. 卡片 / 图像容器 / 表格 ───────────────────────── */
.card {
  background: var(--cream-soft);
  border: 1px solid rgba(27, 21, 18, 0.08);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.2vw, 28px);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.card:hover {
  border-color: rgba(15, 94, 99, 0.32);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card--sand { background: var(--sand); border-color: transparent; }

.card--indigo {
  background: var(--indigo);
  color: var(--cream);
  border-color: transparent;
}
.card--indigo .card-text { color: rgba(246, 241, 228, 0.74); }

.card-title {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
}

.card-text {
  margin: 0;
  font-size: 15px;
  color: rgba(27, 21, 18, 0.74);
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sand);
  isolation: isolate;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--banner { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 38%, rgba(255, 106, 43, 0.55), transparent 42%),
    radial-gradient(circle at 68% 64%, rgba(56, 212, 122, 0.4), transparent 46%),
    repeating-linear-gradient(90deg, rgba(246, 241, 228, 0.14) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(246, 241, 228, 0.12) 0 1px, transparent 1px 64px),
    linear-gradient(155deg, var(--teal), var(--indigo));
}

.media-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.media-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(27, 21, 18, 0.6);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(27, 21, 18, 0.1);
  background: var(--cream-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  position: sticky;
  top: 0;
  background: var(--sand);
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-top: 1px solid rgba(27, 21, 18, 0.08);
}
.data-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(27, 21, 18, 0.6);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── 6. 入场（仅透明度+轻微位移，可降级） ────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── 7. 页头：移动端顶栏 + 抽屉；桌面端侧边轨道 ─────── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--dur-base) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--indigo);
  color: var(--cream);
  border-bottom: 1px solid rgba(246, 241, 228, 0.16);
}

.header-rail { display: flex; flex-direction: column; }

.header-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  background: var(--indigo);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--cream);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--teal), var(--indigo-deep));
  box-shadow: inset 0 0 0 1px rgba(246, 241, 228, 0.3);
}
.brand-mark-pip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.24);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; pointer-events: none; }
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.brand-line {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 228, 0.62);
  white-space: nowrap;
}

.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.search-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(246, 241, 228, 0.3);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.search-toggle:hover,
.nav-toggle:hover { background: rgba(246, 241, 228, 0.12); border-color: rgba(246, 241, 228, 0.55); }
.search-toggle[aria-expanded="true"],
.nav-toggle[aria-expanded="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.search-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
}
.search-toggle-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 抽屉导航（移动端） */
.site-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(86vw, 348px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 88px 20px 28px;
  background: var(--indigo);
  border-right: 1px solid rgba(246, 241, 228, 0.16);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}

.site-header[data-open="true"] .site-nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-base) var(--ease), visibility 0s linear 0s;
}

.site-header[data-open="true"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(10, 32, 56, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

body.nav-locked { overflow: hidden; }

.nav-kicker {
  margin: 0;
  padding-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, 0.5);
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 14px;
  border-radius: var(--r-pill);
  color: rgba(246, 241, 228, 0.82);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-link:hover { background: rgba(246, 241, 228, 0.1); color: var(--cream); }

.nav-link[aria-current="page"] {
  background: rgba(246, 241, 228, 0.12);
  color: var(--cream);
}
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--orange);
}

.nav-index {
  flex: 0 0 auto;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 228, 0.5);
}
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.nav-label { pointer-events: none; }

.nav-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 6px;
  border-top: 1px dashed rgba(246, 241, 228, 0.2);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 228, 0.66);
}
.nav-status-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(56, 212, 122, 0.2);
  flex: 0 0 auto;
}

.nav-extra {
  font-size: 13px;
  color: rgba(246, 241, 228, 0.7);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(127, 211, 216, 0.6);
  width: fit-content;
}
.nav-extra:hover { color: var(--cream); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: #ff7d47; transform: translateY(-1px); }
.nav-cta:active { background: var(--ember); color: var(--cream); }

.nav-progress { display: none; }

/* 检索浮层（移动端为头顶下拉） */
.site-search {
  border-top: 1px solid rgba(246, 241, 228, 0.16);
  background: var(--indigo-deep);
  padding: 12px var(--gutter) 16px;
}

.site-search-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.site-search-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ice);
}

.site-search-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid rgba(246, 241, 228, 0.32);
  border-radius: var(--r-pill);
  background: rgba(246, 241, 228, 0.07);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
}
.site-search-input::placeholder { color: rgba(246, 241, 228, 0.45); }
.site-search-input:focus-visible { outline-color: var(--orange); }

.site-search-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 228, 0.6);
}

/* 桌面端：侧边轨道 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid rgba(246, 241, 228, 0.16);
    transition: width var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  }

  .site-header:hover,
  .site-header:focus-within,
  .site-header[data-open="true"] {
    width: var(--rail-open);
    box-shadow: var(--shadow-rail);
  }

  .header-rail { height: 100%; }

  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 22px 0 10px;
  }

  .brand { padding-left: 26px; }

  .brand-text {
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-header:hover .brand-text,
  .site-header:focus-within .brand-text,
  .site-header[data-open="true"] .brand-text {
    opacity: 1;
    transition-delay: 90ms;
  }

  .header-tools { flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 24px; }

  .search-toggle { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .search-toggle-text { display: none; }
  .nav-toggle { display: none; }

  .site-nav {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    padding: 6px 12px 0;
    transform: none;
    visibility: visible;
    background: transparent;
    border-right: 0;
    overflow: visible;
    transition: none;
  }

  .nav-kicker {
    padding-left: 12px;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .nav-label {
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-header:hover .nav-kicker,
  .site-header:focus-within .nav-kicker,
  .site-header[data-open="true"] .nav-kicker,
  .site-header:hover .nav-label,
  .site-header:focus-within .nav-label,
  .site-header[data-open="true"] .nav-label {
    opacity: 1;
    transition-delay: 90ms;
  }

  .nav-foot {
    opacity: 0;
    pointer-events: none;
    border-top: 0;
    padding: 12px 12px 22px;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-header:hover .nav-foot,
  .site-header:focus-within .nav-foot,
  .site-header[data-open="true"] .nav-foot {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 110ms;
  }

  .nav-progress {
    display: block;
    position: absolute;
    top: 0;
    right: -12px;
    bottom: 0;
    width: 3px;
    background: rgba(246, 241, 228, 0.12);
    border-radius: var(--r-pill);
    overflow: hidden;
  }
  .nav-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(var(--orange), var(--green));
  }

  .site-search {
    position: fixed;
    top: 0;
    left: var(--rail-w);
    right: 0;
    z-index: 5;
    padding: 18px var(--gutter);
    border-top: 0;
    border-bottom-left-radius: var(--r-lg);
    border-bottom-right-radius: var(--r-lg);
    box-shadow: 0 22px 48px rgba(10, 32, 56, 0.3);
  }
  .site-search-inner { max-width: var(--wrap); margin-inline: auto; }

  #main-content { scroll-margin-top: 24px; }
}

@media (max-width: 639px) {
  .search-toggle-text { display: none; }
  .search-toggle { padding: 9px 11px; }
  .brand-line { display: none; }
}

/* ── 8. 页脚 ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--indigo);
  color: var(--cream);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 94, 99, 0.9), transparent 68%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 26%, var(--green) 26%, var(--green) 44%, var(--ice) 44%, var(--ice) 100%);
  opacity: 0.9;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(26px, 4vw, 44px);
}

.footer-lead { display: grid; gap: 12px; justify-items: start; align-content: start; }

.footer-brand {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.footer-brand:hover { color: var(--orange); }

.footer-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.footer-note {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 241, 228, 0.68);
}

.footer-cta { margin-top: 6px; }

.footer-nav {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-content: start;
}

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

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, 0.5);
}

.footer-list { display: grid; gap: 2px; }
.footer-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  color: rgba(246, 241, 228, 0.82);
  transition: color var(--dur-fast) var(--ease);
}
.footer-list a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--orange);
}

.footer-contact-list { display: grid; gap: 2px; }
.footer-contact-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(246, 241, 228, 0.16);
}
.footer-contact-list li:last-child { border-bottom: 0; }

.footer-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(246, 241, 228, 0.5);
}

.footer-val {
  font-size: 14.5px;
  color: var(--cream);
  word-break: break-word;
}

.footer-service {
  margin: 12px 0 0;
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(246, 241, 228, 0.55);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(246, 241, 228, 0.16);
  font-size: 12.5px;
  color: rgba(246, 241, 228, 0.55);
}

.footer-copy { margin: 0; }
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.footer-links a { color: rgba(246, 241, 228, 0.72); }
.footer-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.footer-sep { color: rgba(246, 241, 228, 0.28); }

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr); }
  .footer-lead { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, 0.95fr);
    align-items: start;
  }
  .footer-lead,
  .footer-contact { grid-column: auto; }
}

/* ── 9. 动效降级 ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn--primary:hover,
  .nav-cta:hover { transform: none; }
}
