:root {
  --ps-blue: #0070cc;
  --ps-dark-blue: #003791;
  --ps-light-blue: #2d7aff;
  --ps-plus-gold: #f5d849;
  --ps-plus-gold-dark: #e28d18;
  --bg-card: #1a1f33;
  --bg-card-hover: #222b4d;
  --text: #e5e7eb;
  --text-dim: #8899bb;
  --green: #3ddc84;
  /* ══ 主题骨架令牌（深色＝本页现状；浅色层见下） ══ */
  --bg-page: #0a0e1a;
  --bg-sunken: #333645;
  --glow-deep: rgba(0,55,145,0.25);
  --glow-1: rgba(0,112,204,0.15);
  --grid: rgba(0,112,204,0.03);
  --hero-veil: linear-gradient(180deg, rgba(10,14,26,0.08) 0%, rgba(10,14,26,0.42) 65%, rgba(10,14,26,0.84) 100%);
  --line-soft: rgba(255,255,255,0.04);
  --line-soft-2: rgba(255,255,255,0.08);
  --line-soft-3: rgba(255,255,255,0.05);
  --line-soft-4: rgba(255,255,255,0.12);
  --surface-1: rgba(255,255,255,0.05);
  --stars-empty: rgba(255,255,255,0.16);
  --track: rgba(255,255,255,0.07);
  --shadow-cover: 0 6px 22px rgba(0,0,0,0.5);
  --accent-soft: rgba(0,112,204,0.12);
  --accent-soft-2: rgba(0,112,204,0.20);
  --gold-ink: var(--ps-plus-gold);
  --gold-ink-2: var(--ps-plus-gold-dark);
  --text-strong: #ffffff;
  --text-2: #c6cee0;
  --dim-2: #aeb8cc;
  --dim-3: #c4ccdc;
  --tag-plat-ink: #cfe0ff;
  --warn-ink: #ffb454;
  --warn-soft: rgba(255,170,0,0.18);
  --green-soft: rgba(61,220,132,0.18);
  --neutral-soft: rgba(154,163,184,0.22);
  /* 平台标签（全站统一：PS4=紫 / PS5=蓝） */
  --plat-ps4-a: #b39ddb;
  --plat-ps4-b: #9575cd;
  --plat-ps5-a: #1565c0;
  --plat-ps5-b: #0d47a1;
  /* ══ 装饰层（四符号 ＋ 四奖杯；深色＝原硬编码值） ══ */
  --sym-tri: #3ba55c;
  --sym-cir: #ff6b6b;
  --sym-squ: #f0c0e0;
  --sym-crs: var(--ps-light-blue);
  --sym-plat: #c0c8d8;
  --sym-gold: #ffd700;
  --sym-silver: #b0b8c0;
  --sym-bronze: #cd7f32;
  /* ── 标签规范（与首页/catalog 统一：港服无/有白金/有DLC/攻略） ── */
  --badge-plat: #c0c8d8;
  --badge-plat-bg: rgba(192,200,216,0.10);
  --badge-plat-border: rgba(192,200,216,0.20);
  --ps-blue: #2f6fed;
  --ps-dark-blue: #1a47b8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page); color: var(--text); min-height: 100vh; line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 400px 300px at 10% 10%, var(--glow-deep) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 90% 15%, var(--glow-1), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, var(--grid) 40px, var(--grid) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, var(--grid) 40px, var(--grid) 41px);
  pointer-events: none; z-index: 0;
}

