/* ============================================================
   八方体育网 /assets/site.css
   高原夜空 · 联赛档案室 — 共享外壳样式
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

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

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

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

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

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

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --night: #0A1A2F;
  --archive: #0E1522;
  --slate: #1C2635;

  --lake: #29B9A4;
  --glow: #74F0DA;
  --flag: #E1543A;
  --amber: #F0A24B;
  --moss: #6F8B5C;
  --clay: #C57A5B;

  --cream: #F3EFE4;
  --cold: #E8F1F4;
  --stone: #8B93A1;

  --line: rgba(139, 147, 161, 0.26);
  --line-soft: rgba(139, 147, 161, 0.14);
  --line-glow: rgba(116, 240, 218, 0.42);

  --rail-w: 17.5rem;
  --bar-h: 4rem;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 78rem;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
html { background: var(--night); }

body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--night);
  background-image:
    radial-gradient(62rem 42rem at 94% -10%, rgba(41, 185, 164, 0.17), transparent 62%),
    radial-gradient(48rem 34rem at 2% 106%, rgba(225, 84, 58, 0.12), transparent 64%),
    radial-gradient(40rem 30rem at 60% 40%, rgba(111, 139, 92, 0.07), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

::selection { background: rgba(116, 240, 218, 0.28); color: #fff; }

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

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #04131c;
  background: var(--glow);
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============================================================
   站点头部 —— 侧边栏目轨道 / 移动状态条
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--archive);
  border-bottom: 1px solid var(--line);
}

/* 滚动进度 */
.rail-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line-soft);
  pointer-events: none;
}
.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lake), var(--glow));
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform 0.1s linear;
}

/* 顶部行 */
.rail-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: var(--bar-h);
  padding: 0.6rem var(--gutter);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.brand__mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: linear-gradient(150deg, var(--glow), var(--lake) 58%, #17756d);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  transition: transform 0.26s var(--ease), filter 0.26s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(45deg);
  filter: brightness(1.1);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  white-space: nowrap;
}

/* 赛季状态条 */
.rail-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  color: var(--stone);
}
.rail-status__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 162, 75, 0.15);
}
.rail-status__text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}
.rail-status__label {
  color: var(--stone);
  white-space: nowrap;
}
.rail-status__value {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--cold);
  white-space: nowrap;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--cold);
  background: rgba(28, 38, 53, 0.5);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover {
  color: var(--glow);
  border-color: var(--line-glow);
}
.nav-toggle__icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }

.site-header[data-open] .nav-toggle__icon { background: transparent; }
.site-header[data-open] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

/* 抽屉 / 轨道内容 */
.rail-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--bar-h);
  z-index: 2;
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
  padding: 1.15rem var(--gutter) 1.75rem;
  background: var(--archive);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
}
.site-header[data-open] .rail-drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(10, 26, 47, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), visibility 0.24s linear;
}
.site-header[data-open] .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 栏目轨道标签 */
.rail-nav__cap,
.rail-tools__cap {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139, 147, 161, 0.9);
}
.rail-nav__cap::after,
.rail-tools__cap::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--lake);
  opacity: 0.65;
}

/* 导航列表 */
.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.rail-nav__link {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.6rem 0.65rem 0.7rem;
  border-left: 2px solid transparent;
  color: var(--stone);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.rail-nav__idx {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(139, 147, 161, 0.7);
  transition: color 0.2s var(--ease);
}
.rail-nav__label {
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-nav__link:hover {
  color: var(--cold);
  transform: translateX(3px);
  background: rgba(28, 38, 53, 0.55);
}
.rail-nav__link:hover .rail-nav__idx { color: var(--lake); }

.rail-nav__link[aria-current="page"] {
  color: var(--cream);
  border-left-color: var(--glow);
  background: linear-gradient(90deg, rgba(41, 185, 164, 0.18), rgba(41, 185, 164, 0) 72%);
}
.rail-nav__link[aria-current="page"] .rail-nav__idx { color: var(--glow); }
.rail-nav__link[aria-current="page"] .rail-nav__label { font-weight: 600; }

/* 快速入口 */
.rail-tools {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.rail-tools .btn { width: 100%; }

/* ---------- 桌面端：常驻侧边轨道 ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 2rem; }

  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .site-header {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1.75rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .rail-progress {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--line-soft);
  }
  .rail-progress__bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--glow), var(--lake) 70%, rgba(41, 185, 164, 0.15));
    transform-origin: top center;
    transform: scaleY(var(--p, 0));
  }

  .rail-top {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    min-height: 0;
    padding: 0;
  }

  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.2rem; }

  .rail-status {
    gap: 0.6rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(28, 38, 53, 0.55);
  }

  .nav-toggle { display: none; }

  .rail-drawer {
    position: static;
    inset: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-top: 1.9rem;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .rail-tools { margin-top: auto; }

  .nav-scrim { display: none; }
}

/* ============================================================
   通用页面容器与组件
   ============================================================ */
.page-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.section__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.section__index {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--lake);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
  max-width: 24ch;
}

.section__lede {
  margin-top: 0.9rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: rgba(232, 241, 244, 0.72);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lake);
}

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

.prose {
  max-width: 68ch;
  color: rgba(243, 239, 228, 0.86);
  font-size: 1rem;
  line-height: 1.78;
}
.prose p + p { margin-top: 1.2em; }
.prose h2,
.prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; color: var(--cream); }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.prose h3 { font-size: 1.125rem; font-weight: 600; }
.prose ul,
.prose ol { margin-top: 0.9em; padding-left: 1.15em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }

