/* ==========================================================================
   NEONGRID — 游戏资讯攻略站 设计系统
   设计原则：规整的栅格 + 克制的霓虹 + 机甲切角，避免"堆特效"的廉价感
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 中性层与品牌色统一由文件末尾的主题层（html[data-theme]）提供，
     这里只保留角色别名，方便旧规则继续引用 */
  --line:        rgba(var(--line-rgb), 0.14);
  --line-strong: rgba(var(--line-rgb), 0.30);
  --cyan:        var(--brand-1);   /* 主色 */
  --violet:      var(--brand-2);   /* 次色 */
  --amber:       var(--brand-3);   /* 数据强调 */
  --pink:        var(--brand-4);   /* 辅助 */
  --grad-line:   linear-gradient(90deg, transparent, var(--cyan), transparent);

  /* 字号（clamp 流式，移动端不塌） */
  --f-display:   clamp(2rem, 4.6vw, 3.4rem);
  --f-h1:        clamp(1.7rem, 3.2vw, 2.5rem);
  --f-h2:        clamp(1.25rem, 2vw, 1.6rem);
  --f-h3:        1.0625rem;
  --f-body:      0.9375rem;
  --f-sm:        0.8125rem;
  --f-xs:        0.6875rem;

  /* 间距节奏（8pt） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --wrap: 1280px;
  --header-h: 66px;

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--f-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局背景：极淡网格 + 两团辉光（tech 氛围但不干扰阅读） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(var(--line-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--line-rgb), 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 420px at 12% -6%, rgba(var(--brand-1-rgb), 0.13), transparent 70%),
    radial-gradient(760px 460px at 88% 4%, rgba(var(--brand-2-rgb), 0.14), transparent 72%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(var(--brand-1-rgb), 0.28); color: var(--text); }

/* ---------- 3. 工具类 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.mono { font-family: var(--font-mono); font-size: var(--f-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--cyan); color: var(--on-brand); font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 切角：机甲感的核心手法，比圆角更"硬" */
.clip { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.clip-sm { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }

/* ==========================================================================
   头部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--panel-rgb), 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s6);
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.brand-name { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-name em { font-style: normal; color: var(--cyan); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s4); }
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: var(--f-sm);
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-hi); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px;
  height: 2px; background: var(--grad-brand); border-radius: 2px;
}

.header-tools { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px;
  width: 232px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-3);
  transition: border-color 0.2s var(--ease), width 0.24s var(--ease), background 0.2s;
}
.search:hover { border-color: var(--line-strong); background: var(--surface-hi); }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb), 0.12); width: 272px; }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--text); font-size: var(--f-sm);
}
.search input::placeholder { color: var(--text-3); }

/* ==========================================================================
   站内搜索页（search.html）
   ========================================================================== */
.search-page-form {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  margin: var(--s5) 0 var(--s4);
}
.search-page-form input {
  flex: 1 1 320px; min-width: 0;
  height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--f-base);
  font-family: inherit;
}
.search-page-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb), 0.14);
}
.search-status { color: var(--text-3); font-size: var(--f-sm); margin-bottom: var(--s4); }
.search-results { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.search-results li {
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(var(--brand-2-rgb), 0.5);
  border-radius: var(--r-sm);
  background: rgba(var(--panel-rgb), 0.5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.search-results li:hover { border-color: var(--line-strong); background: var(--surface-hi); }
.search-results a {
  color: var(--text); font-weight: 600; text-decoration: none;
  display: inline-block; margin-bottom: 4px;
}
.search-results a:hover, .search-results a:focus-visible { color: var(--cyan); text-decoration: underline; }
.search-kicker {
  margin-left: 10px; font-size: var(--f-xs); color: var(--brand-2);
  font-family: var(--mono);
}
.search-results p { color: var(--text-2); font-size: var(--f-sm); margin: 0; }
.kbd {
  font-family: var(--font-mono); font-size: 10px; line-height: 1;
  padding: 4px 5px; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--text-3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: var(--f-sm); font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--on-brand);
  font-weight: 700;
  box-shadow: 0 6px 22px -8px rgba(var(--brand-1-rgb), 0.75);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(var(--brand-1-rgb), 0.9); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: var(--surface);
}
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); background: rgba(var(--brand-1-rgb), 0.07); }

.nav-toggle { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ==========================================================================
   Hero 区
   ========================================================================== */
.hero { padding: var(--s7) 0 var(--s6); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: var(--s5);
}

/* 首页头卡轮播：三帧叠放交叉淡入淡出，卡片视觉样式不变 */
.hero-carousel {
  position: relative;
  display: grid;
}
.hero-slide {
  /* 所有帧叠在同一个网格单元，靠 opacity 切换 */
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-title { font-size: inherit; } /* h2 帧与 h1 帧字号一致 */
/* 帧二/三用 h2（页面已有 h1），但视觉与 h1 帧完全一致 */
.feature h2.feature-title {
  font-size: var(--f-display);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
@media (max-width: 1120px) {
  .feature h2.feature-title { font-size: 1.85rem; }
}
.hero-dots {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dot:hover { transform: scale(1.25); }
.hero-dot.is-active {
  background: var(--cyan);
  border-color: transparent;
}
.hero-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 特色大卡 */
.feature {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 430px;
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-elev);
}
.feature::before {
  /* 封面：纯 CSS 生成的机甲几何图，不依赖图片，加载零延迟 */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(var(--brand-2-rgb), 0.55), transparent 62%),
    radial-gradient(90% 70% at 12% 92%, rgba(var(--brand-1-rgb), 0.42), transparent 60%),
    linear-gradient(160deg, var(--bg-elev-2) 0%, var(--bg) 100%);
}
.feature::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 26px),
    linear-gradient(to top, rgba(5, 7, 14, 0.94) 8%, rgba(5, 7, 14, 0.25) 62%, transparent 100%);
}
/* 右上角装饰环 */
.feature-deco {
  position: absolute; top: -46px; right: -46px; z-index: -1;
  width: 260px; height: 260px;
  border: 1px solid rgba(var(--brand-1-rgb), 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(var(--brand-1-rgb), 0.12);
}
.feature-deco::after {
  content: ""; position: absolute; inset: 34px;
  border: 1px dashed rgba(var(--brand-2-rgb), 0.45); border-radius: 50%;
}

.feature-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text-2);
  background: rgba(var(--panel-rgb), 0.55);
  backdrop-filter: blur(6px);
}
.tag-hot { border-color: rgba(var(--brand-1-rgb), 0.5); color: var(--brand-1); background: rgba(var(--brand-1-rgb), 0.1); }
.tag-cyan { border-color: rgba(var(--brand-1-rgb), 0.5); color: var(--cyan); background: rgba(var(--brand-1-rgb), 0.1); }

