/* ============================================================
   B体育官方 · 共享站点样式 /assets/site.css
   墨蓝转播席 + 奶油档案卡 + 切角与刻度
   ============================================================ */

:root {
  --ink: #0B1725;
  --ink-deep: #08121C;
  --panel: #13253A;
  --panel-2: #0F1E30;
  --cream: #F4EFE4;
  --paper-ink: #171310;
  --paper-muted: #6E6455;
  --cyan: #35E4CE;
  --orange: #FF6B2C;
  --gold: #E0B05C;
  --mist: #8FA3B8;
  --pine: #0E3B3A;
  --paper-shadow: #D9D2C4;

  --rail: 112px;
  --bar: 64px;
  --gutter: 24px;
  --wrap: 1240px;

  --line: rgba(143, 163, 184, 0.22);
  --line-soft: rgba(143, 163, 184, 0.12);
  --line-strong: rgba(143, 163, 184, 0.42);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;

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

  --cut-sm: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  --cut-md: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  --cut-lg: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(143, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p { line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.vert-note {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--mist);
  text-transform: uppercase;
}

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

/* ---------- 焦点与动效基线 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide { max-width: 1400px; }

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }

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

.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(244, 239, 228, 0.88);
}

.prose p { margin-bottom: 1em; }
.prose h2 { margin: 1.7em 0 0.55em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose strong { color: var(--cream); }

/* ---------- 通用按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 0;
  cursor: pointer;
  clip-path: var(--cut-md);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--paper-ink); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(53, 228, 206, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--warm {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.btn--warm:hover { background: var(--gold); border-color: var(--gold); color: var(--paper-ink); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist);
  background: rgba(143, 163, 184, 0.1);
  border: 1px solid var(--line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(143, 163, 184, 0.45); }
.breadcrumb a { color: var(--mist); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cream); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  clip-path: var(--cut-lg);
}

.card--paper {
  background: var(--cream);
  color: var(--paper-ink);
  border-color: var(--paper-shadow);
}

.card--paper a { color: var(--paper-ink); }

/* ---------- 图片容器（供页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut-lg);
}

.media img,
.media svg,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--1x2  { aspect-ratio: 1 / 2; }
.media--focus-top img { object-position: 50% 26%; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(8, 18, 28, 0) 0%, rgba(8, 18, 28, 0.86) 100%);
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 23, 37, 0.96) 100%);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: var(--cyan);
  color: var(--paper-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: var(--cut-sm);
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--bar);
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
  transition: background var(--dur) var(--ease);
}

.brand:hover .brand__mark { background: var(--orange); }

.brand__copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.brand__line {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.header-season {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.header-season__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.16);
}

.header-season__value {
  font-family: var(--font-mono);
  color: var(--cream);
  letter-spacing: 0.06em;
}

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

.tool-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.tool-link:hover {
  color: var(--cyan);
  border-color: rgba(53, 228, 206, 0.5);
  background: rgba(53, 228, 206, 0.07);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.site-header[data-open] .nav-toggle__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.scroll-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
  pointer-events: none;
}

/* ---------- 侧边轨道导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(var(--bar) + 12px) 9px 18px;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__pill { display: block; }

.round-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  background: var(--ink);
  border: 1px solid rgba(53, 228, 206, 0.42);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.round-pill:hover { background: rgba(53, 228, 206, 0.1); }

.round-pill[aria-expanded="true"] {
  background: rgba(53, 228, 206, 0.16);
  border-color: var(--cyan);
}

.round-pill__eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.round-pill__value {
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.rail__nav { display: block; }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  text-decoration: none;
  color: var(--mist);
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.rail__label {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.rail__link:hover {
  color: var(--cream);
  background: rgba(53, 228, 206, 0.07);
}

.rail__link[aria-current="page"] {
  color: var(--cream);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(53, 228, 206, 0.16), rgba(53, 228, 206, 0));
}

.rail__link[aria-current="page"] .rail__num {
  color: var(--cyan);
  opacity: 1;
}

.rail__foot {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--mist);
}

/* ---------- 轮次切换面板 ---------- */
.round-panel {
  position: fixed;
  top: calc(var(--bar) + 14px);
  left: calc(var(--rail) + 14px);
  z-index: 90;
  width: 306px;
  max-height: calc(100vh - var(--bar) - 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  background: var(--cream);
  color: var(--paper-ink);
  border: 1px solid var(--paper-shadow);
  box-shadow: 8px 8px 0 rgba(4, 10, 16, 0.5);
}

.round-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--paper-shadow);
}

.round-panel__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--paper-ink);
}

