/* ===========================================================
   三亿体育 · 共享外壳样式 /assets/site.css
   夜场球场指挥中心：深墨绿底 + 荧光青轨道 + 计分橙数据点
   =========================================================== */

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

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

ol, ul { list-style: none; }

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

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

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

input, textarea, select { font: inherit; color: inherit; }

table { border-collapse: collapse; border-spacing: 0; }

::selection { background: var(--neon); color: var(--ink); }

/* ---------- tokens ---------- */
:root {
  --night: #08140F;
  --turf: #0E2A20;
  --neon: #3DF2C0;
  --mist: #9CE9D2;
  --score: #FF5A2B;
  --whistle: #FFB43D;
  --stand: #C8D3CE;
  --paper: #F2F7F4;
  --metal: #1F3A31;
  --ink: #04120D;

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

  --rail-w: 232px;
  --bar-h: 66px;
  --maxw: 1180px;
  --edge: 1px solid var(--metal);
  --paper-shadow: inset 0 1px 0 rgba(242, 247, 244, .05), 0 16px 32px -24px rgba(0, 0, 0, .95);
  --turf-lines: repeating-linear-gradient(115deg, rgba(61, 242, 192, .05) 0 2px, transparent 2px 20px);
}

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

body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  background-color: var(--night);
  background-image: repeating-linear-gradient(115deg, rgba(61, 242, 192, .03) 0 2px, transparent 2px 24px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(32px, 4.6vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }

p { max-width: 68ch; }

a:hover { color: var(--neon); }

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

#main-content { display: block; scroll-margin-top: calc(var(--bar-h) + 16px); }

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- header shell ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 70;
  display: flex;
  align-items: stretch;
  background: rgba(8, 20, 15, .96);
  border-bottom: 1px solid var(--metal);
}

.brand {
  position: relative;
  flex: 0 0 var(--rail-w);
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 18px;
  border-right: 1px solid var(--metal);
  background: linear-gradient(180deg, rgba(61, 242, 192, .07), rgba(8, 20, 15, 0) 78%);
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--neon);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .05em;
  color: var(--paper);
}

.brand__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--mist);
}

.commandbar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}

.commandbar__now {
  display: flex;
  align-items: baseline;
  gap: 9px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--stand);
}

.now__label { color: var(--mist); }

.now__value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--neon);
}

.search-entry {
  margin-left: auto;
  flex: 1 1 300px;
  min-width: 200px;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border: 1px solid var(--metal);
  background: rgba(14, 42, 32, .78);
  border-radius: 2px;
  transition: border-color .2s ease, background .2s ease;
}

.search-entry:hover {
  color: var(--paper);
  border-color: var(--neon);
  background: rgba(14, 42, 32, 1);
}

.search-entry__icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--mist);
  border-radius: 50%;
}

.search-entry__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -1px;
  width: 7px;
  height: 1.6px;
  background: var(--mist);
  transform: rotate(45deg);
}

.search-entry__text {
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--stand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--metal);
  border-radius: 2px;
  background: rgba(14, 42, 32, .7);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
  color: var(--paper);
  border-color: var(--mist);
  transform: translateY(-2px);
}

.btn--cta {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}

.btn--cta:hover {
  background: #63f6cb;
  border-color: #63f6cb;
  color: var(--ink);
}

.btn--score {
  background: var(--score);
  border-color: var(--score);
  color: #1B0700;
}

.btn--ghost {
  background: transparent;
  color: var(--mist);
}

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 40px;
  border: 1px solid var(--metal);
  border-radius: 2px;
  background: rgba(14, 42, 32, .7);
}

.nav-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--paper);
  transition: transform .24s ease, opacity .18s ease;
}

.nav-toggle__bar:nth-of-type(1) { top: 12px; }
.nav-toggle__bar:nth-of-type(2) { top: 19px; }
.nav-toggle__bar:nth-of-type(3) { top: 26px; }

.site-header[data-open] .nav-toggle__bar:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-of-type(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 赛程轴导航 ---------- */
.axis {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  width: var(--rail-w);
  height: calc(100vh - var(--bar-h));
  height: calc(100dvh - var(--bar-h));
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 16px 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(14, 42, 32, .96), rgba(8, 20, 15, .99));
  border-right: 1px solid var(--metal);
}