.feature h1 {
  font-size: var(--f-display);
  letter-spacing: -0.03em;
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.feature .lede {
  max-width: 46ch;
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: var(--s5);
}
.feature-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: var(--f-sm);
}
.feature-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.feature-meta strong { color: var(--text-2); font-weight: 600; }

/* 热榜 */
.ranked {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.panel-head .mono { color: var(--text-3); }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-1); margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(var(--brand-1-rgb), 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--brand-1-rgb), 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(var(--brand-1-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--brand-1-rgb), 0); }
}

.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: grid;
  grid-template-columns: 26px 46px minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid rgba(var(--line-rgb), 0.07);
  transition: background 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: rgba(var(--brand-1-rgb), 0.06); padding-left: calc(var(--s5) + 4px); }
.rank-no {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  color: var(--text-3);
}
.rank-item:nth-child(1) .rank-no { color: var(--cyan); }
.rank-item:nth-child(2) .rank-no { color: var(--brand-2); }
.rank-item:nth-child(3) .rank-no { color: var(--amber); }
.rank-thumb {
  width: 46px; height: 46px; border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.05em;
}
.rank-body { min-width: 0; }
.rank-title {
  display: block;
  font-size: 0.875rem; font-weight: 600; line-height: 1.45;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-sub {
  display: flex; gap: var(--s3);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--text-3);
  margin-top: 2px;
}
.rank-sub .up { color: var(--pink); }

/* ==========================================================================
   分类导航条
   ========================================================================== */
.rail {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) 0 var(--s6);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: var(--f-sm);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: all 0.18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
/* chips 也用作导航链接（首页分类快捷入口），锚点要去下划线、继承配色 */
a.chip { text-decoration: none; display: inline-block; }
a.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] {
  color: var(--on-brand);
  background: var(--grad-brand);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px -6px rgba(var(--brand-1-rgb), 0.8);
}

/* ==========================================================================
   通用区块标题
   ========================================================================== */
.section { padding-bottom: var(--s8); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.section-head .eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--cyan);
  margin-bottom: var(--s2);
}
.section-head .eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
}
.section-head h2 { font-size: var(--f-h2); }
.section-head p { color: var(--text-3); font-size: var(--f-sm); margin-top: 5px; max-width: 56ch; }
.more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--f-sm); color: var(--text-2);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.more-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* --------------------------------------------------------------------------
   首页「最新内容」：方案 A 子导航切换 / 方案 B 三组横排
   -------------------------------------------------------------------------- */
.latest-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: calc(var(--s3) * -1) 0 var(--s5);
}
.latest-tabs .chip { cursor: pointer; }
.latest-tabs .chip[aria-selected="true"] {
  color: var(--on-brand);
  background: var(--grad-brand);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px -6px rgba(var(--brand-1-rgb), 0.8);
}
.latest-panel { display: none; }
.latest-panel.is-active { display: block; animation: latest-in 0.24s var(--ease); }
@keyframes latest-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .latest-panel.is-active { animation: none; } }

/* 方案 B：总标题不再画线，避免和第一组标题的线叠在一起 */
.latest--rows .latest-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--s6);
  align-items: flex-start;
}
.latest--rows .latest-head p { max-width: 62ch; }
.latest-group + .latest-group { margin-top: var(--s8); }
.latest-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s3); margin-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.latest-group-head .lg-name {
  display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap;
}
.latest-group-head .lg-num {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--brand-1); background: rgba(var(--brand-1-rgb), .1);
  padding: 3px 8px; border-radius: 4px; line-height: 1;
  position: relative; top: -3px;
}
.latest-group-head h3 {
  font-size: 1.3rem; font-weight: 800; margin: 0; letter-spacing: -.01em;
}
.latest-group-head .lg-meta { font-size: .78rem; color: var(--text-3); }
.latest-group-head .more-link { flex: none; }
@media (max-width: 560px) {
  .latest-group-head { align-items: flex-start; flex-direction: column; gap: var(--s2); }
  .latest-group-head h3 { font-size: 1.15rem; }
  /* 移动端：编号不再上浮；「查看全部」链接与标题左对齐，避免悬挂在右下显得错位 */
  .latest-group-head .lg-num { top: 0; }
  .latest-group-head .more-link { align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   页内导航（长页面快速直达）：吸在主导航下方，锚点滚动时留出吸顶高度
   -------------------------------------------------------------------------- */
/* html 已有 scroll-padding-top（header + 16），这里补足到吸顶导航下方 */
.page-nav ~ .section-head { scroll-margin-top: 64px; }
.page-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s5) 0 var(--s6);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(var(--panel-rgb), 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-nav-label {
  flex-shrink: 0; padding-left: 4px;
  color: var(--text-3); white-space: nowrap;
}
.page-nav-list {
  display: flex; align-items: center; gap: 6px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.page-nav-list::-webkit-scrollbar { display: none; }
.page-nav a {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: var(--f-sm); color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; border-radius: 999px;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.page-nav a > .mono { color: var(--text-3); font-size: var(--f-xs); transition: color .18s var(--ease); }
.page-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line); }
.page-nav a:hover > .mono { color: var(--cyan); }
.page-nav a.is-active {
  color: var(--text);
  background: rgba(var(--brand-1-rgb), .12);
  border-color: rgba(var(--brand-1-rgb), .45);
}
.page-nav a.is-active > .mono { color: var(--brand-1); }
.page-nav a:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
@media (max-width: 720px) {
  .page-nav { margin: var(--s4) 0 var(--s5); padding: 8px 10px; gap: 8px; }
  .page-nav-label { display: none; }
  .page-nav a { padding: 5px 10px; }
  /* 右侧渐隐提示可横向滑动，滑到底后自动消失 */
  .page-nav::after {
    content: "›"; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 30px;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
    border-radius: 0 var(--r-md) var(--r-md) 0; pointer-events: none;
    font-size: 1rem; line-height: 1; color: var(--cyan);
    background: linear-gradient(90deg, rgba(var(--panel-rgb), 0), rgba(var(--panel-rgb), 0.96) 55%);
    transition: opacity .2s var(--ease);
  }
  .page-nav.is-end::after { opacity: 0; }
}

/* ==========================================================================
   文章卡片网格
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-1-rgb), 0.45);
  box-shadow: 0 18px 40px -24px rgba(var(--brand-1-rgb), 0.55);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}
.card-cover .art {
  position: absolute; inset: 0;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-cover .art { transform: scale(1.05); }

/* 真实封面图：绝对铺满 16:9 容器，底部暗角保证角标可读 */
.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-img { transform: scale(1.05); }
.card-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.52));
}

/* 文章页头图 */
.article-hero { margin: var(--s5) 0 var(--s6); }
.article-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line);
}

