/* ==========================================================
   欧宝赛事 · 共享样式 /assets/site.css
   蓝图网格 · 深夜赛场 · 闪电黄能量
   ========================================================== */

:root {
  --ink: #0B0E12;
  --graphite: #131A24;
  --slate: #2A3542;
  --line: #3D4A5C;
  --mist: #8A99AD;
  --ice: #F4F7FA;
  --yellow: #FFD200;
  --gold: #B58E00;
  --green: #37F5A0;
  --pine: #0E3B2E;
  --alert: #FF6B4A;

  --pad-x: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-narrow: "Arial Narrow", "Helvetica Neue", "Roboto Condensed", var(--font-sans);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

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

/* ---------- 通用容器与网格 ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.bp-grid {
  background-image:
    repeating-linear-gradient(to right, rgba(61, 74, 92, .28) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(61, 74, 92, .18) 0 1px, transparent 1px 120px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.grid-12 > * { grid-column: span 12; }

@media (min-width: 768px) {
  .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; }
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section__head {
  display: grid;
  gap: 10px;
  max-width: 56ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__title {
  font-family: var(--font-narrow);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.01em;
}

.section__lead {
  color: var(--mist);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.85;
  max-width: 44em;
}

.prose {
  max-width: 38em;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
}
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 {
  font-family: var(--font-narrow);
  font-weight: 400;
  letter-spacing: -.005em;
  margin: 1.6em 0 .6em;
}
.prose h2 { font-size: clamp(22px, 2.4vw, 32px); }
.prose h3 { font-size: clamp(18px, 1.8vw, 24px); }
.prose a { color: var(--yellow); text-decoration: none; border-bottom: 1px solid rgba(255, 210, 0, .45); }
.prose a:hover { border-bottom-color: var(--yellow); }

/* ---------- 索引标签 ---------- */

.index-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
  text-transform: uppercase;
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}
.index-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line);
  flex: 0 0 auto;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn--primary:hover { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.btn--primary:active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn--ghost {
  border-color: var(--slate);
  color: var(--ice);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--green);
  color: var(--green);
}

/* ---------- 面包屑 ---------- */

.breadcrumb { padding-block: clamp(16px, 2.4vw, 26px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.breadcrumb__link:hover { color: var(--yellow); }

.breadcrumb__sep { color: var(--line); }

.breadcrumb__current { color: var(--ice); }

/* ---------- 面板与卡片 ---------- */

.panel {
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color .2s var(--ease);
}
.panel:hover { border-color: var(--yellow); }

/* ---------- 时间轴 ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__node { position: relative; }
.timeline__node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: .55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--line);
}
.timeline__node.is-live::before {
  background: var(--green);
  border-color: var(--green);
  animation: ob-pulse 1.8s ease-in-out infinite;
}

/* ---------- 胶囊筛选 ---------- */

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
  border: 1px solid var(--slate);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--yellow); color: var(--ice); }
.pill[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- 图片容器基础规则 ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--slate);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255, 210, 0, .10), transparent 60%),
    linear-gradient(160deg, var(--graphite), var(--ink));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(61, 74, 92, .22) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(61, 74, 92, .16) 0 1px, transparent 1px 40px);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.55) contrast(1.06) brightness(.92);
  transition: filter .2s var(--ease);
}
.media-frame:hover > img,
.media-frame:hover > svg,
.media-frame:hover > picture > img {
  filter: saturate(.9) contrast(1.04) brightness(1);
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ice);
  background: linear-gradient(to top, rgba(11, 14, 18, .9), transparent);
}

/* ---------- 比分数字 ---------- */

.score {
  font-family: var(--font-mono);
  font-size: clamp(56px, 9vw, 132px);
  line-height: .9;
  letter-spacing: .02em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}

/* ==========================================================
   Header
   ========================================================== */

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header { position: relative; z-index: 60; }

/* 上层：品牌信息带 */
.header-top {
  background: var(--graphite);
  border-bottom: 1px solid var(--slate);
  font-size: 12px;
}

.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 3vw, 40px);
  min-height: 46px;
  padding-block: 4px;
}

.brandline { display: flex; align-items: center; gap: 10px; }

.brandline__sigil {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 3px;
}

.brandline__text { display: flex; flex-direction: column; line-height: 1.3; }