.axis::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 96px;
  bottom: 84px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--metal) 0 6px, transparent 6px 14px);
  pointer-events: none;
}

.axis__head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--mist);
  max-width: none;
}

.axis__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.axis__item { position: relative; }

.axis__item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border: 1px solid var(--metal);
  border-radius: 50%;
  background: var(--night);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.axis__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 10px 12px 30px;
  border-radius: 2px;
  color: var(--stand);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.axis__link:hover {
  color: var(--paper);
  background: rgba(61, 242, 192, .07);
  transform: translateX(2px);
}

.axis__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

.axis__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}

.axis__item.is-current::before,
.axis__item:has(.axis__link[aria-current="page"])::before {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(61, 242, 192, .16);
}

.axis__link[aria-current="page"] {
  color: var(--neon);
  background: linear-gradient(90deg, rgba(61, 242, 192, .16), rgba(61, 242, 192, 0));
}

.axis__link[aria-current="page"] .axis__idx { color: var(--neon); }

.axis__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--neon);
  transform-origin: center;
  animation: axis-tick .22s ease-out both;
}

.axis__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--stand);
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whistle);
  box-shadow: 0 0 8px rgba(255, 180, 61, .65);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes axis-tick {
  from { transform: scaleY(.15); opacity: .2; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- 滚动进度 ---------- */
.progress {
  position: absolute;
  left: var(--rail-w);
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--score));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 通用容器与页面骨架 ---------- */
.wrap {
  width: min(100% - 56px, var(--maxw));
  margin-inline: auto;
}

.section { padding: 56px 0; }
.section:first-child { padding-top: 40px; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--neon);
}

.section__title {
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 900;
}

.section__note {
  margin-left: auto;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
}

.page-head { padding: 44px 0 12px; }

.page-head__title { letter-spacing: -.03em; }

.page-head__lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--stand);
  max-width: 62ch;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--mist);
  text-transform: uppercase;
}

.prose { color: var(--stand); }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--paper); }
.prose a { color: var(--neon); border-bottom: 1px solid rgba(61, 242, 192, .5); }

.vert-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--mist);
}

.index-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .9;
  letter-spacing: -.04em;
  color: rgba(61, 242, 192, .22);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--stand);
}

.crumbs__link { color: var(--stand); }
.crumbs__link:hover { color: var(--neon); }
.crumbs__sep { color: var(--metal); }
.crumbs__now { color: var(--neon); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: 1.35fr .85fr; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: var(--turf);
  background-image: var(--turf-lines);
  border: var(--edge);
  box-shadow: var(--paper-shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #2E5648;
  box-shadow: inset 0 1px 0 rgba(242, 247, 244, .08), 0 28px 44px -28px rgba(0, 0, 0, .98);
}

.card--flat:hover { transform: none; }

.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--mist);
  text-transform: uppercase;
}

.card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}

.card__text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--stand);
  max-width: none;
}

/* ---------- 数字面板 ---------- */
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--paper);
}

.stat__num--neon { color: var(--neon); }
.stat__num--score { color: var(--score); }

.stat__unit {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mist);
}

.stat__label {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--stand);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--metal);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.tag--neon { color: var(--neon); border-color: rgba(61, 242, 192, .5); }
.tag--score { color: var(--score); border-color: rgba(255, 90, 43, .5); }
.tag--whistle { color: var(--whistle); border-color: rgba(255, 180, 61, .5); }

/* ---------- 折叠内容组 ---------- */
.disclosure {
  border: 1px solid var(--metal);
  background: rgba(14, 42, 32, .48);
}

.disclosure + .disclosure { margin-top: -1px; }

.disclosure__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--paper);
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary:hover { color: var(--neon); }

.disclosure__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  transition: background .2s ease, box-shadow .2s ease;
}

.disclosure[open] .disclosure__dot {
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(61, 242, 192, .15);
}