/* 正文内插图 */
.article-figure { margin: var(--s6) 0; }
/* 小尺寸二维码插图（如淘宝三方购买入口）：按内容收缩居中，不随正文拉满 */
.article-figure.figure-qr {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.article-figure.figure-qr img {
  width: 200px;
  height: auto;
  background: #fff;
  padding: 6px;
}
.article-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--bg-elev-2);
}
.article-figure figcaption {
  margin-top: 10px; font-size: var(--f-xs); line-height: 1.6;
  color: var(--text-3); text-align: center;
}
/* 用不同色相区分栏目，替代真实图片 */
.art-1 { background: radial-gradient(80% 90% at 20% 10%, #1e3a8a, var(--bg) 70%), repeating-linear-gradient(45deg, rgba(var(--brand-1-rgb),.16) 0 1px, transparent 1px 18px); }
.art-2 { background: radial-gradient(80% 90% at 80% 20%, #4c1d95, var(--bg) 70%), repeating-linear-gradient(-45deg, rgba(var(--brand-3-rgb),.14) 0 1px, transparent 1px 18px); }
.art-3 { background: radial-gradient(80% 90% at 50% 0%, #0e7490, var(--bg) 70%), repeating-linear-gradient(90deg, rgba(var(--brand-2-rgb),.16) 0 1px, transparent 1px 22px); }
.art-4 { background: radial-gradient(80% 90% at 30% 80%, #831843, var(--bg) 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 20px); }
.art-5 { background: radial-gradient(80% 90% at 70% 70%, #065f46, var(--bg) 70%), repeating-linear-gradient(135deg, rgba(var(--brand-1-rgb),.14) 0 1px, transparent 1px 16px); }
.art-6 { background: radial-gradient(80% 90% at 40% 30%, #7c2d12, var(--bg) 70%), repeating-linear-gradient(60deg, rgba(255,255,255,.09) 0 1px, transparent 1px 20px); }

.card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-brand); font-weight: 700;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.card-badge.violet { background: var(--brand-2); }
.card-badge.amber { background: var(--amber); }
.card-ver {
  position: absolute; bottom: 10px; right: 10px;
  padding: 3px 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--text-2);
  background: rgba(var(--panel-rgb), 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.card-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); flex: 1; }
.card-kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
}
.card-title {
  font-size: var(--f-h3); line-height: 1.5; font-weight: 650;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card-title { color: var(--text); }
.card-desc {
  color: var(--text-3); font-size: var(--f-sm); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; gap: var(--s3);
  margin-top: auto; padding-top: var(--s3);
  border-top: 1px solid rgba(var(--line-rgb), 0.08);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--text-3);
}
.card-foot .sep { width: 1px; height: 10px; background: var(--line-strong); }

/* ==========================================================================
   游戏库 / 攻略专区
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
/* 首页工具卡片：地图模拟器 / 通缉模拟器 / 解锁速查 */
.tool-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tool-tiles { grid-template-columns: 1fr; } }
.game-tile {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.game-tile::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-line);
  opacity: 0; transition: opacity 0.22s;
}
.game-tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.game-tile:hover::after { opacity: 1; }
.game-glyph {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(var(--brand-1-rgb), 0.09);
  border: 1px solid rgba(var(--brand-1-rgb), 0.28);
  color: var(--cyan);
}
.game-glyph svg { width: 20px; height: 20px; }
.game-tile h3 { font-size: 0.9375rem; }
.tile-stat { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.tile-stat b { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--brand-2); letter-spacing: -0.02em; }
.tile-stat em { font-style: normal; font-size: 0.8125rem; color: var(--text-2); }
.tile-stat > span { margin-left: 4px; font-size: 0.75rem; color: var(--text-3); }
/* 直播三卡片：数字靠右，左侧图标+标题，说明独占底部 */
.game-tile.tile-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  column-gap: var(--s3);
  row-gap: var(--s3);
}
.game-tile.tile-right .game-glyph { grid-column: 1; grid-row: 1; }
.game-tile.tile-right h3 { grid-column: 1; grid-row: 2; align-self: end; }
.game-tile.tile-right .tile-stat {
  grid-column: 2; grid-row: 1 / span 2;
  flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 0; margin-top: 0; text-align: right;
}
.game-tile.tile-right .tile-stat b { font-size: 2.1rem; }
.game-tile.tile-right .tile-stat > span { margin-left: 0; margin-top: 3px; white-space: nowrap; }
.game-tile.tile-right .count { grid-column: 1 / -1; grid-row: 3; align-self: end; }
.game-tile .count { color: var(--text-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.game-tile .bar { height: 3px; border-radius: 2px; background: rgba(var(--line-rgb), 0.12); overflow: hidden; margin-top: auto; }
.game-tile .bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 2px; }

/* ==========================================================================
   数据条 / AI 摘要入口
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s5);
}
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}
.stat {
  padding: var(--s5) var(--s4);
  background: var(--bg-elev);
}
.stat dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.stat dd {
  margin: var(--s2) 0 0;
  font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.stat dd span { font-size: 0.8125rem; color: var(--text-3); margin-left: 3px; font-weight: 400; }

.ai-panel {
  position: relative;
  padding: var(--s5);
  border: 1px solid rgba(var(--brand-2-rgb), 0.32);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(var(--brand-2-rgb), 0.16), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
}
.ai-panel .ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s3); }
.ai-panel .ai-head .mono { color: var(--brand-2); }
.ai-panel h3 { font-size: 1rem; margin-bottom: var(--s2); }
.ai-panel p { color: var(--text-2); font-size: var(--f-sm); line-height: 1.7; }
.ai-panel ul { margin-top: var(--s3); display: flex; flex-direction: column; gap: 7px; }
.ai-panel li {
  position: relative; padding-left: 18px;
  font-size: var(--f-sm); color: var(--text-2);
}
.ai-panel li::before {
  content: "▸"; position: absolute; left: 0; color: var(--violet); font-size: 12px; top: 0;
}

/* 首页「支持平台与上线时间」卡：名称 + 说明两行，用左侧竖线分组，去掉默认圆点 */
.ai-panel .plat-list { gap: var(--s3); margin-top: var(--s4); }
.ai-panel .plat-list li {
  padding-left: 12px;
  border-left: 2px solid rgba(var(--brand-2-rgb), 0.42);
  display: flex; flex-direction: column; gap: 2px;
}
.ai-panel .plat-list li::before { display: none; }
.plat-list strong { color: var(--text); font-weight: 600; }
.plat-list span { color: var(--text-3); font-size: var(--f-xs); line-height: 1.5; }
.plat-link {
  display: inline-block; margin-top: var(--s4);
  font-size: var(--f-sm); color: var(--brand-2); text-decoration: none;
}
.plat-link:hover, .plat-link:focus-visible { text-decoration: underline; }

/* ==========================================================================
   订阅 CTA
   ========================================================================== */
.cta {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6); flex-wrap: wrap;
  padding: var(--s6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(var(--brand-1-rgb), 0.14), transparent 55%),
    radial-gradient(90% 140% at 100% 100%, rgba(var(--brand-2-rgb), 0.18), transparent 55%),
    var(--bg-elev);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(var(--line-rgb),.06) 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.cta h2 { font-size: var(--f-h2); margin-bottom: 6px; }
.cta p { color: var(--text-2); font-size: var(--f-sm); }
.subscribe { display: flex; gap: var(--s2); flex-wrap: wrap; position: relative; }

/* CTA 按钮组（替代已下线的邮箱订阅表单，避免「提交了却没人收到邮件」） */
.cta-actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.subscribe input {
  height: 42px; width: 240px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: rgba(var(--panel-rgb), 0.7);
  color: var(--text); font-size: var(--f-sm); outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb), 0.12); }
.subscribe .btn { height: 42px; padding-inline: 20px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
  background: rgba(var(--panel-rgb), 0.7);
  padding: var(--s7) 0 var(--s5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-3); font-size: var(--f-sm); margin-top: var(--s3); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: var(--f-sm); color: var(--text-2); transition: color 0.18s; }
.footer-col a:hover { color: var(--cyan); }
.footer-col a.is-machine { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.footer-col a.is-machine:hover { color: var(--violet); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
  padding-top: var(--s4);
  font-size: var(--f-xs); color: var(--text-3);
}
.footer-bottom .mono { color: var(--text-3); }

/* 备案信息：右侧与 BUILD 号并排，链接至工信部备案系统（法规要求，勿删） */
.footer-meta {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s4);
}
.footer-icp {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-icp:hover,
.footer-icp:focus-visible {
  color: var(--text);           /* 保证 hover / 键盘焦点时对比度更高 */
  border-bottom-color: currentColor;
}

/* 页脚玩家群入口 */
.footer-qq {
  margin: 10px 0 0;
  font-size: var(--f-sm);
  color: var(--text-2);
}
.footer-qq strong { color: var(--text); font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-qq a { color: var(--cyan); text-decoration: none; }
.footer-qq a:hover, .footer-qq a:focus-visible { text-decoration: underline; }

/* 联系页 QQ 群二维码卡片：白底承载彩色码点，深浅主题下都可扫 */
.qq-card {
  margin: 18px 0 10px;
  background: #ffffff;
  border-radius: var(--r-md);
  padding: 14px;
  width: max-content;
  max-width: 100%;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.45);
}
.qq-card img { display: block; width: 240px; height: auto; border-radius: 6px; }
.qq-card figcaption {
  margin-top: 8px; text-align: center;
  font-size: var(--f-xs); font-weight: 600; color: #4a3f63;
}

/* ==========================================================================
   Article 模板页
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s7);
  padding-top: var(--s6);
  align-items: start;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--f-xs); color: var(--text-3);
  margin-top: var(--s5); margin-bottom: var(--s4);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.5; }

.article-head h1 {
  font-size: var(--f-h1);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: var(--s3);
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
}
.article-meta .verified {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand-4);
}

/* AI 摘要块 —— GEO 的关键抓手：答案前置 + 可被引用 */
.ai-summary {
  margin: var(--s5) 0;
  padding: var(--s5);
  border: 1px solid rgba(var(--brand-2-rgb), 0.35);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(100deg, rgba(var(--brand-2-rgb), 0.12), rgba(var(--brand-2-rgb), 0.02));
}
.ai-summary .label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: var(--s3);
}
.ai-summary p { font-size: 0.9375rem; color: var(--text); line-height: 1.8; }
.ai-summary ul { margin-top: var(--s3); display: grid; gap: 6px; }
.ai-summary li { position: relative; padding-left: 16px; font-size: var(--f-sm); color: var(--text-2); }
.ai-summary li::before { content: "—"; position: absolute; left: 0; color: var(--violet); }

.prose { color: var(--text-2); font-size: 0.9375rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: 1.3rem; color: var(--text);
  margin-top: 2.2em; padding-left: 12px;
  border-left: 2px solid var(--cyan);
  line-height: 1.4;
}
.prose h3 { font-size: 1.0625rem; color: var(--text); margin-top: 1.8em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose code {
  font-family: var(--font-mono); font-size: 0.84em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(var(--brand-1-rgb), 0.09);
  border: 1px solid rgba(var(--brand-1-rgb), 0.18);
  color: var(--brand-1);
}
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; background: var(--cyan); transform: rotate(45deg); }
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: step; }
.prose ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(var(--brand-1-rgb), 0.3);
  border-radius: 3px; padding: 1px 5px;
}

.callout {
  display: flex; gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r-sm);
  border: 1px solid rgba(var(--brand-3-rgb), 0.28);
  background: rgba(var(--brand-3-rgb), 0.07);
  font-size: var(--f-sm);
}
.callout .ico { flex-shrink: 0; color: var(--amber); font-weight: 700; }
.callout.tip { border-color: rgba(var(--brand-1-rgb), 0.28); background: rgba(var(--brand-1-rgb), 0.06); }
.callout.tip .ico { color: var(--cyan); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
thead th {
  text-align: left; padding: 11px 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); background: var(--panel-a);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(var(--line-rgb), 0.07); color: var(--text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(var(--brand-1-rgb), 0.035); }
td .best { color: var(--cyan); font-weight: 600; }

/* FAQ（原生 details，零 JS，利于抓取） */
.faq { display: grid; gap: var(--s2); margin-top: var(--s4); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(var(--panel-rgb), 0.7); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 13px var(--s4);
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 16px;
  color: var(--cyan); flex-shrink: 0; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 var(--s4) 14px; color: var(--text-2); font-size: var(--f-sm); line-height: 1.75; }

/* 侧栏 */
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s4); }
.aside-card {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(var(--panel-rgb), 0.7);
}
.aside-card h3 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--s3);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line);
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block; padding: 6px 8px 6px 0;
  font-size: 0.8125rem; color: var(--text-2);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.toc a:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(var(--brand-1-rgb), 0.05); }
