/* =========================================================
   火狐体育主站 · 共享样式 /assets/site.css
   夜间竞技场 + 数字转播台：炭黑底、赛场橙信号、青蓝数据、暖金战报
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

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

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

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

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

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

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --orange: #FF5A1F;
  --orange-hi: #FF8757;
  --orange-lo: #C93B0B;

  --ink-900: #0E0F12;
  --ink-850: #0B0C0F;
  --ink-700: #1A1C21;
  --panel: #14161A;

  --line: #2B3038;
  --line-soft: #21252B;

  --mid: #6B7480;
  --muted: #8B939D;
  --text: #D6DAE0;

  --paper: #F4F5F7;
  --paper-line: #E2E4E8;
  --paper-ink: #111216;

  --cyan: #22C6D8;
  --gold: #E7B24A;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 40px; } }

/* ---------- 3. Base ---------- */
body {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0; }

::selection { background: var(--orange); color: #0E0F12; }

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: .08em;
}

.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }

.rule { height: 1px; background: var(--line); }

.texture-lines {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 9px);
}

/* ---------- 4. Layout ---------- */
.container {
  width: min(1080px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.container--narrow { width: min(760px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 900px) { .section { padding: 76px 0; } }

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-top-color: var(--paper-line);
}
.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--paper-ink); }
.section--paper .section-sub { color: #5A6270; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--orange);
}

.section-title { font-size: clamp(24px, 3vw, 32px); }

.section-sub {
  width: 100%;
  max-width: 40em;
  font-size: 15px;
  color: var(--muted);
}

.grid { display: grid; gap: 24px; }

.grid--3 { grid-template-columns: 1fr; }

.grid--split,
.grid--halves { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--split { grid-template-columns: 4fr 7fr; gap: 40px; }
  .grid--halves { grid-template-columns: 5fr 6fr; gap: 40px; }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 13, 16, .95);
  border-bottom: 1px solid var(--line);
}

.header-shell { position: relative; }

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 38px;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}

.header-brandline {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.header-search:hover { color: var(--orange-hi); border-bottom-color: var(--orange-hi); }

.header-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 12px;
  color: var(--ink-900);
  background: var(--orange);
  border-radius: 2px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.header-cta:hover { background: var(--orange-hi); }
.header-cta:active { background: var(--orange-lo); color: #fff; }

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .16), 0 0 16px rgba(255, 90, 31, .5);
  animation: tally-pulse 3.6s ease-in-out infinite;
}

@keyframes tally-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 31, .16), 0 0 16px rgba(255, 90, 31, .45); }
  50% { box-shadow: 0 0 0 5px rgba(255, 90, 31, .08), 0 0 26px rgba(255, 90, 31, .7); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.14; }

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--mid);
}

/* 导航 */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #0C0D10;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .85);
}
.primary-nav[data-open="true"] { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 13px var(--gutter);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  bottom: 9px;
  width: 18px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease), background-color .18s var(--ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); background: var(--orange-hi); }
.nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  border-left-color: var(--orange);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: #fff; }

.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-lo), var(--orange), var(--orange-hi));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 6. 侧边品牌轨道（桌面） ---------- */
.rail {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  padding: 22px 0 26px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(180deg, #101217 0%, #0B0C0F 100%);
  border-right: 1px solid var(--line);
  z-index: 70;
}

.rail-top,
.rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.rail-meta {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--mid);
}

.rail-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

.rail-brand { display: flex; align-items: flex-start; gap: 9px; }

.rail-brand-cn {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--paper);
}

.rail-brand-en {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .32em;
  color: var(--mid);
}

.rail-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  text-align: center;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--mid);
}

.rail-current {
  position: relative;
  padding-top: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--orange);
}
.rail-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--orange);
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .rail { display: flex; }
  .primary-nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 2px; padding: 0; }
  .nav-link { display: inline-block; padding: 21px 12px; border-left: 0; font-size: 14.5px; }
  .nav-link::after { left: 12px; bottom: 15px; }
  .nav-link[aria-current="page"] { border-left-color: transparent; }
  .nav-toggle { display: none; }
}

@media (min-width: 1200px) {
  .nav-link { padding: 22px 14px; font-size: 15px; }
  .nav-link::after { left: 14px; }
}

@media (max-width: 559px) {
  .header-search { display: none; }
  .header-brandline { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  background: var(--ink-850);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1080px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: 52px 0 26px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { display: inline-flex; align-items: center; gap: 12px; }

.footer-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .14);
}

.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--paper);
}

.footer-brand-meta {
  display: block;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--mid);
}

.footer-note {
  max-width: 34em;
  font-size: 13px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 34px 0 30px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.1fr 1.1fr 1.6fr 1.2fr; gap: 40px; }
}

.footer-title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 16px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--paper);
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

.footer-list { display: grid; gap: 9px; font-size: 14px; }

.footer-list a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-list a:hover { color: var(--orange-hi); border-bottom-color: var(--orange-hi); }

.footer-list--plain li {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-label {
  display: inline-block;
  min-width: 46px;
  margin-right: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mid);
}

.footer-hint {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--mid);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mid);
}

/* ---------- 8. 通用组件 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--orange);
  border-radius: 3px;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.breadcrumbs { padding-top: 18px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mid);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "/"; color: var(--line); }
.breadcrumb-list a { color: var(--mid); transition: color .18s var(--ease); }
.breadcrumb-list a:hover { color: var(--orange-hi); }
.breadcrumb-list [aria-current="page"] { color: var(--text); }
.section--paper .breadcrumb-list [aria-current="page"] { color: var(--paper-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn--primary { background: var(--orange); color: var(--ink-900); }
.btn--primary:hover { background: var(--orange-hi); }
.btn--primary:active { background: var(--orange-lo); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: #fff; }
.btn--ghost:active { border-color: var(--orange-lo); }

.section--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-ink); }
.section--paper .btn--ghost:hover { border-color: var(--orange); color: var(--orange-lo); }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.card {
  padding: 24px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 22px 34px -28px rgba(0, 0, 0, .95);
}

.card--paper {
  background: #fff;
  border-color: var(--paper-line);
  color: var(--paper-ink);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.panel--data { border-top: 2px solid var(--cyan); }
.panel--gold { border-top: 2px solid var(--gold); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
}

.panel-body { padding: 18px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag--orange { color: var(--orange); border-color: rgba(255, 90, 31, .45); }
.tag--cyan { color: var(--cyan); border-color: rgba(34, 198, 216, .42); }
.tag--gold { color: var(--gold); border-color: rgba(231, 178, 74, .42); }

.metric {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--orange);
}

.metric-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mid);
}

/* 转播监视器式图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: .8;
  background-image:
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}

/* 技能树式步骤 */
.steps { display: grid; gap: 18px; counter-reset: step; }

.step { position: relative; padding-left: 34px; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--orange);
}

.step + .step::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -14px;
  width: 1px;
  height: 12px;
  background: var(--line);
}

.step-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--paper);
}

.section--paper .step-title { color: var(--paper-ink); }
.step-text { font-size: 15px; color: var(--muted); }

/* 分段切换 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; font-weight: 700; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.section--paper .tab { color: #6B7480; }
.section--paper .tab[aria-selected="true"] { color: var(--paper-ink); }

.tabpanel { padding-top: 24px; }
.tabpanel[hidden] { display: none; }

/* 进场显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 9. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .brand-mark { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .skip-link { transition: none; }
}
