@charset "UTF-8";
/* ==========================================================================
   Poki宝玩小游戏 · pokibaowan.com
   设计语言参考：Poki 的明亮渐变、圆角游戏卡与 Poki Blue 交互色
   本文件为全站唯一样式表，按「变量 → 基础 → 布局 → 组件 → 页面 → 响应式」组织
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  --primary: #009cff;
  --primary-dark: #0074e0;
  --primary-soft: #e5f4ff;
  --bg: #ffffff;
  --bg-subtle: #e8f0fc;
  --grad-start: #83ffe7;
  --grad-end: #f0f5fc;
  --ink: #002b50;
  --ink-2: #000000;
  --muted: #5b7190;
  --muted-light: #bac9de;
  --white: #ffffff;
  --yellow: #faeb59;
  --yellow-soft: #fff9c9;
  --line: #dbe6f4;
  --line-strong: #bac9de;
  --green: #12a06a;
  --red: #e5484d;

  --radius-sm: 3px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;

  --shadow-card: 1px 2px 3px 1px rgba(93, 107, 132, 0.2);
  --shadow-hover: 0 7px 10px 4px rgba(93, 107, 132, 0.3);
  --shadow-soft: 0 10px 30px -12px rgba(0, 43, 80, 0.22);
  --shadow-pop: 0 24px 60px -18px rgba(0, 43, 80, 0.35);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 40px;
  --sp-7: 48px;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --dur: 0.3s;
  --dur-fast: 0.2s;

  --font: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --wrap: 1240px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(30px, 4.2vw, 42px); }
h2 { font-size: clamp(23px, 2.7vw, 30px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--primary); }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

strong, b { font-weight: 700; }
small { font-size: 12px; }

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}
button { cursor: pointer; }

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

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

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: 880px; }
.wrap--wide { max-width: 1400px; }

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--white { background: var(--bg); }
.section--subtle { background: #f7faff; }
.section--blue { background: var(--bg-subtle); }
.section--grad {
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(131, 255, 231, 0.5), transparent 62%),
    linear-gradient(160deg, #f7fdff 0%, #f0f5fc 100%);
}

.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: absolute;
  left: 16px;
  top: -64px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 160, 106, 0.14);
}

/* --------------------------------------------------------------------------
   5. 页头与导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(186, 201, 222, 0.35);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 24px -18px rgba(0, 43, 80, 0.45); }

.header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px -4px rgba(0, 156, 255, 0.6);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand__text strong span { color: var(--primary); }
.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--primary); background: var(--bg-subtle); }
.nav-link[aria-current="page"] { font-weight: 700; }
.nav-link svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }

.nav-item--drop:hover .nav-link svg,
.nav-item--drop:focus-within .nav-link svg { transform: rotate(180deg); }

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  width: 260px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.nav-item--drop:hover .nav-drop,
.nav-item--drop:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop li { margin: 0; }
.nav-drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav-drop a:hover { background: var(--bg-subtle); color: var(--primary-dark); }
.nav-drop .ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--primary-dark);
}
.nav-drop .ico svg { width: 17px; height: 17px; }
.nav-drop small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-subtle); color: var(--primary); }
.icon-btn svg { width: 21px; height: 21px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-subtle);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close,
.nav-mobile-foot,
.nav-backdrop { display: none; }

/* --------------------------------------------------------------------------
   6. 按钮 / 标签 / 徽章
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: var(--primary);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { color: #fff; background: var(--primary-dark); box-shadow: 0 8px 18px -8px rgba(0, 116, 224, 0.8); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 32px; font-size: 17px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-subtle); color: var(--ink); box-shadow: none; border-color: var(--primary); }
.btn--white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}
.btn--white:hover { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-hover); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #013d70; box-shadow: 0 8px 18px -8px rgba(0, 43, 80, 0.8); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.chip svg { width: 15px; height: 15px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-subtle);
  color: #31506e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge--new { background: var(--yellow-soft); color: #7a5b00; }
.badge--hot { background: #ffebe9; color: #b42318; }
.badge--blue { background: var(--primary-soft); color: var(--primary-dark); }
.badge--dark { background: var(--ink); color: #fff; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #7a5b00;
}
.rating svg { width: 13px; height: 13px; fill: var(--yellow); stroke: #e0c400; }

/* --------------------------------------------------------------------------
   7. 首页 Hero 与工具面板
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(760px 460px at 82% -12%, rgba(131, 255, 231, 0.75), transparent 60%),
    radial-gradient(720px 460px at 4% 0%, rgba(0, 156, 255, 0.16), transparent 58%),
    linear-gradient(135deg, #83ffe7 0%, #e9f9ff 44%, #f0f5fc 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 43, 80, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 15%, transparent 72%);
  opacity: 0.55;
}
.hero__in { position: relative; z-index: 2; }

.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__deco span {
  position: absolute;
  display: block;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  animation: float 7s var(--ease) infinite;
}
.hero__deco .d1 {
  width: 64px; height: 64px;
  top: 12%; right: 6%;
  background: linear-gradient(150deg, #009cff, #0074e0);
  transform: rotate(-12deg);
  opacity: 0.85;
  animation-delay: -1s;
}
.hero__deco .d2 {
  width: 44px; height: 44px;
  top: 58%; right: 13%;
  background: var(--yellow);
  animation-delay: -3s;
}
.hero__deco .d3 {
  width: 28px; height: 28px;
  top: 24%; left: 3%;
  background: #fff;
  animation-delay: -5s;
}
.hero__deco .d4 {
  width: 84px; height: 84px;
  bottom: 6%; left: 6%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(0, 43, 80, 0.12);
  box-shadow: none;
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 43, 80, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #005f8f;
  backdrop-filter: blur(6px);
}
.hero__eyebrow svg { width: 15px; height: 15px; }

.hero h1 {
  max-width: 15em;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 mark {
  position: relative;
  background: none;
  color: inherit;
  white-space: nowrap;
  z-index: 0;
}
.hero h1 mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.08em;
  height: 0.32em;
  z-index: -1;
  border-radius: 4px;
  background: var(--yellow);
  transform: rotate(-1deg);
}
.hero__lead {
  text-wrap: pretty;
  max-width: 46em;
  font-size: 17px;
  color: #24476b;
  margin-bottom: 0;
}
.hero__lead strong { color: var(--ink); }

/* 工具面板 */
.toolbox {
  position: relative;
  z-index: 3;
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px -30px rgba(0, 43, 80, 0.5), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.toolbox > .tool-row:first-child { margin-top: 0; }
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.tool-row__label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tool-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.tool-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--primary-dark); }
.tool-links a:hover { color: var(--primary); text-decoration: underline; }
.tool-links svg { width: 14px; height: 14px; }
.tool-links .spacer { margin-left: auto; }


