/* ==========================================================================
   爱游戏赛场 / 共享样式 /assets/site.css
   冰渊夜蓝底 + 荧光冰青索引 + 热力橙红行动
   ========================================================================== */

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

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

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

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

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: var(--c-cyan); }

table { border-collapse: collapse; width: 100%; }

/* --------------------------------------------------------------------------
   2. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  --c-abyss:  #04121F;
  --c-deep:   #0A2438;
  --c-mid:    #123A57;
  --c-glow:   #6FF3E0;
  --c-cyan:   #23C7B4;
  --c-hot:    #FF5A2B;
  --c-amber:  #FFB43A;
  --c-cream:  #F4EFE6;
  --c-ink:    #141110;
  --c-silver: #8FA3B0;
  --c-white:  #F7FBFF;

  --font-head: "Archivo Black", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1280px;
  --gutter: 24px;
  --cut: 18px;
  --z-header: 60;
  --ease: cubic-bezier(.22, .8, .28, 1);

  --line-soft: rgba(143, 163, 176, .22);
  --line-glow: rgba(111, 243, 224, .45);
}

/* --------------------------------------------------------------------------
   3. 基础排版
   -------------------------------------------------------------------------- */
body {
  background-color: var(--c-abyss);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 冷底网格纹理，透明度低于 8% */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(111, 243, 224, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 243, 224, .05) 1px, transparent 1px);
  background-size: 72px 72px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin-bottom: .55em;
}

h1 { font-size: clamp(38px, 6vw, 88px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 26px); }

p { margin-bottom: 1.2em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--c-white); }

small, .small { font-size: 13px; color: var(--c-silver); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--c-amber);
}

/* --------------------------------------------------------------------------
   4. 骨架容器
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 72px 0; position: relative; z-index: 1; }
.section--tight { padding: 44px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--c-glow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-glow);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--c-white);
  max-width: 46ch;
}

/* 通栏斜切分隔块 */
.slash-band {
  height: 6px;
  margin: 0;
  border: 0;
  background: linear-gradient(100deg, var(--c-mid) 0 24%, transparent 24% 27%, var(--c-cyan) 27% 31%, transparent 31% 100%);
}

/* --------------------------------------------------------------------------
   5. 无障碍与焦点
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-glow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-130%);
  padding: 12px 20px;
  background: var(--c-glow);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: transform .24s var(--ease);
}

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

.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;
}

/* --------------------------------------------------------------------------
   6. 头部
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-abyss);
}

/* 6.1 上层：品牌署名 + 版本徽标 */
.header-top {
  background: var(--c-abyss);
  border-bottom: 1px solid var(--line-glow);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.brand__mark {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--c-glow);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
  box-shadow: 0 0 14px rgba(111, 243, 224, .55);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .05em;
  line-height: 1.2;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--c-silver);
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-silver);
}

.header-meta__note { white-space: nowrap; }

/* 6.2 徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(111, 243, 224, .07);
  border: 1px solid var(--line-glow);
  color: var(--c-glow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.badge--ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--c-silver);
}

/* 6.3 下层：栏目导航 */
.header-bottom { background: var(--c-deep); }

.header-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--c-glow);
}

.nav-toggle__bars i:nth-child(2) { width: 68%; background: var(--c-cyan); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  color: var(--c-white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--c-glow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.site-nav__list a:hover { color: var(--c-glow); }
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--c-glow); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--c-hot);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path .22s var(--ease), background-color .22s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #ff7048;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  filter: drop-shadow(0 0 12px rgba(255, 90, 43, .45));
}

