/* ===========================================================
   宝威体育中文站 · 共享站点样式 /assets/site.css
   视觉母题：夜场战术板 · 堆叠赛季档案
   =========================================================== */

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

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

:target { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #050D0B;
  --ink-800: #0A1F19;
  --ink-700: #0E2A22;
  --blue-900: #0B1B2A;
  --pitch-700: #123B2E;
  --glass-green: rgba(18, 59, 46, 0.55);
  --cyan: #1FF5D0;
  --amber: #F2B84B;
  --paper: #E8FFF9;
  --muted: #A8C0BA;
  --coral: #FF7A5C;
  --line-soft: rgba(232, 255, 249, 0.10);
  --line-cyan: rgba(31, 245, 208, 0.18);

  --rail-w: 280px;
  --header-h: 64px;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --gutter: clamp(18px, 5vw, 56px);
  --step: clamp(20px, 3.2vw, 40px);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.32);
}

/* ---------- 3. 中文排版与页面底座 ---------- */
body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 70% at 88% -10%, rgba(11, 27, 42, 0.9), transparent 62%),
    radial-gradient(90% 60% at 6% 8%, rgba(18, 59, 46, 0.45), transparent 66%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

@media (min-width: 1080px) {
  :root { --header-h: 0px; }
  body { padding-left: var(--rail-w); }
}

h1, .h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { max-width: 68ch; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

button { cursor: pointer; }

strong { font-weight: 800; color: var(--paper); }

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

/* ---------- 4. 跳转与无障碍工具 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 300;
  padding: 0.7rem 1.15rem;
  background: var(--cyan);
  color: #04211B;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

.visually-hidden {
  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;
}

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main { display: block; }

.grid { display: grid; gap: clamp(14px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-shift { grid-template-columns: 1fr; }

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

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

.stack > * + * { margin-top: 1rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- 6. 文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.62rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(242, 184, 75, 0.10);
  border: 1px solid rgba(242, 184, 75, 0.38);
  border-radius: 3px;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

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

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

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(18px, 3vw, 34px);
  background: linear-gradient(90deg, var(--line-cyan), transparent 72%);
}

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--cyan);
  color: #04211B;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 245, 208, 0.22);
}

.btn-ghost {
  background: var(--glass-green);
  color: var(--paper);
  border-color: var(--line-cyan);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(18, 59, 46, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.chip:hover { color: var(--cyan); border-color: var(--line-cyan); }

.chip[aria-pressed="true"] {
  color: #04211B;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- 8. 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: var(--step);
  background: linear-gradient(180deg, rgba(10, 31, 25, 0.97) 0%, rgba(6, 17, 13, 0.98) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel + .panel { margin-top: clamp(16px, 2.6vw, 28px); }

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(31, 245, 208, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 245, 208, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.panel-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.panel-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.cut-card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(165deg, var(--ink-700), #091D16 82%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs) var(--r-md) var(--r-xs) var(--r-md);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color 0.18s ease, transform 0.18s var(--ease);
}

.cut-card:hover { border-color: rgba(31, 245, 208, 0.55); }

.cut-card:focus-within {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.glass {
  background: var(--glass-green);
  border: 1px solid rgba(232, 255, 249, 0.14);
  border-radius: var(--r-md);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

/* ---------- 9. 表格 ---------- */
.table-scroll { position: relative; }

.table-scroll-box {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(6, 17, 13, 0.62);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 245, 208, 0.45) transparent;
}

.table-scroll-box::-webkit-scrollbar { height: 8px; }
.table-scroll-box::-webkit-scrollbar-track { background: rgba(232, 255, 249, 0.05); }
.table-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(31, 245, 208, 0.42);
  border-radius: 999px;
}

.table-scroll-hint {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 192, 186, 0.78);
}

.data-table {
  width: 100%;
  min-width: 660px;
  font-size: 0.95rem;
}

.data-table caption {
  padding: 0.9rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(232, 255, 249, 0.08);
}