/* --------------------------------------------------------------------------
   8. 区块标题
   -------------------------------------------------------------------------- */
.sec-head { margin-bottom: 24px; }
.sec-head__line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.sec-kicker::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.sec-head h2 { margin-bottom: 6px; }
.sec-head p { max-width: 62ch; color: #40617f; margin-bottom: 0; font-size: 15px; }
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.sec-link:hover { gap: 10px; }
.sec-link svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   9. 游戏卡片
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.game-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  isolation: isolate;
}
.game-card:hover,
.game-card:focus-within {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-hover);
  z-index: 2;
}
.game-card__link { display: block; color: inherit; border-radius: inherit; }
.game-card__link:hover { color: inherit; }
.game-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg-subtle);
}
.game-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.game-card:hover .game-card__thumb img { transform: scale(1.06); }
.game-card__badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
}
.game-card__play {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 100px;
  background: rgba(0, 43, 80, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  backdrop-filter: blur(4px);
}
.game-card:hover .game-card__play { opacity: 1; transform: translateY(0); }
.game-card__play svg { width: 13px; height: 13px; fill: currentColor; }
.game-card__body { padding: 10px 12px 12px; }
.game-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  min-height: 2.6em;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  word-break: break-word;
}
.game-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.game-card__meta .rating { font-size: 11px; }
.game-card__cn { display: block; font-size: 11px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 首页大卡（前 2 个） */

/* 横排小卡 */
.game-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-row > li { margin: 0; }
.game-row--picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.game-mini:hover { border-color: var(--primary); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.game-mini img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.game-mini__t { min-width: 0; flex: 1; }
.game-mini__t strong {
  display: block;
  font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
}
.game-mini__t span { font-size: 12px; color: var(--muted); }
.game-mini__go { flex-shrink: 0; color: var(--primary); font-size: 12px; font-weight: 700; }

/* --------------------------------------------------------------------------
   10. 分类卡
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-grid li { margin: 0; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 176px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(93, 107, 132, 0.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  color: var(--ink);
}
.cat-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--cat-tint, var(--bg-subtle));
  opacity: 0.85;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover::before { transform: scale(1.15); }
.cat-card__ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--cat-fill, var(--ink));
  color: #fff;
  box-shadow: 0 8px 16px -8px var(--cat-fill, var(--ink));
}
.cat-card__ico svg { width: 25px; height: 25px; }
.cat-card h3 { position: relative; z-index: 1; margin-bottom: 4px; font-size: 19px; }
.cat-card p { position: relative; z-index: 1; margin-bottom: 12px; font-size: 13px; color: #4c6c8b; }
.cat-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}
.cat-card__foot span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.cat-card__foot svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   11. 榜单
   -------------------------------------------------------------------------- */
.rank-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}
.rank-item {
  display: grid;
  grid-template-columns: 40px 56px 1fr auto auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.rank-item:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow-soft); }
