/* =====================================================================
   爱游戏赛场 · 共享样式表 /assets/site.css
   1 重置  2 变量  3 中文排版  4 容器与区块  5 通用组件  6 头部
   7 页脚  8 动效与可访问性  9 响应式
   ===================================================================== */

/* ---------- 1 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

address { font-style: normal; }

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

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

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

a { color: inherit; }

/* ---------- 2 变量 ---------- */
:root {
  /* 色彩 */
  --c-night: #071B2E;
  --c-blue: #12507F;
  --c-ice: #E8F1F8;
  --c-neon: #B6FF3C;
  --c-neon-soft: #EAF9D2;
  --c-red: #E23B2E;
  --c-yellow: #FFC53D;
  --c-ink: #0A0C0F;
  --c-white: #FFFFFF;
  --c-mist: #6B7A88;
  --c-line: rgba(107, 122, 136, .34);
  --c-body: #22303C;

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "DIN Next Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 字号阶梯 */
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px;
  --fs-22: 22px; --fs-28: 28px; --fs-36: 36px; --fs-48: 48px;
  --fs-64: 64px; --fs-92: 92px;

  /* 切角 */
  --cut-xs: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --cut-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --cut-md: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --cut-lg: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);

  /* 布局 */
  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 68px;

  /* 动效 */
  --ease: cubic-bezier(.22, .9, .3, 1);
}

/* ---------- 3 中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  font-weight: 400;
  color: var(--c-body);
  background: var(--c-white);
  overflow-x: hidden;
}

h1, h2, h3, h4,
.h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.18;
  color: var(--c-ink);
  font-stretch: condensed;
}

h1, .h1 { font-size: clamp(28px, 5vw, var(--fs-48)); }
h2, .h2 { font-size: clamp(24px, 3.6vw, var(--fs-36)); }
h3, .h3 { font-size: clamp(19px, 2.4vw, var(--fs-22)); letter-spacing: .05em; }
h4 { font-size: var(--fs-18); letter-spacing: .05em; }

p { text-wrap: pretty; }

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

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

.data,
.stat__value,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

.display {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(40px, 8.5vw, var(--fs-92));
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--c-white);
}

/* ---------- 4 容器与区块 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

main { display: block; }
#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 12px); }

.page-shell { padding-top: var(--header-h); }

.section { padding-block: clamp(48px, 8vw, 104px); }
.section--tight { padding-block: clamp(28px, 5vw, 56px); }

.section--ice { background: var(--c-ice); }

.section--night {
  position: relative;
  background: var(--c-night);
  color: rgba(255, 255, 255, .82);
}

.section--night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
}

.section--night > * { position: relative; z-index: 1; }
.section--night h1, .section--night h2, .section--night h3, .section--night h4 { color: var(--c-white); }
.section--night strong { color: var(--c-neon); }

.rule-diagonal {
  height: 8px;
  background-image: repeating-linear-gradient(-45deg, var(--c-neon) 0 10px, transparent 10px 22px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--c-blue);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-neon);
}

.section--night .eyebrow { color: var(--c-neon); }

.section-title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.16;
  letter-spacing: .04em;
  color: var(--c-ink);
}

.section-lede {
  margin-top: 14px;
  max-width: 38em;
  font-size: var(--fs-18);
  line-height: 1.8;
  color: var(--c-mist);
}

.section--night .section-lede { color: rgba(255, 255, 255, .7); }

.prose {
  max-width: 38em;
  font-size: var(--fs-17, 17px);
  line-height: 1.8;
  color: var(--c-body);
}

.prose p + p { margin-top: .9em; }
.prose h3 { margin-top: 1.6em; }

/* ---------- 5 通用组件 ---------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  cursor: pointer;
  font-size: var(--fs-15, 15px);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  background: var(--c-neon);
  color: var(--c-night);
  clip-path: var(--cut-sm);
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.btn:hover { background: var(--c-white); color: var(--c-night); }

.btn--solid { background: var(--c-blue); color: var(--c-white); }
.btn--solid:hover { background: var(--c-neon); color: var(--c-night); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-mist);
}
.btn--ghost:hover { background: rgba(182, 255, 60, .16); box-shadow: inset 0 0 0 2px var(--c-neon); color: var(--c-ink); }

.section--night .btn--ghost { color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.section--night .btn--ghost:hover { color: var(--c-night); background: var(--c-neon); box-shadow: none; }

.btn--mini { padding: 8px 14px; font-size: var(--fs-13, 13px); font-size: 13px; }

/* 档案卡 */
.panel {
  position: relative;
  padding: 22px;
  background: var(--c-white);
  clip-path: var(--cut-md);
  transition: transform .18s var(--ease), filter .18s var(--ease), background-color .18s ease;
}

.panel:hover { transform: translateY(-4px); filter: drop-shadow(7px 7px 0 rgba(182, 255, 60, .9)); }

.section--night .panel { background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .82); }

.panel--ice { background: var(--c-ice); }

.panel__label {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  margin-bottom: 12px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--c-neon);
  color: var(--c-night);
  clip-path: var(--cut-xs);
}

.panel__title {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .05em;
  font-size: var(--fs-18);
  color: inherit;
}

.section--night .panel__title { color: var(--c-white); }

.panel__meta {
  margin-top: 8px;
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-mist);
}

.section--night .panel__meta { color: rgba(255, 255, 255, .55); }

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--c-ice);
  color: var(--c-blue);
  clip-path: var(--cut-xs);
}