.data-table thead th {
  background: rgba(18, 59, 46, 0.92);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(odd) { background: rgba(18, 59, 46, 0.22); }
.data-table tbody tr:hover { background: rgba(31, 245, 208, 0.08); }
.data-table th.num,
.data-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---------- 10. 图片容器 ---------- */
.figure-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background:
    radial-gradient(130% 90% at 24% 0%, rgba(31, 245, 208, 0.16), transparent 58%),
    linear-gradient(155deg, var(--blue-900) 0%, var(--pitch-700) 58%, var(--ink-900) 100%);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(232, 255, 249, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232, 255, 249, 0.12) 1px, transparent 1px);
  background-size: 12.5% 25%;
  opacity: 0.45;
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure-caption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { padding-block: clamp(18px, 3vw, 30px) 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(168, 192, 186, 0.5);
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumb-current { color: var(--paper); }

/* ---------- 12. 头部 / 侧轨导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 clamp(14px, 4vw, 20px);
  background: rgba(5, 13, 11, 0.96);
  border-bottom: 1px solid var(--line-cyan);
  z-index: 120;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    0deg,
    rgba(31, 245, 208, 0.05) 0 1px,
    transparent 1px 34px
  );
  display: none;
  z-index: 0;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #04211B;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand-mark--sm { width: 34px; height: 34px; font-size: 0.8rem; }

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  z-index: 126;
  margin-left: auto;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(18, 59, 46, 0.6);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-sm);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: background-color 0.16s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84vw, 336px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 16px) 20px 24px;
  background: linear-gradient(165deg, #0A1F19 0%, #08160F 58%, #050D0B 100%);
  border-right: 1px solid var(--line-cyan);
  box-shadow: 26px 0 70px rgba(0, 0, 0, 0.62);
  transform: translateX(-102%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform 0.24s var(--ease), visibility 0.24s linear;
  z-index: 130;
}

.site-header[data-open] .site-nav {
  transform: translateX(0);
  visibility: visible;
}

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

.nav-item { border-bottom: 1px solid rgba(232, 255, 249, 0.08); }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.2rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-link::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: rgba(232, 255, 249, 0.16);
  transition: background-color 0.18s ease, height 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--cyan); }

.nav-link:hover::before { background: var(--cyan); }

.nav-link[aria-current="page"] { color: var(--cyan); }

.nav-link[aria-current="page"]::before {
  background: var(--cyan);
  height: 22px;
}

.rail-foot {
  margin-top: auto;
  padding-top: 28px;
}

.rail-cta {
  display: block;
  padding: 0.8rem 1rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #04211B;
  background: var(--cyan);
  border-radius: 2px var(--r-sm) 2px var(--r-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.rail-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 245, 208, 0.24);
}

.rail-cta:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.rail-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 7, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 125;
}

.site-header[data-open] .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1079.98px) {
  .brand-tagline { display: none; }
  body.is-nav-open { overflow: hidden; }
}

@media (min-width: 1080px) {
  .site-header {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 20px 22px;
    background: linear-gradient(180deg, var(--blue-900) 0%, #08170F 52%, var(--ink-900) 100%);
    border-bottom: 0;
    border-right: 1px solid var(--line-cyan);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header::before { display: block; }

  .nav-toggle { display: none; }
  .nav-scrim { display: none; }

  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    margin-top: 34px;
    flex: 1 1 auto;
    min-height: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
    transition: none;
  }

  .nav-item { border-bottom: 1px solid rgba(232, 255, 249, 0.07); }

  .nav-link { font-size: 0.98rem; padding: 0.72rem 0.2rem; }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #06120F 0%, var(--blue-900) 58%, var(--ink-900) 100%);
  border-top: 1px solid var(--line-cyan);
  overflow: hidden;
}

.footer-stripe {
  height: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(31, 245, 208, 0.5) 0 28px,
      rgba(31, 245, 208, 0.08) 28px 56px
    ),
    linear-gradient(90deg, var(--pitch-700), var(--blue-900));
}

.footer-inner {
  padding-block: clamp(32px, 5vw, 60px) clamp(20px, 3vw, 30px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.footer-name {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  max-width: none;
}

.footer-name-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-summary {
  max-width: 44ch;
  font-size: 0.95rem;
  color: var(--muted);
}

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

@media (max-width: 479.98px) {
  .footer-groups { grid-template-columns: 1fr; }
}

.footer-group-title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-links { display: grid; gap: 0.55rem; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-link::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.footer-link:hover { color: var(--cyan); }
.footer-link:hover::before { transform: scaleX(1); }

.footer-contact {
  display: grid;
  gap: 1rem;
  margin-top: clamp(24px, 4vw, 44px);
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 860px) {
  .footer-contact {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
  }
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  max-width: none;
}

.contact-list { display: grid; gap: 0.7rem; }

.contact-line {
  display: grid;
  gap: 0.1rem;
  font-size: 0.95rem;
}

@media (min-width: 560px) {
  .contact-line {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: baseline;
  }
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--paper);
  word-break: break-word;
}

.footer-note {
  max-width: 62ch;
  margin-top: clamp(18px, 3vw, 26px);
  padding-left: 1rem;
  border-left: 2px solid rgba(242, 184, 75, 0.5);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: clamp(16px, 2.6vw, 22px);
  border-top: 1px solid var(--line-soft);
}

.legal-copy {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(168, 192, 186, 0.82);
  max-width: none;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(18, 59, 46, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease);
}

.to-top:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
  transform: translateY(-2px);
}

/* ---------- 14. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: var(--header-h);
  right: 0;
  bottom: 0;
  width: 3px;
  pointer-events: none;
  background: rgba(232, 255, 249, 0.05);
  z-index: 110;
}

.scroll-progress-bar {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(31, 245, 208, 0.5) 62%, var(--amber) 100%);
}

/* ---------- 15. 显现动效 ---------- */
.reveal { transition: opacity 0.3s ease, transform 0.3s var(--ease); }

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: 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.js-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav { transition: none; }
  .scroll-progress-bar { transition: none; }
}
