/* ==========================================================================
   爱游戏赛场 · shared site kit
   /assets/site.css
   1 tokens · 2 reset/base · 3 layout primitives · 4 header · 5 footer · 6 motion
   ========================================================================== */

/* 1. tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --c-ink: #0B1F17;
  --c-ink-deep: #111512;
  --c-lime: #B7FF3C;
  --c-ember: #FF5A36;
  --c-chalk: #EAF2EC;
  --c-moss: #4F6B57;
  --c-stone: #2A302C;
  --c-linen: #F3EBDD;
  --c-clay: #B86B4B;
  --c-mineral: #8FA89A;
  --c-glass: #DDEBE0;

  --surface-1: #0E2419;
  --surface-2: #14261D;
  --line-soft: rgba(79, 107, 87, 0.45);
  --line-strong: rgba(183, 255, 60, 0.28);
  --text-soft: rgba(234, 242, 236, 0.7);
  --text-faint: rgba(234, 242, 236, 0.46);

  --font-display: "Inter Tight", "HarmonyOS Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(14px, 2.2vw, 28px);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

/* 2. reset & base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

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

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

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

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

[hidden] { display: none !important; }

body {
  min-height: 100%;
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(183, 255, 60, 0.09), transparent 62%),
    radial-gradient(900px 560px at 4% 6%, rgba(79, 107, 87, 0.28), transparent 66%),
    linear-gradient(180deg, #0B1F17 0%, #0A1A13 52%, #091510 100%);
  background-attachment: fixed;
  color: var(--c-chalk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 7rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.14; }
h3 { font-size: 1.35rem; line-height: 1.32; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; line-height: 1.4; letter-spacing: 0.01em; }

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

/* skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--c-lime);
  color: var(--c-ink-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  transform: translateY(-220%);
  transition: transform 200ms ease;
}

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

/* 3. layout primitives ----------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--text-soft); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--c-lime); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mineral);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--c-lime);
  flex: 0 0 auto;
}

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

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

.cols > * { grid-column: span 12; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

.panel--glass {
  background: rgba(221, 235, 224, 0.055);
  border-color: rgba(234, 242, 236, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.panel--lime {
  background: var(--c-lime);
  border-color: transparent;
  color: var(--c-ink-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.btn--primary {
  background: var(--c-lime);
  color: var(--c-ink-deep);
  box-shadow: 0 16px 34px -20px rgba(183, 255, 60, 0.95);
}

.btn--ghost {
  background: transparent;
  color: var(--c-chalk);
  border-color: rgba(234, 242, 236, 0.28);
}

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

.btn--alert {
  background: var(--c-ember);
  color: #1B0B06;
  box-shadow: 0 16px 34px -22px rgba(255, 90, 54, 0.95);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-mineral);
}

.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(143, 168, 154, 0.5); }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--c-lime); }
.crumbs [aria-current="page"] { color: var(--c-chalk); }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(150deg, #16281F 0%, #0D1A14 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 107, 87, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 107, 87, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

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

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

.media-frame--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 31, 23, 0.82) 100%);
  pointer-events: none;
}

/* segment / tab component */
.seg {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.seg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: rgba(42, 48, 44, 0.55);
}

.seg-tab {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background-color 180ms ease, color 180ms ease;
}

.seg-tab:hover { color: var(--c-chalk); }

.seg-tab[aria-selected="true"] {
  background: var(--c-lime);
  color: var(--c-ink-deep);
}

.seg-panel {
  width: 100%;
  animation: seg-in 220ms ease both;
}

@keyframes seg-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 4. header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: clamp(10px, 1.7vw, 20px) var(--gutter);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-lime), var(--c-moss) 70%, var(--c-ember));
  pointer-events: none;
  z-index: 90;
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px 12px 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(183, 255, 60, 0.16);
  background: rgba(17, 21, 18, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.95);
  transition: padding 220ms ease, background-color 220ms ease,
    border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-condensed .header-rail {
  padding: 4px 10px 4px 14px;
  background: rgba(11, 31, 23, 0.92);
  border-color: rgba(183, 255, 60, 0.32);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--c-chalk);
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 26%, #E7FFA8 0%, var(--c-lime) 44%, #78B01C 100%);
  box-shadow:
    0 0 0 1px rgba(183, 255, 60, 0.45),
    0 0 18px -4px rgba(183, 255, 60, 0.75);
  display: grid;
  place-items: center;
}

.brand-mark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-ink-deep);
  box-shadow: 0 0 0 2px rgba(11, 31, 23, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-mineral);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(234, 242, 236, 0.22);
  background: rgba(234, 242, 236, 0.06);
  color: var(--c-chalk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

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

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

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header[data-open="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin-left: auto;
}

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

.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover {
  color: var(--c-chalk);
  background: rgba(183, 255, 60, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--c-lime);
  background: rgba(183, 255, 60, 0.1);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 9px rgba(183, 255, 60, 0.95);
  flex: 0 0 auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(183, 255, 60, 0.55);
  background: var(--c-lime);
  color: var(--c-ink-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(183, 255, 60, 0.85);
}

/* 5. footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  padding: clamp(40px, 6vw, 74px) var(--gutter) clamp(26px, 4vw, 44px);
  background: var(--c-ink-deep);
  border-top: 1px solid rgba(183, 255, 60, 0.18);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 107, 87, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 107, 87, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 78% at 50% 0%, #000 12%, transparent 78%);
  mask-image: radial-gradient(130% 78% at 50% 0%, #000 12%, transparent 78%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  display: grid;
  gap: clamp(26px, 3.6vw, 44px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.footer-brand { display: grid; gap: 16px; justify-items: start; }

.brand--footer .brand-name { font-size: 17px; }
.brand--footer .brand-mark { width: 34px; height: 34px; border-radius: 11px; }

.footer-tagline {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-mineral);
}

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

.footer-col { display: grid; gap: 12px; align-content: start; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-lime);
  line-height: 1.4;
}

.footer-links { display: grid; gap: 8px; }

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: var(--text-soft);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link:hover {
  color: var(--c-chalk);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(14px, 2.4vw, 34px);
  padding-top: clamp(18px, 2.6vw, 28px);
  border-top: 1px solid rgba(143, 168, 154, 0.22);
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-moss);
  text-transform: uppercase;
}

.footer-contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--c-chalk);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(16px, 3vw, 40px);
  padding-top: clamp(16px, 2.2vw, 24px);
  border-top: 1px solid rgba(143, 168, 154, 0.22);
}

.footer-legal {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.footer-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-mineral);
}

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

.footer-legal-links .footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-mineral);
}

.footer-legal-links .footer-link:hover { color: var(--c-lime); }

.footer-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 78ch;
}

/* 6. responsive ------------------------------------------------------------ */
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(183, 255, 60, 0.22);
    background: rgba(11, 31, 23, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
  }

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

  .nav-link {
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .nav-cta {
    padding: 14px 20px;
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }
}

@media (max-width: 900px) {
  .span-3,
  .span-4,
  .span-5 { grid-column: span 6; }

  .span-7,
  .span-8,
  .span-9 { grid-column: span 12; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .brand-tag { display: none; }

  .nav-toggle-label { display: none; }

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

  .footer-contact { flex-direction: column; gap: 12px; }

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

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

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

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

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

  .seg-panel { animation: none; }
}
