/* ==========================================================================
   盈嘉体育看台 · 共享样式 /assets/site.css
   框架式导航 + 切角 Bento + 夜间记分牌色彩节奏
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

html.nav-open { overflow: hidden; }

/* ---------- 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #050F1A;
  --panel: #0B1F31;
  --panel-2: #143A55;
  --line: #2A5B7E;
  --line-soft: rgba(42, 91, 126, .5);
  --orange: #FF5A1F;
  --orange-hi: #FF8A47;
  --mint: #2EE6A8;
  --text: #F2F7FA;
  --muted: #9DB3C4;
  --amber: #FFC24D;

  /* 尺寸 */
  --rail-w: 76px;
  --rail-w-open: 216px;
  --bar-h: 44px;
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 64px);
  --cut: 22px;

  /* 字体 */
  --font-display: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .32s;

  /* 字号阶梯 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-44: 44px;
  --fs-64: 64px;
  --fs-96: 96px;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-inline-start: var(--rail-w);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -10%, rgba(20, 58, 85, .55), transparent 70%),
    radial-gradient(760px 520px at 6% 108%, rgba(255, 90, 31, .09), transparent 68%),
    repeating-linear-gradient(90deg, rgba(42, 91, 126, .10) 0 1px, transparent 1px 120px);
  background-attachment: fixed, fixed, scroll;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main { display: block; outline: none; }

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

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: calc(var(--rail-w) + 14px);
  z-index: 200;
  padding: 10px 20px;
  background: var(--orange);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

/* ==========================================================================
   Header · 顶部赛季状态条
   ========================================================================== */
.site-header { position: relative; z-index: 60; }

.status-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-inline: var(--gutter);
  background: linear-gradient(90deg, #071625 0%, var(--panel) 62%, #061320 100%);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  height: var(--bar-h);
  max-width: var(--maxw);
  margin-inline: auto;
  overflow: hidden;
  transition: height var(--dur) var(--ease), opacity .2s linear;
}

.status-bar.is-condensed { border-bottom-color: var(--orange); }
.status-bar.is-condensed .status-bar__inner { height: 7px; opacity: .15; }

.status-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .02em;
}

.status-bar__mark {
  width: 10px;
  height: 10px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.status-bar__name { white-space: nowrap; }

.status-bar__season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.status-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, .16);
}

.status-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.status-bar__ruler {
  height: 3px;
  max-width: var(--maxw);
  margin-inline: auto;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 18px);
  opacity: .9;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(20, 58, 85, .4);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .06em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover { border-color: var(--orange); color: var(--orange-hi); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .2s linear;
}

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

/* ==========================================================================
   Header · 左侧框架刻度导航
   ========================================================================== */
.rail-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding-block: 16px 20px;
  background: linear-gradient(180deg, #071625 0%, #050F1A 72%, #04101A 100%);
  border-inline-end: 1px solid var(--line);
  overflow: hidden;
  transition: width var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-nav:hover,
.rail-nav:focus-within {
  width: var(--rail-w-open);
  box-shadow: 22px 0 48px -24px rgba(0, 0, 0, .85);
}

.rail-nav__meta {
  flex: 0 0 auto;
  padding-inline: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--line);
  white-space: nowrap;
  opacity: .8;
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  gap: 4px;
  padding-block: 12px;
}

.rail-nav__item { display: block; }

.rail-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: var(--rail-w-open);
  height: 60px;
  padding-inline: 20px;
  color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.rail-nav__index {
  flex: 0 0 auto;
  width: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--line);
  transition: color .2s var(--ease);
}

.rail-nav__label {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s linear, transform var(--dur) var(--ease);
}

.rail-nav:hover .rail-nav__label,
.rail-nav:focus-within .rail-nav__label {
  opacity: 1;
  transform: none;
}

.rail-nav__link::before {
  content: "";
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 0;
  width: 3px;
  background: transparent;
  transition: background-color .2s var(--ease);
}

.rail-nav__link:hover { color: var(--text); background: rgba(20, 58, 85, .38); }
.rail-nav__link:hover .rail-nav__index { color: var(--orange-hi); }

.rail-nav__link[aria-current="page"] { color: var(--text); }
.rail-nav__link[aria-current="page"] .rail-nav__index { color: var(--orange); }
.rail-nav__link[aria-current="page"]::before { background: var(--orange); }

.rail-nav__foot {
  flex: 0 0 auto;
  padding-inline: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--line);
  white-space: nowrap;
  opacity: .8;
}

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn--primary { background: var(--orange); color: #08131E; }
.btn--primary:hover { background: var(--orange-hi); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-hi); transform: translateY(-2px); }

