/* ==========================================================================
   悦盈体育 · 共享样式 /assets/site.css
   夜场记分牌：深靛蓝环境光 + 荧光青绿数据焦点 + 红黄牌语义色
   ========================================================================== */

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

* { margin: 0; }

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 84% -8%, rgba(67, 245, 200, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 6%, rgba(185, 113, 79, 0.10), transparent 64%),
    radial-gradient(760px 480px at 50% 108%, rgba(30, 42, 71, 0.85), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a { color: inherit; }

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

::selection {
  background: rgba(67, 245, 200, 0.32);
  color: var(--paper);
}

/* 2. Tokens
   ========================================================================== */
:root {
  --ink: #0B1228;
  --ink-2: #111B36;
  --slate: #1E2A47;
  --stone: #3B4763;
  --paper: #F2EBDD;
  --mint: #43F5C8;
  --mint-soft: rgba(67, 245, 200, 0.14);
  --amber: #FFB020;
  --red: #F0442E;
  --moss: #6F8F6A;
  --clay: #B9714F;
  --cream: #E8DEC8;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Barlow Condensed", "Roboto Condensed", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;

  --shell: 1240px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --gap: clamp(18px, 2.4vw, 32px);
  --pad-x: clamp(16px, 3vw, 32px);
}

/* 3. Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--paper);
}

h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: 0; }

p { color: rgba(242, 235, 221, 0.82); }

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

small { font-size: 12.5px; }

.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  color: rgba(242, 235, 221, 0.84);
}

/* 4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--narrow { max-width: 760px; }

.section {
  padding-block: clamp(36px, 5vw, 76px);
}

.section--tight { padding-block: clamp(22px, 3vw, 40px); }

.grid {
  display: grid;
  gap: var(--gap);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }

/* 5. Buttons & chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn--primary {
  background: var(--mint);
  color: #061225;
}

.btn--primary:hover {
  background: #6ffbdb;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(67, 245, 200, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(59, 71, 99, 0.95);
}

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

.btn--chip {
  padding: 8px 16px;
  font-size: 13px;
  background: rgba(30, 42, 71, 0.85);
  border-color: rgba(59, 71, 99, 0.9);
  color: var(--paper);
}

.btn--chip:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 71, 99, 0.85);
  background: rgba(30, 42, 71, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(242, 235, 221, 0.86);
  white-space: nowrap;
}

.chip--mint {
  background: rgba(67, 245, 200, 0.12);
  border-color: rgba(67, 245, 200, 0.45);
  color: var(--mint);
}

.chip--red {
  background: rgba(240, 68, 46, 0.16);
  border-color: rgba(240, 68, 46, 0.5);
  color: #FF9184;
}

.chip--amber {
  background: rgba(255, 176, 32, 0.14);
  border-color: rgba(255, 176, 32, 0.5);
  color: var(--amber);
}

.chip--moss {
  background: rgba(111, 143, 106, 0.18);
  border-color: rgba(111, 143, 106, 0.55);
  color: #A8C4A2;
}

/* 6. Header — 悬浮胶囊浮岛
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 400;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: #061225;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 14px var(--pad-x);
  background: linear-gradient(180deg, rgba(9, 15, 33, 0.94) 0%, rgba(11, 18, 40, 0.72) 68%, rgba(11, 18, 40, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 0.22s ease, background 0.22s ease;
}

.site-header[data-condensed] {
  padding-top: 8px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(7, 13, 28, 0.97) 0%, rgba(9, 15, 33, 0.88) 100%);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-island {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 18px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(67, 245, 200, 0.22);
  background: rgba(30, 42, 71, 0.72);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.brand-island:hover {
  border-color: rgba(67, 245, 200, 0.6);
  background: rgba(30, 42, 71, 0.95);
  transform: translateY(-1px);
}

.brand-mark {
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mint);
  line-height: 1.4;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(67, 245, 200, 0.28);
  background: rgba(30, 42, 71, 0.92);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.nav-toggle:hover { border-color: rgba(67, 245, 200, 0.65); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform 0.2s ease, opacity 0.16s ease;
}

.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle-text {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(242, 235, 221, 0.9);
}

.nav-pod {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 71, 99, 0.85);
  background: rgba(17, 27, 54, 0.8);
  box-shadow: 0 20px 44px -32px #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(242, 235, 221, 0.76);
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: translateX(-50%) scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(67, 245, 200, 0.08);
}

.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-link[aria-current="page"] { color: var(--mint); }

.nav-link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

.nav-cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: #061225;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-cta:hover {
  background: #6ffbdb;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(67, 245, 200, 0.16);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--mint), var(--amber) 72%, var(--clay));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.9;
  transition: transform 0.08s linear;
}

/* 7. Footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(56px, 9vw, 118px);
  padding: clamp(38px, 6vw, 72px) var(--pad-x) 26px;
  background: #070D1C;
  border-top: 1px solid rgba(59, 71, 99, 0.7);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
}

.footer-lead { display: block; }

.footer-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

.footer-badge {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(67, 245, 200, 0.32);
  background: rgba(67, 245, 200, 0.1);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.footer-tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(242, 235, 221, 0.74);
}

.footer-lead .btn { margin-top: 20px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--stone);
  text-transform: uppercase;
}

.footer-list { display: grid; gap: 2px; }

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: rgba(242, 235, 221, 0.8);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-link:hover {
  color: var(--mint);
  transform: translateX(2px);
}

.footer-link--inline {
  padding: 0;
  font-size: 12.5px;
  color: rgba(232, 222, 200, 0.62);
}

.footer-link--inline:hover { transform: none; }

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px clamp(20px, 3vw, 36px);
  padding-top: 24px;
  border-top: 1px solid rgba(59, 71, 99, 0.55);
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
}

.footer-label {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.footer-value {
  color: rgba(242, 235, 221, 0.9);
  word-break: break-word;
}

.footer-value:nth-child(n) { font-variant-numeric: tabular-nums; }

.footer-note {
  grid-column: 1 / -1;
  max-width: 64ch;
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(232, 222, 200, 0.72);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(59, 71, 99, 0.55);
  font-size: 12.5px;
  color: rgba(59, 71, 99, 0.98);
}

.footer-legal {
  font-size: 12.5px;
  color: rgba(232, 222, 200, 0.58);
  font-variant-numeric: tabular-nums;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* 8. Shared components
   ========================================================================== */
.breadcrumb {
  font-size: 13px;
  color: var(--stone);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(59, 71, 99, 0.95);
}

.breadcrumb a {
  color: rgba(242, 235, 221, 0.72);
  text-decoration: none;
  transition: color 0.16s ease;
}

.breadcrumb a:hover { color: var(--mint); }

.breadcrumb [aria-current="page"] { color: var(--paper); }

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 71, 99, 0.72);
  background: linear-gradient(180deg, rgba(17, 27, 54, 0.95), rgba(13, 22, 44, 0.95));
}

