/* ==========================================================================
   B体育赛场版 — 共享样式表 /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, 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; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0B0F0E;
  --ink-deep: #0E2A23;
  --pitch: #143B31;
  --lime: #C8FF3D;
  --lime-soft: #E8FF9E;
  --orange: #FF8A3D;
  --wine: #5B1F3A;
  --indigo: #2B2A5E;
  --paper: #F4F7F2;
  --mist: #A7B8B0;
  --line: #2E4039;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-pill: 999px;
  --r-card: 28px;
  --r-soft: 18px;

  --wrap: 1280px;
  --edge: clamp(16px, 4vw, 48px);
  --head-h: 64px;

  --gap-1: 8px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 48px;
  --gap-5: 64px;
  --gap-6: 96px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, .t-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.02em;
}
h2, .t-2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
  letter-spacing: -.02em;
}
h3, .t-3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
h4, .t-4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: .01em;
}
p { max-width: 68ch; }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--mist);
  max-width: 56ch;
}
.meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .06em;
  color: var(--mist);
  max-width: none;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  max-width: none;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}

/* ---------- 4. 布局骨架 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.section { padding-block: var(--gap-5); }
.section--tight { padding-block: var(--gap-4); }
.stack > * + * { margin-top: var(--gap-3); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-3);
}
.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; }

#main-content { display: block; scroll-margin-top: 190px; }
main:focus { outline: none; }

/* ---------- 5. 焦点可见 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .24s var(--ease), color .24s var(--ease),
              border-color .24s var(--ease), transform .24s var(--ease);
}
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--lime-soft); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--warm { border-color: rgba(255, 138, 61, .5); color: var(--orange); }
.btn--warm:hover { background: rgba(255, 138, 61, .14); border-color: var(--orange); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}
.crumbs__link { color: var(--mist); transition: color .2s var(--ease); }
.crumbs__link:hover { color: var(--lime); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--lime-soft); }

/* ---------- 8. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  background-color: var(--pitch);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(46, 64, 57, .55) 0 2px,
    transparent 2px 14px
  );
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(11, 15, 14, .82);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--lime-soft);
}

/* ==========================================================================
   9. 页头
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 14, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: var(--edge);
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.head-shell { padding-block: 9px 0; }

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  min-height: var(--head-h);
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ink-deep);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  transform: skewX(-6deg);
}
.brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  min-width: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--paper);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: rgba(200, 255, 61, .14); color: var(--lime); }
.nav__link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: var(--gap-2);
}
.ver-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 138, 61, .45);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--orange);
  white-space: nowrap;
}
.ver-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.fav-btn:hover { color: var(--paper); border-color: var(--mist); }
.fav-btn__star {
  font-size: 13px;
  line-height: 1;
  transition: transform .28s var(--ease);
}
.fav-btn[aria-pressed="true"] {
  color: var(--orange);
  border-color: rgba(255, 138, 61, .55);
  background: rgba(255, 138, 61, .12);
}
.fav-btn[aria-pressed="true"] .fav-btn__star { transform: scale(1.22) rotate(-12deg); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle__text { font-size: 12.5px; }
.nav-shell[data-open] .nav-toggle { border-color: var(--lime); color: var(--lime); }
.nav-shell[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-shell[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-shell[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 10. 横向赛事带 ---------- */
.score-band {
  position: relative;
  margin-top: 9px;
  border-top: 1px solid var(--line);
}
.score-band__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 9px 11px;
}

.league-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.league-filter::-webkit-scrollbar { display: none; }

.chip {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--mist);
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.chip:hover { color: var(--paper); border-color: var(--mist); }
.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.score-strip {
  display: flex;
  align-items: stretch;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.score-strip::-webkit-scrollbar { height: 4px; }
.score-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.score-card {
  flex: 0 0 auto;
  min-width: 186px;
  scroll-snap-align: start;
  display: grid;
  gap: 3px;
  padding: 9px 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--pitch);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.score-card:hover { border-color: rgba(200, 255, 61, .45); }
.score-card[hidden] { display: none; }

.score-card__league {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: none;
}
.score-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.35;
}
.score-card__team {
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-card__score {
  color: var(--lime);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 1px;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 255, 61, .6); }
  50% { opacity: .5; box-shadow: 0 0 0 4px rgba(200, 255, 61, 0); }
}