.brandline__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}

.brandline__desc {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.season-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

.season-tag__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  animation: ob-pulse 1.8s ease-in-out infinite;
}

.header-mail {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ice);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.header-mail:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* 下层：栏目索引带 */
.header-main {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 18, .94);
  border-bottom: 1px solid var(--slate);
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 62px;
}

.nav-index { flex: 1 1 auto; min-width: 0; }

.nav-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(8px, 1.8vw, 26px);
}

.nav-index__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--ice);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.nav-index__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.nav-index__link:hover { color: var(--yellow); }
.nav-index__link:hover::after,
.nav-index__link:focus-visible::after { transform: scaleX(1); }

.nav-index__link[aria-current="page"] { color: var(--yellow); }
.nav-index__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-index__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mist);
  transition: color .18s var(--ease);
}
.nav-index__link:hover .nav-index__num,
.nav-index__link[aria-current="page"] .nav-index__num { color: var(--yellow); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-pill);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cta-pill:hover { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.cta-pill:active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ice);
  border: 1px solid var(--slate);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }

.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  transition: width .1s linear;
}

/* 侧边悬浮关注条 */
.watch-rail {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 70;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.watch-rail.is-docked { opacity: 1; visibility: visible; transform: none; }

.watch-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.watch-rail__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--green);
}

.watch-rail__list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
}

.watch-rail__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ice);
}
.watch-rail__item::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.watch-rail__empty {
  font-size: 12px;
  line-height: 1.65;
  color: var(--mist);
}

.watch-rail__link {
  justify-self: start;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--yellow);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}
.watch-rail__link:hover { border-bottom-color: var(--yellow); }

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--graphite);
  border-top: 1px solid var(--slate);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.footer-col { display: grid; gap: 14px; align-content: start; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--mist);
  text-transform: uppercase;
}

.footer-brand {
  font-family: var(--font-narrow);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--mist);
}

.footer-cta { justify-self: start; }

.footer-list { display: grid; gap: 8px; }

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--ice);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.footer-link:hover { color: var(--yellow); }
.footer-link:hover::after,
.footer-link:focus-visible::after { transform: scaleX(1); }

.contact-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.75;
}

.contact-line__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
  padding-top: 2px;
}

.contact-line__value {
  color: var(--ice);
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--slate);
  border-radius: var(--radius-pill);
  cursor: pointer;
  vertical-align: middle;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.copy-btn.is-done { color: var(--green); border-color: var(--green); }

.copy-hint {
  min-height: 1.2em;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--green);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--slate);
}

.footer-note {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ==========================================================
   响应式
   ========================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-index {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--graphite);
    border-bottom: 1px solid var(--slate);
    padding-inline: var(--pad-x);
    transition: max-height .25s var(--ease), visibility .25s var(--ease);
  }
  .nav-index[data-open] {
    max-height: min(70vh, 460px);
    overflow: auto;
    visibility: visible;
  }

  .nav-index__list {
    flex-direction: column;
    gap: 0;
    padding-block: 8px;
  }
  .nav-index__item { border-bottom: 1px solid var(--slate); }
  .nav-index__item:last-child { border-bottom: 0; }
  .nav-index__link {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
  }

  .header-main__inner { min-height: 58px; gap: 12px; }
  .cta-pill { padding: 9px 16px; font-size: 13px; }
}

@media (max-width: 720px) {
  .header-top__inner {
    min-height: auto;
    padding-block: 10px;
    gap: 8px 14px;
  }
  .brandline__desc { display: none; }
  .season-tag { display: none; }
  .header-mail { margin-left: auto; font-size: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .watch-rail {
    left: 12px;
    right: 12px;
    width: auto;
    gap: 8px;
    padding: 12px 14px;
  }
  .watch-rail__list { max-height: 88px; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .cta-pill { padding: 8px 13px; font-size: 12px; }
}

/* ==========================================================
   动效
   ========================================================== */

@keyframes ob-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 245, 160, .5); }
  50% { box-shadow: 0 0 0 6px rgba(55, 245, 160, 0); }
}

@keyframes ob-flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 210, 0, .75); }
  100% { box-shadow: 0 0 0 10px rgba(255, 210, 0, 0); }
}

.is-flash { animation: ob-flash .4s ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .watch-rail { transform: none; }
}