.panel--paper {
  background: var(--cream);
  border-color: rgba(185, 113, 79, 0.4);
  color: #1A2338;
}

.panel--paper p,
.panel--paper .lede { color: rgba(26, 35, 56, 0.86); }

.panel--paper .eyebrow { color: var(--clay); }

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 71, 99, 0.8);
  background:
    radial-gradient(120% 120% at 18% 0%, #16233F 0%, #0D1730 58%, #0A1122 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--inline { aspect-ratio: auto; min-height: 0; }

.media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(67, 245, 200, 0.3);
  background: rgba(11, 18, 40, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: rgba(67, 245, 200, 0.55);
  background-image: repeating-linear-gradient(135deg, rgba(67, 245, 200, 0.06) 0 2px, transparent 2px 12px);
}

/* Reveal（渐进显现，JS 关闭时默认可见） */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* 9. Focus
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* 10. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3,
  .col-4,
  .col-5 { grid-column: span 6; }
  .col-7,
  .col-8,
  .col-9 { grid-column: span 6; }
}

@media (max-width: 980px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { max-width: 52ch; }
}

@media (max-width: 860px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand-island {
    padding: 8px 14px 9px;
  }

  .brand-mark { font-size: 9.5px; letter-spacing: 0.16em; }
  .brand-name { font-size: 15px; }

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

  .nav-pod {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 130;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: min(72vh, 460px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 26px;
    border-color: rgba(67, 245, 200, 0.25);
    background: rgba(13, 22, 44, 0.97);
    box-shadow: 0 30px 64px -22px rgba(0, 0, 0, 0.92);
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-header[data-open] .nav-pod {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
  }

  .nav-link::after {
    left: 8px;
    bottom: 50%;
    width: 3px;
    height: 18px;
    transform: translateY(50%) scaleY(0);
    transform-origin: 50% 50%;
    transition: transform 0.18s ease;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { transform: translateY(50%) scaleY(1); }

  .nav-link[aria-current="page"] {
    color: var(--mint);
    background: rgba(67, 245, 200, 0.12);
  }

  .nav-cta {
    margin: 4px 0 0;
    padding: 13px 18px;
    text-align: center;
  }

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

@media (max-width: 560px) {
  body { font-size: 15.5px; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .heading-xl,
  h1 { font-size: clamp(28px, 8vw, 38px); }
}

/* 11. 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;
    scroll-behavior: auto !important;
  }

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

  .brand-island:hover,
  .btn:hover,
  .nav-cta:hover,
  .footer-link:hover { transform: none; }
}
