/* ==========================================================================
   爱游戏赛场 · 共享样式 /assets/site.css
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 88% -12%, rgba(124, 255, 90, 0.07), transparent 58%),
    radial-gradient(90% 70% at -12% 32%, rgba(27, 74, 87, 0.40), transparent 62%);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

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

#main-content { scroll-margin-top: 120px; }

/* ---------- tokens ---------- */
:root {
  --ink: #06110D;
  --surface: #0C231A;
  --mid: #123528;
  --lime: #7CFF5A;
  --lime-soft: #C7FFB0;
  --orange: #FF6B2C;
  --steel: #9FB4C7;
  --text: #E8F2EA;
  --muted: #5E7A6C;
  --info: #1B4A57;

  --line: rgba(159, 180, 199, 0.18);
  --line-strong: rgba(159, 180, 199, 0.34);

  --font-display: 'Barlow Condensed', 'Oswald', 'Source Han Sans SC Heavy', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --shell: 1180px;
  --shell-wide: 1440px;
  --gutter: clamp(16px, 3.6vw, 44px);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --display-xl: clamp(48px, 8.4vw, 96px);
  --display-l: clamp(36px, 6vw, 64px);
  --display-m: clamp(30px, 4.4vw, 44px);
  --display-s: clamp(24px, 3vw, 34px);

  --status-h: 44px;
  --bar-h: 64px;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display-xl, .display-l, .display-m, .display-s {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.display-xl { font-size: var(--display-xl); line-height: 0.96; }
.display-l  { font-size: var(--display-l); line-height: 0.98; }
.display-m  { font-size: var(--display-m); line-height: 1.02; }
.display-s  { font-size: var(--display-s); line-height: 1.06; }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
  color: var(--steel);
  max-width: 68ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

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

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.muted { color: var(--muted); font-size: 14px; }

/* ---------- 容器与布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.shell--wide { max-width: var(--shell-wide); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.split--reverse { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }

.stack > * + * { margin-top: clamp(14px, 2vw, 22px); }

.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule--lime { background: linear-gradient(90deg, var(--lime), rgba(124, 255, 90, 0)); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.16s var(--ease),
    background-color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #180800;
  box-shadow: 0 8px 24px rgba(255, 107, 44, 0.22);
}
.btn--primary:hover { background: #FF8347; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(18, 53, 40, 0.6);
}
.tag--lime { color: var(--lime); border-color: rgba(124, 255, 90, 0.38); background: rgba(124, 255, 90, 0.08); }
.tag--orange { color: var(--orange); border-color: rgba(255, 107, 44, 0.42); background: rgba(255, 107, 44, 0.1); }
.tag--steel { color: var(--steel); border-color: var(--line-strong); }

/* ---------- 卡片底模 ---------- */
.surface-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.surface-panel::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 4px;
  background: var(--muted);
  transition: background-color 0.18s var(--ease);
}

.surface-panel:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.surface-panel:hover::before { background: var(--lime); }

/* ---------- 图片容器 ---------- */
.media-figure { margin: 0; display: grid; gap: 10px; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--mid);
  aspect-ratio: 16 / 10;
}

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 17, 13, 0.78), rgba(6, 17, 13, 0));
}

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

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item::after {
  content: "/";
  margin-inline: 8px;
  color: rgba(159, 180, 199, 0.3);
}
.breadcrumbs__item:last-child::after { content: none; margin: 0; }

.breadcrumbs__link { color: var(--steel); transition: color 0.16s var(--ease); }
.breadcrumbs__link:hover { color: var(--lime); }
.breadcrumbs__item[aria-current="page"] { color: var(--text); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--lime);
  color: #04120B;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; outline: 2px solid var(--text); outline-offset: 2px; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* 状态条 */
.status-bar {
  height: var(--status-h);
  overflow: hidden;
  background: var(--mid);
  border-bottom: 1px solid rgba(124, 255, 90, 0.14);
  transition: height 0.18s var(--ease), opacity 0.18s var(--ease);
}

.status-bar__inner {
  max-width: var(--shell-wide);
  margin-inline: auto;
  height: var(--status-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.status-bar__text {
  margin: 0 auto 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-bar__tag {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 90, 0.36);
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: statusPulse 2.4s var(--ease) infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124, 255, 90, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(124, 255, 90, 0.04); }
}

/* 滚动后收起状态条 */
.site-header[data-scrolled] .status-bar {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* 命令栏 */
.command-bar__inner {
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  transition: min-height 0.18s var(--ease);
}

.site-header[data-scrolled] .command-bar__inner { min-height: 56px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px 3px 9px 3px;
  background: linear-gradient(140deg, var(--lime) 0%, #35A63A 58%, var(--mid) 59%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 2px;
}

/* 移动按钮 */
.nav-toggle { display: none; }

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

/* 主导航 */
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--steel);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.nav-link:hover { color: var(--text); background: rgba(124, 255, 90, 0.08); }
.nav-link:hover .nav-link__index { color: var(--lime); }

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

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-50%);
}

.nav-link[aria-current="page"] { padding-left: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 90, 0.55), transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3.5vw, 44px);
}

.footer__brand { display: flex; flex-direction: column; gap: 18px; }

.footer__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 42ch;
}

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

.footer__col { min-width: 0; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.footer__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--steel);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer__link::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  transition: background-color 0.16s var(--ease);
}

.footer__link:hover { color: var(--text); transform: translateX(3px); }
.footer__link:hover::before { background: var(--lime); }

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer__contact-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__contact-value {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer__mark-row {
  overflow: hidden;
  padding-top: 14px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: rgba(159, 180, 199, 0.07);
  white-space: nowrap;
  user-select: none;
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer__legal { margin: 0; }
.footer__copy { margin: 0; }

/* ---------- 滚动显现协议 ---------- */
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-link { padding: 8px 7px; font-size: 13px; }
  .nav-link__index { display: none; }
  .nav-link[aria-current="page"] { padding-left: 14px; }
}

@media (max-width: 960px) {
  .skip-link { left: var(--gutter); transform: none; }

  .command-bar__inner { gap: 12px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 9px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
  }

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

  .site-header[data-nav-open] .nav-toggle { color: var(--lime); border-color: rgba(124, 255, 90, 0.55); }
  .site-header[data-nav-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header[data-nav-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .site-header[data-nav-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 20px;
    background: var(--surface);
    border-block: 1px solid var(--line);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58);
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
  }

  .primary-nav[data-open] { display: flex; }

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

  .nav-link {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 6px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(159, 180, 199, 0.1);
  }

  .nav-link__index { display: inline; font-size: 11px; }
  .nav-link:hover { background: transparent; color: var(--lime); }
  .nav-link[aria-current="page"] { padding-left: 18px; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }

  .header-actions .btn { width: 100%; padding: 13px 18px; font-size: 15px; }

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

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

@media (max-width: 640px) {
  :root { --bar-h: 58px; }

  .brand__tagline { display: none; }
  .brand__name { font-size: 19px; }
  .status-bar__text { font-size: 11px; }
  .status-bar__tag { display: none; }

  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }

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

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

/* ---------- 无障碍与动效降级 ---------- */
@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;
  }

  [data-reveal="pending"] { opacity: 1; transform: none; }
  .surface-panel:hover { transform: none; }
  .btn:hover { transform: none; }
  .footer__link:hover { transform: none; }
}
