/* =========================================================
   爱游戏赛场 · 共享骨架 /assets/site.css
   深夜靛底 · 经幡五色状态点 · 堆叠画板
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 夜色与面板 */
  --ink: #0B1430;
  --ink-deep: #08102A;
  --panel: #131F45;
  --glass: #1B2C5C;
  --glass-fill: rgba(27, 44, 92, .52);
  --line: #2A3E77;
  --turf: #1E4034;

  /* 文字 */
  --white: #F2F5FF;
  --mist: #9AA8C7;
  --dim: #7D8CAD;

  /* 经幡五色（降饱和） */
  --amber: #FFC53D;
  --jade: #4FD1C5;
  --wine: #8C2F39;
  --violet: #6C5CE0;

  /* 尺度 */
  --shell: 1200px;
  --gutter: clamp(16px, 3.4vw, 32px);
  --step: clamp(16px, 2.2vw, 24px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* 字体 */
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(120% 62% at 12% -12%, rgba(108, 92, 224, .20), transparent 62%),
    radial-gradient(90% 46% at 102% -4%, rgba(79, 209, 197, .10), transparent 58%),
    var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: .55em;
}

h1 { font-size: clamp(2rem, 4.6vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin-bottom: 1em; max-width: 68ch; }

a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

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

small { font-size: 13px; color: var(--mist); }

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

::selection { background: rgba(255, 197, 61, .28); color: var(--white); }

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

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

.stack { display: flex; flex-direction: column; gap: var(--step); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--step);
}

/* ---------- 5. 跳转链接与进度条 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--amber);
  color: #1A1200;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #1A1200; }

.scroll-rail {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: rgba(42, 62, 119, .35);
}
.scroll-rail-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--jade) 0%, var(--amber) 58%, var(--wine) 100%);
}

/* ---------- 6. 头部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px clamp(10px, 3vw, 24px) 10px;
  background: linear-gradient(180deg,
      rgba(11, 20, 48, .96) 0%,
      rgba(11, 20, 48, .74) 64%,
      rgba(11, 20, 48, 0) 100%);
}

.head-island {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid rgba(42, 62, 119, .9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 34px -22px #000, inset 0 1px 0 rgba(242, 245, 255, .08);
  transition: padding .24s var(--ease), border-color .24s var(--ease);
}

.site-head[data-open="true"] .head-island { border-color: rgba(108, 92, 224, .8); }

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

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  background: conic-gradient(from 210deg,
      var(--jade), var(--white) 18%, var(--amber) 40%,
      var(--wine) 62%, var(--violet) 82%, var(--jade));
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(242, 245, 255, .14);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.sync { display: inline-flex; align-items: center; gap: 6px; }

.sync-text {
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, .14);
  display: inline-block;
}

.dot--pulse { animation: breathe 2.4s var(--ease) infinite; }

@keyframes breathe {
  0%, 100% { opacity: .6; transform: scale(.86); }
  50%      { opacity: 1;  transform: scale(1); }
}

/* 导航 */
.nav { margin-inline: auto; min-width: 0; }

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

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(108, 92, 224, .18); }

.nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--violet);
  font-weight: 600;
  box-shadow: 0 8px 20px -12px var(--violet);
}

/* 头部操作区 */
.head-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 44, 92, .78);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--violet); background: rgba(108, 92, 224, .22); }

.nav-toggle-box { display: grid; gap: 3px; width: 16px; }
.nav-toggle-box i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.site-head[data-open="true"] .nav-toggle-box i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-head[data-open="true"] .nav-toggle-box i:nth-child(2) { opacity: 0; }
.site-head[data-open="true"] .nav-toggle-box i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text { white-space: nowrap; }

/* 压缩态 */
.site-head[data-compact="true"] .head-island { padding-block: 5px; }
.site-head[data-compact="true"] .sync-text { display: none; }

@media (min-width: 901px) {
  .site-head[data-compact="true"] .nav-link[data-tier="extra"] { display: none; }
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1200;
}
.btn--solid:hover { background: #FFD668; border-color: #FFD668; color: #1A1200; }

.btn--quiet {
  background: rgba(27, 44, 92, .55);
  border-color: var(--line);
  color: var(--white);
}
.btn--quiet:hover { background: rgba(108, 92, 224, .24); border-color: var(--violet); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: rgba(79, 209, 197, .42);
  color: var(--jade);
}
.btn--ghost:hover { background: rgba(79, 209, 197, .12); color: var(--jade); border-color: var(--jade); }

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: var(--line); font-size: 15px; }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 9. 面板 ---------- */
.panel {
  --notch: var(--ink);
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  background: linear-gradient(225deg,
      var(--notch) 0 49.4%,
      rgba(242, 245, 255, .16) 49.4% 50.6%,
      transparent 50.6% 100%);
}