.btn--sm { padding: 8px 16px; font-size: var(--fs-12); }
.btn--lg { padding: 16px 32px; font-size: var(--fs-16); }

/* ==========================================================================
   通用容器 / 编号章节 / 网格
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--orange);
  display: inline-block;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--text);
}

.section__lede {
  max-width: 42ch;
  font-size: var(--fs-16);
  line-height: 1.7;
  color: var(--muted);
}

.section__body { display: block; }

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

.grid--halves { grid-template-columns: minmax(0, 1fr); }
.grid--thirds { grid-template-columns: minmax(0, 1fr); }

.rule {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px);
  opacity: .9;
}

/* ==========================================================================
   切角面板
   ========================================================================== */
.panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.panel:hover { border-color: var(--orange); transform: translateY(-2px); }

.panel--pad { padding: clamp(20px, 2.4vw, 32px); }

.panel--bl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ==========================================================================
   图片容器基础规则
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--panel) 0%, var(--panel-2) 58%, #061320 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06) brightness(.82);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(115% 100% at 50% 38%, transparent 32%, rgba(5, 15, 26, .78) 100%);
}

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

.media-frame__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .05em;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(5, 15, 26, .94), transparent);
}

/* ==========================================================================
   标签 / 数字 / 面包屑 / 正文
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--mint { border-color: rgba(46, 230, 168, .5); color: var(--mint); }
.tag--amber { border-color: rgba(255, 194, 77, .55); color: var(--amber); }

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
}

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

.breadcrumb { padding-block: 24px 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb__link { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb__link:hover { color: var(--orange-hi); }

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

.prose { max-width: 42ch; }
.prose > * + * { margin-top: 1.1em; }

.prose p,
.prose li {
  font-size: var(--fs-16);
  line-height: 1.78;
  color: var(--muted);
}

.prose strong { color: var(--text); font-weight: 600; }

.prose ul > li { position: relative; padding-inline-start: 18px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .72em;
  width: 7px;
  height: 2px;
  background: var(--orange);
}

/* ==========================================================================
   显现动效协议
   ========================================================================== */
[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

[data-js] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 9vw, 140px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, #061320 100%);
}

.footer__ruler {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 22px);
  opacity: .8;
}

.footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 3.4vw, 56px);
}

.footer__col { min-width: 0; }

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.footer__tagline {
  max-width: 30ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid rgba(46, 230, 168, .45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--mint);
}

.footer__badge-mark {
  width: 7px;
  height: 7px;
  background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}

.footer__heading {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text);
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__text {
  font-size: var(--fs-14);
  color: var(--muted);
}

.footer__link {
  display: inline-block;
  font-size: var(--fs-14);
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer__link:hover { color: var(--orange-hi); transform: translateX(3px); }

.footer__more {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--orange);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .05em;
  color: var(--orange);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer__more:hover { color: var(--orange-hi); border-color: var(--orange-hi); }

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--line);
}

.footer__meta-value {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal-link {
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.footer__legal-link:hover { color: var(--orange-hi); }

.footer__copyright {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .03em;
  color: var(--line);
}

.footer__dot {
  width: 3px;
  height: 3px;
  background: var(--line);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 720px) {
  .grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(20px, 2.4vw, 36px);
  }
  .section__num { grid-row: span 2; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
  .footer__col--brand { grid-column: auto; }
}

@media (max-width: 900px) {
  body { padding-inline-start: 0; }

  .skip-link { inset-inline-start: 14px; }

  .status-bar { padding-inline: 16px; }
  .status-bar__season { display: none; }
  .nav-toggle { display: inline-flex; }

  .rail-nav {
    width: min(304px, 84vw);
    padding-block: calc(var(--bar-h) + 20px) 24px;
    transform: translateX(-101%);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    box-shadow: none;
    border-inline-end: 1px solid var(--line);
  }

  .rail-nav:hover,
  .rail-nav:focus-within { width: min(304px, 84vw); }

  .rail-nav[data-open] {
    transform: none;
    box-shadow: 0 0 0 100vmax rgba(5, 15, 26, .72), 26px 0 60px -30px #000;
  }

  .rail-nav__label {
    opacity: 1;
    transform: none;
  }

  .rail-nav__link { height: 56px; }

  .footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: var(--fs-16); }
  .status-bar__name { display: none; }
  .status-bar__actions .btn { display: none; }
  .footer__legal { gap: 14px; }
}

/* ==========================================================================
   减弱动效
   ========================================================================== */
@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;
  }

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