.back-core {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(200, 255, 61, .45);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.back-core::after { content: "→"; font-size: 14px; line-height: 1; }
.back-core:hover { background: var(--lime); color: var(--ink); }

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-foot {
  position: relative;
  margin-top: var(--gap-6);
  padding-block: var(--gap-5) var(--gap-3);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  color: var(--paper);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, 42%);
  height: 2px;
  background: var(--lime);
}

.foot-shell { display: grid; gap: var(--gap-5); }

.foot-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: var(--gap-4);
  align-items: start;
}
.foot-brand__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.foot-brand__summary {
  margin-top: 12px;
  max-width: 34ch;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.7;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-3);
}
.foot-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  max-width: none;
}
.foot-col__list { display: grid; gap: 9px; }
.foot-col__link {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  font-size: 14.5px;
  color: var(--paper);
  transition: color .2s var(--ease);
}
.foot-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width .2s var(--ease), background .2s var(--ease);
}
.foot-col__link:hover { color: var(--lime); }
.foot-col__link:hover::before { width: 11px; background: var(--lime); }

.foot-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3) var(--gap-5);
  padding-block: var(--gap-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-item { display: grid; gap: 5px; min-width: 0; }
.contact-item--wide { flex: 1 1 260px; }
.contact-item__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: none;
}
.contact-item__val {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--lime-soft);
  word-break: break-word;
}
.contact-item__val--text {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--paper);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px var(--gap-4);
}
.foot-note {
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}
.foot-meta { color: var(--mist); }

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__link { padding: 8px 10px; font-size: 13px; }
  .brand__tag { display: none; }
  .ver-chip { display: none; }
}

@media (max-width: 900px) {
  .head-shell { padding-block: 8px 0; }
  .nav-shell { padding: 6px 6px 6px 12px; gap: 10px; min-height: 52px; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--ink-deep);
    box-shadow: 0 28px 52px rgba(0, 0, 0, .6);
  }
  .nav-shell[data-open] .nav { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 15px; border-radius: 16px; }
  .nav-tools { margin-left: auto; }

  .score-band__inner { flex-wrap: wrap; row-gap: 8px; gap: 8px; padding-block: 8px 10px; }
  .league-filter { order: 1; flex: 1 1 100%; }
  .back-core { order: 2; margin-left: auto; padding: 7px 13px; font-size: 12px; }
  .score-strip { order: 3; flex: 1 1 100%; }
  .score-card { min-width: 162px; padding: 8px 11px 9px; }
  .score-card__row { font-size: 13px; }

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

  .foot-head { grid-template-columns: 1fr; gap: var(--gap-4); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot { margin-top: var(--gap-5); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .brand__name { font-size: 1rem; }
  .ver-chip { display: none; }
  .fav-btn { padding: 7px 10px; }
  .fav-btn span[data-favorite-label] { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 9px 11px; }

  .league-filter { display: none; }
  .score-strip { gap: 7px; }
  .score-card { min-width: 140px; }
  .score-card__league { font-size: 10px; }
  .score-card__row { font-size: 12.5px; }
  .score-card__score { font-size: 14px; }

  .foot-grid { grid-template-columns: 1fr; }
  .foot-contact { gap: var(--gap-3); }
  .foot-base { flex-direction: column; align-items: flex-start; }

  .media-frame { border-radius: 20px; }
}

/* ---------- 13. 动效降级 ---------- */
@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;
  }
  .read-progress__bar { transition: none; }
  .live-dot { animation: none; }
  .fav-btn[aria-pressed="true"] .fav-btn__star { transform: none; }
}
