/* =========================================================
   /assets/site.css — 多宝体育入口 · 共享外壳
   第一栏侧栏 / 夜场墨绿 + 荧光青 + 琥珀金 + 实时洋红
   ========================================================= */

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

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

html,
body { min-height: 100%; }

body { margin: 0; }

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

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

button { font: inherit; color: inherit; }

p { margin: 0 0 1em; }

a { color: var(--cyan); text-decoration: none; }

/* ---------- tokens ---------- */
:root {
  --ink: #071A16;
  --panel: #0C2A22;
  --card: #123B30;
  --cyan: #28F5D2;
  --cyan-soft: #8FFFE9;
  --amber: #FFB547;
  --amber-deep: #231402;
  --magenta: #FF2E88;
  --paper: #E8F5F0;
  --muted: #7FA79A;
  --violet: #7C5CFF;
  --black: #020806;

  --line: rgba(40, 245, 210, 0.18);
  --line-soft: rgba(232, 245, 240, 0.10);
  --line-magenta: rgba(255, 46, 136, 0.42);

  --rail-w: 276px;
  --topbar-h: 58px;
  --headbar-h: 60px;
  --cut: 14px;
  --cut-lg: 22px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  color-scheme: dark;
}

/* ---------- base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 12% -8%, rgba(40, 245, 210, 0.10), transparent 62%),
    radial-gradient(900px 520px at 102% 4%, rgba(124, 92, 255, 0.11), transparent 58%),
    radial-gradient(700px 480px at 60% 108%, rgba(255, 46, 136, 0.07), transparent 60%),
    linear-gradient(rgba(40, 245, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 245, 210, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed, fixed, fixed, fixed;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 4.2vw, 54px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 19px; letter-spacing: 0.01em; }

::selection { background: var(--cyan); color: #04120F; }

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

/* ---------- utilities ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}

.section { padding: 44px 0; }
.section--tight { padding: 26px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.stack > * + * { margin-top: 16px; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-title { margin: 0; max-width: 24ch; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--amber);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--btn-line);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
              color 0.16s ease, border-color 0.16s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--amber {
  --btn-bg: var(--amber);
  --btn-fg: var(--amber-deep);
  --btn-line: #FFD08A;
}

.btn--amber:hover {
  box-shadow: 0 12px 28px -14px rgba(255, 181, 71, 0.95), 0 0 0 1px rgba(255, 181, 71, 0.65);
}

.btn--amber:focus-visible {
  outline-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.22);
}

.btn--ghost {
  --btn-bg: rgba(40, 245, 210, 0.06);
  --btn-fg: var(--cyan-soft);
  --btn-line: rgba(40, 245, 210, 0.38);
}

.btn--ghost:hover {
  --btn-bg: rgba(40, 245, 210, 0.15);
  --btn-line: var(--cyan);
  color: #04120F;
  --btn-bg: var(--cyan);
}

.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* ---------- chips ---------- */
.chip {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid rgba(40, 245, 210, 0.22);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

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

.chip:focus-visible { outline-color: var(--amber); }

/* ---------- panels ---------- */
.panel {
  position: relative;
  padding: 22px;
  background: linear-gradient(160deg, rgba(18, 59, 48, 0.96), rgba(12, 42, 34, 0.96));
  box-shadow: inset 0 0 0 1px rgba(40, 245, 210, 0.14);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.panel:hover {
  box-shadow: inset 0 0 0 1px rgba(40, 245, 210, 0.46);
  transform: translateY(-2px);
}

.panel--grid {
  background-image:
    linear-gradient(rgba(40, 245, 210, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 245, 210, 0.06) 1px, transparent 1px),
    linear-gradient(160deg, rgba(18, 59, 48, 0.96), rgba(12, 42, 34, 0.96));
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

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

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(40, 245, 210, 0.20);
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #04120F;
  box-shadow: inset 0 0 0 1px rgba(40, 245, 210, 0.16);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08) brightness(0.9);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 52%, rgba(40, 245, 210, 0.16) 52.4%, transparent 58%),
    linear-gradient(0deg, rgba(2, 8, 6, 0.55), transparent 46%);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--21x9 { aspect-ratio: 21 / 9; }

.media-frame__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  background: rgba(2, 8, 6, 0.78);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(2, 8, 6, 0.94), transparent);
}

