/* ==========================================================================
   三亿体育 · 共享样式表 /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; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { 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%; }

/* ---------- 2. Tokens ---------- */
:root {
  --void: #060B1A;
  --console: #0D1730;
  --steel: #1B2A4A;
  --cyan: #2FF3D6;
  --cyan-lt: #8CFFF0;
  --flame: #FF5A2B;
  --amber: #FFB020;
  --paper: #F2F5FA;
  --muted: #93A1BE;
  --deep-ink: #04121A;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1320px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --edge: 1px solid var(--steel);
  --shadow-console: 0 26px 60px -34px rgba(0, 0, 0, .92);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 620px at 78% -12%, rgba(47, 243, 214, .10), transparent 62%),
    radial-gradient(920px 520px at -12% 28%, rgba(255, 90, 43, .08), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.25; }
p { color: #D6DDEE; }
strong, b { font-weight: 700; color: var(--paper); }
a { transition: color .18s var(--ease); }
a:hover { color: var(--cyan); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}

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

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

::selection { background: rgba(47, 243, 214, .28); color: #fff; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px; left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--deep-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 0; color: var(--deep-ink); }

/* ---------- 5. 顶部阅读进度 ---------- */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(27, 42, 74, .6);
  pointer-events: none;
}
.scroll-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-lt) 100%);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* ---------- 6. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 26, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: var(--edge);
}
.masthead__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  transition: padding .24s var(--ease);
}
.masthead.is-condensed .masthead__inner { padding-top: 9px; padding-bottom: 6px; }
.masthead.is-condensed .brand__line { opacity: 0; transform: translateY(-4px); }

.masthead__rail {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.masthead__rail--left { justify-self: start; }
.masthead__rail--right { justify-self: end; }

.masthead__brand { justify-self: center; text-align: center; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: .26em;
  text-indent: .26em;
  line-height: 1.1;
  background: linear-gradient(92deg, var(--paper) 0%, var(--cyan-lt) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__line {
  font-size: 11px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: var(--muted);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.brand--stack { align-items: flex-start; }
.brand--stack .brand__line { text-indent: .28em; }

.masthead__sub,
.masthead__meta,
.masthead__chapter {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}
.masthead__sub .num,
.masthead__meta .num { color: var(--cyan); font-size: 14px; }
.masthead__chapter .num { color: var(--cyan-lt); font-size: 16px; }

/* ---------- 7. 导航 ---------- */
.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 2px 0 10px;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 15px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .24s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 8. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: var(--edge);
  border-radius: var(--radius-sm);
  background: rgba(13, 23, 48, .7);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--cyan); color: var(--deep-ink); }
.btn--primary:hover {
  background: var(--cyan-lt);
  color: var(--deep-ink);
  box-shadow: 0 0 0 5px rgba(47, 243, 214, .16);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--steel);
  background: rgba(13, 23, 48, .65);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--flame {
  border-color: rgba(255, 90, 43, .7);
  background: rgba(255, 90, 43, .12);
  color: var(--flame);
}
.btn--flame:hover { border-color: var(--flame); background: rgba(255, 90, 43, .2); color: #FFD3C4; }
.btn--sm { padding: 9px 15px; font-size: 12px; letter-spacing: .12em; }

/* ---------- 10. 标签 / 印记 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: var(--edge);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(47, 243, 214, .45); background: rgba(47, 243, 214, .08); }
.tag--flame { color: var(--flame); border-color: rgba(255, 90, 43, .5); background: rgba(255, 90, 43, .1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .1); }

/* ---------- 11. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.grid { display: grid; gap: var(--gutter); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.band {
  padding: 34px 0;
  background: linear-gradient(90deg, rgba(13, 23, 48, .92) 0%, rgba(6, 11, 26, .45) 100%);
  border-top: var(--edge);
  border-bottom: var(--edge);
}
.rule {
  position: relative;
  height: 1px;
  margin: 34px 0;
  background: var(--steel);
}
.rule::before {
  content: "";
  position: absolute;
  top: -4px; left: 0; right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 18px);
}

/* ---------- 12. 章节体系 ---------- */
.chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 22px;
  margin-bottom: 26px;
  padding-left: 18px;
  border-left: 2px solid transparent;
  transition: border-color .25s var(--ease);
}
.chapter__no {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: .9;
  color: var(--steel);
  transition: color .25s var(--ease);
}
.chapter__title {
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: .04em;
  color: var(--paper);
}
.chapter__note {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.chapter.is-current { border-left-color: var(--cyan); }
.chapter.is-current .chapter__no { color: var(--cyan); }
.chapter.is-current .chapter__title { color: var(--cyan-lt); }

/* ---------- 13. 卡片 / 框景 / 数据行 ---------- */
.card {
  position: relative;
  padding: 24px;
  background: var(--console);
  border: var(--edge);
  border-radius: var(--radius);
}
.card--raised { box-shadow: var(--shadow-console); }
.card--accent { border-color: rgba(47, 243, 214, .42); }
.card__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
}
.card__title { font-size: 20px; letter-spacing: .02em; margin-bottom: 8px; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__num { font-family: var(--font-mono); font-size: 30px; color: var(--cyan); line-height: 1.1; }

.framed {
  position: relative;
  padding: clamp(20px, 3vw, 38px);
  border: var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13, 23, 48, .78), rgba(6, 11, 26, .42));
}
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}
.framed::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.framed::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.framed__corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}
.framed__corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.framed__corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }

.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27, 42, 74, .7);
}
.data-row__time { font-family: var(--font-mono); font-size: 18px; color: var(--cyan); }
.data-row__score { font-family: var(--font-mono); font-size: 24px; color: var(--paper); }
.data-row--live { border-left: 2px solid var(--flame); padding-left: 12px; }

.data-table { font-size: 14px; }
.data-table th {
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 600;
  text-align: left;
  color: var(--muted);
  border-bottom: var(--edge);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(27, 42, 74, .6);
}
.data-table td .num { color: var(--cyan); }
.data-table tbody tr:hover { background: rgba(27, 42, 74, .35); }

/* ---------- 14. 正文 / 面包屑 ---------- */
.prose { max-width: 74ch; }
.prose p { margin-bottom: 1.15em; }
.prose h2 { margin: 36px 0 14px; font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { margin: 28px 0 10px; font-size: 19px; color: var(--cyan-lt); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 20px; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 16px; margin-bottom: .5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 8px; height: 1px;
  background: var(--cyan);
}
.prose ol { list-style: decimal; color: #D6DDEE; }
.prose a { color: var(--cyan-lt); border-bottom: 1px solid rgba(47, 243, 214, .4); }
.prose a:hover { color: var(--cyan); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { color: var(--steel); }

/* ---------- 15. 图片容器（页面阶段放置素材） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #0D1730 0%, #060B1A 100%);
}
.media > img,
.media > video,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .32;
  pointer-events: none;
}
.media__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(6, 11, 26, .92));
}

/* ---------- 16. 显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 17. 页脚 ---------- */
.site-foot {
  margin-top: 80px;
  border-top: var(--edge);
  background: linear-gradient(180deg, rgba(13, 23, 48, .55) 0%, var(--void) 100%);
}
.site-foot__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 58px var(--gutter) 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.4fr);
  gap: 44px;
}
.site-foot__brand { display: flex; flex-direction: column; gap: 18px; }
.site-foot__note { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 40ch; }

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; gap: 12px; font-size: 13px; line-height: 1.7; }
.contact-list__key {
  flex: 0 0 44px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan);
  padding-top: 2px;
}
.contact-list__val { color: var(--muted); word-break: break-all; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.foot-col__title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--cyan);
}
.foot-col__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.foot-col__link:hover { color: var(--paper); }

.site-foot__legal {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 42px;
  border-top: 1px solid rgba(27, 42, 74, .8);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.site-foot__legal-item { line-height: 1.7; }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--7-5,
  .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 12px var(--gutter) 8px;
    gap: 10px;
  }
  .masthead__rail--left { display: none; }
  .masthead__chapter { display: none; }
  .masthead__rail--right { gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .brand__mark { letter-spacing: .18em; text-indent: .18em; }

  .nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    max-width: none;
    max-height: 84vh;
    overflow-y: auto;
    padding: 12px var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px));
    background: var(--console);
    border-top: var(--edge);
    box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .95);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 0;
  }
  .nav__link {
    display: block;
    padding: 15px 12px;
    font-size: 15px;
    letter-spacing: .12em;
    border-bottom: 1px solid rgba(27, 42, 74, .8);
  }
  .nav__link::after { left: 12px; right: auto; width: 34px; bottom: 9px; }

  .section { padding: 48px 0; }
  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .chapter { padding-left: 14px; gap: 4px 16px; }
  .site-foot { margin-top: 56px; }
}

@media (max-width: 480px) {
  .masthead__sub { display: none; }
  .data-row { grid-template-columns: auto minmax(0, 1fr); }
  .data-row__score { grid-column: 2; }
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 19. 动效降级 ---------- */
@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-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-rail__bar { transition: none !important; }
}