.panel--glass {
  background: var(--glass-fill);
  border-color: rgba(108, 92, 224, .38);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- 10. 档案标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 9px;
  border-radius: 2px 9px 9px 2px;
  border-left: 3px solid var(--violet);
  background: rgba(108, 92, 224, .18);
  color: #C9C4FF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
}
.tag--jade { border-left-color: var(--jade); background: rgba(79, 209, 197, .13); color: #9FE9E1; }
.tag--wine { border-left-color: var(--wine); background: rgba(140, 47, 57, .22); color: #E7A7AE; }
.tag--amber { border-left-color: var(--amber); background: rgba(255, 197, 61, .14); color: #FFDD93; }

/* ---------- 11. 数字 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--white);
}
.num--hero {
  display: block;
  font-size: clamp(72px, 11vw, 160px);
  line-height: .86;
  color: var(--amber);
}
.num--stat { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(27, 44, 92, .92) 0%, rgba(30, 64, 52, .78) 100%);
}
.media > img,
.media > picture > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg,
      rgba(242, 245, 255, .07) 0 1px,
      transparent 1px 7px);
  mix-blend-mode: overlay;
  opacity: .8;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

/* ---------- 13. 页脚 ---------- */
.site-foot {
  margin-top: clamp(72px, 10vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 8% 0%, rgba(108, 92, 224, .16), transparent 62%),
    radial-gradient(90% 70% at 100% 10%, rgba(30, 64, 52, .42), transparent 60%),
    linear-gradient(180deg, #0D1738 0%, #070E26 100%);
  color: var(--mist);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.6vw, 48px);
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
}

.foot-col { min-width: 0; }

.brand--foot { margin-bottom: 14px; }

.foot-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 6px;
  max-width: none;
}
.foot-note {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: .06em;
  margin: 0;
  max-width: none;
}

.foot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: .16em;
  color: var(--mist);
  margin-bottom: 16px;
}
.foot-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.foot-col:nth-child(2) .foot-title::before { background: var(--amber); }
.foot-col:nth-child(3) .foot-title::before { background: var(--wine); }
.foot-col:nth-child(4) .foot-title::before { background: var(--violet); }

.foot-list { display: grid; gap: 10px; }

.foot-link {
  display: inline-block;
  color: #C7D2EE;
  font-size: 15px;
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.foot-link:hover { color: var(--amber); transform: translateX(3px); }

.foot-list--meta { gap: 14px; }
.foot-list--meta li { display: grid; gap: 2px; }

.foot-label {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
}
.foot-value {
  font-size: 14px;
  line-height: 1.6;
  color: #C7D2EE;
  overflow-wrap: anywhere;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(42, 62, 119, .62);
}

.foot-base-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.foot-icp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #8B99B9;
}

.ridge { display: inline-flex; color: var(--jade); opacity: .82; }
.ridge-label { font-size: 12px; letter-spacing: .16em; color: #8B99B9; }

.foot-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim);
  max-width: none;
}

/* ---------- 14. 动效与筛选状态 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}

.is-filtered { display: none !important; }

/* ---------- 15. 断点 ---------- */
@media (max-width: 1120px) and (min-width: 901px) {
  .brand-name { font-size: 15px; }
  .sync-text { display: none; }
  .nav-link { padding: 7px 10px; font-size: 14px; }
  .head-cta { padding: 8px 15px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-col:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }

  .site-head { padding: 10px clamp(10px, 3vw, 16px) 8px; }

  .head-island {
    border-radius: 22px;
    padding: 8px 8px 8px 14px;
  }

  .brand-name { font-size: 16px; }
  .sync-text { display: none; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    padding: 10px;
    border-radius: 20px;
    background: rgba(19, 31, 69, .97);
    border: 1px solid var(--line);
    box-shadow: 0 28px 56px -28px #000;
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  .site-head[data-open="true"] .nav { display: block; }

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

  .nav-link {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav-link[aria-current="page"] { border-radius: 12px; }

  .nav-toggle { display: inline-flex; }
  .head-actions { margin-left: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col:nth-child(4) { grid-column: 1 / -1; }
  .foot-brand { grid-column: 1 / -1; }

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

@media (max-width: 520px) {
  .head-cta { padding: 7px 12px; font-size: 13px; }
  .nav-toggle { padding: 7px 11px; }
  .nav-toggle-text { display: none; }
  .brand { gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 16. 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal] { opacity: 1; transform: none; }
  .dot--pulse { animation: none; opacity: 1; }
}
