/* ============================================================
   爱游戏体育看台 · Shared Site Kit
   Night Stadium Command Center / Blueprint Frame
   ============================================================ */

:root {
  --pitch: #071A12;
  --mid-green: #0E3B2A;
  --turf: #1F7A4D;
  --neon: #E8FF3A;
  --speed: #FF6B2C;
  --indigo: #111A3A;
  --chalk: #F4F7EE;
  --mist: #A9B7AD;
  --line: #2D4F43;
  --alert: #FF4D5E;

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

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --maxw: 1240px;
  --header-h: 74px;

  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --dur: 300ms;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--chalk);
  background-color: var(--pitch);
  background-image:
    radial-gradient(120% 55% at 50% -10%, rgba(31, 122, 77, .28), rgba(7, 26, 18, 0) 62%),
    linear-gradient(to right, rgba(45, 79, 67, .26) 1px, rgba(45, 79, 67, 0) 1px),
    linear-gradient(to bottom, rgba(45, 79, 67, .26) 1px, rgba(45, 79, 67, 0) 1px);
  background-size: 100% 100%, 76px 76px, 76px 76px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

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

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

p { text-wrap: pretty; }

[id] { scroll-margin-top: calc(var(--header-h) + 1.75rem); }

::selection {
  background: var(--neon);
  color: #06120c;
}

/* ---------- typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }

.mono,
.eyebrow {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon);
  line-height: 1.4;
}

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 300;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: #06120c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  transform: translateY(-180%);
  transition: transform 200ms var(--ease-out);
}

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(2.4rem, 6vw, 5rem);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.section__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.prose {
  max-width: 66ch;
  color: var(--chalk);
}

.prose p + p { margin-top: .9em; }
.prose p { color: var(--mist); }
.prose strong { color: var(--chalk); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.3;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--neon);
  color: #06120c;
  box-shadow: 0 12px 26px -16px rgba(232, 255, 58, .9);
}

.btn--ghost {
  background: rgba(14, 59, 42, .55);
  border-color: var(--line);
  color: var(--chalk);
}

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

.btn--speed {
  background: var(--speed);
  color: #1c0a02;
  box-shadow: 0 12px 26px -16px rgba(255, 107, 44, .9);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--mist);
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: .45rem;
  color: var(--line);
}

.breadcrumb a { transition: color var(--dur) var(--ease-out); }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb [aria-current="page"] { color: var(--chalk); }

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, rgba(31, 122, 77, .5), rgba(7, 26, 18, .92) 70%),
    var(--mid-green);
  aspect-ratio: 16 / 10;
}

.media-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(244, 247, 238, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 238, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

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

.media-frame__tag {
  position: absolute;
  z-index: 3;
  left: .85rem;
  bottom: .85rem;
  padding: .28rem .7rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 26, 18, .78);
  border: 1px solid var(--line);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 26, 18, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}

.header-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(45, 79, 67, .6);
  background-image: repeating-linear-gradient(to right, rgba(45, 79, 67, .95) 0 1px, transparent 1px 26px);
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 100% 7px;
}

.header-scale__no {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(169, 183, 173, .58);
  line-height: 1;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: .65rem clamp(1.1rem, 4vw, 2.5rem);
}

/* side frame rails on very wide screens */
@media (min-width: 1320px) {
  .site-header::before,
  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 18%, var(--line) 82%, transparent);
    pointer-events: none;
  }

  .site-header::before { left: calc((100% - var(--maxw)) / 2 - 14px); }
  .site-header::after { right: calc((100% - var(--maxw)) / 2 - 14px); }
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--neon), #a9c220);
  box-shadow: inset 0 0 0 1px rgba(7, 26, 18, .35),
              0 8px 20px -12px rgba(232, 255, 58, .9);
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 50%;
  width: 1.5px;
  background: var(--pitch);
  transform: translateX(-50%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--pitch);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

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

.brand__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
  color: var(--chalk);
  white-space: nowrap;
}

.brand__status {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--mist);
  white-space: nowrap;
}

/* primary navigation */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.3vw, 1.3rem);
  flex-wrap: nowrap;
}

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: .45rem .1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible { color: var(--chalk); }

.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after { transform: scaleX(1); }

.primary-nav__list a[aria-current="page"] {
  color: var(--chalk);
  font-weight: 700;
}

