/* ============================================================
   FB体育 · 共享样式表  /assets/site.css
   赛场纪实 + 数据仪表盘 · 看台层叠构图
   ============================================================ */

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

::selection { background: #E8FF3A; color: #0B0D0C; }

/* ---------- 2. Tokens ---------- */
:root {
  --grass-900: #123A2A;
  --grass-800: #17462F;
  --grass-700: #1E5A40;
  --grass-500: #2F7D57;
  --orange: #FF6A13;
  --orange-soft: #FF8339;
  --blue-a: #061A3A;
  --blue-b: #0E2E63;
  --neon: #E8FF3A;
  --paper: #F4F1EA;
  --ink: #0B0D0C;
  --muted: #6C7A72;
  --alert: #D4372B;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --line: rgba(244, 241, 234, 0.16);
  --shell: 1220px;
  --rail: 66px;
  --strip: 46px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  padding-top: var(--strip);
  background: var(--grass-900);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 7vw, 84px); }
h2 { font-size: clamp(27px, 4.4vw, 50px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.8vw, 21px); }

p { text-wrap: pretty; }

strong { font-weight: 900; }

#main-content { scroll-margin-top: calc(var(--strip) + 24px); }

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

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.panel {
  position: relative;
  padding: clamp(26px, 4.4vw, 62px);
  border-radius: 3px;
}

.panel + .panel { margin-top: clamp(24px, 4vw, 56px); }

.panel--paper { background: var(--paper); color: var(--ink); }
.panel--green { background: var(--grass-800); }
.panel--blue { background: linear-gradient(145deg, var(--blue-a), var(--blue-b)); }

.panel--glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-2);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.panel--glass:hover {
  background: var(--glass-2);
  transform: translateY(-3px);
}

.panel--paper .stat__value { color: var(--ink); }
.panel--paper .section-label { color: #B8440A; }
.panel--paper .section-label::after { background: rgba(184, 68, 10, 0.3); }

.grid { display: grid; gap: clamp(18px, 3vw, 32px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--asym { grid-template-columns: 1fr; }

/* ---------- 5. Section label / annotation ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--orange);
}

.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 106, 19, 0.32);
}

.vert-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

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

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-soft); }

.btn--ghost { border-color: rgba(244, 241, 234, 0.36); color: var(--paper); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: clamp(16px, 3vw, 30px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(244, 241, 234, 0.3);
}

.breadcrumbs__link { color: rgba(244, 241, 234, 0.72); }
.breadcrumbs__link:hover { color: var(--orange); }
.breadcrumbs__current { color: var(--paper); }

/* ---------- 8. Prose ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }

.prose ul, .prose ol {
  margin-top: 1em;
  display: grid;
  gap: 0.5em;
}

.prose li { position: relative; padding-left: 1.15em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: var(--orange);
}

.panel--paper .prose { color: var(--ink); }
.panel--paper .prose a { border-bottom: 1px solid rgba(11, 13, 12, 0.4); }
.panel--paper .prose a:hover { border-color: var(--orange); color: #B8440A; }

/* ---------- 9. Data table ---------- */
.data-table {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  overflow: hidden;
}

.data-table caption {
  padding: 0 0 12px;
  text-align: left;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(11, 13, 12, 0.14);
}

.data-table thead th {
  background: var(--grass-700);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.data-table tbody tr:hover { background: rgba(232, 255, 58, 0.4); }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .is-alert { color: var(--alert); font-weight: 700; }
.data-table .is-key { background: rgba(232, 255, 58, 0.5); font-weight: 700; }

/* ---------- 10. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-2);
  border-radius: 3px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.media--blue { background: linear-gradient(150deg, var(--blue-a), var(--blue-b)); }

.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(11, 13, 12, 0.35);
}

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

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(6, 26, 58, 0) 0%, rgba(6, 26, 58, 0.92) 100%);
}

.media__caption {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.62);
  border-top: 1px solid rgba(244, 241, 234, 0.1);
}

.media--blue .media__caption { border-top-color: rgba(244, 241, 234, 0.18); }

/* ---------- 11. Stat / Chip ---------- */
.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--mono);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(244, 241, 234, 0.28);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.82);
  white-space: nowrap;
}

.chip--neon { background: var(--neon); color: var(--ink); border-color: var(--neon); }
.chip--orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.chip--alert { background: var(--alert); color: var(--paper); border-color: var(--alert); }

/* ---------- 12. Header ---------- */
.site-header { position: relative; z-index: 80; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 10px; }

/* 顶部赛程条 */
.score-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--strip);
  display: flex;
  align-items: center;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 106, 19, 0.55);
}