.toc a.is-sub { padding-left: 24px; font-size: 0.78125rem; color: var(--text-3); }

.mini-list { display: grid; gap: var(--s3); }
.mini-list a { display: flex; gap: 10px; align-items: flex-start; }
.mini-list .n { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); padding-top: 3px; }
.mini-list .t { font-size: 0.8125rem; color: var(--text-2); line-height: 1.55; transition: color 0.18s; }
.mini-list a:hover .t { color: var(--cyan); }

.spec-list { display: grid; gap: 9px; font-size: 0.8125rem; }
.spec-list div { display: flex; justify-content: space-between; gap: var(--s3); }
.spec-list dt { color: var(--text-3); }
.spec-list dd { margin: 0; color: var(--text-2); font-family: var(--font-mono); font-size: 11px; text-align: right; }

/* 相关推荐 */
.related { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }

/* ==========================================================================
   动效 & 响应式
   ========================================================================== */
/* 渐进增强：只有在 JS 可用（html.js-ready）时才启用入场动画，
   保证无 JS / 爬虫抓取时正文始终可见。 */
.reveal { opacity: 1; }
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-ready .reveal.in { opacity: 1; transform: none; }

/* 移动端展开的导航面板（复用桌面导航 DOM，SEO 无重复链接） */
@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--s3) var(--s4) var(--s4);
    background: rgba(var(--panel-rgb), 0.98);
    border-bottom: 1px solid var(--line-strong);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 0.9375rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: rgba(var(--brand-1-rgb), 0.08); color: var(--cyan); }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature { min-height: 380px; }
  .article-layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --f-body: 1rem; }
  .wrap { padding-inline: var(--s4); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .search { display: none; }
  .rank-item { grid-template-columns: 22px 40px minmax(0, 1fr); padding-inline: var(--s4); }
  .rank-thumb { width: 40px; height: 40px; }
  .feature { padding: var(--s5); min-height: 340px; }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  /* 页脚：单列会把每块拉满屏宽、链接一行一个，右侧全是空白。
     改为「品牌占整行 + 内容/关于两列并排 + 订阅横向铺开」，高度减半且分组清晰。 */
  .site-footer { margin-top: var(--s6); padding: var(--s6) 0 64px; } /* 底部留出悬浮主题切换器的高度，避免遮字 */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5) var(--s4);
    padding-bottom: var(--s5);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; margin-top: var(--s2); }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col ul { gap: 7px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child ul { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: var(--s4); }
  .subscribe input { width: 100%; }
  .subscribe { width: 100%; }
  .subscribe .btn { width: 100%; }
  .feature h1 { font-size: 1.85rem; }
  .cta { padding: var(--s5); }
}