.tag--neon { background: var(--c-neon); color: var(--c-night); }
.tag--red { background: var(--c-red); color: var(--c-white); }
.tag--yellow { background: var(--c-yellow); color: var(--c-ink); }
.tag--blue { background: var(--c-blue); color: var(--c-white); }
.tag--outline { background: transparent; color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* 数据块：红黄牌小片 */
.card-chip {
  display: inline-block;
  width: 12px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 4px;
}
.card-chip--red { background: var(--c-red); }
.card-chip--yellow { background: var(--c-yellow); }

/* 数据统计 */
.stat { display: flex; flex-direction: column; gap: 2px; }

.stat__value {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--c-blue);
}

.section--night .stat__value { color: var(--c-neon); }

.stat__label {
  font-size: var(--fs-12);
  letter-spacing: .16em;
  color: var(--c-mist);
}

.section--night .stat__label { color: rgba(255, 255, 255, .55); }

/* 网格 */
.grid { display: grid; gap: clamp(14px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-night);
  clip-path: var(--cut-md);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 27, 46, .3), rgba(7, 27, 46, .3)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 46px);
}

.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame__caption {
  margin-top: 10px;
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--c-mist);
}

/* 面包屑 */
.breadcrumb {
  padding-block: 18px 0;
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--c-mist);
}

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

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-line);
}

.breadcrumb a {
  color: var(--c-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .12s ease, color .12s ease;
}

.breadcrumb a:hover { border-bottom-color: var(--c-neon); color: var(--c-night); }

/* 标签页 */
.tabs__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  scroll-snap-align: start;
  padding: 9px 16px;
  border: 0;
  cursor: pointer;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--c-ice);
  color: var(--c-blue);
  clip-path: var(--cut-sm);
  transition: background-color .12s ease, color .12s ease;
}

.tab:hover { background: var(--c-blue); color: var(--c-white); }

.tab[aria-selected="true"] { background: var(--c-neon); color: var(--c-night); }
.tab[aria-selected="true"]:hover { background: var(--c-neon); color: var(--c-night); }

.tab-panel { margin-top: 20px; }
.tab-panel[hidden] { display: none; }

/* 复制按钮 */
.copy-btn { white-space: nowrap; }

/* ---------- 6 头部 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  background: var(--c-neon);
  color: var(--c-night);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--c-white);
  background: rgba(7, 27, 46, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.site-header[data-scrolled] {
  background: var(--c-blue);
  border-bottom-color: transparent;
  box-shadow: 0 12px 30px rgba(7, 27, 46, .34);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header__brand { flex: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 28px;
  height: 28px;
  clip-path: var(--cut-sm);
  background: linear-gradient(135deg, var(--c-neon) 0 52%, var(--c-blue) 52% 100%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  color: var(--c-white);
}

.brand__tagline {
  display: block;
  font-size: var(--fs-12);
  letter-spacing: .14em;
  line-height: 1.3;
  color: rgba(255, 255, 255, .6);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .1);
  color: var(--c-white);
  clip-path: var(--cut-sm);
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav-toggle:hover { background: var(--c-neon); color: var(--c-night); }

.nav-toggle__bars {
  display: block;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__list li {
  flex: none;
  scroll-snap-align: start;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.site-nav__list li:first-child { border-left: 0; }

.site-nav__list a {
  display: block;
  padding: 10px 13px;
  font-size: 15px;
  letter-spacing: .05em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, .84);
  transition: background-color .12s ease, color .12s ease;
}

.site-nav__list a:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }

.site-nav__list a[aria-current="page"] {
  background: var(--c-neon);
  color: var(--c-night);
  font-weight: 700;
}

.nav-action {
  flex: none;
  display: inline-block;
  padding: 9px 15px;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  background: var(--c-neon);
  color: var(--c-night);
  clip-path: var(--cut-sm);
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.nav-action:hover { background: var(--c-night); color: var(--c-neon); box-shadow: inset 0 0 0 2px var(--c-neon); }

.site-header__rule {
  height: 2px;
  background: rgba(182, 255, 60, .2);
}

.site-header__progress {
  display: block;
  width: 0;
  height: 100%;
  background: var(--c-neon);
}

/* ---------- 7 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--c-night);
  color: rgba(255, 255, 255, .74);
}

.site-footer__stripe {
  height: 8px;
  background-image: repeating-linear-gradient(-45deg, var(--c-neon) 0 10px, transparent 10px 22px);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) var(--gutter) 22px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-block__brand {
  font-family: var(--font-head);
  font-size: var(--fs-22);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--c-white);
}

.footer-block__lede {
  margin-top: 12px;
  max-width: 30em;
  font-size: var(--fs-15, 15px);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
}

.footer-block__note {
  margin-top: 12px;
  max-width: 32em;
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .46);
}

.footer-block__title {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-head);
  font-size: var(--fs-14);
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--c-white);
}

.footer-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 4px;
  height: 1em;
  background: var(--c-neon);
}

.footer-list { margin-top: 14px; }

.footer-list li + li { margin-top: 8px; }

.footer-list a {
  font-size: var(--fs-15, 15px);
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  color: rgba(255, 255, 255, .74);
  border-bottom: 1px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}

.footer-list a:hover { color: var(--c-neon); border-bottom-color: var(--c-neon); }

.footer-contact {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  font-size: var(--fs-13, 13px);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .5);
}

.footer-contact__item { display: block; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: clamp(28px, 5vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
}

/* ---------- 8 动效与可访问性 ---------- */
:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 2px;
}

[data-reveal] {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

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

/* ---------- 9 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

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

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

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    overflow-y: auto;
    background: var(--c-night);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s var(--ease);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
  }

  .site-nav__list li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .site-nav__list li:first-child { border-top: 0; }

  .site-nav__list a { padding: 16px 4px; font-size: var(--fs-18); }

  .site-nav__list a[aria-current="page"] { padding-inline: 12px; }

  .nav-action { margin-top: 22px; align-self: flex-start; }

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand__tagline { display: none; }
  .nav-toggle__label { display: none; }
  .section-title { letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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