/* ===== 游戏资源导览站 · 深色优先，跟随系统切换浅色 ===== */
:root {
  --bg: #0b0d14;
  --bg2: #10131d;
  --panel: #151927;
  --panel2: #1b2032;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --fg: #e8eaf2;
  --fg2: #b4b9cc;
  --muted: #7d8399;
  --a1: #8b5cf6;
  --a2: #22d3ee;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --link: #a78bfa;
  --good: #22c55e;
  --mid: #eab308;
  --bad: #ef4444;
  --hot: #fb7185;
  --free: #34d399;
  --glass: rgba(11, 13, 20, .72);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --r: 14px;
  --r-sm: 9px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fa;
    --bg2: #eceef6;
    --panel: #ffffff;
    --panel2: #f3f4f9;
    --line: rgba(15, 23, 42, .08);
    --line2: rgba(15, 23, 42, .16);
    --fg: #141726;
    --fg2: #3d4358;
    --muted: #6b7189;
    --link: #6d28d9;
    --glass: rgba(255, 255, 255, .78);
    --shadow: 0 8px 24px rgba(20, 23, 38, .08);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note { color: var(--muted); font-size: 13px; margin: 8px 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { margin: 0 8px; color: var(--muted); }

/* ===== 顶部导航 ===== */
.top {
  position: sticky; top: 0; z-index: 50; background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--fg); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); font-size: 17px; box-shadow: 0 4px 14px rgba(139, 92, 246, .45);
}
.mainnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 6px 12px; border-radius: 999px; color: var(--fg2); font-size: 14px; white-space: nowrap;
}
.mainnav a:hover { background: var(--panel2); color: var(--fg); text-decoration: none; }
.mainnav a[aria-current] { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }

/* ===== 首页头图 ===== */
.home-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.home-hero::before, .g-hero::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background: var(--hero, none) center / cover no-repeat; filter: blur(28px) saturate(130%); opacity: .55;
}
.home-hero::after, .g-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(180deg, rgba(11, 13, 20, .55), var(--bg));
}
@media (prefers-color-scheme: light) {
  .home-hero::before, .g-hero::before { opacity: .35; }
  .home-hero::after, .g-hero::after {
    background:
      radial-gradient(60% 80% at 10% 0%, rgba(139, 92, 246, .18), transparent 60%),
      radial-gradient(50% 70% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%),
      linear-gradient(180deg, rgba(244, 245, 250, .6), var(--bg));
  }
}
.home-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.home-intro h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.5px; }
.home-intro > p { color: var(--fg2); max-width: 620px; margin: 14px 0 22px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin-bottom: 22px; }
.stat {
  background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; backdrop-filter: blur(6px);
}
.stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--muted); }

.feature {
  display: block; border-radius: 18px; overflow: hidden; background: var(--panel); color: var(--fg);
  border: 1px solid var(--line2); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.feature:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 44px rgba(139, 92, 246, .28); }
.feature-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.feature-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--a2); text-transform: uppercase; }
.feature-title { font-size: 21px; font-weight: 800; }
.feature-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg2); }
.feature-meta .sc, .feature-meta .ht { position: static; }
.feature-sum { color: var(--fg2); font-size: 14px; }