/* ==========================================================================
   主题层 — GTA6 四套配色（html[data-theme] 切换，默认 sunset 紫霞落日）
   令牌分三组：
     中性层 bg / bg-elev / text / line
     品牌层 brand-1 主色 · brand-2 次色 · brand-3 强调 · brand-4 辅助
     合成层 grad-brand / panel
   ========================================================================== */

:root,
html[data-theme="sunset"] {
  --bg: #1a1028; --bg-elev: #241733; --bg-elev-2: #2e1e42;
  --panel-a: rgba(36, 23, 51, 0.88); --panel-b: rgba(26, 16, 40, 0.94);
  --panel-rgb: 36, 23, 51;
  --surface: rgba(255, 255, 255, 0.045); --surface-hi: rgba(255, 255, 255, 0.082);
  --line-rgb: 255, 143, 192;
  --text: #fdf3f7; --text-2: #d5bfd2; --text-3: #a48fb0;
  --brand-1: #ff3d8b; --brand-1-rgb: 255, 61, 139;
  --brand-2: #ff7a3d; --brand-2-rgb: 255, 122, 61;
  --brand-3: #ffc93c; --brand-3-rgb: 255, 201, 60;
  --brand-4: #2ee6c8; --brand-4-rgb: 46, 230, 200;
  --on-brand: #1a1028;
  --grad-brand: linear-gradient(135deg, #ff7a3d 0%, #ff3d8b 100%);
}

html[data-theme="ocean"] {
  --bg: #081e26; --bg-elev: #0d2b36; --bg-elev-2: #123743;
  --panel-a: rgba(13, 43, 54, 0.9); --panel-b: rgba(8, 30, 38, 0.95);
  --panel-rgb: 13, 43, 54;
  --surface: rgba(255, 255, 255, 0.045); --surface-hi: rgba(255, 255, 255, 0.082);
  --line-rgb: 127, 227, 245;
  --text: #eaf9fb; --text-2: #b4d2da; --text-3: #84a8b2;
  --brand-1: #22d3ee; --brand-1-rgb: 34, 211, 238;
  --brand-2: #38bdf8; --brand-2-rgb: 56, 189, 248;
  --brand-3: #ffc247; --brand-3-rgb: 255, 194, 71;
  --brand-4: #ff6b9d; --brand-4-rgb: 255, 107, 157;
  --on-brand: #06202a;
  --grad-brand: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
}

html[data-theme="neon"] {
  --bg: #140e22; --bg-elev: #1e1433; --bg-elev-2: #281a42;
  --panel-a: rgba(30, 20, 51, 0.9); --panel-b: rgba(20, 14, 34, 0.95);
  --panel-rgb: 30, 20, 51;
  --surface: rgba(255, 255, 255, 0.05); --surface-hi: rgba(255, 255, 255, 0.09);
  --line-rgb: 200, 150, 255;
  --text: #f5eeff; --text-2: #cbb6de; --text-3: #9785ab;
  --brand-1: #ff2d95; --brand-1-rgb: 255, 45, 149;
  --brand-2: #a855f7; --brand-2-rgb: 168, 85, 247;
  --brand-3: #e9ff3d; --brand-3-rgb: 233, 255, 61;
  --brand-4: #22d3ee; --brand-4-rgb: 34, 211, 238;
  --on-brand: #140e22;
  --grad-brand: linear-gradient(135deg, #a855f7 0%, #ff2d95 100%);
}

html[data-theme="daylight"] {
  --bg: #faf6f0; --bg-elev: #ffffff; --bg-elev-2: #fffdfa;
  --panel-a: rgba(255, 255, 255, 0.94); --panel-b: rgba(250, 246, 240, 0.97);
  --panel-rgb: 255, 255, 255;
  --surface: rgba(28, 20, 45, 0.042); --surface-hi: rgba(28, 20, 45, 0.075);
  --line-rgb: 28, 20, 45;
  --text: #1c142d; --text-2: #4a3f5c; --text-3: #6f6482;
  --brand-1: #db1177; --brand-1-rgb: 219, 17, 119;
  --brand-2: #7b2ff7; --brand-2-rgb: 123, 47, 247;
  --brand-3: #f4602a; --brand-3-rgb: 244, 96, 42;
  --brand-4: #0fa3a3; --brand-4-rgb: 15, 163, 163;
  --on-brand: #ffffff;
  --grad-brand: linear-gradient(135deg, #f4602a 0%, #db1177 100%);
}

/* 浅色主题的结构性修正：网格、辉光、卡片阴影按浅底重算 */
html[data-theme="daylight"] body::before {
  background-image:
    linear-gradient(rgba(28, 20, 45, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 20, 45, 0.055) 1px, transparent 1px);
}
html[data-theme="daylight"] body::after {
  background:
    radial-gradient(720px 420px at 12% -6%, rgba(228, 20, 127, 0.10), transparent 70%),
    radial-gradient(760px 460px at 88% 4%, rgba(244, 96, 42, 0.10), transparent 72%);
}
html[data-theme="daylight"] .card,
html[data-theme="daylight"] .panel,
html[data-theme="daylight"] .game-tile {
  box-shadow: 0 1px 2px rgba(28, 20, 45, 0.06), 0 8px 24px rgba(28, 20, 45, 0.06);
}
html[data-theme="daylight"] .site-header {
  background: rgba(250, 246, 240, 0.86);
}

/* ---------- 主题切换器（仅预览用，可随时删除本段） ---------- */
.theme-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(18, 14, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.theme-switch-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62); margin-right: 2px;
}
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.theme-dot:hover { transform: scale(1.14); }
.theme-dot[aria-pressed="true"] { border-color: #fff; transform: scale(1.14); }
.theme-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  .theme-switch { right: 10px; bottom: 10px; padding: 6px 10px 6px 8px; gap: 6px; }
  .theme-switch-label { display: none; }
}

/* ==========================================================================
   广告位组件
   设计原则：
     1) 固定占位高度（min-height + aspect-ratio），广告加载不推挤正文 —— 防 CLS
     2) 显式「广告」标识，符合《互联网广告管理办法》对可识别性的要求
     3) 一个 .ad-slot 容器，接联盟代码时只替换内层内容，不动栅格
     4) 移动端降级而不是隐藏，横栏改为纵向排布
   ========================================================================== */

/* 区块容器：与普通 .section 保持同样的上下节奏，避免广告贴住相邻栏目 */
.ad-section { padding-bottom: var(--s8); }

.ad-zone { position: relative; }
.ad-zone + .ad-zone { margin-top: var(--s4); }

.ad-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 7px;
}
.ad-flag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-1);
}