.score-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.score-strip__inner::-webkit-scrollbar { display: none; }

.score-strip__label {
  flex: 0 0 auto;
  padding-right: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: var(--orange);
  border-right: 1px solid rgba(255, 106, 19, 0.4);
  white-space: nowrap;
}

.score-strip__list {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.score-strip__item {
  position: relative;
  height: var(--strip);
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.score-strip__match {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  color: rgba(244, 241, 234, 0.86);
  border-left: 1px solid rgba(244, 241, 234, 0.1);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.score-strip__item:first-child .score-strip__match { border-left: 0; }

.score-strip__match:hover,
.score-strip__item:focus-within .score-strip__match {
  background: rgba(255, 106, 19, 0.18);
  color: #fff;
}

.score-strip__team { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.score-strip__score { color: var(--neon); font-weight: 700; letter-spacing: 0.06em; }
.score-strip__time { font-size: 11px; color: var(--orange); }

.score-strip__detail {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 95;
  display: grid;
  gap: 6px;
  min-width: 252px;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid rgba(255, 106, 19, 0.5);
  border-top: 2px solid var(--orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.score-strip__item:hover .score-strip__detail,
.score-strip__item:focus-within .score-strip__detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.score-strip__detail-line {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.72);
}

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: block;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 0.1s linear;
}

/* 报头 */
.masthead {
  background: var(--grass-900);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  min-height: 76px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(232, 255, 58, 0.35);
}

.brand__text { display: grid; gap: 1px; }

.brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__line {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.2;
}

/* 导航 */
.primary-nav { margin-left: auto; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.primary-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.82);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.primary-nav__link:hover { color: #fff; }
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] {
  color: var(--neon);
  background: rgba(255, 255, 255, 0.07);
}

.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--neon);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle__bars { display: grid; gap: 4px; }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

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

/* 左侧赛季刻度轨道 */
.frame-rail { display: none; }

.frame-rail__caption,
.frame-rail__mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--orange);
}

.frame-rail__mark { color: rgba(244, 241, 234, 0.35); }

.frame-rail__seasons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: auto 0;
}

.frame-rail__season {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.frame-rail__season--now {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 140px);
  background: linear-gradient(180deg, var(--blue-a) 0%, var(--blue-b) 100%);
  border-top: 3px solid var(--orange);
  color: rgba(244, 241, 234, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 46px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(26px, 4vw, 46px);
}

.footer-brand__name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
}

.footer-brand__line {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.footer-note {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.6);
}

.footer-note--tight { margin-top: 10px; max-width: none; }

.footer-col__title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.26em;
  color: var(--orange);
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__link {
  font-size: 14px;
  color: rgba(244, 241, 234, 0.78);
  transition: color 0.2s var(--ease);
}

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

.footer-contact__line {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.72);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(244, 241, 234, 0.55);
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}

/* ---------- 14. Utility ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}

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

.to-top:hover { background: var(--orange-soft); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

[data-toc-link].is-current {
  color: var(--orange);
}

/* ---------- 15. Responsive ---------- */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .masthead__inner { min-height: 86px; }
  .nav-toggle { display: none; }
}

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

  .primary-nav {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
  }

  .primary-nav[data-open="false"] { display: none; }

  .primary-nav[data-open="true"] {
    display: block;
    animation: navDrop 0.22s var(--ease);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }

  .primary-nav__link {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .primary-nav__link::after {
    left: 0;
    right: auto;
    width: 26px;
    bottom: 9px;
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  .score-strip { left: var(--rail); }

  .frame-rail {
    position: fixed;
    top: var(--strip);
    bottom: 0;
    left: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: var(--rail);
    padding: 22px 0;
    background: var(--grass-800);
    border-right: 1px solid rgba(255, 106, 19, 0.35);
  }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.35fr; }
}

/* ---------- 16. Reduced motion ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

  .to-top { transform: none; }
  .panel--glass:hover { transform: none; }
  .btn:hover { transform: none; }
}
