/* ============================================================
   /assets/site.css — 亚洲体育赛场 共享外壳
   夜场战术板：深墨绿底 / 纸感叠层 / 荧光青柠通道 / 暖橙红比分节点
   ============================================================ */

/* ---------- 0. Tokens ---------- */
:root {
  --ink: #0A1F17;
  --charcoal: #111614;
  --paper: #F4E9D6;
  --lime: #D8F26A;
  --ember: #FF6A4D;
  --moss: #93B3A4;
  --layer: #1C3A2C;
  --rule: #5E7469;
  --white: #FFF9EE;
  --ember-deep: #C64B32;

  --line: rgba(94, 116, 105, .36);
  --line-soft: rgba(94, 116, 105, .2);
  --paper-ink: #16221c;

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 3.6vw, 48px);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-height: 100svh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(216, 242, 106, .07), transparent 68%),
    radial-gradient(860px 520px at 2% 8%, rgba(255, 106, 77, .05), transparent 66%),
    repeating-linear-gradient(90deg, rgba(94, 116, 105, .07) 0 1px, transparent 1px 96px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

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

button { font: inherit; color: inherit; }

ul,
ol { padding: 0; }

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-stretch: condensed;
  line-height: 1.03;
  letter-spacing: -.005em;
  color: var(--white);
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 8vw, 120px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; line-height: 1.16; }
h4 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.3; letter-spacing: .01em; }

p { text-wrap: pretty; }

a { color: inherit; }

strong { font-weight: 600; }

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6.5vw, 92px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(22px, 3.6vw, 44px);
}

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--moss);
}

.index-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ember);
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  inset-inline-start: 50%;
  inset-block-start: 0;
  z-index: 200;
  padding: 12px 24px;
  translate: -50% -160%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: translate .2s var(--ease);
}

.skip-link:focus-visible {
  translate: -50% 0;
  outline-offset: -4px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
  padding-inline: var(--gutter);
  padding-block: clamp(10px, 1.5vw, 18px);
  transition: padding-block .3s var(--ease);
}

.site-header.is-condensed { padding-block: 6px; }

.read-rail {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  background: rgba(94, 116, 105, .22);
  pointer-events: none;
}

.read-rail > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 62%, var(--ember) 100%);
  transition: width .12s linear;
}

.header-shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 9px 12px 9px 18px;
  background: rgba(17, 22, 20, .9);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 249, 238, .05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding .3s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.site-header.is-condensed .header-shell {
  padding-block: 6px;
  border-color: rgba(216, 242, 106, .3);
}

.site-header[data-open] .header-shell {
  border-color: rgba(216, 242, 106, .5);
  border-radius: var(--r-lg);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
  flex: 0 1 auto;
}

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  flex: 0 0 auto;
}

.brand__mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--lime);
}

.brand__mark i:nth-child(1) { height: 13px; opacity: .55; }
.brand__mark i:nth-child(2) { height: 26px; }
.brand__mark i:nth-child(3) { height: 18px; background: var(--ember); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--white);
  white-space: nowrap;
  transition: font-size .25s var(--ease);
}

.site-header.is-condensed .brand__name { font-size: 17px; }

.brand__descriptor {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(147, 179, 164, .45);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .24s var(--ease);
}

.site-header[data-open] .nav-toggle {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.site-header[data-open] .nav-toggle__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  min-width: 0;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--moss);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(28, 58, 44, .95);
}

.nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.nav-link[aria-current="page"]:hover {
  background: var(--lime);
  color: var(--ink);
}

.nav-cta { flex: 0 0 auto; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.btn--lime:hover {
  background: #E7FFA4;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(147, 179, 164, .5);
}

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

.btn--ember {
  background: var(--ember);
  color: #1A0A06;
  font-weight: 600;
}

.btn--ember:hover {
  background: #FF8469;
  transform: translateY(-1px);
}

.btn:focus-visible { outline-offset: 3px; }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--moss);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--rule);
}

.breadcrumbs a {
  color: var(--moss);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

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

/* ---------- 8. Prose ---------- */
.prose {
  max-width: 70ch;
  color: rgba(255, 249, 238, .9);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
}

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

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

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

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

.prose--paper { color: var(--paper-ink); }
.prose--paper h2,
.prose--paper h3 { color: var(--paper-ink); }
.prose--paper a,
.prose--paper strong { color: #2F5C3F; }

/* ---------- 9. Bento grid & cards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--layer);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.card--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(10, 31, 23, .14);
}

.card--paper :is(p, li, h2, h3, h4, span) { color: var(--paper-ink); }

.card--focus {
  background: linear-gradient(158deg, var(--layer) 0%, #12291F 100%);
  border-color: rgba(216, 242, 106, .45);
  box-shadow: 0 24px 60px -40px rgba(216, 242, 106, .6);
}

/* ---------- 10. Media (页面阶段放图) ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 120% at 22% 8%, #1C3A2C 0%, #0A1F17 72%);
  border: 1px solid var(--line-soft);
}

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

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04) brightness(.94);
}

.media__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 242, 106, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 242, 106, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .45;
  pointer-events: none;
}

.media__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 23, 0) 38%, rgba(10, 31, 23, .88) 100%);
  pointer-events: none;
}

.media__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(147, 179, 164, .45);
  border-radius: var(--r-xs);
  background: rgba(28, 58, 44, .55);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.tag--ember {
  background: transparent;
  border-color: rgba(255, 106, 77, .62);
  color: var(--ember);
}

/* ---------- 12. Reveal ---------- */
[data-reveal] {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

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

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

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  background: var(--charcoal);
  background-image: radial-gradient(760px 320px at 12% 0%, rgba(216, 242, 106, .06), transparent 70%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 20%, var(--ember) 62%, transparent 96%);
  opacity: .75;
}

.footer-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 78px) clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .78fr)) minmax(0, 1.25fr);
  gap: clamp(26px, 3.6vw, 48px);
}

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

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: .03em;
  color: var(--white);
}

.footer-summary {
  max-width: 36ch;
  margin-top: 14px;
  color: var(--moss);
  font-size: 14px;
  line-height: 1.75;
}

.footer-cta { margin-top: 20px; }

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

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 249, 238, .86);
  font-size: 14px;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rule);
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.footer-link:hover { color: var(--lime); }
.footer-link:hover::before { background: var(--lime); transform: scale(1.35); }

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

.footer-contact__line {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-contact__line span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(147, 179, 164, .8);
}

.footer-note {
  margin-top: 6px;
  color: rgba(147, 179, 164, .82);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-base { border-top: 1px solid var(--line-soft); }

.footer-base__inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(147, 179, 164, .8);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-summary { max-width: 52ch; }
}

@media (max-width: 960px) {
  .header-shell {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
    padding: 9px 10px 9px 15px;
  }

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

  .brand__descriptor { display: none; }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-inline-start: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .32s var(--ease), opacity .2s var(--ease), visibility .2s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: min(72vh, 540px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding-top: 8px;
    padding-bottom: 4px;
  }

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

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-cta {
    width: 100%;
    margin-top: 8px;
    padding-block: 13px;
  }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 96px; }

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

  .footer-base__inner { flex-direction: column; align-items: flex-start; }

  .brand__name { font-size: 17px; letter-spacing: .12em; }

  .section__head { align-items: flex-start; }
}

/* ---------- 15. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal],
  [data-reveal].reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-rail > span { transition: none !important; }
  .btn--lime:hover,
  .btn--ember:hover { transform: none; }
}