.ad-slot {
  position: relative; display: flex; align-items: center; gap: var(--s5);
  overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(var(--brand-1-rgb), 0.055) 0 1px, transparent 1px 14px),
    linear-gradient(118deg, rgba(var(--brand-2-rgb), 0.10), transparent 58%),
    var(--bg-elev);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
/* 左侧品牌色竖条：让占位不像「图裂了」，而像一个刻意的版块 */
.ad-slot::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--grad-brand);
}
.ad-slot:hover { border-color: rgba(var(--brand-1-rgb), 0.5); transform: translateY(-1px); }
.ad-slot:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }

/* 内部三层是 span，必须显式 block，否则会挤在同一行 */
.ad-slot-main { display: block; flex: 1; min-width: 0; }
.ad-slot-kicker {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-1);
}
.ad-slot-title {
  display: block;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.012em;
  margin: 5px 0 0; line-height: 1.35;
}
.ad-slot-desc {
  display: block;
  font-size: var(--f-sm); color: var(--text-2);
  margin: 5px 0 0; max-width: 64ch; line-height: 1.6;
}
.ad-slot-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--f-sm); font-weight: 700; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(var(--brand-1-rgb), 0.45);
  transition: background 0.18s var(--ease);
}
.ad-slot:hover .ad-slot-cta { background: rgba(var(--brand-1-rgb), 0.12); }

/* 横栏：首页两屏之间，标准 970×90 的通栏尺寸，纵向留白略放大 */
.ad-banner { min-height: 122px; padding: var(--s5) var(--s6); }

/* 真实素材模式：占位文案换成直客图片，去装饰、收紧内边距。
   img 自带 width/height 属性（970×90），加载前后高度一致 —— CLS 仍为 0 */
.ad-slot.ad-real {
  display: block; padding: 6px; min-height: 0;
  background: none;
}
.ad-slot.ad-real::before { content: none; }
.ad-slot.ad-real picture { display: block; }
.ad-slot.ad-real img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--r-md) - 3px);
}
.ad-slot.ad-real:hover { transform: translateY(-1px); border-color: rgba(var(--brand-1-rgb), 0.55); }

/* ---------- 作弊码按键徽章：表格内的手柄键位胶囊 ---------- */
kbd.key {
  display: inline-block; min-width: 2em; margin: 1px 2px; padding: 2px 7px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  line-height: 1.5; text-align: center; white-space: nowrap;
  color: var(--text-1);
  border: 1px solid rgba(var(--brand-1-rgb), 0.45);
  border-bottom-width: 2px; border-radius: 5px;
  background: rgba(var(--brand-1-rgb), 0.10);
}
kbd.key-arrow { min-width: 1.8em; padding: 2px 5px; }

/* 侧栏矩形：文章页 300×250，内容垂直居中 */
.ad-zone-side .ad-slot {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0; padding: var(--s5) var(--s4);
  min-height: 250px; aspect-ratio: 300 / 250;
}
.ad-zone-side .ad-slot-title { font-size: 0.9375rem; }
.ad-zone-side .ad-slot-desc { font-size: var(--f-xs); line-height: 1.6; margin-top: 6px; }
.ad-zone-side .ad-slot-cta {
  margin-top: var(--s4); width: 100%; justify-content: center; padding: 7px 12px;
}

@media (max-width: 760px) {
  .ad-banner {
    flex-direction: column; align-items: flex-start;
    gap: var(--s4); padding: var(--s5); min-height: 0;
  }
  .ad-slot-cta { width: 100%; justify-content: center; }
}

/* ---------- 页脚 · 友情链接 ---------- */
.footer-links {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px;
  padding: var(--s4) 0;
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-links-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); flex: none;
}
.footer-links ul {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none;
}
.footer-links a {
  font-size: var(--f-sm); color: var(--text-2); text-decoration: none;
  transition: color 0.15s var(--ease);
}
.footer-links a:hover { color: var(--brand-1); }
.footer-links a:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 3px; }

