/* ==========================================================================
   爱游戏看台 · 共享样式 /assets/site.css
   夜场墨绿底 + 荧光青绿强调 + 红黄语义色 + 精密网格 + 直角与细线
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

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

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink-900: #071A14;   /* 夜场墨绿 */
  --ink-800: #0D1110;   /* 炭黑 */
  --ink-700: #123B2B;   /* 草皮深绿 */
  --mint: #39F5B0;      /* 荧光青绿 */
  --acid: #C6FF3D;      /* 酸性黄绿 */
  --card-red: #FF4D4F;  /* 红牌红 */
  --card-yellow: #FFD23F; /* 黄牌黄 */
  --paper: #F4F1E8;     /* 暖白 */
  --muted: #8FA39A;     /* 雾灰绿 */
  --line: #26453A;      /* 网格线绿 */
  --line-soft: rgba(38, 69, 58, 0.6);

  /* 节奏 */
  --header-h: 62px;
  --wrap-max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue",
    "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1000px) {
  :root { --header-h: 78px; }
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, rgba(57, 245, 176, 0.1), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(198, 255, 61, 0.05), transparent 60%),
    repeating-linear-gradient(90deg, rgba(38, 69, 58, 0.34) 0 1px, transparent 1px 120px);
  background-attachment: fixed, fixed, scroll;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#main-content {
  flex: 1 0 auto;
  padding-top: var(--header-h);
}

#main-content.main--overlay { padding-top: 0; }

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

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 84px);
  border-top: 1px solid var(--line-soft);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}

.section__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    align-items: start;
  }
  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

.split__main { min-width: 0; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 3vw, 40px);
}

/* ---------- 5. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.num-big {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mint);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.72;
  color: var(--paper);
  max-width: 62ch;
}

.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--paper);
}

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { font-size: clamp(18px, 1.9vw, 22px); }

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

.prose a:hover { color: var(--acid); }

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin-block: 1em;
}

.prose li + li { margin-top: 0.4em; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease),
    border-color 0.12s var(--ease);
}

.btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink-900);
  font-weight: 700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--acid);
  border-color: var(--acid);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.btn--small { padding: 8px 14px; font-size: 12px; }

/* ---------- 7. Chips & tags ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease),
    border-color 0.12s var(--ease);
}

.chip:hover { border-color: var(--acid); color: var(--paper); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink-900);
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.tag--mint { color: var(--mint); }
.tag--acid { color: var(--acid); }
.tag--red { color: var(--card-red); }
.tag--yellow { color: var(--card-yellow); }

/* ---------- 8. Stats ---------- */
.stat {
  display: grid;
  gap: 4px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 9. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink-800);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) { background: rgba(18, 59, 43, 0.26); }

.data-table tbody tr:hover,
.data-table tbody tr:focus-within { background: rgba(57, 245, 176, 0.08); }

.data-table .num { text-align: right; }

/* ---------- 10. Aside panel ---------- */
.aside-panel {
  border: 1px solid var(--line);
  background: rgba(18, 59, 43, 0.34);
  padding: 18px;
}

.aside-panel > * + * { margin-top: 14px; }

/* ---------- 11. Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 18px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.breadcrumbs__link { color: var(--muted); }
.breadcrumbs__link:hover { color: var(--mint); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 12. Media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900) 68%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(38, 69, 58, 0.5) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(38, 69, 58, 0.5) 0 1px, transparent 1px 32px);
  opacity: 0.55;
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media--tall img { aspect-ratio: 3 / 4; }
.media--square img { aspect-ratio: 1 / 1; }

.media__label {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: var(--ink-800);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.media__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------- 13. Header ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  background: var(--mint);
  color: var(--ink-900);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top 0.15s var(--ease);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-header.is-scrolled,
.site-header[data-open] {
  background: rgba(13, 17, 16, 0.96);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  min-height: var(--header-h);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header__status {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(18, 59, 43, 0.55);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(57, 245, 176, 0.18);
}

.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.site-header.is-scrolled .header__progress { background: rgba(38, 69, 58, 0.7); }

.header__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--acid));
  transition: width 0.08s linear;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  flex: none;
}

.brand__mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--mint);
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--mint);
  opacity: 0.5;
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: var(--acid);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease);
}

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

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

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.16s var(--ease);
}

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

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

/* Nav panel (mobile first) */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px var(--gutter) 26px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease),
    visibility 0.16s var(--ease);
}

.site-header[data-open] .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__item + .site-nav__item { border-top: 1px solid var(--line-soft); }

.site-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--paper);
  transition: color 0.12s var(--ease);
}

.site-nav__link:hover { color: var(--mint); }

.site-nav__link[aria-current="page"] { color: var(--mint); font-weight: 700; }

.nav-panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(64px, 18%, 220px);
  height: 2px;
  background: var(--mint);
}

.footer__inner {
  padding-block: clamp(40px, 6vw, 72px) 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

.footer__col { min-width: 0; }

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer .brand__mark { width: 30px; height: 30px; }
.brand--footer .brand__name { font-size: 20px; }

.footer__tagline {
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__title {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.footer__list {
  display: grid;
  gap: 10px;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--paper);
  transition: color 0.12s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--mint);
  transition: width 0.16s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--mint); }

.footer__link:hover::after,
.footer__link:focus-visible::after { width: 100%; }

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.footer__cta:hover,
.footer__cta:focus-visible {
  background: var(--mint);
  color: var(--ink-900);
}

.footer__contact {
  display: grid;
  gap: 14px;
}

.footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer__value--text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer__legal,
.footer__icp,
.footer__round { line-height: 1.6; }

.footer__icp { color: var(--paper); }

/* ---------- 15. Header / footer responsive ---------- */
@media (min-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }

  .header__status { display: inline-flex; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 2.2vw, 30px);
  }

  .site-nav__item + .site-nav__item { border-top: 0; }

  .site-nav__link {
    position: relative;
    padding: 6px 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width 0.16s var(--ease);
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible { color: var(--paper); }

  .site-nav__link:hover::after,
  .site-nav__link:focus-visible::after { width: 100%; }

  .site-nav__link[aria-current="page"] { color: var(--mint); font-weight: 600; }

  .site-nav__link[aria-current="page"]::after { width: 100%; }

  .nav-panel__status { display: none; }

  .footer__grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; }
}

@media (max-width: 380px) {
  .brand__sub { display: none; }
  .nav-toggle__label { display: none; }
}

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

/* ---------- 17. 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;
  }

  .header__progress-bar { transition: none; }
}
