/* =========================================================
   FB赛事站 · 共享样式 /assets/site.css
   深夜数据控制室：深墨绿底 / 荧光青数据 / 陶土粗边
   ========================================================= */

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

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100%;
  background-color: #0A1F1B;
  color: #F2EFE6;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.22; }
figure { margin: 0; }
[hidden] { display: none !important; }

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0A1F1B;
  --coal: #111413;
  --moss: #1E3A32;
  --slate-deep: #16302B;
  --rock: #77857E;
  --bone: #F2EFE6;
  --cyan: #38E1C6;
  --orange: #F2843C;
  --violet: #8A6BE0;
  --clay: #B4593C;

  --font-narrow: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --font-editorial: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;

  --line: rgba(119, 133, 126, .28);
  --line-strong: rgba(119, 133, 126, .55);

  --pad-x: clamp(18px, 4.2vw, 64px);
  --max-w: 1240px;
  --head-h: 78px;
  --head-h-min: 56px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
h1, .h1 {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(34px, 5.4vw, 60px);
  letter-spacing: -.5px;
  line-height: 1.12;
}

h2, .h2 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 38px);
  letter-spacing: .2px;
  line-height: 1.24;
}

h3, .h3 {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -.2px;
}

p, li { max-width: 68ch; }

strong { color: var(--bone); font-weight: 700; }

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

/* ---------- 4. 焦点与可访问 ---------- */
:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -90px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--cyan);
  color: #062420;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--coal);
  border-bottom: 1px solid var(--line);
  color: var(--bone);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: min-height .32s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: var(--head-h-min); }

.brand-rail {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--cyan);
  color: #062420;
  border: 2px solid #062420;
  box-shadow: 3px 3px 0 0 var(--clay);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-name {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 17px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.brand-path {
  display: inline-flex;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rock);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 12px);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  letter-spacing: .5px;
  color: var(--rock);
  transition: color .2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.nav-list a:hover { color: var(--bone); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--bone); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 12.5px;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.quick-link:hover { border-color: var(--cyan); color: var(--cyan); }

.quick-link--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #062420;
  font-weight: 700;
}
.quick-link--solid:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: #062420;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  color: var(--bone);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--coal);
  color: var(--rock);
  border-top: 1px solid var(--line);
}

.footer-rule {
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--cyan) 0 16%,
    var(--clay) 16% 30%,
    var(--moss) 30% 76%,
    var(--rock) 76% 100%);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) var(--pad-x) clamp(24px, 3vw, 34px);
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.brand--footer .brand-name { font-size: 16px; color: var(--bone); }

.footer-note {
  max-width: 46ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--rock);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 46px);
  padding: clamp(26px, 3.6vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--rock);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-links a:hover { color: var(--bone); border-color: var(--cyan); }

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 40px;
  padding-top: clamp(22px, 3vw, 34px);
}

.footer-contact-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .3px;
  color: var(--rock);
  word-break: break-word;
}
.footer-contact-line + .footer-contact-line { margin-top: 6px; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 20px;
}
.footer-legal-links a {
  font-size: 13px;
  color: var(--rock);
  transition: color .18s var(--ease);
}
.footer-legal-links a:hover { color: var(--cyan); }

.footer-stamp {
  margin: 0;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--rock);
}

/* ---------- 7. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 8. 章节与文本组件 ---------- */
.section-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px clamp(14px, 2vw, 28px);
  padding-top: 16px;
  margin-bottom: clamp(20px, 3vw, 38px);
  border-top: 2px solid var(--bone);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rock);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--rock);
}

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.tag--goal {
  color: var(--orange);
  border-color: rgba(242, 132, 60, .55);
  background: rgba(242, 132, 60, .1);
}

.tag--concede {
  color: var(--violet);
  border-color: rgba(138, 107, 224, .55);
  background: rgba(138, 107, 224, .1);
}

.tag--live {
  color: var(--cyan);
  border-color: rgba(56, 225, 198, .5);
  background: rgba(56, 225, 198, .1);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  color: #062420;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--clay);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 4px 4px 0 0 rgba(56, 225, 198, .22);
}

.btn--wide { width: 100%; }

[data-copied] {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  color: #062420 !important;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--rock);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  display: inline-block;
  margin: 0 9px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--rock); transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--bone); }

/* ---------- 12. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--moss);
  border: 2px solid rgba(119, 133, 126, .4);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(56, 225, 198, .13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 225, 198, .13) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media-frame img,
.media-frame > picture,
.media-frame > picture > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 13. 显现与筛选状态 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.is-hidden { display: none !important; }

/* ---------- 14. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--coal);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), visibility .25s var(--ease), transform .25s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 15. 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .nav-quick .quick-link { padding: 8px 11px; font-size: 12px; }
  .nav-list a { padding: 8px 7px; font-size: 13px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .brand-path { display: none; }

  .site-nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
    padding: 16px var(--pad-x) 26px;
    background: var(--coal);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .28s var(--ease), visibility .24s linear;
  }
  .site-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header.is-scrolled .site-nav { top: var(--head-h-min); }

  .nav-list { display: block; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { padding: 14px 0; font-size: 15px; color: var(--bone); }
  .nav-list a::after {
    left: 0;
    right: auto;
    width: 26px;
    bottom: 9px;
  }

  .nav-quick { margin-top: 18px; flex-wrap: wrap; }
  .nav-quick .quick-link { padding: 11px 16px; font-size: 13px; }

  .grid-12 > * { grid-column: 1 / -1; }

  .footer-legal { grid-template-columns: 1fr 1fr; }
  .footer-stamp { grid-column: 1 / -1; }
}

/* ---------- 16. 响应式：手机 ---------- */
@media (max-width: 680px) {
  .brand-name { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; box-shadow: 2px 2px 0 0 var(--clay); }
  .nav-toggle-label { display: none; }

  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-head { flex-direction: column; }
  .footer-legal { grid-template-columns: 1fr; }

  .section-band { border-top-width: 1px; }
}

@media (max-width: 420px) {
  .quick-link { padding: 8px 10px; font-size: 11.5px; letter-spacing: .6px; }
}

/* ---------- 17. 降低动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .header-progress { transition: none; }
  .to-top { transition: none; }
}

/* ---------- 18. 平滑滚动（默认开启） ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