/* ---------- 首页倒计时 · 游戏开服卡片式 ---------- */
.cd {
  display: flex; justify-content: center; align-items: stretch;
  gap: clamp(8px, 1.6vw, 20px);
  padding: var(--s5) 0 var(--s4);
}
.cd-unit {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: clamp(74px, 13vw, 170px);
  padding: clamp(16px, 2.2vw, 28px) clamp(10px, 1.6vw, 22px) clamp(12px, 1.6vw, 20px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--brand-1-rgb), 0.10), transparent 55%),
    linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  /* 机甲切角：右上与左下 */
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 0.25s var(--ease);
}
/* 顶部渐变条：开服倒计时的经典细节 */
.cd-unit::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-1), transparent);
  opacity: 0.75;
}
.cd-unit:hover { border-color: rgba(var(--brand-1-rgb), 0.45); }
.cd-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 22px rgba(var(--brand-1-rgb), 0.28));
}
.cd-label {
  margin-top: 10px;
  font-size: var(--f-xs); font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-2);
  display: flex; align-items: baseline; gap: 7px;
}
.cd-en {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3);
}
/* 秒位卡片：边框呼吸 + 数字更亮，形成整屏的“心跳”焦点 */
.cd-unit-sec {
  border-color: rgba(var(--brand-1-rgb), 0.5);
  animation: cdBreath 1s var(--ease) infinite;
}
.cd-unit-sec .cd-num {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cd-unit-sec::before { opacity: 1; }
@keyframes cdBreath {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--brand-1-rgb), 0.0); border-color: rgba(var(--brand-1-rgb), 0.5); }
  50% { box-shadow: 0 0 26px rgba(var(--brand-1-rgb), 0.22); border-color: rgba(var(--brand-1-rgb), 0.85); }
}
/* 跳动帧：数字变化时缩放 + 提亮 320ms */
.is-tick { animation: cdPop 0.32s var(--ease) 1; }
.cd-unit-sec.is-tick { animation: cdPop 0.32s var(--ease) 1, cdBreath 1s var(--ease) infinite; }
@keyframes cdPop {
  0% { transform: scale(1.07); filter: brightness(1.35); }
  100% { transform: scale(1); filter: brightness(1); }
}
/* 说明行：紧贴卡片下方，不参与卡片布局 */
.cd-note {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--text-3);
}
.cd-note a { color: var(--text-2); text-decoration: none; }
.cd-note a:hover { color: var(--brand-1); }
.cd-note a:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 3px; }