.note {
  max-width: 34ch;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-glow);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(139, 147, 161, 0.95);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--lake);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.more-link::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.2s var(--ease);
}
.more-link:hover { color: var(--glow); }
.more-link:hover::after { transform: translateX(3px); }

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack--lg { gap: clamp(1.5rem, 4vw, 2.75rem); }

/* 面板 */
.panel {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, rgba(28, 38, 53, 0.92), rgba(14, 21, 34, 0.92));
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* 标识 chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--glow);
  border: 1px solid var(--line-glow);
  border-radius: 2px;
  background: rgba(41, 185, 164, 0.1);
}
.chip--flag {
  color: var(--flag);
  border-color: rgba(225, 84, 58, 0.5);
  background: rgba(225, 84, 58, 0.1);
}
.chip--moss {
  color: #A8C08F;
  border-color: rgba(111, 139, 92, 0.55);
  background: rgba(111, 139, 92, 0.12);
}
.chip--clay {
  color: #E0A184;
  border-color: rgba(197, 122, 91, 0.55);
  background: rgba(197, 122, 91, 0.12);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--cold);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--key {
  color: #04131c;
  font-weight: 600;
  background: var(--lake);
  border-color: var(--lake);
}
.btn--key:hover {
  background: var(--glow);
  border-color: var(--glow);
}

.btn--quiet { color: var(--cold); }
.btn--quiet:hover {
  color: var(--glow);
  border-color: var(--line-glow);
  background: rgba(41, 185, 164, 0.08);
}

.btn--ghost {
  color: var(--stone);
  border-color: var(--line-soft);
}
.btn--ghost:hover { color: var(--cold); border-color: var(--line); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(139, 147, 161, 0.45);
}
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--glow); }

/* 数据表 */
.data-table {
  width: 100%;
  font-size: 0.9375rem;
  color: var(--cold);
}
.data-table caption {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--stone);
  text-align: left;
}
.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.data-table thead th {
  position: sticky;
  top: var(--bar-h);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--stone);
  background: var(--slate);
  border-bottom: 1px solid var(--line);
}
.data-table tbody tr { transition: background-color 0.2s var(--ease); }
.data-table tbody tr:hover { background: rgba(41, 185, 164, 0.07); }
.data-table .num,
.data-table td.num { text-align: right; }

@media (min-width: 1024px) {
  .data-table thead th { top: 0; }
}

/* 横向长卷 */
.scroll-x {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.6rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--lake) transparent;
}
.scroll-x.is-dragging { cursor: grabbing; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-track { background: var(--line-soft); }
.scroll-x::-webkit-scrollbar-thumb { background: rgba(41, 185, 164, 0.55); }
.scroll-x:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }

/* 纵向时间轴 */
.timeline {
  position: relative;
  padding-left: 1.4rem;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--clay), rgba(197, 122, 91, 0.1));
}
.timeline__node {
  position: relative;
  padding-bottom: 1.6rem;
}
.timeline__node::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -1.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(197, 122, 91, 0.16);
}
.timeline__body { font-size: 0.9375rem; color: rgba(243, 239, 228, 0.82); }

/* 回到章节顶部 */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--stone);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top:hover { color: var(--glow); border-color: var(--line-glow); }

/* 图片占位容器 */
.figure { margin: 0; }
.figure__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(41, 185, 164, 0.16), rgba(10, 26, 47, 0.92) 62%),
    var(--slate);
  color: rgba(139, 147, 161, 0.75);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.94);
}
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 3 / 4; }
.figure__cap {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* 显现 */
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(2.5rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: var(--archive);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--stone);
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  margin-top: calc(clamp(2.5rem, 6vw, 4rem) * -1);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(90deg, var(--lake), var(--clay) 55%, transparent);
  opacity: 0.7;
}

.footer-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.35fr 1fr; gap: 2rem; }
}

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

.footer-block__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cold);
}

.footer-block__subtitle {
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 147, 161, 0.9);
}

.footer-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
}
.footer-list--tight { gap: 0.25rem; }
.footer-list a {
  display: inline-block;
  padding: 0.15rem 0;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-list a:hover {
  color: var(--glow);
  border-bottom-color: var(--line-glow);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}
.footer-contact li { display: grid; gap: 0.12rem; }
.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: rgba(139, 147, 161, 0.8);
}
.footer-contact__v {
  font-size: 0.875rem;
  color: var(--cold);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 0.9rem;
  max-width: 38ch;
  font-size: 0.75rem;
  line-height: 1.75;
  color: rgba(139, 147, 161, 0.88);
}

.footer-block--brand {
  padding-left: 1rem;
  border-left: 2px solid var(--line-glow);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.footer-sub {
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--stone);
}
.footer-icp {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(139, 147, 161, 0.9);
}
.footer-copy {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(139, 147, 161, 0.75);
}

@media (max-width: 639px) {
  .footer-block--brand {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
  }
}

/* ============================================================
   减少动效
   ============================================================ */
@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;
  }
  [data-reveal-ready] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .brand:hover .brand__mark { transform: none; }
  .rail-nav__link:hover { transform: none; }
  .btn:hover { transform: none; }
  .footer-list a:hover { transform: none; }
}
