/* ============================================================
   yabo888赛事 — 共享样式 /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, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- tokens ---------- */
:root {
  --ink: #05080F;
  --ink-2: #0B1422;
  --ice: #6EC8FF;
  --lime: #B8FF3D;
  --amber: #FFB020;
  --gray: #7F8FA6;
  --paper: #EAF2FF;
  --teal: #123A45;
  --alert: #FF5C7A;
  --scan: rgba(110, 200, 255, 0.12);
  --line: rgba(110, 200, 255, 0.22);
  --line-soft: rgba(234, 242, 255, 0.09);
  --shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.95);
  --r: 14px;
  --r-lg: 22px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 42px);
  --header-h: 0px;
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(940px 620px at 86% -10%, rgba(110, 200, 255, 0.13), transparent 62%),
    radial-gradient(700px 540px at 2% 4%, rgba(184, 255, 61, 0.07), transparent 64%),
    linear-gradient(rgba(110, 200, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 200, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 54px, 54px 100%;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed, fixed, scroll, scroll;
  overflow-x: hidden;
}
body::selection, ::selection { background: var(--lime); color: #0A1400; }

h1, .h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
h2, .h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 3.2vw, 33px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
h3, .h3 {
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.3;
  font-weight: 800;
  color: #FFFFFF;
}
p { color: var(--gray); }
strong { color: var(--paper); font-weight: 700; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -70px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--lime);
  color: #0A1400;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.97) 0%, rgba(11, 20, 34, 0.9) 100%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px var(--gutter) 11px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.masthead-note {
  justify-self: start;
  margin: 0;
  padding-left: 11px;
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.24em;
  color: var(--gray);
  text-transform: uppercase;
}
.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: 12px;
}
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(110, 200, 255, 0.5);
  background: linear-gradient(150deg, rgba(110, 200, 255, 0.2), rgba(5, 8, 15, 0.92));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 22px -12px rgba(110, 200, 255, 0.9);
}
.brand-mark::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 8px 0 -1px var(--ice);
}
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #FFFFFF;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ice);
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(110, 200, 255, 0.08);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ice);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 8, 15, 0.42);
}
.nav-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 32px);
}
.nav-link {
  position: relative;
  display: block;
  padding: 12px 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--gray);
  transition: color 0.18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--lime));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--paper); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--lime); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ice), var(--lime) 55%, var(--amber));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(120deg, var(--ice), #3AA9E8 90%);
  color: #04121C;
  box-shadow: 0 0 0 1px rgba(110, 200, 255, 0.45), 0 16px 32px -22px rgba(110, 200, 255, 0.95);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(110, 200, 255, 0.7), 0 18px 34px -20px rgba(110, 200, 255, 1); }
.btn-lime { background: var(--lime); color: #0A1400; }
.btn-lime:hover { transform: translateY(-1px); background: #C8FF63; }
.btn-ghost {
  background: rgba(110, 200, 255, 0.07);
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--ice); color: #FFFFFF; background: rgba(110, 200, 255, 0.14); }
.btn:active { transform: translateY(1px); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(38px, 6vw, 78px); }
.section--tight { padding-block: clamp(22px, 3.4vw, 40px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 26px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
}
.grid { display: grid; gap: clamp(14px, 2.2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(18, 58, 69, 0.5), rgba(11, 20, 34, 0.92) 62%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "›"; color: rgba(110, 200, 255, 0.6); }
.breadcrumbs a { color: var(--ice); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- chips / filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  appearance: none;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(110, 200, 255, 0.06);
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.chip:hover { color: var(--paper); border-color: var(--ice); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0A1400; }
[data-filter-item] { transition: opacity 0.2s ease; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- micro components ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(110, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(110, 200, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}
.tag--lime { color: var(--lime); border-color: rgba(184, 255, 61, 0.36); background: rgba(184, 255, 61, 0.08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.36); background: rgba(255, 176, 32, 0.08); }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}
.vnote {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- media frames（供页面阶段放置图片占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 92% at 18% 0%, rgba(110, 200, 255, 0.22), transparent 62%),
    linear-gradient(150deg, #0B1422, #05080F 62%);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: auto -18% -42% -18%;
  height: 62%;
  background: linear-gradient(90deg, rgba(184, 255, 61, 0.16), rgba(255, 176, 32, 0.13), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 200, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 200, 255, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.75;
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(44px, 7vw, 96px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0B1422 0%, #05080F 72%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ice), var(--lime) 42%, var(--amber));
  opacity: 0.85;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(0, 1.9fr) minmax(235px, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 6vw, 66px) clamp(24px, 3vw, 34px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--footer { justify-self: start; padding: 0; }
.footer-slogan {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.footer-col { min-width: 0; }
.footer-heading {
  position: relative;
  margin: 0 0 16px;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--ice);
}
.footer-list { display: grid; gap: 11px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--gray);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-link:hover, .footer-link:focus-visible { color: var(--ice); transform: translateX(3px); }
.footer-contact { min-width: 0; }
.contact-item { display: grid; gap: 3px; margin-bottom: 14px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
}
.contact-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}
.contact-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.footer-legal { margin: 0; color: var(--gray); }
.footer-copy { margin: 0; color: var(--gray); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(-14px, 22px, 0);
  transition: opacity 0.5s ease, transform 0.58s cubic-bezier(0.22, 0.8, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- mobile nav & compact header ---------- */
@media (max-width: 900px) {
  .masthead-note { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 12px var(--gutter); }
  .brand { justify-self: start; }
  .header-actions { justify-self: end; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 8, 15, 0.985);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 1);
    transition: max-height 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
  }
  .site-nav[data-open] { max-height: min(74vh, 540px); overflow-y: auto; }
  .nav-list { flex-direction: column; gap: 0; padding: 6px var(--gutter) 22px; }
  .nav-link {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--lime); }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .header-cta { padding: 8px 12px; font-size: 12px; letter-spacing: 0.02em; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-tagline { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .header-cta { font-size: 11px; padding: 7px 10px; }
}

/* ---------- reduced motion ---------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .header-progress { transition: none !important; }
}
