/* ============================================================
   大发体育方 · 夜场数据看台
   共享样式表 /assets/site.css
   深墨绿底 / 荧光黄绿数据强调 / 切角面板 / 光轨分隔
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dt, dd, hr {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 表面 */
  --surface-0: #071711;
  --surface-1: #0B1F17;
  --surface-2: #123B2A;
  --surface-3: #17492F;

  /* 品牌与强调 */
  --turf: #1F7A4D;
  --lime: #C8FF4D;
  --lime-deep: #A9DC2E;
  --ice: #5FC8E8;
  --red: #E23B3B;
  --yellow: #F5C518;
  --clay: #8A7F72;
  --mist: #C7D2CC;
  --white: #F2F7F4;

  /* 线条 */
  --line: rgba(199, 210, 204, 0.16);
  --line-strong: rgba(199, 210, 204, 0.32);
  --line-lime: rgba(200, 255, 77, 0.28);
  --line-ice: rgba(95, 200, 232, 0.42);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 尺寸 */
  --maxw: 1280px;
  --gutter: 20px;
  --header-h: 64px;
  --header-h-stuck: 56px;
  --cut: 14px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* ---------- 3. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  isolation: isolate;
  background-color: var(--surface-1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 夜场灯光晕 + 细噪点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 6% -8%, rgba(200, 255, 77, 0.07), transparent 62%),
    radial-gradient(640px 480px at 98% 2%, rgba(95, 200, 232, 0.07), transparent 64%),
    radial-gradient(900px 720px at 50% 112%, rgba(31, 122, 77, 0.2), transparent 70%),
    radial-gradient(rgba(242, 247, 244, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 5px 5px;
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

p { line-height: 1.75; }

strong { font-weight: 700; color: var(--white); }

::selection {
  background: var(--lime);
  color: #06210F;
}

.display {
  font-size: clamp(2.1rem, 5.6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
}

.lede {
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ice);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 56px;
}

@media (min-width: 768px) {
  .section { padding-block: 80px; }
}

@media (min-width: 1200px) {
  .section { padding-block: 96px; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-head { margin-bottom: 44px; }
}

.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: #06210F;
  box-shadow: 3px 3px 0 rgba(200, 255, 77, 0.22);
}

.btn--primary:hover {
  background: #D6FF6B;
  box-shadow: 5px 5px 0 rgba(200, 255, 77, 0.32);
  transform: translate(-1px, -1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn--turf {
  background: var(--turf);
  color: var(--white);
}

.btn--turf:hover {
  background: #268F5B;
  transform: translateY(-2px);
}

/* ---------- 7. Symbols ---------- */
.round-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--lime);
  background: rgba(200, 255, 77, 0.1);
  border: 1px solid var(--line-lime);
}

.card-chip {
  --chip-w: 11px;
  --chip-h: 15px;
  display: inline-block;
  flex: none;
  width: var(--chip-w);
  height: var(--chip-h);
  border-radius: 2px;
  vertical-align: -1px;
}

.card-chip--lg {
  --chip-w: 18px;
  --chip-h: 24px;
  border-radius: 3px;
}

.card-chip--yellow { background: var(--yellow); }
.card-chip--red { background: var(--red); }

.track {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(95, 200, 232, 0.45) 18%,
    rgba(200, 255, 77, 0.5) 50%,
    rgba(95, 200, 232, 0.45) 82%,
    transparent 100%
  );
}

.track--thick { height: 3px; }

/* ---------- 8. Panels & cards ---------- */
.panel {
  background: var(--surface-2);
  padding: 24px;
}

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

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

.card {
  position: relative;
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 22px;
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background-color 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--ice);
  background: var(--surface-3);
}

/* ---------- 9. Score strip ---------- */
.score-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.score-strip:hover {
  transform: translateY(-2px);
  border-color: var(--ice);
  border-left-color: var(--ice);
  background: var(--surface-3);
}