/* ---- 购买入口面板（发售日替换倒计时卡片） ---- */
.buy-panel {
  margin-top: var(--s5);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3);
}
.buy-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: inherit; text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
/* 首页 05 区块：地图 + 通缉 两张模拟器卡片并排 */
.sim-card { max-width: 1040px; }
.sim-card .buy-desc { line-height: 1.8; }
.buy-card:hover, .buy-card:focus-visible {
  border-color: var(--brand-1);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--brand-1-rgb), 0.18);
}
.buy-console {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--brand-2);
}
.buy-name { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.buy-desc { font-size: 0.8rem; line-height: 1.55; color: var(--text-3); }
.buy-go {
  margin-top: auto; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--brand-1);
}
/* 淘宝三方购买卡：桌面占第一排第 4 格，橙色点缀 */
/* 淘宝三方购买卡：徽章与其他卡一致用纯文字，仅以淘宝橙色区分 */
.buy-taobao .buy-console {
  color: #ff5000; background: none; padding: 0;
  letter-spacing: 0.14em;
}
.buy-taobao .buy-name { color: #ff5000; }
.buy-taobao:hover, .buy-taobao:focus-visible {
  border-color: #ff5000;
  box-shadow: 0 10px 30px rgba(255, 80, 0, 0.16);
}
.buy-taobao .buy-go { color: #ff5000; }
@media (max-width: 1180px) {
  .buy-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .buy-panel { grid-template-columns: 1fr; }
  .buy-card { padding: var(--s3); }
}

/* ---------- 倒计时 · 移动端适配 ---------- */
/* 平板竖屏 / 手机横屏：四列等宽，卡片随可用宽度收缩 */
@media (max-width: 700px) {
  .cd { gap: 8px; }
  .cd-unit { min-width: 0; flex: 1 1 0; }
}
/* 手机竖屏：grid 四等分，切角、内边距、字号同步缩小 */
@media (max-width: 560px) {
  .cd {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px; padding: var(--s4) 0 var(--s3);
  }
  .cd-unit {
    min-width: 0;
    padding: 12px 2px 10px;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  }
  .cd-unit::before { left: 9px; right: 9px; }
  /* iOS 上 filter 与 background-clip:text 叠加会让数字渲染成透明，移动端去掉发光 */
  .cd-num { font-size: clamp(1.55rem, 8.2vw, 2.3rem); filter: none; }
  .cd-label { margin-top: 8px; gap: 0; font-size: 11px; letter-spacing: 0.06em; }
  .cd-en { display: none; }
  .cd-note { font-size: 0.68rem; }
}
/* 小屏手机（≤380px）：2×2 排布，避免四张卡片被压成细条 */
@media (max-width: 380px) {
  .cd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-unit { padding: 14px 6px 12px; }
  .cd-num { font-size: clamp(2rem, 12vw, 2.6rem); }
}
/* 发售后切到 LIVE：单卡居中，不占满整行 */
.cd.cd-live { display: flex; }
.cd-live .cd-unit { flex: 0 1 320px; min-width: 0; padding: 22px 28px 18px; }
.cd-live .cd-num { font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: 0.02em; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .cd-unit-sec, .is-tick, .cd-unit-sec.is-tick { animation: none; }
}

/* ---------- 首页 · 视频精选（热门轮播 + 最新视频） ---------- */
.hv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: var(--s4); align-items: stretch; }
/* 轮播：上封面 + 下文字；grid 叠放自适应高度，切换按钮叠在封面两侧 */
.hv-carousel { position: relative; display: grid; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; isolation: isolate; background: var(--bg-elev); container-type: inline-size; }
.hv-carousel::before { content: ""; position: absolute; top: -60px; right: -60px; z-index: -1; width: 300px; height: 300px; border: 1px solid rgba(var(--brand-1-rgb), 0.35); border-radius: 50%; }
.hv-carousel::after { content: ""; position: absolute; top: -130px; right: -90px; z-index: -2; width: 430px; height: 430px; background: radial-gradient(closest-side, rgba(var(--brand-2-rgb), 0.26), transparent 72%); filter: blur(10px); }
.hv-slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; color: inherit; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hv-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hv-cover { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0c15; }
.hv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-slide-body { display: flex; flex-direction: column; justify-content: center; flex: 1; min-height: 0; gap: 12px; padding: var(--s4) var(--s5); }
.hv-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hv-slide .hv-cat { position: static; }
.hv-plat { padding: 2px 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; }
.hv-slide-title { color: var(--text); font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.4; font-weight: 800; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hv-slide-meta { font-size: .8rem; color: var(--text-2); }
.hv-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s2); width: 100%; padding: 11px 16px; border-radius: var(--r-sm); background: var(--grad-brand); color: var(--on-brand); font-size: .9rem; font-weight: 800; }
.hv-dots { position: absolute; z-index: 3; top: 16px; right: 16px; display: flex; gap: 6px; align-items: center; }
.hv-dot { width: 16px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.34); cursor: pointer; transition: width .25s, background .25s; }
.hv-dot.is-active { width: 28px; background: var(--brand-1); }
.hv-nav { position: absolute; z-index: 4; top: 28.1cqw; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(var(--panel-rgb), .82); color: var(--text-1); font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, color .2s, border-color .2s; }
.hv-nav.prev { left: 12px; right: auto; }
.hv-nav.next { right: 12px; }
.hv-nav:hover, .hv-nav:focus-visible { background: var(--grad-brand); color: var(--on-brand); border-color: transparent; }
@supports not (width: 1cqw) {
  .hv-nav { top: auto; bottom: 12px; transform: none; }
  .hv-nav.prev { left: auto; right: 54px; }
}
.hv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.hv-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.hv-card:hover { border-color: rgba(var(--brand-1-rgb), 0.45); box-shadow: 0 18px 40px -24px rgba(var(--brand-1-rgb), 0.55); transform: translateY(-4px); }
.hv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0a0c15; overflow: hidden; }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-cat { position: absolute; top: 8px; left: 8px; padding: 2px 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--cyan); background: rgba(var(--panel-rgb), .88); border: 1px solid rgba(var(--brand-1-rgb), .45); border-radius: 2px; }
.hv-play { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; font-family: var(--font-mono); font-size: 10px; color: #fff; background: rgba(5,7,14,.84); border-radius: 2px; }
.hv-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px 12px; }
.hv-card-title { font-size: .82rem; line-height: 1.42; font-weight: 700; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-card-meta { font-size: .68rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1024px) {
  .hv-layout { grid-template-columns: 1fr; }
  .hv-slide-body { padding: var(--s3) var(--s4); }
}
@media (max-width: 680px) {
  .hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-slide-body { padding: var(--s3); }
  .hv-cta { padding: 10px 14px; }
}
@media (max-width: 420px) {
  .hv-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-slide, .hv-card, .hv-dot, .hv-nav { transition: none; }
}

/* ---------- 首页 · 玩家留言墙（表单 + 弹幕轮播） ---------- */
.msg-panel { margin-top: var(--s5); padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.msg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.msg-head h2 { font-size: var(--f-h2); font-weight: 800; margin: 6px 0 4px; }
.msg-head p { margin: 0; color: var(--text-3); font-size: var(--f-sm); line-height: 1.6; }
.msg-head .btn { flex: none; }
.msg-danmaku { margin-top: var(--s4); height: 132px; padding: 6px 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5,7,14,.45); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.msg-lane { height: 38px; overflow: hidden; }
.msg-track { display: flex; align-items: center; width: max-content; height: 100%; animation: msgScroll 46s linear infinite; }
.msg-danmaku:hover .msg-track { animation-play-state: paused; }
@keyframes msgScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.msg-item { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 22px; font-size: var(--f-sm); color: var(--text-1); white-space: nowrap; }
.msg-item-tag { font-family: var(--font-mono); font-size: var(--f-xs); font-weight: 700; padding: 2px 6px; border-radius: 2px; }
.msg-wish .msg-item-tag { color: #f0abfc; background: rgba(168,85,247,.16); border: 1px solid rgba(168,85,247,.42); }
.msg-tool .msg-item-tag { color: #67e8f9; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.36); }
.msg-guide .msg-item-tag { color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.36); }
.msg-item small { color: var(--text-3); font-size: var(--f-xs); }
.msg-status { min-height: 18px; margin: 8px 0 0; font-size: var(--f-xs); color: var(--brand-2); }
.msg-form { margin-top: var(--s3); }
.msg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.msg-field-full { grid-column: 1 / -1; }
.msg-field { display: flex; flex-direction: column; gap: 6px; font-size: var(--f-xs); color: var(--text-2); }
.msg-field em { float: right; font-style: normal; color: var(--text-3); }
.msg-field input, .msg-field textarea, .msg-field select { width: 100%; padding: 8px 10px; font: inherit; font-size: var(--f-sm); color: var(--text-1); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); resize: vertical; }
.msg-field select { cursor: pointer; }
.msg-field input:focus, .msg-field textarea:focus, .msg-field select:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.msg-actions { grid-column: 1 / -1; display: flex; gap: var(--s2); }
.msg-note { margin: var(--s3) 0 0; font-size: var(--f-xs); color: var(--text-3); }
@media (max-width: 680px) {
  .msg-head { align-items: flex-start; flex-direction: column; }
  .msg-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-track { animation: none; }
  .msg-lane { overflow-x: auto; }
}

/* ---------- FQA 问答板 ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; font-size: var(--f-base); font-weight: 600; color: var(--text-1); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-2); }
.faq-toggle { flex: none; width: 16px; height: 16px; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: var(--brand-2); border-radius: 2px; transition: transform .2s var(--ease); }
.faq-toggle::before { top: 7px; left: 2px; width: 12px; height: 2px; }
.faq-toggle::after { top: 2px; left: 7px; width: 2px; height: 12px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); }
.faq-a { padding: 0 18px 16px; border-top: 1px solid var(--line); }
.faq-a p { margin: 14px 0 0; font-size: var(--f-sm); line-height: 1.85; color: var(--text-2); }
.faq-filter { margin: var(--s3) 0 var(--s4); }
.faq-ask-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.faq-ask-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.faq-ask-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.faq-ask-tag { font-family: var(--font-mono); font-size: var(--f-xs); font-weight: 700; padding: 2px 7px; border-radius: 2px; }
.faq-ask-tag.tag-wish { color: #f0abfc; background: rgba(168,85,247,.16); border: 1px solid rgba(168,85,247,.42); }
.faq-ask-tag.tag-tool { color: #67e8f9; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.36); }
.faq-ask-tag.tag-guide { color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.36); }
.faq-state { font-size: var(--f-xs); font-family: var(--font-mono); }
.faq-state.answered { color: #34d399; }
.faq-state.pending { color: var(--text-3); }
.faq-ask-q { margin: 0 0 8px; font-size: var(--f-sm); line-height: 1.65; color: var(--text-1); }
.faq-ask-who { margin: 0; font-size: var(--f-xs); color: var(--text-3); }
.faq-ask-a { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--brand-2); background: rgba(var(--brand-1-rgb), .07); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.faq-ask-a b { display: block; margin-bottom: 5px; font-size: var(--f-xs); color: var(--brand-2); }
.faq-ask-a span { font-size: var(--f-xs); line-height: 1.75; color: var(--text-2); }
.faq-ask-a .faq-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(var(--brand-1-rgb), .45); transition: color .18s var(--ease), text-decoration-color .18s var(--ease); }
.faq-ask-a .faq-link:hover { color: var(--brand-2); text-decoration-color: var(--brand-2); }
.faq-ask-a .faq-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
.faq-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--text-3); font-size: var(--f-sm); }
.faq-note { margin: var(--s4) 0 0; font-size: var(--f-xs); line-height: 1.7; color: var(--text-3); }