/* 6.4 阅读进度轨道 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(143, 163, 176, .18);
}

.scroll-rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-glow));
}

/* 6.5 抽屉遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) + 4);
  background: rgba(4, 18, 31, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

body[data-nav-locked] { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--c-abyss);
  border-top: 1px solid var(--c-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 46px;
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--c-glow);
}

.footer-slogan {
  margin: 16px 0 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-silver);
}

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-silver);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  color: var(--c-white);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--c-cyan);
  transition: width .2s var(--ease), background-color .2s var(--ease);
}

.footer-links a:hover { color: var(--c-glow); }
.footer-links a:hover::before { width: 11px; background: var(--c-glow); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--c-white);
  word-break: break-word;
}

.footer-contact__k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--c-silver);
}

.brand--footer .brand__name { font-size: 17px; }

.footer-region {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(111, 243, 224, .22);
  border-bottom: 1px solid rgba(111, 243, 224, .16);
  background: linear-gradient(90deg, var(--c-deep), var(--c-mid) 62%, var(--c-deep));
}

.footer-region::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(111, 243, 224, .1) 0 1px, transparent 1px 24px);
}

.footer-region__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 11px;
  padding-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-glow);
}

.footer-legal { padding-top: 18px; padding-bottom: 28px; }

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-silver);
}

/* --------------------------------------------------------------------------
   8. 通用按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.btn--hot {
  background: var(--c-hot);
  color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn--hot:hover { background: #ff7048; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-glow);
  color: var(--c-white);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.btn--ghost:hover {
  border-color: var(--c-glow);
  color: var(--c-glow);
  background: rgba(111, 243, 224, .08);
}

/* --------------------------------------------------------------------------
   9. 面包屑
   -------------------------------------------------------------------------- */
.crumbs {
  position: relative;
  z-index: 1;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li { display: inline-flex; align-items: center; gap: 8px; }

.crumbs li + li::before {
  content: "/";
  color: var(--c-mid);
}

.crumbs a { color: var(--c-silver); text-decoration: none; }
.crumbs a:hover { color: var(--c-glow); }
.crumbs [aria-current="page"] { color: var(--c-white); }

/* --------------------------------------------------------------------------
   10. 栅格与卡片
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 20px;
  background: var(--c-deep);
  border: 1px solid var(--line-soft);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: transform .26s var(--ease), border-color .26s var(--ease), background-color .26s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-glow);
  background: #0c2a41;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.3;
  color: var(--c-white);
}

.card__text {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-silver);
}

/* --------------------------------------------------------------------------
   11. 标签
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(18, 58, 87, .92);
  border: 1px solid var(--line-soft);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.tag:hover { border-color: var(--line-glow); color: var(--c-glow); }

.tag.is-active,
.tag[aria-pressed="true"] {
  background: var(--c-glow);
  border-color: var(--c-glow);
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   12. 图片容器（页面阶段放置图片）
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-mid) 55%, var(--c-deep) 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(111, 243, 224, .08) 0 1px, transparent 1px 26px);
}

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

/* --------------------------------------------------------------------------
   13. 滚动显现与返回顶部
   -------------------------------------------------------------------------- */
.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}

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

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 13px;
  background: var(--c-mid);
  border: 1px solid var(--line-glow);
  color: var(--c-white);
  font-family: var(--font-mono);
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--c-cyan);
  color: var(--c-ink);
}

.to-top__arrow { font-size: 11px; line-height: 1; }
.to-top__label { font-size: 10px; line-height: 1.4; }
.to-top__ver { font-size: 9px; line-height: 1.4; color: var(--c-silver); }

.to-top:hover .to-top__ver { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   14. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .section { padding: 52px 0; }
  .section--tight { padding: 34px 0; }

  .header-meta__note { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: calc(var(--z-header) + 5);
    width: min(330px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 20px 30px;
    background: var(--c-deep);
    border-right: 1px solid var(--line-glow);
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }

  .site-nav[data-open] { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__list li { border-bottom: 1px solid var(--line-soft); }

  .site-nav__list a {
    display: block;
    width: 100%;
    padding: 15px 14px 15px 20px;
    font-size: 16px;
  }

  .site-nav__list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    bottom: 13px;
    width: 2px;
    background: var(--c-glow);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform .24s var(--ease);
  }

  .site-nav__list a::after { display: none; }

  .site-nav__list a:hover::before,
  .site-nav__list a[aria-current="page"]::before { transform: scaleY(1); }

  .nav-cta { margin-top: 22px; width: 100%; }

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

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 44px; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }

  .header-top__inner { min-height: 44px; }
  .brand__sub { display: none; }
  .header-meta { font-size: 11px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-region__inner { font-size: 11px; letter-spacing: .1em; }
  .to-top { right: 14px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   15. 减少动态偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .card:hover,
  .card:focus-within { transform: none; }

  .to-top { transform: none; }
}