.round-panel__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.round-search { display: block; margin-bottom: 10px; }

.round-search__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-muted);
}

.round-search__input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--paper-ink);
  background: #FFFFFF;
  border: 1px solid var(--paper-shadow);
  border-radius: 0;
  appearance: none;
}

.round-search__input::placeholder { color: #A79C8B; }
.round-search__input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.round-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--paper-shadow);
  border: 1px solid var(--paper-shadow);
}

.round-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  background: var(--cream);
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--paper-ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.round-item:hover { background: #FFFFFF; }
.round-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.round-item[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}

.round-item__code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.round-item__name {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-item__round {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--paper-muted);
  white-space: nowrap;
}

.round-item[aria-pressed="true"] .round-item__code { color: var(--cyan); }
.round-item[aria-pressed="true"] .round-item__round { color: var(--mist); }

.round-panel__empty {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--paper-muted);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, var(--ink) 0%, #0A1A24 46%, var(--pine) 100%);
  border-top: 1px solid rgba(53, 228, 206, 0.22);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 42%, rgba(255, 107, 44, 0) 82%);
  opacity: 0.8;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 22px 32px;
  display: grid;
  gap: 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.footer-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}

.footer-brand__copy { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand__name { font-size: 16px; font-weight: 800; letter-spacing: 0.03em; }
.footer-brand__line {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.footer-callout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-cta { margin-left: auto; }

.fold-group {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.fold { border-top: 1px solid var(--line); }

.fold__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.fold__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--cream);
  transition: color var(--dur) var(--ease);
}

.fold__toggle:hover { color: var(--cyan); }

.fold__code {
  flex: 0 0 auto;
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.fold__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fold__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

.fold__chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-slow) var(--ease);
}

.fold__toggle[aria-expanded="true"] .fold__chev { transform: rotate(-135deg); }

.fold__panel {
  padding: 0 4px 22px 58px;
  animation: foldIn var(--dur-slow) var(--ease);
}

@keyframes foldIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.fold__list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}

.fold__list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.fold__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}

.fold__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.fold__date {
  display: inline-block;
  min-width: 44px;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.fold__more { color: rgba(143, 163, 184, 0.72); }
.fold__text { font-size: 13.5px; line-height: 1.7; color: var(--mist); max-width: 62ch; }

.fold__tail { margin-top: 12px; }

.fold__tail a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 228, 206, 0.45);
  padding-bottom: 1px;
}

.fold__tail a:hover { color: var(--cream); border-bottom-color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 239, 228, 0.26);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-contact {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 228, 0.78);
  word-break: break-word;
}

.footer-note { font-size: 11.5px; line-height: 1.6; color: var(--mist); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 184, 0.7);
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-season { display: none; }
  .header-tools { margin-left: auto; }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: calc(var(--bar) + 20px) 20px 36px;
    background: rgba(8, 18, 28, 0.985);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms var(--ease);
  }

  .site-header[data-open] .rail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .rail__pill { max-width: 340px; }

  .round-pill {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
  }

  .round-pill__eyebrow { font-size: 10.5px; }
  .round-pill__value { font-size: 14px; }

  .rail__list { gap: 2px; }

  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 13px 10px;
    border-left: 3px solid transparent;
  }

  .rail__label { font-size: 17px; }
  .rail__num { font-size: 10.5px; }

  .rail__foot {
    margin: 24px 0 0;
    text-align: left;
    padding-left: 10px;
  }

  .round-panel {
    top: calc(var(--bar) + 12px);
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - var(--bar) - 34px);
    box-shadow: 6px 6px 0 rgba(4, 10, 16, 0.5);
  }

  .site-footer { margin-top: 56px; }
}

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

@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .header-bar { gap: 12px; padding: 8px 16px; }
  .header-tools { display: none; }
  .nav-toggle { margin-left: auto; }

  .container { padding: 0 16px; }

  .section { padding: 40px 0; }

  .footer-inner { padding: 36px 16px 28px; gap: 24px; }
  .footer-cta { margin-left: 0; }
  .footer-callout { width: 100%; }
  .fold__panel { padding-left: 4px; }
  .fold__list--grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { margin-left: 0; width: 100%; }
  .round-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
}

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

  .fold__code { min-width: 38px; }
  .fold__title { font-size: 14px; }
  .fold__meta { display: none; }

  .brand__line { display: none; }
}

@media (max-width: 400px) {
  .nav-toggle__text { display: none; }
  .btn { width: 100%; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }

  .scroll-line { transition: none; }
}