.score-strip__round {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.score-strip__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.score-strip__side {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-strip__side--away { text-align: right; }

.score-strip__nums {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.score-strip__cards {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

/* ---------- 10. Stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 11. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-0));
  border: 1px solid var(--line);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(200, 255, 77, 0.13), transparent 66%),
    radial-gradient(55% 50% at 82% 78%, rgba(95, 200, 232, 0.13), transparent 68%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(242, 247, 244, 0.055) 0 1px,
    transparent 1px 64px
  );
}

.media-frame img,
.media-frame picture,
.media-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 18px 14px;
  font-size: 0.8125rem;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(7, 23, 17, 0.86));
}

/* ---------- 12. Prose & breadcrumbs ---------- */
.prose {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mist);
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--white);
}

.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.prose h3 { font-size: 1.125rem; }

.prose p + p { margin-top: 1.05em; }

.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.1em;
  list-style: disc;
}

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { color: var(--white); }

.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--clay);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.55;
}

.breadcrumbs a {
  color: var(--mist);
  transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover { color: var(--lime); }

/* ---------- 13. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  font-weight: 700;
  color: #06210F;
  background: var(--lime);
  transition: top 0.2s var(--ease);
}

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

/* ---------- 14. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: transparent;
  transition:
    height 0.3s var(--ease),
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 23, 17, 0.9) 0%,
    rgba(7, 23, 17, 0.48) 58%,
    rgba(7, 23, 17, 0) 100%
  );
  transition: opacity 0.3s var(--ease);
}

.site-header.is-stuck {
  height: var(--header-h-stuck);
  background-color: rgba(7, 23, 17, 0.95);
  box-shadow: 0 1px 0 rgba(200, 255, 77, 0.16), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-header.is-stuck::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 26px;
  background: linear-gradient(150deg, var(--turf), #14583A);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%
  );
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 4px;
  bottom: 6px;
  height: 2px;
  background: var(--lime);
  transform: rotate(-30deg);
  transform-origin: left center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.9875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* 导航 */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px var(--gutter) 26px;
  background: rgba(7, 23, 17, 0.985);
  border-bottom: 1px solid var(--line-lime);
  max-height: calc(100vh - var(--header-h-stuck));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.24s var(--ease),
    transform 0.24s var(--ease),
    visibility 0.24s linear;
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: 32px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.nav-list a:hover { color: var(--lime); }

.nav-list a[aria-current="page"] { color: var(--lime); }

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-pill {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-pill::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.18);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--white);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    display: block;
    flex: none;
    margin-left: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border-bottom: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .nav-list a {
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--mist);
    border-bottom: 0;
    white-space: nowrap;
  }

  .nav-list a::after {
    left: 12px;
    right: 12px;
    bottom: 2px;
    width: auto;
  }

  .nav-list a:hover { color: var(--white); }

  .nav-list a:hover::after { transform: scaleX(1); }

  .nav-list a[aria-current="page"] { color: var(--lime); }

  .header-actions { margin-left: 16px; }

  .header-pill { display: inline-flex; }

  .nav-toggle { display: none; }
}

@media (min-width: 1100px) {
  .nav-list a { font-size: 0.9rem; padding: 8px 14px; }
  .nav-list a::after { left: 14px; right: 14px; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  padding: 56px 0 28px;
  background-color: var(--surface-0);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(95, 200, 232, 0.5) 20%,
    var(--lime) 50%,
    rgba(95, 200, 232, 0.5) 80%,
    transparent
  );
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 28px;
  padding-bottom: 40px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
  }
  .footer-brand { grid-column: auto; }
}

.footer-brand { max-width: 46ch; }

.footer-mark {
  display: block;
  width: 22px;
  height: 28px;
  margin-bottom: 16px;
  background: linear-gradient(150deg, var(--turf), #14583A);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-note {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-contact {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  font-size: 0.8125rem;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.footer-contact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--clay);
}

.footer-contact dd {
  color: var(--mist);
  word-break: break-word;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.footer-col li + li { margin-top: 9px; }

.footer-col a {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--mist);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--clay);
}

.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--clay);
}

/* ---------- 16. Focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.is-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.is-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 60ms);
}

@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;
    transition-delay: 0ms !important;
  }

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

  .site-header { transition: none; }
  .card:hover,
  .score-strip:hover,
  .btn:hover { transform: none; }
}
