/* =========================================================
   爱游戏赛场 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

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

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

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

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

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

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

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 夜场色 */
  --ink:        #0B1220;
  --ink-2:      #131C31;
  --orange:     #FF5A1F;
  --cyan:       #1FB6FF;
  --green:      #35D07F;
  --red:        #FF3B5C;
  --white:      #F2F6FF;
  --mist:       #8E9AB3;
  --line:       #26314C;
  --glass:      rgba(242, 246, 255, 0.06);
  --glass-up:   rgba(242, 246, 255, 0.11);

  /* 度量 */
  --shell:      1240px;
  --gutter:     20px;
  --hdr-h:      72px;
  --gap:        24px;
  --radius:     2px;

  /* 字体 */
  --sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* 节奏 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --fast: 140ms;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --gap: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; --gap: 32px; } }

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--white);
}

h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { max-width: 36em; }

strong, b { font-weight: 700; color: var(--white); }

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

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- 4. 焦点可见 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 182, 255, 0.18);
  border-radius: var(--radius);
}

/* ---------- 5. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 88px); }

.section__title { margin: 0 0 16px; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.mono { font-family: var(--mono); font-variant-ligatures: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--orange);
}

/* ---------- 6. 正文块 ---------- */
.prose {
  max-width: 36em;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.65;
}

.prose p { margin-bottom: 1em; max-width: none; }
.prose p:last-child { margin-bottom: 0; }

.prose h2, .prose h3 { margin: 1.6em 0 0.6em; color: var(--white); }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    opacity var(--fast) var(--ease),
    max-width 180ms var(--ease),
    padding var(--fast) var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #0B1220;
  border-color: var(--orange);
}
.btn--primary:hover { background: #FF7340; border-color: #FF7340; transform: translateY(-2px); }

.btn--ghost {
  background: var(--glass);
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--glass-up); border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- 8. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--orange);
  color: #0B1220;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 9. 头部 ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 18, 32, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.hdr__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 45%, var(--cyan) 100%);
  pointer-events: none;
  transition: transform 90ms linear;
}

.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--hdr-h);
  padding-block: 12px;
  transition: min-height 180ms var(--ease), padding 180ms var(--ease);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.brand:hover .brand__mark { border-color: var(--orange); background: var(--glass-up); }

.brand__text { display: flex; flex-direction: column; gap: 3px; }

.brand__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand__note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--mist);
  max-height: 20px;
  overflow: hidden;
  transition: max-height 180ms var(--ease), opacity var(--fast) var(--ease);
}

/* 中段状态条 */
.hdr__status {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  max-width: 520px;
  margin: 0;
  overflow: hidden;
  opacity: 1;
  transition: max-width 200ms var(--ease), opacity var(--fast) var(--ease), visibility 200ms;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 5px 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.07em;
  color: var(--mist);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.chip--live   { color: var(--cyan); border-color: rgba(31, 182, 255, 0.36); }
.chip--phase  { color: var(--mist); }
.chip--build  { color: var(--mist); }

/* 右侧导航区 */
.hdr__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav__item { display: block; }

.nav__link {
  display: block;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--mist);
  border-radius: var(--radius);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.nav__link:hover { color: var(--white); background: var(--glass); }

.nav__link[aria-current="page"] {
  color: var(--white);
  background: var(--glass);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.nav__actions .btn--ghost {
  max-width: 180px;
  overflow: hidden;
}

/* 滚动折叠态 */
.hdr[data-condensed="true"] .hdr__inner { min-height: 62px; padding-block: 8px; }

.hdr[data-condensed="true"] .brand__note {
  max-height: 0;
  opacity: 0;
}

.hdr[data-condensed="true"] .hdr__status {
  max-width: 0;
  opacity: 0;
  visibility: hidden;
}

.hdr[data-condensed="true"] .nav__actions .btn--ghost {
  max-width: 0;
  padding-inline: 0;
  border-width: 0;
  opacity: 0;
  visibility: hidden;
}

/* 汉堡按钮 */
.hdr__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.hdr__toggle:hover { border-color: var(--cyan); background: var(--glass-up); }

.hdr__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 200ms var(--ease), opacity var(--fast) var(--ease);
}

.hdr__toggle[aria-expanded="true"] .hdr__toggle-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-bar:nth-child(3) { opacity: 0; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 10. 移动端导航 ---------- */
@media (max-width: 1024px) {
  .hdr__status { display: none; }

  .hdr__toggle { display: flex; }

  .hdr__nav {
    position: fixed;
    top: var(--hdr-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px var(--gutter) 48px;
    overflow-y: auto;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }

  .hdr__nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav__item { width: 100%; }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 14px;
    background: var(--glass);
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    border-left: 0;
  }

  .nav__actions .btn { width: 100%; min-height: 50px; }
  .nav__actions .btn--ghost { max-width: none; }
}

/* ---------- 11. 页脚 ---------- */
.ftr {
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #0B1220 0%, #0E1626 100%);
  border-top: 1px solid var(--line);
  color: var(--white);
  font-size: 14px;
}

.ftr__inner { padding-block: 56px 32px; }

.ftr__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
}

.ftr__brand { min-width: 0; }

.ftr__mark {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--white);
  max-width: none;
}

.ftr__summary {
  margin-top: 14px;
  max-width: 34em;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.ftr__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.ftr__col { min-width: 0; }

.ftr__col-title {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ftr__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.ftr__link {
  display: inline-block;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.ftr__link:hover { color: var(--white); transform: translateX(4px); }

/* 客服通道 */
.ftr__contact {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.ftr__contact-title {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ftr__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}

.ftr__meta-item { min-width: 0; }

.ftr__key {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.ftr__val {
  display: block;
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 法律行 */
.ftr__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.ftr__legal-line { display: inline-block; }

@media (max-width: 900px) {
  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ftr__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .ftr__meta { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ftr__inner { padding-block: 44px 28px; }
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.breadcrumbs a:hover { color: var(--cyan); }

.breadcrumbs__sep { color: var(--line); }

/* ---------- 13. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--mist);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag--orange { color: var(--orange); border-color: rgba(255, 90, 31, 0.42); }
.tag--cyan   { color: var(--cyan);   border-color: rgba(31, 182, 255, 0.42); }
.tag--green  { color: var(--green);  border-color: rgba(53, 208, 127, 0.42); }
.tag--red    { color: var(--red);    border-color: rgba(255, 59, 92, 0.42); }

/* ---------- 15. 图片容器（供页面阶段放置占位） ---------- */
.figure { margin: 0; }

.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(31, 182, 255, 0.07) 0%, transparent 55%);
}

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

.figure__caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--mist);
}

/* ---------- 16. 降低动效 ---------- */
@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;
  }

  .btn:hover,
  .ftr__link:hover { transform: none; }
}
