/* ============================================================
   宝威赛事 /assets/site.css — 全站共享层
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[id] { scroll-margin-top: 128px; }

/* ---------- tokens ---------- */
:root {
  --ink-deep: #0A2A24;
  --panel: #123B33;
  --mid: #1E5C4E;
  --cyan: #3DE8C8;
  --cyan-soft: #7FF0DC;
  --orange: #FF8A3D;
  --orange-soft: #FFE3CE;
  --slate: #E4EAF0;
  --slate-line: #C3D0DA;
  --paper: #F4F7F5;
  --text: #0E1613;
  --text-sub: #5A6B66;

  --font-display: 'Barlow Condensed', 'Oswald', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Noto Serif SC', 'Songti SC', Georgia, serif;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --header-h-compact: 56px;
  --focus: #0E1613;
  --shadow-soft: 0 18px 40px -30px rgba(10, 42, 36, .7);
  --progress: 0;
}

/* ---------- 中文排版基线 ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(16px, .55vw + 14.4px, 18px);
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.26; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
::selection { background: var(--cyan); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- 工具类 ---------- */
.container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 36em; }
.prose > * + * { margin-top: 1.1em; }
.prose :is(h2, h3) { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--mid); }
.prose a:hover { text-decoration-color: var(--orange); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); transform: skewX(-24deg); }
.label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-sub); }
.grid { display: grid; gap: 16px; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.on-dark { color: #D3E5DF; }
.on-dark :is(h1, h2, h3, h4) { color: var(--paper); }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-deep);
  --btn-bd: var(--slate-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .78em 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: #0E1613;
  --btn-bd: var(--orange);
  box-shadow: 0 14px 28px -18px rgba(255, 138, 61, .95);
}
.btn--primary:hover { --btn-bg: #FF9F5F; --btn-bd: #FF9F5F; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-deep); --btn-bd: var(--slate-line); }
.btn--ghost:hover { --btn-bg: var(--slate); --btn-bd: var(--mid); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--mid); }
.btn--on-dark:hover { --btn-bg: rgba(61, 232, 200, .08); --btn-bd: var(--cyan); --btn-fg: var(--cyan); }
.btn--sm { padding: .55em 1.1em; font-size: 13.5px; }

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .3em .72em;
  border: 1px solid var(--slate-line);
  border-radius: 999px;
  background: var(--slate);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge--live { background: rgba(61, 232, 200, .2); border-color: rgba(61, 232, 200, .55); color: #08322A; }
.badge--alert { background: var(--orange-soft); border-color: #F2C39E; color: #4A2205; }

/* ---------- 卡片 ---------- */
.card {
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-m);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}
.card--slate { background: var(--slate); border-color: var(--slate-line); box-shadow: none; }
.card--dark { background: var(--panel); border-color: var(--mid); color: #D3E5DF; box-shadow: none; }
.card--dark :is(h2, h3, h4) { color: var(--paper); }

/* ---------- 图片 / 图形容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-m);
  background:
    linear-gradient(145deg, var(--panel) 0%, var(--mid) 58%, var(--slate-line) 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 18px 0; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: 13px; color: var(--text-sub); }
.breadcrumb__item { display: inline-flex; align-items: center; gap: .5em; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--slate-line); }
.breadcrumb__link { color: var(--text-sub); border-bottom: 1px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease); }
.breadcrumb__link:hover { color: var(--mid); border-bottom-color: var(--mid); }
.breadcrumb__current { color: var(--ink-deep); font-weight: 600; }

/* ---------- 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   头部
   ============================================================ */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: #0E1613;
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -130%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--mid);
  --focus: var(--cyan);
}
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: min-height .24s var(--ease);
}
.site-header.is-compact .header-shell { min-height: var(--header-h-compact); }

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(148deg, var(--cyan) 0%, var(--cyan-soft) 40%, var(--mid) 100%);
  color: var(--ink-deep);
  box-shadow: 0 0 0 1px rgba(61, 232, 200, .3), 0 12px 24px -18px rgba(61, 232, 200, .95);
  transition: border-radius .24s var(--ease), transform .24s var(--ease);
}
.brand:hover .brand-mark { border-radius: 6px 18px 6px 18px; transform: rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--paper);
  transition: color .18s var(--ease);
}
.brand:hover .brand-name { color: var(--cyan); }
.brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--cyan-soft);
}