/* ===== 标签按钮 ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--fg2); font-size: 14px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; white-space: nowrap;
}
.chip:hover { color: var(--fg); border-color: var(--a1); text-decoration: none; }
.chip small { font-size: 11px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.chip.sm { padding: 3px 10px; font-size: 13px; }

/* ===== 首页区块 ===== */
.block { margin: 40px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h2 { font-size: 22px; font-weight: 800; }
.block-head a, .count { font-size: 14px; color: var(--muted); }
.block-head a:hover { color: var(--link); }

.promo-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.promo {
  position: relative; display: block; border-radius: var(--r); overflow: hidden; scroll-snap-align: start;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg); transition: transform .2s, border-color .2s;
}
.promo:hover { transform: translateY(-3px); border-color: var(--free); text-decoration: none; }
.promo img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.promo-body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.promo-store { font-size: 12px; color: var(--free); font-weight: 700; }
.promo-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.board .block-head { margin-bottom: 10px; }
.board .block-head h2 { font-size: 18px; }
.board-list { display: grid; gap: 4px; }
.mini {
  display: grid; grid-template-columns: 28px 96px 1fr auto; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--r-sm); color: var(--fg); transition: background .15s;
}
.mini:hover { background: var(--panel2); text-decoration: none; }
.mini img { width: 96px; height: 45px; object-fit: cover; border-radius: 6px; }
.mini-rank { font-weight: 900; font-size: 17px; text-align: center; color: var(--muted); font-style: italic; }
.mini-rank.r1 { color: #fbbf24; }
.mini-rank.r2 { color: #cbd5e1; }
.mini-rank.r3 { color: #f59e0b; opacity: .85; }
.mini-body { min-width: 0; display: grid; }
.mini-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-val { display: flex; align-items: center; gap: 6px; }
.mini-val .sc, .mini-val .ht { position: static; }

/* ===== 筛选 ===== */
.controls {
  display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-bottom: 20px;
}
.search input {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237d8399' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 14px center no-repeat;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.facet { display: grid; gap: 8px; }
.facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.facet-row > span { font-size: 13px; color: var(--muted); width: 84px; flex-shrink: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.row select {
  padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); max-width: 46vw;
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== 游戏卡片 ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; color: var(--fg); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px rgba(139, 92, 246, .5); text-decoration: none; border-color: transparent; }
.card-media { position: relative; aspect-ratio: 460 / 215; background: var(--panel2); overflow: hidden; }
.card-media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .cover { transform: scale(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, .65) 100%);
}
.sc, .ht, .rank {
  position: absolute; z-index: 1; top: 8px; font-size: 13px; font-weight: 800; line-height: 1;
  padding: 5px 8px; border-radius: 7px; backdrop-filter: blur(6px);
}
.sc { left: 8px; color: #fff; background: var(--muted); }
.sc.good { background: var(--good); }
.sc.mid { background: var(--mid); color: #1a1400; }
.sc.bad { background: var(--bad); }
.ht { right: 8px; color: #fff; background: rgba(0, 0, 0, .55); }
.mini .ht, .feature .ht, .promo .ht { background: rgba(251, 113, 133, .15); color: var(--hot); }
.rank { left: 8px; top: auto; bottom: 8px; background: var(--grad); color: #fff; font-size: 15px; }
.card-media .rank ~ .flags { left: 44px; }
.flags { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--panel2); color: var(--fg2); border: 1px solid var(--line);
}
.flags .tag, .flags .ends { background: rgba(0, 0, 0, .6); color: #fff; border-color: rgba(255, 255, 255, .15); backdrop-filter: blur(4px); }
.tag.t-giveaway, .flags .tag.t-giveaway { background: #059669; color: #fff; border-color: transparent; }
.tag.t-upcoming-giveaway, .flags .tag.t-upcoming-giveaway { background: #0d9488; color: #fff; border-color: transparent; }
.tag.t-free-to-play, .flags .tag.t-free-to-play { background: #2563eb; color: #fff; border-color: transparent; }
.tag.t-on-sale, .flags .tag.t-on-sale { background: #db2777; color: #fff; border-color: transparent; }
.tag.t-top-seller, .flags .tag.t-top-seller { background: #ea580c; color: #fff; border-color: transparent; }
.tag.t-new-release, .flags .tag.t-new-release { background: #7c3aed; color: #fff; border-color: transparent; }
.tag.t-coming-soon, .flags .tag.t-coming-soon { background: #475569; color: #fff; border-color: transparent; }
.tag.t-new, .flags .tag.t-new { background: #0891b2; color: #fff; border-color: transparent; }
.ends { font-size: 12px; padding: 2px 8px; border-radius: 6px; color: var(--free); }
.ends:empty { display: none; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.card-body h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftags { display: flex; flex-wrap: wrap; gap: 5px; }
.ftag { font-size: 12px; color: var(--fg2); background: var(--panel2); padding: 1px 8px; border-radius: 999px; }
.summary {
  margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.plats { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.plat { font-size: 11px; font-weight: 600; color: var(--fg2); border: 1px solid var(--line2); padding: 1px 6px; border-radius: 5px; }
.price-line { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.price { font-weight: 800; }
.price.free { color: var(--free); }
.orig { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.disc { font-size: 12px; font-weight: 800; color: #fff; background: #65a30d; padding: 1px 6px; border-radius: 5px; }

/* ===== 列表页 / 标签页 ===== */
.page-head { padding: 28px 0 12px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin: 8px 0 6px; }
.page-head > p { color: var(--fg2); max-width: 760px; margin: 0 0 6px; }
.page-head .chips { margin-top: 14px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.crumbs a { color: var(--fg2); }
.sep { margin: 0 6px; opacity: .6; }
.rel { margin: 6px 0 0; }
.wrapchips { margin-top: 10px; }

/* ===== 详情页头图 ===== */
.g-hero { position: relative; overflow: hidden; isolation: isolate; padding: 18px 0 34px; }
.g-hero .crumbs { margin-bottom: 18px; }
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 32px; align-items: start; }
.g-cover { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border: 1px solid var(--line2); }
.g-info { min-width: 0; }
.g-info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.g-info h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin: 10px 0 6px; letter-spacing: -.3px; word-break: break-word; }
.g-meta { color: var(--fg2); font-size: 14px; margin: 0 0 10px; }
.lead { color: var(--fg2); font-size: 15px; margin: 0 0 16px; max-width: 720px; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.kpi {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 75%, transparent); border: 1px solid var(--line2); backdrop-filter: blur(8px);
}
.kpi > b { font-size: 22px; font-weight: 900; min-width: 52px; text-align: center; }
.kpi > b.heat { color: var(--hot); font-size: 19px; min-width: auto; }
.kpi span { display: block; font-size: 13px; font-weight: 600; }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.ring {
  --c: var(--muted); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line2) 0);
}
.ring b {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--panel);
  font-size: 16px; font-weight: 900; color: var(--c);
}
.ring.good { --c: var(--good); }
.ring.mid { --c: var(--mid); }
.ring.bad { --c: var(--bad); }
.g-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--fg); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--a1); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, .35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139, 92, 246, .45); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }

/* ===== 详情页目录 ===== */
.toc {
  position: sticky; top: 58px; z-index: 40; background: var(--glass); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.toc .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { padding: 11px 12px; color: var(--fg2); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--fg); border-bottom-color: var(--a1); text-decoration: none; }

/* ===== 详情页两栏 ===== */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-top: 24px; }
.g-content { min-width: 0; }
.sec {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px;
}
.sec > h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sec > h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad); }
#related { background: none; border: 0; padding: 0; margin-top: 12px; }
.g-side { position: sticky; top: 118px; display: grid; gap: 16px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.side-get { border-color: rgba(139, 92, 246, .45); box-shadow: 0 0 0 1px rgba(139, 92, 246, .15), var(--shadow); }
.side-ch {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--fg); transition: border-color .15s, transform .15s;
}
.side-ch:hover { border-color: var(--a1); text-decoration: none; transform: translateX(2px); }
.side-ch-name { display: grid; font-weight: 700; font-size: 14px; min-width: 0; }
.side-ch-name small { font-weight: 400; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ch-price { display: grid; justify-items: end; gap: 2px; font-size: 14px; }
.side-ch-price .disc { justify-self: end; }
.go { font-size: 12px; color: var(--link); }
.side-more { display: block; font-size: 13px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* 预告片 */
.player { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.vlist { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow-x: auto; padding: 12px 0 4px; }
.vthumb {
  padding: 0; border: 2px solid transparent; background: var(--panel2); border-radius: 10px; overflow: hidden;
  cursor: pointer; text-align: left;
}
.vthumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vthumb span { display: block; font-size: 12px; padding: 5px 8px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vthumb.on { border-color: var(--a1); }

/* 截图 */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.shot { display: block; border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.shot:hover img { transform: scale(1.06); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
#lightbox::backdrop { background: rgba(0, 0, 0, .88); }
#lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; cursor: pointer; }
#lightbox .close {
  position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer;
}

/* 介绍 */
.about { color: var(--fg2); overflow-wrap: anywhere; }
.about.clamp { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.about img, .about video { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.about h1, .about h2, .about h3 { color: var(--fg); font-size: 17px; margin: 18px 0 8px; }
.about ul, .about ol { padding-left: 1.4em; }
.about p { margin: 0 0 12px; }
.more { margin-top: 12px; }

/* 标签分组 */
.tgs { display: grid; gap: 10px; }
.tg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tg-name { font-size: 13px; font-weight: 700; color: var(--muted); width: 92px; flex-shrink: 0; }
.tg a.tag:hover { border-color: var(--a1); color: var(--fg); text-decoration: none; }

/* 评价 */
.rv-src { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.rv-src h3 { font-size: 16px; margin-bottom: 10px; }
.rv-sum { display: grid; gap: 8px; margin-bottom: 14px; }
.rv-label { font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.rv-row { display: grid; grid-template-columns: 96px 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; }
.rv-row span { color: var(--muted); }
.rv-row small { color: var(--muted); min-width: 96px; text-align: right; }
.bar { height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), #4ade80); border-radius: inherit; }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rv-col { min-width: 0; }
.rv-col h4 { font-size: 14px; margin-bottom: 8px; }
.rv {
  margin: 0 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--panel2); border-left: 3px solid var(--good);
  font-size: 14px; color: var(--fg2);
}
.rv.neg { border-left-color: var(--bad); }
.rv p { margin: 0 0 6px; overflow-wrap: anywhere; }
.rv footer { font-size: 12px; color: var(--muted); }

/* 获取方式 */
.dl-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: var(--panel2); }
.dl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-top strong { font-size: 16px; }
.dl-top .price-line { margin-left: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.steps { margin: 0; padding-left: 1.4em; color: var(--fg2); font-size: 14px; }
.steps li { margin: 3px 0; }

/* 配置 */
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-card { background: var(--panel2); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--fg2); overflow-wrap: anywhere; }
.req-card ul { padding-left: 1.1em; margin: 6px 0 0; }
.req-card strong { color: var(--fg); }

.rel-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ===== 页脚 ===== */
.foot { color: var(--muted); font-size: 13px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.foot-links a { color: var(--fg2); }
.foot-extra { margin-top: 0; padding-top: 0; border-top: 0; }
.src-ok { color: var(--good); }
.src-bad { color: var(--bad); }
.runs { display: grid; gap: 2px; font-size: 12px; }
#runs ul { padding-left: 1.2em; margin: 6px 0; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
  .g-layout { grid-template-columns: 1fr; }
  .g-side { position: static; grid-row: 1; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .feature { max-width: 560px; }
}
@media (max-width: 760px) {
  .boards { grid-template-columns: 1fr; }
  .g-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .rv-cols, .reqs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-inner { gap: 12px; }
  .brand { font-size: 0; gap: 0; }
  .sec { padding: 16px; }
  .rv-row { grid-template-columns: 84px 1fr auto; }
  .rv-row small { display: none; }
  .mini { grid-template-columns: 22px 72px 1fr auto; gap: 10px; }
  .mini img { width: 72px; height: 34px; }
  .kpi { flex: 1 1 140px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .promo-row { grid-auto-columns: 78%; }
  .btn.lg { flex: 1; }
}
/* ===== 专题页 / 标签页 ===== */
.list-hero { padding: 18px 0 36px; }
.list-hero .crumbs { margin-bottom: 18px; }
.list-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.list-hero h1 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 900; margin: 6px 0 0; }
.list-hero .stats { margin-bottom: 16px; }
.rel { align-items: center; }
.rel-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.stack { position: relative; height: 230px; }
.stack img {
  position: absolute; width: 78%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: transform .3s;
}
.stack img:nth-child(1) { right: 0; top: 0; z-index: 3; transform: rotate(3deg); }
.stack img:nth-child(2) { right: 14%; top: 50px; z-index: 2; transform: rotate(-4deg); opacity: .9; }
.stack img:nth-child(3) { right: 26%; top: 100px; z-index: 1; transform: rotate(2deg); opacity: .75; }
.list-hero:hover .stack img:nth-child(1) { transform: rotate(0) translateY(-6px); }
.list-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 18px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  position: sticky; top: 66px; z-index: 30;
}
.sortbar { display: flex; flex-wrap: wrap; gap: 6px; }
.only-free { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg2); cursor: pointer; }
.only-free input { accent-color: var(--a1); width: 16px; height: 16px; }
.list-bar .count { margin-left: auto; }
.grid.no-rank .rank { display: none; }
.grid.no-rank .rank ~ .flags { left: 8px; }
.card[hidden] { display: none; }
.more-lists .chip[aria-current] { background: var(--grad); color: #fff; border-color: transparent; }

.tag-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
.tag-dir .sec { margin: 0; }
.tag-group h2 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: auto; }
.tag-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tag-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 96px; padding: 10px 12px; border-radius: 12px; color: #fff; background: var(--panel2);
  border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.tag-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero, none) center / cover; transition: transform .4s; }
.tag-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .8)); }
.tag-tile:hover { transform: translateY(-3px); border-color: var(--a1); text-decoration: none; }
.tag-tile:hover::before { transform: scale(1.08); }
.tag-tile b { font-size: 16px; }
.tag-tile small { font-size: 12px; opacity: .85; }

@media (max-width: 1000px) {
  .list-hero-grid { grid-template-columns: 1fr; }
  .stack { display: none; }
  .tag-dir { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .list-bar { top: 58px; border-radius: 0; margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
  .list-bar .count { display: none; }
  .sortbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tag-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tag-tile { min-height: 80px; padding: 8px; }
  .tag-tile b { font-size: 14px; }
}

/* ===== Platforms ===== */
.plat-chips .chip span { font-size: 15px; line-height: 1; }
.plat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.plat-chips::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { .plat-chips { flex-wrap: wrap; } }
.plat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.plat-card {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  color: var(--fg); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plat-card:hover { transform: translateY(-3px); border-color: var(--a1); box-shadow: 0 10px 24px rgba(139, 92, 246, .2); text-decoration: none; }
.plat-ico { font-size: 22px; line-height: 1.2; }
.plat-card b { font-size: 15px; }
.plat-card small, .plat-tile small { color: var(--muted); font-size: 12px; }
.plat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plat-tile { min-height: 150px; padding: 16px; }
.plat-tile small { color: rgba(255, 255, 255, .85); }
.plat-tile .plat-ico { font-size: 28px; margin-bottom: auto; }
.plat-tile b { font-size: 18px; }

/* ===== About / Privacy ===== */
.prose-page { padding-top: 24px; max-width: 860px; }
.prose { padding: 28px 32px; }
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin-bottom: 16px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--fg2); }
.prose ul { padding-left: 1.3em; }

/* ===== Accessibility ===== */
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px;
  background: var(--a1); color: #fff; font-weight: 700; transition: top .15s;
}
.skip:focus { top: 10px; text-decoration: none; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; border-radius: 6px; }
.card:focus-visible, .mini:focus-visible, .promo:focus-visible { outline-offset: 3px; }
img.broken { visibility: hidden; }
@media (max-width: 760px) { .prose { padding: 20px 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 520px) {
  .tg-name, .facet-row > span { width: 100%; }
}

/* 详情页“一览”段落 */
.overview { font-size: 16px; line-height: 1.7; color: var(--fg2); margin: 0; max-width: 760px; }

/* 首页“本站热门”板块：占满整行 */
.board-wide { grid-column: 1 / -1; }
.board-wide .board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; }

/* ===== 玩家视频 / 博主视频（点击后加载 YouTube） ===== */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.yt { margin: 0; min-width: 0; }
.yt-play, .yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s, opacity .25s; opacity: .92; }
.yt-play:hover img, .yt-play:focus-visible img { transform: scale(1.04); opacity: 1; }
.yt-btn { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 54px; height: 38px; border-radius: 10px; background: rgba(0, 0, 0, .72); color: #fff; display: grid; place-items: center; font-size: 16px; }
.yt-play:hover .yt-btn { background: #e11d48; }
.yt-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #fff; }
.yt figcaption { padding: 8px 2px 0; display: grid; gap: 3px; }
.yt-title { color: var(--fg); font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt figcaption small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt figcaption small a { color: var(--fg2); }

/* ===== 攻略 ===== */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.guide { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); color: var(--fg); min-width: 0; }
.guide:hover { border-color: var(--line2); text-decoration: none; }
.guide img, .guide-ph { flex: 0 0 96px; width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--bg2); display: grid; place-items: center; font-size: 22px; }
.guide-body { display: grid; gap: 2px; min-width: 0; align-content: start; }
.guide-body b { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-body small { color: var(--muted); font-size: 12px; }
.guide-body > span { color: var(--fg2); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: var(--mid); letter-spacing: 1px; margin-left: 4px; }
.guide-links a { white-space: nowrap; }

/* ===== 博主页 ===== */
.creators-page .lead { color: var(--fg2); max-width: 760px; }
.creator-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.creator-head h2 { margin: 0; }
.more-wrap { text-align: center; margin: 18px 0 6px; }
@media (max-width: 480px) { .guides { grid-template-columns: 1fr; } .yt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .yt-title { font-size: 13px; } }

/* ===== 手机端底部获取按钮 ===== */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 16px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: var(--shadow); font-size: 14px; }
  .m-cta:hover { text-decoration: none; }
  .m-cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; min-width: 0; }
  .m-cta b { white-space: nowrap; }
  .game-page .foot { padding-bottom: 72px; }
}
.bz { color: var(--a2); font-weight: 700; white-space: nowrap; }
/* 三个榜单（社交热门 / 热门 / 高分）宽屏并排 */
@media (min-width: 1001px) { .boards:has(> .board:nth-child(3):not(.board-wide)) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 761px) and (max-width: 1000px) { .boards > .board:nth-child(3):not(.board-wide) { grid-column: 1 / -1; } }