.disclosure__body {
  padding: 0 18px 18px 41px;
  color: var(--stand);
  font-size: 15px;
  animation: open-up .26s ease both;
}

@keyframes open-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 数据矩阵 ---------- */
.matrix-scroll {
  overflow-x: auto;
  border: var(--edge);
  background: rgba(14, 42, 32, .4);
}

.matrix {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.matrix th,
.matrix td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--metal);
  white-space: nowrap;
}

.matrix thead th {
  position: sticky;
  top: var(--bar-h);
  z-index: 2;
  background: #0B1E17;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--mist);
  text-transform: uppercase;
}

.matrix tbody tr:hover { background: rgba(61, 242, 192, .05); }

.num {
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  color: var(--paper);
}

.num--score { color: var(--score); }
.num--neon { color: var(--neon); }

/* ---------- 检索过滤 ---------- */
.filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: var(--edge);
  background: rgba(14, 42, 32, .58);
}

.filter__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--paper);
}

.filter__input::placeholder { color: #6E857C; }

.filter__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

[data-filter-item][hidden] { display: none; }

/* ---------- 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border: var(--edge);
  background-color: var(--turf);
  background-image:
    linear-gradient(155deg, rgba(61, 242, 192, .14), rgba(255, 90, 43, .08) 62%, rgba(8, 20, 15, 0)),
    var(--turf-lines);
  box-shadow: var(--paper-shadow);
}

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

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(8, 20, 15, .86);
  border-top: 1px solid var(--metal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}

/* ---------- 显现动效 ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(14, 42, 32, .62), rgba(8, 20, 15, 1));
  border-top: 1px solid var(--metal);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--score));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.25fr;
  gap: 40px;
  padding: 54px 0 40px;
}

.footer__brand { max-width: 38ch; }

.footer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--paper);
}

.footer__desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--stand);
  max-width: none;
}

.footer__icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
  max-width: none;
}

.footer__region {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stand);
  max-width: none;
}

.footer__col { min-width: 0; }

.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}

.footer__list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--stand);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer__link:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.footer__contact {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  max-width: none;
  word-break: break-all;
}

.footer__contact + .footer__contact { margin-top: 6px; }

.footer__label {
  flex: 0 0 auto;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .18em;
}

.footer__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--stand);
  max-width: 34ch;
}

.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px dashed var(--metal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--stand);
}

.footer__base p { max-width: none; }

.to-top {
  padding: 8px 14px;
  border: 1px solid var(--metal);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--stand);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, color .2s ease, border-color .2s ease;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1100px) {
  :root { --rail-w: 208px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 28px; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; --bar-h: 62px; }

  .site-header { align-items: stretch; }

  .brand {
    flex: 0 0 auto;
    width: auto;
    padding: 0 14px;
    border-right: 0;
  }

  .brand__name { font-size: 18px; }
  .brand__meta { display: none; }
  .brand::after { width: 28px; height: 2px; }

  .commandbar { padding: 0 12px; gap: 10px; }
  .commandbar__now { display: none; }

  .search-entry {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 8px 12px;
  }

  .nav-toggle { display: block; }

  .axis {
    top: var(--bar-h);
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--bar-h));
    padding: 16px;
    gap: 14px;
    background: #0B1E17;
    border-right: 0;
    border-bottom: 1px solid var(--metal);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease, visibility .24s ease;
  }

  .site-header[data-open] .axis {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .axis::before { display: none; }

  .axis__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .axis__item::before { left: 12px; }
  .axis__link { padding: 14px 10px 14px 30px; }
  .axis__foot { margin-top: 10px; }

  .progress { left: 0; }

  .wrap { width: min(100% - 40px, var(--maxw)); }

  .grid--asym,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .matrix thead th { top: 0; }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 44px 0 30px;
  }

  .footer__note { max-width: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .wrap { width: min(100% - 28px, var(--maxw)); }

  .btn--cta { display: none; }

  .search-entry__text { font-size: 12px; }

  .axis__list { grid-template-columns: minmax(0, 1fr); }

  .section { padding: 40px 0; }
  .section__note { margin-left: 0; }

  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .disclosure__body { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot { animation: none; }
}