/* ---- Top Nav ---- */
.top-nav {
  position: sticky; top: 0; z-index: 150;
  display: flex; align-items: center;
  padding: 12px 16px;
  background: rgba(10,14,26,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ps-light-blue); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(0,112,204,0.08); border: 1px solid rgba(0,112,204,0.2); transition: all 0.2s;
}
.back-link:hover { background: var(--ps-blue); color: #fff; }
.back-link svg { width: 16px; height: 16px; }

.page { max-width: 860px; margin: 0 auto; padding: 0 16px 44px; position: relative; z-index: 1; }

/* ---- Hero ---- */
.hero {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-soft-3);
  margin: 12px 0 14px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.62;
}
.hero-veil {
  position: absolute; inset: 0;
  background: var(--hero-veil);
}
.hero-main {
  position: relative; display: flex; gap: 18px; padding: 28px 22px 26px; align-items: center;
  min-height: 240px;
}
.hero-cover {
  position: relative;
  width: 116px; height: 116px; flex: none; border-radius: 12px; overflow: hidden;
  background: var(--bg-sunken); box-shadow: var(--shadow-cover); border: 1px solid var(--line-soft-2);
}
.hero-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-cover .cover-empty { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #445; width: 100%; height: 100%; }
/* 港服无（详情页放 hero 标签行、排在「有白金」前，红色 chip） */
.hk-none-badge { display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:linear-gradient(135deg,#e74c3c 0%,#c0392b 100%); color:#fff; border:1px solid transparent; box-sizing:border-box; flex-shrink:0; white-space:nowrap; }
/* 有白金（中性灰白，与首页/catalog 一致） */
.badge-has-plat { display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:var(--badge-plat-bg); color:var(--badge-plat); border:1px solid var(--badge-plat-border); width:48px; box-sizing:border-box; flex-shrink:0; white-space:nowrap; }
/* 有DLC（紫调，与首页/catalog 一致） */
.badge-has-dlc { display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:rgba(176,140,224,0.12); color:#b08ce0; border:1px solid rgba(176,140,224,0.3); width:48px; box-sizing:border-box; flex-shrink:0; white-space:nowrap; }
/* 有中文（绿调） */
.badge-has-cn { display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:rgba(46,204,113,0.12); color:#2ecc71; border:1px solid rgba(46,204,113,0.3); box-sizing:border-box; flex-shrink:0; white-space:nowrap; }
/* 无中文（红调） */
.badge-no-cn { display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:rgba(231,76,60,0.12); color:#e74c3c; border:1px solid rgba(231,76,60,0.3); box-sizing:border-box; flex-shrink:0; white-space:nowrap; }
/* 标签行：港服无/有白金/有DLC（放 hero 平台·档位标签下方，间距与首页一致） */
.hero-tags { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.hero-info { flex: 1; min-width: 0; }
.hero-name { font-size: 23px; font-weight: 800; line-height: 1.3; word-break: break-word; }
.hero-name-en { font-size: 13px; color: var(--text-dim); margin-top: 2px; word-break: break-word; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.pill-tier-1 { background: linear-gradient(135deg, #4d83c1 0%, #253f81 100%); color: #fff; }
.pill-tier-2 { background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%); color: #1a1a1a; }
.pill-tier-3 { background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%); color: #ffd700; }

/* 平台徽章 */
.platform-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.plat-ps3 { background: linear-gradient(135deg, #26a69a 0%, #00897b 100%); color: #fff; }
.plat-ps4 { background: linear-gradient(135deg, var(--plat-ps4-a) 0%, var(--plat-ps4-b) 100%); color: #fff; }
.plat-ps5 { background: linear-gradient(135deg, var(--plat-ps5-a) 0%, var(--plat-ps5-b) 100%); color: #fff; }
.plat-psv { background: linear-gradient(135deg, #ffa726 0%, #ef6c00 100%); color: #fff; }
.pill-in { background: var(--green-soft); color: var(--green); }
.pill-leaving { background: var(--warn-soft); color: var(--warn-ink); }
.pill-out { background: var(--neutral-soft); color: var(--dim-3); }

/* ---- 操作行 ---- */
.action-row { display: flex; flex-wrap: nowrap; gap: 10px; margin-bottom: 14px; max-width: 560px; }
.act-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line-soft-4); color: var(--dim-2);
  text-decoration: none; transition: all .15s; white-space: nowrap; min-width: 0;
}
.act-btn:hover { border-color: rgba(245,216,73,0.5); color: var(--text-strong); }
.act-btn.on-want { background: rgba(245,216,73,0.18); border-color: rgba(245,216,73,0.6); color: var(--gold-ink); }
.act-btn.on-played { background: var(--green-soft); border-color: rgba(61,220,132,0.6); color: var(--green); }
.act-btn[disabled] { opacity: .5; cursor: default; }
.act-btn.guide { background: var(--accent-soft); border-color: rgba(0,112,204,0.4); color: var(--ps-light-blue); }
.act-btn.guide:hover { background: rgba(0,112,204,0.25); border-color: var(--ps-blue); color: var(--text-strong); }
.price-card { display: block; width: 100%; padding: 16px 18px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--line-soft-3); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-row + .price-row { margin-top: 10px; }
.price-now { font-size: 38px; font-weight: 800; color: #ff5b5b; line-height: 1.1; }
.price-now .currency { font-size: 14px; font-weight: 700; color: var(--text-dim); margin-right: 2px; }
.price-orig { font-size: 13px; color: var(--text-dim); text-decoration: line-through; }
.price-off { display: inline-block; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.pp-plus { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pp-plus .pp-disc { background: rgba(245,216,73,0.16); color: var(--gold-ink); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.pp-plus .pp-price { font-size: 32px; font-weight: 800; color: var(--gold-ink); line-height: 1.1; }
.pp-plus .pp-price .currency { font-size: 14px; font-weight: 700; color: var(--text-dim); margin-right: 2px; }
.pp-plus .pp-label { font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.price-end { margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.price-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.price-foot .price-end { margin-top: 0; }
.price-store { font-size: 12px; font-weight: 700; color: var(--ps-light-blue); text-decoration: none; border: 1px solid rgba(45,122,255,0.38); padding: 4px 10px; border-radius: 6px; white-space: nowrap; margin-left: auto; }
.price-store:hover { background: rgba(45,122,255,0.12); border-color: var(--ps-light-blue); }
.ed-list { margin-top: 10px; }
.ed-row { padding: 11px 0; border-top: 1px solid var(--line-soft-3); }
.ed-row:first-child { border-top: 0; padding-top: 2px; }
.ed-row:last-child { padding-bottom: 2px; }
.ed-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ed-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; color: var(--text-strong); line-height: 1.5; word-break: break-word; }
.ed-grid { display: inline-grid; grid-template-columns: auto auto auto; column-gap: 6px; row-gap: 1px; align-items: baseline; justify-content: end; flex-shrink: 0; margin-left: auto; }
.ed-grid .ed-off { justify-self: start; }
.ed-grid .ed-now, .ed-grid .ed-orig, .ed-grid .ed-plus-price { justify-self: end; }
.ed-now { font-size: 20px; font-weight: 800; color: #ff5b5b; line-height: 1.2; white-space: nowrap; }
.ed-now .currency { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-right: 1px; }
.ed-now.plain { color: var(--text-strong); font-size: 19px; flex-shrink: 0; }
.ed-off { background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.ed-off.plus { background: rgba(245,216,73,0.16); color: var(--gold-ink); }
.ed-orig { font-size: 11.5px; color: var(--text-dim); text-decoration: line-through; white-space: nowrap; }
.ed-plus-price { font-size: 20px; font-weight: 800; color: var(--gold-ink); line-height: 1.2; white-space: nowrap; }
.ed-plus-price .currency { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-right: 1px; }
.ed-plus-tag { justify-self: end; font-size: 11px; font-weight: 800; color: var(--gold-ink); white-space: nowrap; }
.ed-end { margin-top: 10px; text-align: right; font-size: 11.5px; color: var(--text-dim); }
.ed-store { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--ps-light-blue); text-decoration: none; white-space: nowrap; }
.ed-store:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .ed-top { gap: 6px; }
  .ed-grid { column-gap: 4px; }
  .ed-off { padding: 1px 4px; }
  .ed-plus-tag { font-size: 10px; }
  .ed-store { font-size: 10.5px; }
}
@media (min-width: 720px) {
  .ed-name { flex: 1 1 auto; }
  .ed-store { order: 1; }
  .ed-grid { order: 2; flex: 1 0 100%; margin-left: 0; margin-top: 6px; }
  .ed-now.plain { order: 2; flex: 1 0 100%; text-align: right; margin-top: 6px; }
  .ed-now, .ed-plus-price { font-size: 24px; }
  .ed-now .currency, .ed-plus-price .currency { font-size: 12px; }
}
:root[data-theme="light"] .price-now { color: #d32f2f; }
:root[data-theme="light"] .price-off { background: rgba(14,138,69,0.12); color: #0e8a45; }
:root[data-theme="light"] .ed-now { color: #d32f2f; }
:root[data-theme="light"] .ed-off { background: rgba(14,138,69,0.12); color: #0e8a45; }
:root[data-theme="light"] .ed-off.plus { background: rgba(180,83,9,0.10); color: #b45309; }
.act-btn.guide svg { width: 16px; height: 16px; display: block; flex: none; }
.act-btn.trophy { background: var(--accent-soft); border-color: rgba(245,216,73,0.35); color: var(--gold-ink); }
.act-btn.trophy:hover { border-color: rgba(245,216,73,0.6); color: var(--text-strong); }

/* ---- 卡片 ---- */
.card { background: var(--bg-card); border: 1px solid var(--line-soft-3); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.detail-grid > * { min-width: 0; }
.detail-grid .card, .detail-grid .price-card { margin-bottom: 0; }
.col-left, .col-right { display: contents; }
.detail-grid .price-card { order: 1; }
.detail-grid .rate-card { order: 2; }
.detail-grid .info-card { order: 3; }
.detail-grid .desc-card { order: 4; }
@media (min-width: 720px) {
  .detail-grid.has-info { grid-template-columns: minmax(270px, 300px) minmax(0, 1fr); }
  .detail-grid.has-info .col-left, .detail-grid.has-info .col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
}
.card-title {
  font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--ps-light-blue);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.card-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-ink), var(--gold-ink-2)); }

/* ---- 评分 ---- */
.rating-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating-score { font-size: 34px; font-weight: 800; line-height: 1; color: var(--text-strong); }
.rating-score span { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.rating-side { flex: 1; min-width: 150px; }
.stars { position: relative; display: inline-block; font-size: 22px; line-height: 1; letter-spacing: 2px; }
.stars-bg { color: var(--stars-empty); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold-ink); }
.rating-total { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.dist { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.dist-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.dist-row .k { width: 30px; flex: none; color: var(--text); font-weight: 600; }
.dist-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-ink-2), var(--gold-ink)); }
.dist-row .n { width: 54px; flex: none; text-align: right; }

/* ---- 简介 ---- */
.desc-short { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-bottom: 10px; }
.desc-long { font-size: 14px; color: var(--text-2); line-height: 1.85; word-break: break-word; }

/* ---- 横滑轨道（截图 / 视频共用） ---- */
.shots-wrap { position: relative; }
.shots {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 0;
}
.shots::-webkit-scrollbar { display: none; }

/* 左右箭头：仅在内容溢出时出现，滚到两端各自禁用 */
.shots-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; padding: 0; z-index: 3;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,14,26,0.74); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; font-family: inherit;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, opacity .15s;
}
.shots-wrap.has-overflow .shots-nav { display: flex; }
.shots-nav:hover { background: rgba(0,112,204,0.8); border-color: rgba(255,255,255,0.32); }
.shots-nav[disabled] { opacity: .28; cursor: default; }
.shots-nav[disabled]:hover { background: rgba(10,14,26,0.74); border-color: rgba(255,255,255,0.2); }
.shots-nav.prev { left: 8px; }
.shots-nav.next { right: 8px; }
.shots-nav svg { width: 20px; height: 20px; display: block; }
.shots img, .shots video {
  flex: 0 0 auto; width: 31%; scroll-snap-align: start;
  aspect-ratio: 16/9; border-radius: 8px;
  display: block; background: var(--bg-sunken);
}
.shots img { object-fit: cover; cursor: zoom-in; transition: all .2s; }
.shots img:hover { transform: scale(1.015); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.shots video { transition: box-shadow .2s; }
.shots video:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.5); }

/* ---- 信息表 ---- */
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 10px 12px; font-size: 14px; align-items: baseline; }
.info-grid dt { color: var(--text-dim); font-size: 13px; }
.info-grid dd { color: var(--text); word-break: break-word; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: rgba(0,112,204,0.16); color: var(--tag-plat-ink); margin: 0 6px 6px 0; }
.rating-chip { display: inline-flex; align-items: center; gap: 8px; }
.rating-chip img { height: 34px; display: block; }
.rating-chip .lbl { font-weight: 700; }

/* ---- 灯箱 ---- */
.lightbox {
  position: fixed; inset: 0; background: rgba(4,7,14,0.94); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---- 状态 ---- */
.skeleton { background: linear-gradient(90deg, var(--bg-card), var(--bg-card-hover), var(--bg-card)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-box { padding: 14px 0; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-dim); font-size: 14px; }
.empty-state .big { font-size: 34px; display: block; margin-bottom: 10px; }
.retry-btn { margin-top: 14px; padding: 8px 22px; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; background: var(--accent-soft-2); border: 1px solid rgba(0,112,204,0.45); color: var(--ps-light-blue); }

.page > :last-child,
.page > :last-child > :last-child { margin-bottom: 0 !important; }

footer { text-align: center; padding: 16px 16px 40px; color: var(--text-dim); font-size: 12px; position: relative; z-index: 1; border-top: 1px solid var(--line-soft); }

@media (max-width: 640px) {
  /* 横滑轨道：窄屏一格占大半，露出下一格的边当提示 */
  .shots img, .shots video { width: 80%; }
  /* 移动端手势横滑，箭头隐藏 */
  .shots-wrap.has-overflow .shots-nav { display: none; }
  .hero-main { gap: 14px; padding: 20px 16px; min-height: 190px; }
  .hero-cover { width: 90px; height: 90px; }
  .hero-name { font-size: 19px; }
  .rating-score { font-size: 36px; }
  .card { padding: 14px; }
  .info-grid { grid-template-columns: max-content 1fr; gap: 10px 40px; }
  .action-row { gap: 6px; max-width: 100%; flex-wrap: wrap; }
  .act-btn { padding: 10px 8px; font-size: 13px; }
  .action-row .act-btn { flex: 0 0 calc((100% - 18px) / 4); }
  .price-row { row-gap: 4px; }
}

/* 按钮符号飘浮背景（与首页统一规范） */
.ps-symbols {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ps-symbols span {
  position: absolute;
  font-size: 60px;
  font-weight: 900;
  opacity: 0.06;
  user-select: none;
}
.ps-symbols .tri { color: var(--sym-tri); }
.ps-symbols .cir { color: var(--sym-cir); }
.ps-symbols .squ { color: var(--sym-squ); }
.ps-symbols .crs { color: var(--sym-crs); }
/* 奖杯元素 */
.ps-symbols .trophy { font-size: 48px; }
.ps-symbols .trophy-plat { color: var(--sym-plat); opacity: 0.07; }
.ps-symbols .trophy-gold { color: var(--sym-gold); opacity: 0.07; }
.ps-symbols .trophy-silver { color: var(--sym-silver); opacity: 0.06; }
.ps-symbols .trophy-bronze { color: var(--sym-bronze); opacity: 0.06; }

/* ══ 浅色主题 ══ */
:root[data-theme="light"] {
  color-scheme: light;
  /* ── ① 覆盖本页自有语义变量（CSS 引用处无需改，自动跟着压深） ── */
  --ps-light-blue: #0b6bd6;   /* 原 #2d7aff —— 蓝字 / 返回键字 / 攻略键字 / 卡片小标题 */
  --bg-card: #ffffff;         /* 原 #1a1f33 */
  --bg-card-hover: #eef2f7;   /* 原 #222b4d */
  --text: #1b2333;            /* 原 #e5e7eb */
  --text-dim: #6c7891;        /* 原 #8899bb —— 与全站各页同值（AA 悬案已归档，不在此页重开） */
  --green: #0e8a45;           /* 原 #3ddc84 —— 「玩过」键 / 「在库」胶囊的绿字 */
  /* ── ② 骨架令牌 ── */
  --bg-page: #f4f6fa;
  --bg-sunken: #cbd5e5;
  --glow-deep: rgba(0,90,190,0.09);
  --glow-1: rgba(0,112,204,0.07);
  --grid: rgba(0,112,204,0.02);
  --hero-veil: linear-gradient(180deg, rgba(244,246,250,0.08) 0%, rgba(244,246,250,0.44) 65%, rgba(244,246,250,0.86) 100%);
  --line-soft: rgba(15,35,70,0.07);
  --line-soft-2: rgba(15,35,70,0.14);
  --line-soft-3: rgba(15,35,70,0.12);
  --line-soft-4: rgba(15,35,70,0.16);
  --surface-1: rgba(15,35,70,0.05);
  --stars-empty: rgba(15,35,70,0.18);
  --track: rgba(15,35,70,0.12);
  --shadow-cover: 0 6px 22px rgba(23,35,61,0.18);
  --accent-soft: rgba(11,107,214,0.09);
  --accent-soft-2: rgba(11,107,214,0.09);   /* 按钮上的蓝淡底：#0b6bd6 字压 0.20 只有 3.9:1 ⇒ 压淡到 0.09（4.56:1） */
  /* ── ③ 字色令牌 ── */
  --gold-ink: #b45309;        /* 琥珀金 · 全站统一（原 var(--ps-plus-gold)） */
  --gold-ink-2: #92400e;      /* 原 var(--ps-plus-gold-dark) —— 金渐变条的深端 */
  --text-strong: #1b2333;     /* 原 #ffffff —— 评分大字 / 简介短句 / 按钮 hover 字 */
  --text-2: #414d68;          /* 原 #c6cee0 —— 长简介正文 */
  --dim-2: #4b5772;           /* 原 #aeb8cc —— 想玩/玩过 键未选中字 */
  --dim-3: #5a6a86;           /* 原 #c4ccdc —— 「已出库」胶囊字 */
  --tag-plat-ink: #2f4a7a;    /* 原 #cfe0ff —— 类型/兼容 chip 字 */
  --warn-ink: #b26a00;        /* 原 #ffb454 —— 「即将出库」胶囊字 */
  --warn-soft: rgba(180,110,0,0.12);
  --green-soft: rgba(14,138,69,0.12);
  --neutral-soft: rgba(90,106,134,0.16);
  /* 平台标签：PS4 亮紫铺白底分不开、白字只 2.4:1 ⇒ 压深（与 index/catalog/sale/free 同值）；PS5 深蓝本来就成立 */
  --plat-ps4-a: #7e57c2;
  --plat-ps4-b: #5e35b1;
  /* 装饰层：底白，原来 6% 的亮色几乎不见 ⇒ 换墨色 */
  --sym-tri: #0e8a45;
  --sym-cir: #d32f2f;
  --sym-squ: #a34d86;
  --sym-crs: #0b6bd6;
  --sym-plat: #7f8aa0;
  --sym-gold: #b58900;
  --sym-silver: #78828f;
  --sym-bronze: #9c5a1e;
  /* ── 标签规范（与首页/catalog 统一：港服无/有白金/有DLC/攻略） ── */
  --badge-plat: #64748b;
  --badge-plat-bg: rgba(100,116,139,0.10);
  --badge-plat-border: rgba(100,116,139,0.26);
  --ps-blue: #0b6bd6;
  --ps-dark-blue: #0b4fa0;
}

/* 浅色下装饰层：符号换墨色后 6% 偏淡，略提；奖杯是彩色字形，只能靠不透明度 */
:root[data-theme="light"] .ps-symbols span            { opacity: 0.085; }
:root[data-theme="light"] .ps-symbols .trophy-plat    { opacity: 0.13; }
:root[data-theme="light"] .ps-symbols .trophy-gold    { opacity: 0.14; }
:root[data-theme="light"] .ps-symbols .trophy-silver  { opacity: 0.13; }
:root[data-theme="light"] .ps-symbols .trophy-bronze  { opacity: 0.13; }

/* ── ⚠️ 未动的「面」：蓝/金/绿/红 alpha 的淡底与描边（两面都看得见）、
      .back-link:hover / .pill-tier-1~3 / .plat-ps3 / .plat-psv 的彩底白字、
      .shots-nav（压在截图上的深底圆钮，含 disabled:hover）、.lightbox 深底、
      .act-btn.guide:hover 的 0.25 蓝淡底、.chip 的 0.16 蓝淡底、
      .hero-cover .cover-empty 的 #445（emoji，颜色不生效）。 ── */
/* ⚠️ 顶栏（.top-nav）背景/描边不动：user.js 以 .top-nav.psu-inbar 覆盖为 --psu-topbg，
      页面再写一遍会与全站顶栏令牌打架。 */
#back-to-top {
  position: fixed; right: 14px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #2d7aff, #003791);
  color: #fff; font-size: 20px; line-height: 1;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-cover);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: linear-gradient(135deg, #4d8dff, #003791); transform: translateY(-2px); }
