/* ============================================================
   即胜体育 /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, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; 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 {
  --green: #0B3B2E;
  --ink: #06120F;
  --cyan: #2FF0BE;
  --yellow: #FFE14D;
  --black: #08090A;
  --orange: #FF5A2B;
  --blue: #2C6BFF;
  --blue-l: #6FD3FF;
  --violet: #8A4DE8;
  --violet-l: #D08CFF;
  --paper: #F4F7F5;
  --grey: #9AA6A1;

  --font-head: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 24px;
  --line: rgba(154, 166, 161, .22);
  --line-strong: rgba(47, 240, 190, .32);
  --shadow: 0 26px 60px -42px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(85% 55% at 100% 0%, rgba(11, 59, 46, .85), transparent 62%),
    radial-gradient(60% 50% at 0% 100%, rgba(44, 107, 255, .10), transparent 68%);
  background-attachment: fixed;
  color: #E6EFEA;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
}

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

::selection { background: var(--cyan); color: #04120E; }

/* ---------- 4. Type utilities ---------- */
.t-display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: .94;
  letter-spacing: -.02em;
  color: #F4F7F5;
}
.t-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.02em;
}
.index-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}
.lede { max-width: 60ch; font-size: clamp(16px, 1.6vw, 19px); opacity: .84; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* ---------- 5. Layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 840px; }
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--paper { background: var(--paper); color: #0A1A15; }
.section--paper .t-display, .section--paper .t-title { color: #06120F; }
.section--green { background: linear-gradient(180deg, #0B3B2E, #08251D); }
.section--ink { background: #06120F; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 44px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.g-4 { grid-column: span 4; }
.g-5 { grid-column: span 5; }
.g-6 { grid-column: span 6; }
.g-7 { grid-column: span 7; }
.g-8 { grid-column: span 8; }
.g-12 { grid-column: span 12; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: #04120E; box-shadow: 0 14px 32px -20px rgba(47, 240, 190, .95); }
.btn-primary:hover { background: #5BF9D1; }
.btn-ghost { border-color: var(--line-strong); color: #E6F4EE; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(47, 240, 190, .08); }
.btn-orange { background: var(--orange); color: #1A0A03; }
.btn-orange:hover { background: #FF7A52; }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; color: var(--grey); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; }
.crumb { color: var(--grey); }
.crumb a:hover { color: var(--cyan); }
.crumb[aria-current="page"] { color: var(--cyan); }
.crumb + .crumb::before { content: "/"; margin: 0 10px; color: rgba(154, 166, 161, .5); }

/* ---------- 8. Media containers ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #0B3B2E 0%, #06120F 78%);
}
.media-frame img, .media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 15, 0) 46%, rgba(6, 18, 15, .58) 100%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-caption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--grey); }
.pitch-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 240, 190, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 240, 190, .16) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 32% 28%, #000 2%, transparent 76%);
  mask-image: radial-gradient(circle at 32% 28%, #000 2%, transparent 76%);
}

/* ---------- 9. Reveal / filter states ---------- */
.is-hidden { display: none !important; }
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   10. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  transition: padding .28s var(--ease);
}
.site-header.is-compact { padding-top: 8px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -90px;
  z-index: 99;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04120E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.header-island {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(11, 59, 46, .95) 0%, rgba(6, 18, 15, .93) 68%);
  box-shadow: 0 26px 52px -36px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(244, 247, 245, .07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: padding .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header.is-compact .header-island {
  padding: 6px 10px 6px 14px;
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(244, 247, 245, .06);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: clamp(10px, 1.6vw, 20px);
  border-right: 1px solid var(--line);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--cyan), #0C7A5E);
  color: #04120E;
  box-shadow: 0 0 0 1px rgba(47, 240, 190, .45), 0 10px 24px -16px rgba(47, 240, 190, .95);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .05em;
  color: #F4F7F5;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--grey);
  white-space: nowrap;
  transition: opacity .28s ease;
}
.site-header.is-compact .brand-sub { opacity: .55; }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(47, 240, 190, .08);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-toggle-lines { display: grid; gap: 4px; width: 16px; }
.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* nav */
.site-nav { margin: 0 auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: block; }
.nav-link {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #CFE0D9;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover { color: var(--cyan); background: rgba(47, 240, 190, .10); }
.nav-link[aria-current="page"] {
  background: var(--cyan);
  color: #04120E;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(47, 240, 190, .45);
}

/* utility */
.header-utility { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #DCE8E3;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.utility-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(47, 240, 190, .07); }
.utility-key { font-size: 10px; letter-spacing: .2em; color: var(--grey); }
.utility-value {
  display: inline-block;
  min-width: 42px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--yellow);
}
.utility-link--icon { width: 38px; padding: 0; justify-content: center; }
.utility-icon { display: grid; place-items: center; }
.utility-icon svg { width: 16px; height: 16px; }

/* progress */
.header-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow) 62%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* header responsive */
@media (max-width: 1080px) {
  .utility-key { display: none; }
  .nav-link { padding: 9px 11px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(11, 59, 46, .98), rgba(6, 18, 15, .98));
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-nav[data-open] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 16px; border-radius: 16px; font-size: 16px; }
  .nav-link[aria-current="page"] { border-radius: 16px; }
}
@media (max-width: 760px) {
  .header-utility { display: none; }
  .brand { border-right: 0; padding-right: 0; }
  .header-island { padding: 8px 10px 8px 12px; }
  .site-header { padding: 10px 12px 0; }
}
@media (max-width: 430px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
}

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  color: #DCE8E3;
  border-top: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 120% at 6% 0%, rgba(47, 240, 190, .16), transparent 58%),
    radial-gradient(70% 90% at 100% 8%, rgba(255, 90, 43, .10), transparent 62%),
    linear-gradient(180deg, #0B3B2E 0%, #08251D 56%, #06120F 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px) var(--gutter) clamp(24px, 3vw, 36px);
}
.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: .03em;
  color: #F4F7F5;
}
.footer-brand-sub { margin-top: 8px; font-size: 11px; letter-spacing: .24em; color: var(--cyan); }
.footer-note { margin-top: 18px; max-width: 34ch; font-size: 15px; line-height: 1.7; color: #A9BDB4; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 240, 190, .5), rgba(47, 240, 190, 0));
}
.footer-list { display: grid; gap: 10px; margin-top: 16px; }
.footer-text { font-size: 15px; color: #BCD0C8; }
.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  color: #E2EFE9;
  background-image: linear-gradient(90deg, var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .24s var(--ease), color .24s ease;
}
.footer-link:hover { color: var(--cyan); background-size: 100% 1px; }

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(154, 166, 161, .24);
}
.footer-contact-item { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #DCE8E3; word-break: break-word; }
.footer-label { font-family: var(--font-head); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 26px;
  border-top: 1px solid rgba(154, 166, 161, .18);
}
.footer-legal, .footer-meta { font-size: 12px; letter-spacing: .1em; color: var(--grey); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   12. Motion safety
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