/* ---------- grid ---------- */
.grid { display: grid; gap: 16px; }

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

.grid-12 > * { grid-column: span 12; }
.grid-12 > .w-3 { grid-column: span 3; }
.grid-12 > .w-4 { grid-column: span 4; }
.grid-12 > .w-5 { grid-column: span 5; }
.grid-12 > .w-6 { grid-column: span 6; }
.grid-12 > .w-7 { grid-column: span 7; }
.grid-12 > .w-8 { grid-column: span 8; }
.grid-12 > .w-9 { grid-column: span 9; }

[data-filtered="off"] { display: none !important; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: rgba(127, 167, 154, 0.55); }
.breadcrumbs [aria-current="page"] { color: var(--cyan-soft); }

/* =========================================================
   第一栏 · 左侧常驻导航
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(18, 59, 48, 0.92), rgba(7, 26, 22, 0.99)),
    var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 26px 0 60px -46px #000;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 245, 210, 0.35) transparent;
}

.site-header::-webkit-scrollbar { width: 6px; }
.site-header::-webkit-scrollbar-thumb { background: rgba(40, 245, 210, 0.32); }

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 260px;
  background: linear-gradient(180deg, var(--cyan), rgba(40, 245, 210, 0));
  opacity: 0.7;
  pointer-events: none;
}

/* brand */
.rail__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}

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

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand__mark { background: var(--amber); color: var(--amber-deep); }
.brand:hover .brand__name { color: var(--cyan-soft); }

/* mobile score shortcut + toggle */
.rail__scorelink {
  display: none;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line-magenta);
  border-radius: 2px;
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.rail__scorelink:hover { background: rgba(255, 46, 136, 0.14); color: #FF7AB0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(40, 245, 210, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(40, 245, 210, 0.16); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

.nav-toggle__label { line-height: 1; }

/* nav */
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.navlist__link {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  color: var(--paper);
  font-size: 15px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.navlist__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.18s ease;
}

.navlist__link:hover {
  background: rgba(40, 245, 210, 0.09);
  border-left-color: var(--cyan);
  transform: translateX(2px);
  color: var(--cyan-soft);
}

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

.navlist__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(40, 245, 210, 0.20), rgba(40, 245, 210, 0));
  border-left-color: var(--cyan);
  color: var(--cyan-soft);
}

.navlist__link[aria-current="page"] .navlist__idx {
  color: var(--cyan);
  font-weight: 700;
}

.navlist__link[aria-current="page"] .navlist__name {
  font-weight: 700;
}

.navlist__link[aria-current="page"] .navlist__name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  vertical-align: 1px;
  background: var(--magenta);
}

.rail__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* score stream */
.rail__scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-magenta);
}

.pulse {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--magenta);
  border-radius: 50%;
  animation: rail-pulse 2.4s ease-out infinite;
}

@keyframes rail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 136, 0.72); }
  70% { box-shadow: 0 0 0 9px rgba(255, 46, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 136, 0); }
}

.scorelist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: rgba(18, 59, 48, 0.72);
  box-shadow: inset 0 0 0 1px rgba(40, 245, 210, 0.10);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.score-row:hover {
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(40, 245, 210, 0.48);
}

.score-row__clock {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--magenta);
  line-height: 17px;
}

.score-row__teams {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--paper);
}

.score-row__nums {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
  color: var(--cyan);
}

