/* =========================================================
   新宝赛场 · 共享样式表 /assets/site.css
   夜场深底 + 数据流光的目录型内容地图
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #0A0E1A;
  --ink-800: #111726;
  --ink-750: #131A2B;
  --signal: #00FF9D;
  --blue: #1E90FF;
  --orange: #FF6B35;
  --paper: #F2E9D8;
  --paper-ink: #241C16;
  --muted: #A9B6CC;
  --teal: #0F2A34;
  --brown: #8A3A12;
  --brown-warm: #B8481A;
  --white: #FFFFFF;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --line-soft: rgba(169, 182, 204, 0.16);
  --line-mid: rgba(169, 182, 204, 0.30);

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. 基础与重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 78% -6%, rgba(30, 144, 255, 0.14), transparent 62%),
    radial-gradient(900px 560px at 4% 10%, rgba(0, 255, 157, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }

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

a { color: var(--blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--signal); }

button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- 3. 排版工具 ---------- */
.display-1 {
  font-size: clamp(2.5rem, 7.4vw, 5.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.display-2 {
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.8;
  color: rgba(242, 233, 216, 0.82);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
}

.annotation {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.prose {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(242, 233, 216, 0.86);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* ---------- 4. 布局容器 ---------- */
.page-shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: clamp(40px, 6vw, 84px) 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 26px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.section__head .lede { flex: 1 1 300px; }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.68em 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.btn--signal {
  background: var(--signal);
  color: #04140D;
}

.btn--signal:hover {
  background: #78FFC6;
  color: #04140D;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(169, 182, 204, 0.38);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.btn--quiet {
  background: rgba(30, 144, 255, 0.12);
  border-color: rgba(30, 144, 255, 0.36);
  color: #8FC8FF;
}

.btn--quiet:hover {
  background: rgba(30, 144, 255, 0.24);
  color: var(--white);
}

/* ---------- 6. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.crumbs__item { color: var(--muted); }
.crumbs__item a { color: var(--muted); }
.crumbs__item a:hover { color: var(--signal); }
.crumbs__sep { color: rgba(169, 182, 204, 0.5); }

/* ---------- 7. 纸面区块与卡片 ---------- */
.paper-block {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 52px);
}

.paper-block h2,
.paper-block h3 { color: var(--paper-ink); }

.paper-block .prose { color: #3A2E22; }
.paper-block .prose h2,
.paper-block .prose h3 { color: var(--paper-ink); }
.paper-block .eyebrow { color: var(--brown); }
.paper-block .annotation { color: #6B5A46; }

.paper-block a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-block a:hover { color: var(--brown-warm); }

.card {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.2vw, 28px);
  transition: border-color 0.22s ease, background-color 0.22s ease,
    transform 0.22s ease;
}

.card:hover {
  border-color: rgba(0, 255, 157, 0.55);
  background: var(--ink-750);
  transform: translateY(-2px);
}

.card__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 8. 图像容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background-color: var(--teal);
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(30, 144, 255, 0.36), transparent 56%),
    radial-gradient(90% 80% at 86% 18%, rgba(0, 255, 157, 0.22), transparent 60%),
    linear-gradient(160deg, #0F2A34, #0A0E1A 66%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(242, 233, 216, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(242, 233, 216, 0.05) 0 1px, transparent 1px 44px);
}

.media-frame img,
.media-frame picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }

.media-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(242, 233, 216, 0.88);
}

/* ---------- 9. 左侧比分追踪条 ---------- */
.score-rail { display: none; }

.score-rail__label {
  margin: 0 0 6px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.score-rail__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(15, 42, 52, 0.55);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.score-rail__item:hover {
  border-color: rgba(0, 255, 157, 0.6);
  background: rgba(0, 255, 157, 0.1);
}

.score-rail__item--hot { border-color: rgba(255, 107, 53, 0.72); }

.score-rail__league {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.score-rail__score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--signal);
}

/* ---------- 10. 头部 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--signal);
  color: #04140D;
  font-size: 0.88rem;
  font-weight: 700;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 14px; }

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(169, 182, 204, 0.12);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--signal), var(--blue) 55%, var(--orange));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, #0A0E1A 58%, rgba(10, 14, 26, 0));
}

.header-shell {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(17, 23, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, 0.95);
  transition: padding 0.22s ease, box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.site-header[data-condensed="true"] .header-shell {
  padding-top: 5px;
  padding-bottom: 5px;
  background: rgba(13, 18, 32, 0.96);
  box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand:hover { color: var(--paper); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--signal), #00C4F0);
  color: #04140D;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(242, 233, 216, 0.8);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav__link:hover {
  color: var(--signal);
  background: rgba(0, 255, 157, 0.09);
}

.site-nav__link[aria-current="page"] {
  color: #04140D;
  background: var(--signal);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-cta {
  font-size: 0.86rem;
  padding: 0.58em 1.05em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(30, 144, 255, 0.45);
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.14);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--signal);
  background: rgba(0, 255, 157, 0.12);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.header-note {
  width: calc(100% - 32px);
  max-width: 1320px;
  margin: 7px auto 0;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: rgba(169, 182, 204, 0.7);
  transition: opacity 0.22s ease;
}

.site-header[data-condensed="true"] .header-note { opacity: 0; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding-top: 44px;
  border-top: 1px solid var(--line-soft);
  background-color: #080C16;
  background-image:
    radial-gradient(760px 320px at 12% 0%, rgba(30, 144, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #0A0E1A, #080C16);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(320px, 42%);
  height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--blue) 70%, transparent);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.6fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3.4vw, 56px);
  padding-bottom: 40px;
}

.footer-brand__name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-brand__line {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.footer-tagline {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  border: 1px solid rgba(0, 255, 157, 0.38);
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.12);
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand__summary {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(242, 233, 216, 0.66);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}

.footer-nav__group { min-width: 0; }

.footer-nav__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 0.92rem;
  color: rgba(242, 233, 216, 0.78);
}

.footer-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.footer-nav__link:hover { color: var(--signal); }
.footer-nav__link:hover::after { transform: scaleX(1); }

.footer-contact { min-width: 0; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-list__key {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-list__val {
  color: rgba(242, 233, 216, 0.82);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 20px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(169, 182, 204, 0.14);
  font-size: 0.8rem;
  color: rgba(169, 182, 204, 0.8);
}

.footer-legal__copy { margin-right: auto; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal__links a { color: rgba(169, 182, 204, 0.88); }
.footer-legal__links a:hover { color: var(--signal); }

.footer-legal__icp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(169, 182, 204, 0.7);
}

/* ---------- 12. 显现动效钩子 ---------- */
html[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(8px);
}

html[data-reveal="on"] .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 13. 响应式 ---------- */
@media (min-width: 768px) {
  .page-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1023px) {
  .header-note { display: none; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid rgba(169, 182, 204, 0.2);
    border-radius: 24px;
    background: rgba(12, 17, 30, 0.98);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
  }

  .site-nav__link {
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 1rem;
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal__copy { margin-right: 0; }
}

@media (max-width: 520px) {
  .brand__line { display: none; }
  .brand__mark { width: 34px; height: 34px; border-radius: 11px; font-size: 0.95rem; }
  .brand__name { font-size: 0.96rem; }
  .header-shell { gap: 10px; padding-left: 12px; }
}

@media (min-width: 1280px) {
  body.has-rail .page-shell {
    padding-left: 124px;
    padding-right: 32px;
  }

  body.has-rail .score-rail {
    position: fixed;
    left: 16px;
    top: 118px;
    bottom: 28px;
    z-index: 70;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    overflow: hidden;
    border: 1px solid rgba(169, 182, 204, 0.2);
    border-radius: 30px;
    background: rgba(17, 23, 38, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ---------- 14. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-reveal="on"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn--signal:hover,
  .card:hover { transform: none; }
}