/* 导航 */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { min-width: 0; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #C6DBD4;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-link:hover { color: var(--paper); background: var(--panel); }
.nav-link[aria-current="page"] { color: var(--cyan); background: rgba(61, 232, 200, .1); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.nav-link--cta { border-color: var(--mid); color: var(--paper); }
.nav-link--cta:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(61, 232, 200, .07); }
.nav-link--cta[aria-current="page"] { border-color: var(--cyan); color: var(--cyan); background: rgba(61, 232, 200, .1); }
.nav-link--cta[aria-current="page"]::after { display: none; }

/* 移动展开按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--mid);
  border-radius: 999px;
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 42, 36, .62);
  backdrop-filter: blur(2px);
}
.nav-scrim[hidden] { display: none; }

/* 联赛状态带 */
.league-strip { background: var(--panel); border-top: 1px solid var(--mid); }
.league-strip__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  min-height: 40px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.league-strip__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan-soft);
}
.league-strip__list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 5px;
}
.league-strip__list::-webkit-scrollbar { display: none; }
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  flex: none;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(244, 247, 245, .05);
  color: #B4CBC4;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.league-chip:hover { color: var(--paper); background: rgba(244, 247, 245, .12); }
.league-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan-soft);
  color: var(--ink-deep);
  font-weight: 700;
}
.league-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 3px rgba(61, 232, 200, .14);
}
.league-chip[aria-pressed="true"] .league-chip__dot { background: var(--ink-deep); box-shadow: none; }
.league-strip__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: auto;
  font-size: 12px;
  color: #9DB7B0;
}
.league-strip__now { white-space: nowrap; }
.league-strip__now :is(span) { color: var(--cyan-soft); font-weight: 600; }
.league-strip__stamp { font-family: var(--font-mono); color: #7E9A93; white-space: nowrap; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: auto;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(61, 232, 200, .09), transparent 58%),
    var(--ink-deep);
  color: #C6DCD5;
  --focus: var(--cyan);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mid) 55%, rgba(30, 92, 78, .2) 100%);
}
.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}
.footer-brand__link { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(148deg, var(--cyan), var(--mid));
  color: var(--ink-deep);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
}
.footer-brand__line {
  margin-top: 16px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.75;
  color: #A7C1B9;
}
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.footer-list { display: grid; gap: 2px; }
.footer-nav .footer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.footer-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 14.5px;
  color: #C6DCD5;
  transition: color .18s var(--ease);
}
.footer-link:hover { color: var(--cyan); }
.footer-contact { min-width: 0; }
.copy-line { display: block; min-width: 0; }
.copy-line__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-left: -12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #D6E6E1;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.copy-line__btn:hover { border-color: var(--mid); background: rgba(61, 232, 200, .07); color: var(--paper); }
.copy-line__key {
  flex: none;
  width: 2.4em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan-soft);
}
.copy-line__value {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}
.copy-line__hint {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--mid);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  color: #8FA9A2;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.copy-line__btn:hover .copy-line__hint { background: var(--cyan); border-color: var(--cyan); color: var(--ink-deep); }
.footer-address { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: #A7C1B9; }
.footer-note { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: #86A29A; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 18px 24px;
  border-top: 1px solid rgba(30, 92, 78, .85);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #809C94;
}
.footer-legal__copy { letter-spacing: .02em; }
.footer-legal__icp { margin-left: auto; }

/* 移动导航开启时锁定滚动 */
body.is-nav-open { overflow: hidden; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-link { padding: 9px 10px; font-size: 14px; }
  .brand-name { font-size: 20px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(340px, 86vw);
    padding: calc(var(--header-h) + 24px) 20px 32px;
    overflow-y: auto;
    background: var(--ink-deep);
    border-left: 1px solid var(--mid);
    box-shadow: -26px 0 60px -32px rgba(0, 0, 0, .9);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open="true"] .site-nav { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-item { width: 100%; }
  .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    font-size: 16px;
  }
  .nav-link[aria-current="page"]::after { left: 16px; right: auto; bottom: 50%; width: 3px; height: 18px; transform: translateY(50%); }
  .nav-link--cta { margin-top: 10px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .14em; }
  .league-strip__label { display: none; }
  .league-strip__stamp { display: none; }
  .league-strip__meta { font-size: 11.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav .footer-list { grid-template-columns: 1fr 1fr; }
  .footer-legal__icp { margin-left: 0; }
}

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .brand:hover .brand-mark { transform: none; }
  .site-nav { transition: none; }
}