.rail__more {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.rail__more:hover { color: var(--cyan-soft); border-bottom-color: var(--cyan); }

/* =========================================================
   状态条
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  background: rgba(7, 26, 22, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.topbar__cluster--end { margin-left: auto; }

.topbar__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.topbar__link {
  padding: 6px 2px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

.topbar__link--amber { color: var(--amber); border-bottom-color: rgba(255, 181, 71, 0.45); }
.topbar__link--amber:hover { color: #FFD79A; border-bottom-color: var(--amber); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 68%, var(--magenta));
  pointer-events: none;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 56px;
  padding: 46px 0 26px;
  background:
    radial-gradient(700px 340px at 6% 0%, rgba(40, 245, 210, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(12, 42, 34, 0.96), rgba(7, 26, 22, 1));
  border-top: 1px solid rgba(40, 245, 210, 0.22);
  clip-path: polygon(0 var(--cut-lg), var(--cut-lg) 0, 100% 0, 100% 100%, 0 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--cut-lg);
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 46%, var(--magenta));
  opacity: 0.85;
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: 32px;
}

.foot-brand { min-width: 0; }

.brand--foot { margin-bottom: 14px; }

.brand--foot .brand__mark {
  width: 44px;
  height: 44px;
  background: var(--amber);
  color: var(--amber-deep);
  font-size: 16px;
}

.brand--foot .brand__name { font-size: 23px; }

.brand--foot:hover .brand__mark { background: var(--cyan); color: #04120F; }

.foot-brand__text {
  margin: 0 0 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-brand__stat {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot-brand__stat .mono { color: var(--cyan); }

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

.foot-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.foot-list a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.foot-contact li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: baseline;
}

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.foot-contact__value {
  color: var(--paper);
  word-break: break-word;
}

.foot-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 181, 71, 0.45);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot-cta:hover { color: #FFD79A; border-bottom-color: var(--amber); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed rgba(40, 245, 210, 0.20);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.foot-copy { margin: 0; }
.foot-icp { margin: 0; color: var(--cyan-soft); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--cyan); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1.1fr; }
  .foot-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  body {
    padding-left: 0;
    padding-top: calc(var(--headbar-h) + var(--topbar-h));
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--headbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -30px #000;
  }

  .site-header::after { display: none; }

  .rail__brand { flex: 1 1 auto; }
  .rail__scorelink { display: inline-flex; }
  .nav-toggle { display: inline-flex; }

  .rail__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    gap: 12px;
    background: rgba(7, 26, 22, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -24px #000;
    max-height: calc(100vh - var(--headbar-h));
    overflow-y: auto;
  }

  .rail__nav[data-open] { display: flex; }

  .rail__scores { display: none; }

  .topbar {
    top: var(--headbar-h);
    left: 0;
    height: var(--topbar-h);
    padding: 0 16px;
    gap: 12px;
    overflow-x: auto;
    backdrop-filter: none;
    background: rgba(9, 30, 25, 0.95);
  }

  .topbar::-webkit-scrollbar { height: 0; }
  .topbar__label { display: none; }
}

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

  .grid-12 > .w-3,
  .grid-12 > .w-4,
  .grid-12 > .w-5,
  .grid-12 > .w-6,
  .grid-12 > .w-7,
  .grid-12 > .w-8,
  .grid-12 > .w-9 { grid-column: span 6; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:last-child { grid-column: auto; }

  .section { padding: 34px 0; }
  .container { padding: 0 18px; }
  .foot-inner { padding: 0 18px; }
}

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

  .grid-12 > .w-3,
  .grid-12 > .w-4,
  .grid-12 > .w-5,
  .grid-12 > .w-6,
  .grid-12 > .w-7,
  .grid-12 > .w-8,
  .grid-12 > .w-9 { grid-column: span 12; }

  .brand__name { font-size: 19px; }
  .brand__tag { display: none; }
  .brand__mark { width: 36px; height: 36px; font-size: 14px; }

  .panel { padding: 18px; }

  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-legal { margin-left: 0; }

  .site-footer { padding: 36px 0 22px; }
}

/* ---------- 可访问性与动效偏好 ---------- */
@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;
  }

  .pulse {
    animation: none;
    box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.35);
  }

  .btn:hover,
  .panel:hover,
  .navlist__link:hover { transform: none; }
}