.rank-item__no {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--bg-subtle);
  color: #46688b;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rank-item:nth-child(1) .rank-item__no { background: var(--yellow); color: #6b4c00; }
.rank-item:nth-child(2) .rank-item__no { background: #e3ecf7; color: #4a6784; }
.rank-item:nth-child(3) .rank-item__no { background: #ffe9d6; color: #8a4b13; }
.rank-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.rank-item__main { min-width: 0; }
.rank-item__main strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item__main span { font-size: 12px; color: var(--muted); }
.rank-item__stat { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rank-item__stat b { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rank-item .chip { padding: 5px 12px; font-size: 12px; }

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  width: fit-content;
  max-width: 100%;
}
.rank-tab {
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #4c6c8b;
  transition: all var(--dur-fast) var(--ease);
}
.rank-tab:hover { color: var(--primary-dark); }
.rank-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 43, 80, 0.12);
}

/* --------------------------------------------------------------------------
   12. 首页图文模块（Poki 品牌与截图）
   -------------------------------------------------------------------------- */
.brandshow {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: center;
}
.brandshow__copy h2 { margin-bottom: 12px; }
.brandshow__copy p { color: #3f6080; font-size: 15px; }
.brandshow__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.brandshow__logo img:first-child { width: 56px; height: 56px; border-radius: 14px; }
.brandshow__logo img:last-child { width: 132px; }
.brandshow__logo div { line-height: 1.3; }
.brandshow__logo strong { display: block; font-size: 15px; }
.brandshow__logo span { font-size: 12px; color: var(--muted); }
.brandshow__figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-card);
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shot--wide img { object-fit: contain; aspect-ratio: 1200 / 630; background: #fff; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 20, 40, 0.82));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.shot--wide { grid-column: 1 / -1; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot-grid .shot img { aspect-ratio: 16 / 9; }
.shot-grid figcaption,
.shot--cap figcaption {
  position: static;
  padding: 8px 2px 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
}
.brandshow__copy h2 { text-wrap: balance; }

/* --------------------------------------------------------------------------
   13. 长文 / 富文本
   -------------------------------------------------------------------------- */
.prose {
  max-width: 76ch;
  color: #24476b;
  font-size: 16px;
}
.prose h2 { margin-top: 1.6em; margin-bottom: 0.6em; color: var(--ink); }
.prose > h2:first-child, .prose > .sec-kicker + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.5em; color: var(--ink); }
.prose p { margin-bottom: 1.1em; }
.prose ul,
.prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #f5faff;
  color: #31506e;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--line-strong); }
.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  font-family: var(--mono);
  font-size: 0.9em;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: var(--radius-md);
  background: var(--yellow-soft);
  border: 1px solid #f0e18a;
  color: #6b5200;
  font-size: 14px;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.callout strong { color: #4a3800; }
.callout--blue { background: #eef8ff; border-color: #bfe4ff; color: #17527a; }
.callout--blue strong { color: #0a3f61; }

/* --------------------------------------------------------------------------
   14. 页面头 / 面包屑
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 40px 0 32px;
  background:
    radial-gradient(680px 300px at 92% -20%, rgba(131, 255, 231, 0.55), transparent 65%),
    linear-gradient(180deg, #f2fbff, #f7faff);
  border-bottom: 1px solid rgba(186, 201, 222, 0.3);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 10px; }
.page-hero__lead { max-width: 68ch; color: #3f6080; font-size: 16px; margin-bottom: 0; text-wrap: pretty; }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta svg { width: 15px; height: 15px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-light); }
.breadcrumb a { color: #4c6c8b; font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   15. 游戏库：筛选与搜索
   -------------------------------------------------------------------------- */
.library-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.library-bar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  height: 44px;
  padding: 0 36px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.select-wrap select:focus { border-color: var(--primary); outline: 3px solid rgba(0, 156, 255, 0.18); outline-offset: 1px; }
.select-wrap svg {
  position: absolute;
  top: 50%; right: 14px;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.filter-row__label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }

.library-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}
.library-result b { color: var(--ink); font-size: 15px; }
.library-result__actions { display: flex; gap: 8px; }

.empty-state {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fbfdff;
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--muted-light); }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   16. 游戏详情页
   -------------------------------------------------------------------------- */
.detail-head {
  padding: 24px 0 32px;
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(131, 255, 231, 0.55), transparent 62%),
    linear-gradient(180deg, #f3fbff, #f8fbff);
}
.detail-hero {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 24px;
  align-items: start;
}
.detail-hero__logo {
  width: 148px; height: 148px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}
.detail-hero__body h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 6px; }
.detail-hero__sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 0; list-style: none; }
.detail-tags li { margin: 0; }
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #4c6c8b;
}
.detail-facts li { margin: 0; display: flex; align-items: center; gap: 6px; }
.detail-facts svg { width: 16px; height: 16px; color: var(--primary); }
.detail-facts b { color: var(--ink); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
}
.detail-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }

.side-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 43, 80, 0.04);
}
.side-card h2 { font-size: 15px; margin-bottom: 12px; }
.side-card--cta {
  background: linear-gradient(150deg, #e6f8ff, #ffffff);
  border-color: #c9eaff;
}
.side-card--cta .btn { margin-bottom: 8px; }
.side-card--cta p { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }

.fact-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt,
.fact-list .k { color: var(--muted); }
.fact-list .v { font-weight: 700; color: var(--ink); text-align: right; }

.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { margin: 0; }
.mini-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.mini-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.mini-list img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.mini-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list a:hover { color: var(--primary); }
.mini-list .arrow { color: var(--muted-light); }

.controls-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.controls-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid var(--line);
  font-size: 13px;
}
.controls-list b {
  flex-shrink: 0;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  font-size: 11px;
  text-align: center;
  color: var(--ink);
}
.controls-list span { color: #40617f; }

.step-list {
  counter-reset: step;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  position: relative;
  margin: 0 0 14px;
  padding: 4px 0 4px 52px;
  font-size: 14px;
  color: #3f6080;
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 12px -6px rgba(0, 156, 255, 0.9);
}
.step-list strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   17. 攻略 / 数据模块
   -------------------------------------------------------------------------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.step-grid li {
  position: relative;
  margin: 0;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
}
.step-grid li::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.step-grid h3 { font-size: 16px; margin-bottom: 6px; }
.step-grid p { font-size: 13px; color: #4c6c8b; margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-grid li {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.stat-grid b { display: block; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
.stat-grid span { font-size: 12px; color: var(--muted); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
}
.info-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.info-card h3 svg { width: 18px; height: 18px; color: var(--primary); }
.info-card p { font-size: 14px; color: #4c6c8b; margin: 0; }

/* 常见问题 */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item summary:hover { color: var(--primary-dark); }
.faq-item__body { padding: 0 0 20px; max-width: 72ch; font-size: 14px; color: #3f6080; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* 目录 */
.toc {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #f7faff;
  border: 1px solid var(--line);
}
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 13px; }
.toc li { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   18. 搜索弹层 / 随机推荐 / Toast
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 24px;
  background: rgba(0, 26, 48, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: 100%;
  max-width: 620px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-pop);
  transform: translateY(-12px) scale(0.98);
  transition: transform var(--dur) var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal__head svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.modal__head input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  font-size: 17px;
  background: transparent;
}
.modal__close {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--ink);
}
.modal__close:hover { background: #d8e7f8; }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { overflow-y: auto; padding: 12px; }
.modal__hint { padding: 6px 8px 10px; font-size: 12px; color: var(--muted); }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  color: var(--ink);
}
.search-item:hover,
.search-item.is-cursor { background: var(--bg-subtle); color: var(--ink); }
.search-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.search-item__t { flex: 1; min-width: 0; }
.search-item__t strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item__t span { font-size: 11px; color: var(--muted); }
.search-item .badge { flex-shrink: 0; }

.random-card {
  display: flex;
  gap: 20px;
  padding: 8px;
  align-items: center;
}
.random-card img { width: 112px; height: 112px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.random-card h2, .random-card h3 { font-size: 22px; margin-bottom: 2px; }
.random-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.random-card p { font-size: 13px; color: #3f6080; margin-bottom: 14px; }
.random-card .btn-row { gap: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #83ffe7; }

/* --------------------------------------------------------------------------
   19. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: 48px 0 24px;
  background: #04243f;
  color: #a9c4dc;
  font-size: 13px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #83ffe7, #009cff 45%, #faeb59);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand img { width: 104px; height: auto; margin-bottom: 14px; }
.footer__brand p { color: #8fb0cd; font-size: 13px; line-height: 1.7; max-width: 34ch; }
.nonoff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 11px;
  color: #cfe3f5;
}
.nonoff i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.footer__col h2 {
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
}
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: #a9c4dc; font-size: 13px; }
.footer__col a:hover { color: #83ffe7; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 11px;
  color: #7897b4;
}
.footer__bottom p { margin: 0; max-width: 70ch; line-height: 1.7; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__meta a { color: #a9c4dc; }
.footer__meta a:hover { color: #fff; }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* 今日推荐 */
.daily-pick { padding: 20px 24px; }
.daily-pick .random-card { padding: 0; }
.daily-pick__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}
.daily-alt { padding-left: 24px; border-left: 1px dashed var(--line-strong); }
.daily-alt__t { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.daily-alt ul { margin: 0; padding: 0; list-style: none; }
.daily-alt li { margin: 0; }
.daily-alt a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.daily-alt li:last-child a { border-bottom: 0; }
.daily-alt a:hover strong { color: var(--primary); }
.daily-alt strong { font-size: 13px; }
.daily-alt span { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 场景推荐 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scene-grid li { margin: 0; }
.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--primary); color: var(--ink); }
.scene-card__emoji {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  font-size: 22px;
  line-height: 1;
}
.scene-card h3 { font-size: 16px; margin-bottom: 4px; }
.scene-card p { font-size: 12px; color: #4c6c8b; margin-bottom: 12px; }
.scene-card__games { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.scene-card__games span { color: var(--muted); font-weight: 500; }

/* 编辑短评 */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote-grid li { margin: 0; }
.quote-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
}
.quote-card blockquote { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.quote-card blockquote::before { content: "“"; display: block; font-size: 34px; line-height: 0.6; color: var(--primary); margin-bottom: 10px; font-weight: 800; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.quote-card figcaption img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }

/* 更新日志 */
.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; margin: 0 0 18px; padding-left: 30px; font-size: 14px; color: #40617f; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 1px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline time { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-cloud li { margin: 0; }
.tag-cloud a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: #31506e;
}
.tag-cloud a:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }

/* 对比表 */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; min-width: 560px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: #f4f9ff; font-size: 12px; letter-spacing: 0.04em; color: #31506e; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 700; color: var(--ink); }
.compare-table .ok { color: var(--green); font-weight: 700; }
.compare-table .no { color: var(--red); font-weight: 700; }

/* 避坑清单 */
.risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.risk-list li {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #3f6080;
}
.risk-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }

/* 编辑手记 / 结论 */
.verdict {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #eafaff, #ffffff 70%);
  border: 1px solid #c9eaff;
}
.verdict h2, .verdict h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 17px; }
.verdict h2 svg, .verdict h3 svg { width: 18px; height: 18px; color: var(--primary); }
.verdict p { font-size: 14px; color: #24476b; margin: 0; }

/* 详情页截图 */
.detail-shot { margin: 24px 0; }
.detail-shot img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.detail-shot figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* 选游戏小测 */
.quiz { padding: 4px; }
.quiz__q { margin-bottom: 18px; }
.quiz__q h3 { font-size: 15px; margin-bottom: 10px; }
.quiz-opt {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--dur-fast) var(--ease);
}
.quiz-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.quiz-opt.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary); }
.quiz__actions { display: flex; gap: 8px; margin-top: 16px; }
.quiz-result { text-align: center; padding: 8px; }
.quiz-result img { width: 104px; height: 104px; border-radius: var(--radius-md); margin: 0 auto 12px; }
.quiz-result h3 { font-size: 20px; margin-bottom: 2px; }
.quiz-result .sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.quiz-result p { font-size: 13px; color: #3f6080; }

/* 上一篇 / 下一篇 */
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.page-nav a {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}
.page-nav a:hover { border-color: var(--primary); color: var(--primary-dark); }
.page-nav span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.page-nav strong { font-size: 14px; }
.page-nav__next { text-align: right; }

/* 来源说明 */
.source-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.source-note a { text-decoration: underline; }

/* 筛选无结果等 */
.filter-empty { display: none; }
.filter-empty.is-on { display: block; }

/* 首屏直达官网按钮 */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 前往官网中转页 */
.go-page {
  padding: 64px 0 80px;
  background:
    radial-gradient(640px 320px at 50% -10%, rgba(131, 255, 231, 0.5), transparent 65%),
    linear-gradient(180deg, #f5fcff, #ffffff 70%);
}
.go-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.go-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 5px 14px 5px 5px;
  border-radius: 100px;
  background: var(--bg-subtle);
  font-size: 13px;
  font-weight: 700;
  color: #31506e;
}
.go-card__brand img { width: 32px; height: 32px; border-radius: 9px; }
.go-card h1 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 8px; }
.go-card > p { margin-bottom: 20px; font-size: 14px; color: #40617f; text-wrap: balance; }
.go-game {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faff;
  text-align: left;
}
.go-game img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.go-game strong { display: block; font-size: 14px; color: var(--ink); }
.go-game span { font-size: 12px; color: var(--muted); }
.go-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.go-actions .btn { width: 100%; }

/* --------------------------------------------------------------------------
   20. 动效
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .game-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
  .brandshow { grid-template-columns: 1fr; gap: 28px; }
  .brandshow__figs { grid-template-columns: repeat(3, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 3; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 990px) {
  :root { --header-h: 64px; }
  .wrap { padding-inline: 20px; }
  .section { padding: 44px 0; }
  .nav-link { padding: 10px 8px; font-size: 14px; }
  .header-cta { display: none; }
  .game-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: 1fr 1fr; }
  .detail-side .side-card:first-child { grid-column: 1 / -1; }
  .info-grid { grid-template-columns: 1fr; }
  .brandshow__figs { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  /* backdrop-filter 会让 sticky 页头成为 fixed 子元素的包含块，移动端需关闭 */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* 移动端抽屉导航 */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(340px, 86vw);
    margin: 0;
    padding: 76px 20px 24px;
    overflow-y: auto;
    visibility: hidden;
    background: #fff;
    box-shadow: -20px 0 50px -20px rgba(0, 43, 80, 0.4);
    transform: translateX(102%);
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    display: flex;
    flex-direction: column;
  }
  .main-nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform var(--dur) var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: flex; width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav-drop {
    position: static;
    width: auto;
    padding: 0 0 8px;
    margin: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item--drop.is-open .nav-drop { display: block; }
  .nav-item--drop.is-open .nav-link svg { transform: rotate(180deg); }
  .nav-drop a { padding: 9px 12px; }
  .nav-close {
    position: absolute;
    top: 16px; right: 16px;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--ink);
  }
  .nav-close svg { width: 20px; height: 20px; }
  .nav-mobile-foot { display: block; margin-top: auto; padding-top: 24px; }
  .nav-mobile-foot .btn { width: 100%; }
  .nav-mobile-foot p { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
  .nav-toggle { display: flex; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(0, 26, 48, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .nav-backdrop.is-on { opacity: 1; visibility: visible; }
  .header__in { gap: 12px; }
  .header__actions { margin-left: auto; }
  .hero { padding: 40px 0 32px; }
  .hero__deco .d1, .hero__deco .d2, .hero__deco .d3 { display: none; }
  .detail-hero { grid-template-columns: 96px 1fr; gap: 16px; }
  .detail-hero__logo { width: 96px; height: 96px; border-radius: var(--radius-md); }
  .detail-hero__body h1 { font-size: 25px; }
  .rank-item { grid-template-columns: 32px 48px 1fr auto; gap: 10px; padding: 10px; }
  .rank-item img { width: 48px; height: 48px; }
  .rank-item .chip { display: none; }
  .daily-pick__grid { grid-template-columns: 1fr; gap: 16px; }
  .daily-alt { padding-left: 0; padding-top: 16px; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .rank-item__stat { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .footer__col li { margin: 0; }
  .library-bar { position: static; }
  .to-top { right: 14px; bottom: 14px; }
  .modal { padding: 6vh 12px 16px; }
  .fact-list { font-size: 13px; }
}

@media (max-width: 700px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-grid--4, .game-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card__body { padding: 9px 10px 11px; }
  .game-card__title { font-size: 13px; }
  .game-card__cn { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__lead { font-size: 15px; }
  .toolbox { padding: 14px; border-radius: var(--radius-md); }
  .tool-links { font-size: 12px; gap: 8px 12px; }
  .tool-links .spacer { display: none; }
  .detail-side { grid-template-columns: 1fr; }
  .detail-side .side-card:first-child { grid-column: auto; }
  .risk-list { grid-template-columns: 1fr; }
  .quiz-opt { font-size: 13px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__col:last-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
  .brandshow__figs { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 2; }
  .section { padding: 36px 0; }
  .page-hero { padding: 28px 0 24px; }
  .detail-head { padding: 18px 0 24px; }
  .go-page { padding: 40px 0 56px; }
  .go-card { padding: 28px 20px; }
  .hero__cta .btn { width: 100%; }
  .detail-layout { padding: 28px 0; }
  .rank-tabs { width: 100%; justify-content: space-between; }
  .rank-tab { flex: 1; text-align: center; padding: 8px 8px; }
  .modal__panel { max-height: 84vh; }
  .random-card { flex-direction: column; align-items: flex-start; }
  .random-card img { width: 88px; height: 88px; }
  .controls-list { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .game-row--picks { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .wrap { padding-inline: 16px; }
  .game-grid { gap: 10px; }
  .game-grid--featured { grid-template-columns: 1fr; }
  .brand__text strong { font-size: 17px; }
}

/* 打印 */
@media print {
  .site-header, .toolbox, .to-top, .site-footer, .modal, .toast, .library-bar { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
