/* =========================================================
   YABO赛事 · 共享 Site Kit  /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, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #06101E;
  --ink-800: #0B1B2B;
  --line: #1E3A4F;
  --mint: #2FF3C5;
  --mint-deep: #0FA987;
  --orange: #FF8A3D;
  --orange-soft: #FFB067;
  --white: #F2F7F9;
  --muted: #8EA6B8;
  --dark: #041018;

  --rail-w: 232px;
  --bar-h: 64px;
  --bar-h-m: 56px;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 3px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-soft: 0 18px 44px -32px rgba(0, 0, 0, .95);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--white);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 460px at 82% -8%, rgba(47, 243, 197, .08), transparent 64%),
    radial-gradient(680px 400px at 4% 104%, rgba(255, 138, 61, .06), transparent 62%);
  background-repeat: no-repeat;
  min-height: 100vh;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { word-break: break-word; }

::selection { background: rgba(47, 243, 197, .28); color: var(--white); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

#main-content { scroll-margin-top: calc(var(--bar-h) + 18px); }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 页头骨架 ---------- */
.site-header { position: relative; z-index: 100; }

/* 5.1 顶部细边栏 */
.frame-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: rgba(6, 16, 30, .93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 90;
}

.frame-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 5.2 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  border-radius: 2px;
}
.brand__mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand__mark i { display: block; width: 3px; background: var(--mint); }
.brand__mark i:nth-child(1) { height: 9px; }
.brand__mark i:nth-child(2) { height: 15px; }
.brand__mark i:nth-child(3) { height: 22px; background: var(--orange); }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
  color: var(--white);
}
.brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1.5;
}
.brand:hover .brand__name { color: var(--mint); }
.brand:hover .brand__mark i:nth-child(1),
.brand:hover .brand__mark i:nth-child(2) { background: var(--mint); }

/* 5.3 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: width .12s linear;
}

/* 5.4 左侧导轨（桌面） */
.frame-rail {
  position: fixed;
  top: var(--bar-h); left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 22px 0 18px;
  background: linear-gradient(180deg, #08182A 0%, var(--ink-800) 100%);
  border-right: 1px solid var(--line);
  z-index: 80;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__head {
  padding: 0 20px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 20px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 247, 249, .74);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.rail__label { min-width: 0; }
.rail__idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.rail__link:hover { color: var(--white); background: rgba(47, 243, 197, .06); }
.rail__link:hover .rail__idx { color: var(--mint); }

.rail__link[aria-current="page"] {
  color: var(--mint);
  border-left-color: var(--mint);
  background: rgba(47, 243, 197, .09);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--mint); }

.rail__foot { margin-top: auto; padding: 22px 20px 0; }
.rail__scan {
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--mint), rgba(47, 243, 197, 0));
  opacity: .55;
}

/* 5.5 移动菜单开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .1em;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--mint); color: var(--mint); }
.nav-toggle__bars { display: block; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  margin: 3px 0;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) 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(-4.5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* 5.6 遮罩（仅移动端生效） */
.nav-scrim { display: none; }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--mint { background: var(--mint); color: var(--dark); }
.btn--mint:hover { background: #6BFFDA; }
.btn--orange { background: var(--orange); color: var(--dark); }
.btn--orange:hover { background: var(--orange-soft); }
.btn--ghost { border-color: var(--line); color: rgba(242, 247, 249, .88); background: transparent; }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--sm { padding: 7px 13px; font-size: 12px; }

/* ---------- 7. 通用排版零件 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mint);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--white);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--muted);
}
.tag--mint { border-color: rgba(47, 243, 197, .45); color: var(--mint); }
.tag--orange { border-color: rgba(255, 138, 61, .48); color: var(--orange); }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 243, 197, .16);
  animation: yabo-breathe 2.8s ease-in-out infinite;
}
@keyframes yabo-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 243, 197, .16); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 243, 197, .04); }
}

/* ---------- 8. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

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

.surface {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- 9. 面包屑与正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .16s var(--ease); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb__sep { opacity: .55; }
.breadcrumb [aria-current="page"] { color: var(--white); }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.88;
  color: rgba(242, 247, 249, .86);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--white);
  margin-top: 1.9em;
}
.prose h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-top: 1.6em; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.05em; top: .8em;
  width: 6px; height: 1px;
  background: var(--mint);
}
.prose ol { list-style: decimal; }
.prose strong { color: var(--white); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--mint);
  padding: 4px 0 4px 18px;
  color: rgba(242, 247, 249, .78);
}

/* ---------- 10. 标签页 / 筛选 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--muted);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { color: var(--mint); border-bottom-color: var(--mint); }
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.chip:hover { border-color: var(--mint); color: var(--white); }
.chip[aria-pressed="true"] {
  border-color: var(--mint);
  background: rgba(47, 243, 197, .12);
  color: var(--mint);
}

/* ---------- 11. 横向卡片带与时间线 ---------- */
.hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.hscroll > * { flex: 0 0 auto; scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-track { background: transparent; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.timeline__item:last-child { padding-bottom: 0; }

/* ---------- 12. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0) 40%, rgba(6, 16, 30, .94) 100%);
  pointer-events: none;
}
.media-frame__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(6, 16, 30, .78);
  border: 1px solid rgba(47, 243, 197, .4);
  color: var(--mint);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #08161F 0%, #050C15 100%);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px) 26px;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 180px; height: 2px;
  background: linear-gradient(90deg, var(--mint), rgba(47, 243, 197, 0));
}

.footer-inner {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--white);
}
.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mint);
}
.footer-brand__note {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-list li + li { margin-top: 9px; }
.footer-link {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 247, 249, .78);
  transition: color .16s var(--ease);
}
.footer-link:hover { color: var(--mint); }

.footer-contact-list li + li { margin-top: 10px; }
.footer-contact__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.footer-contact__v {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}
.footer-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-base {
  max-width: 1320px;
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer-base__copy { color: rgba(242, 247, 249, .6); }

/* ---------- 14. 平板 ---------- */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 46ch; }
}

/* ---------- 15. 移动端：抽屉导航 ---------- */
@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h-m);
  }

  #main-content { scroll-margin-top: calc(var(--bar-h-m) + 14px); }

  .frame-bar {
    height: var(--bar-h-m);
    padding: 0 14px;
    gap: 10px;
  }

  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 9px; letter-spacing: .13em; }

  .nav-toggle { display: inline-flex; }

  .frame-rail {
    top: var(--bar-h-m);
    left: auto; right: 0;
    width: min(84vw, 340px);
    border-right: 0;
    border-left: 1px solid var(--line);
    box-shadow: -28px 0 64px rgba(0, 0, 0, .55);
    transform: translateX(103%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
    z-index: 80;
  }
  .frame-rail[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s var(--ease), visibility 0s;
  }

  .frame-rail[data-open] ~ .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 16, 24, .74);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 75;
  }

  .rail__link { padding: 13px 20px; font-size: 15px; }
}

/* ---------- 16. 小屏 ---------- */
@media (max-width: 720px) {
  .frame-bar .btn--ghost { display: none; }
  .frame-bar .btn { padding: 9px 14px; font-size: 12.5px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
  .nav-toggle__label { display: none; }
}

/* ---------- 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;
  }
  .scroll-meter__fill { transition: none; }
}