.primary-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--neon);
  box-shadow: 0 0 12px rgba(232, 255, 58, .65);
}

/* header tools */
.header-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.ticket-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: #06120c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(232, 255, 58, .28),
              0 14px 28px -16px rgba(232, 255, 58, .95);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.ticket-cta::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06120c;
  box-shadow: 0 0 0 3px rgba(6, 18, 12, .16);
}

.ticket-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(232, 255, 58, .45),
              0 20px 34px -16px rgba(232, 255, 58, 1);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(14, 59, 42, .6);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
  flex: none;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out),
              opacity 160ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon);
  color: var(--neon);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* mobile nav panel */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(9, 30, 21, .985);
  padding: .9rem clamp(1.1rem, 4vw, 2.5rem) 1.4rem;
  max-height: calc(100vh - var(--header-h) - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-panel__label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .24em;
  color: rgba(169, 183, 173, .7);
  margin-bottom: .35rem;
}

.nav-panel__list {
  counter-reset: navidx;
  display: grid;
  gap: 0;
}

.nav-panel__list li { counter-increment: navidx; }

.nav-panel__list a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .82rem .2rem;
  border-bottom: 1px dashed rgba(45, 79, 67, .8);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--chalk);
  transition: color var(--dur) var(--ease-out),
              padding-left var(--dur) var(--ease-out);
}

.nav-panel__list a::before {
  content: counter(navidx, decimal-leading-zero);
  flex: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--neon);
}

.nav-panel__list a:hover {
  color: var(--neon);
  padding-left: .45rem;
}

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

.nav-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: #06120c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 14px 28px -18px rgba(232, 255, 58, .95);
}

/* scroll progress */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: rgba(45, 79, 67, .35);
}

.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--turf), var(--neon) 68%, var(--speed));
  box-shadow: 0 0 12px rgba(232, 255, 58, .55);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--indigo);
  color: var(--chalk);
  border-top: 1px solid rgba(232, 255, 58, .2);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232, 255, 58, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 255, 58, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.site-footer > * { position: relative; z-index: 1; }

.footer-scale {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 2px, transparent 2px 15px);
  opacity: .42;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(110px, .8fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 3vw, 2.4rem);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--chalk);
}

.footer-brand__summary {
  margin-top: .6rem;
  max-width: 34ch;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--mist);
}

.footer-brand__stamp {
  display: inline-block;
  margin-top: 1rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(232, 255, 58, .35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--neon);
  line-height: 1.6;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232, 255, 58, .8);
  margin-bottom: .85rem;
}

.footer-col__list {
  display: grid;
  gap: .5rem;
}

.footer-col__list a {
  display: inline-block;
  font-size: .875rem;
  color: var(--mist);
  transition: color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .55rem 2rem;
  padding-block: 1.3rem;
  border-top: 1px dashed rgba(232, 255, 58, .18);
  border-bottom: 1px dashed rgba(232, 255, 58, .18);
}

.footer-contact__item {
  font-size: .8rem;
  line-height: 1.65;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.15rem 1.6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  line-height: 1.75;
  color: rgba(169, 183, 173, .82);
}

.footer-legal__copy {
  color: rgba(232, 255, 58, .7);
  white-space: nowrap;
}

/* ============================================================
   REVEAL
   ============================================================ */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms var(--ease-out),
              transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .primary-nav { display: none; }

  .header-tools { margin-inline-start: auto; }

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

  #nav-panel[data-open],
  .nav-panel[data-open] { display: block; }

  .nav-panel { animation: panel-in 240ms var(--ease-out) both; }

  @keyframes panel-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem clamp(1.2rem, 4vw, 2.5rem);
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }

  .header-scale { display: none; }

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

  .footer-grid { gap: 1.6rem 1.4rem; }

  .footer-legal { font-size: .64rem; }
}

@media (max-width: 560px) {
  .ticket-cta { display: none; }

  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark::before { top: 8px; bottom: 8px; }
  .brand__mark::after { width: 10px; height: 10px; }

  .brand__line { font-size: .94rem; }
  .brand__status { font-size: .54rem; letter-spacing: .1em; }

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

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

  .footer-legal { justify-content: flex-start; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .nav-panel { animation: none !important; }

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