/* ============ 游戏账号租赁网站 · 全站样式 ============ */
:root {
  --bg: #0b0e14;
  --bg-soft: #10141d;
  --card: #161b26;
  --card-hover: #1d2433;
  --border: #242d40;
  --text: #e9edf5;
  --muted: #8b95a8;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --grad: linear-gradient(135deg, #7c5cff 0%, #4f46e5 55%, #22d3ee 130%);
  --red: #ff4d6d;
  --gold: #fbbf24;
  --green: #34d399;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(600px 300px at 85% -50px, rgba(124, 92, 255, .18), transparent 70%),
    radial-gradient(500px 260px at 0% 20%, rgba(34, 211, 238, .10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--accent2); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(11, 14, 20, .85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-tip { font-size: 12px; color: var(--muted); }
/* 顶栏右侧快捷入口：Steam 官网 / 本店提号 */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.tb-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: none;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, .03); white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tb-link:hover { border-color: rgba(124, 92, 255, .65); background: rgba(124, 92, 255, .14); color: #fff; transform: translateY(-1px); }
/* 每个入口一个醒目的专属色 */
.tb-link.tb-steam { color: #7dd3fc; border-color: rgba(56, 189, 248, .55); background: rgba(56, 189, 248, .12); }
.tb-link.tb-steam:hover { border-color: rgba(56, 189, 248, .95); background: rgba(56, 189, 248, .24); color: #bae6fd; box-shadow: 0 0 12px rgba(56, 189, 248, .25); }
.tb-link.tb-key { color: var(--gold); border-color: rgba(255, 179, 71, .6); background: rgba(255, 179, 71, .13); }
.tb-link.tb-key:hover { border-color: rgba(255, 179, 71, .95); background: rgba(255, 179, 71, .24); color: var(--gold); box-shadow: 0 0 12px rgba(255, 179, 71, .25); }
.tb-link.tb-tools { color: #fb7185; border-color: rgba(244, 63, 94, .55); background: rgba(244, 63, 94, .12); }
.tb-link.tb-tools:hover { border-color: rgba(244, 63, 94, .95); background: rgba(244, 63, 94, .24); color: #fda4af; box-shadow: 0 0 12px rgba(244, 63, 94, .25); }
.tb-link.tb-msg { color: #c4b5fd; border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .14); }
.tb-link.tb-msg:hover { border-color: rgba(139, 92, 246, .95); background: rgba(139, 92, 246, .26); color: #ddd6fe; box-shadow: 0 0 12px rgba(139, 92, 246, .28); }
.tb-link.tb-manual { color: #6ee7b7; border-color: rgba(52, 211, 153, .55); background: rgba(52, 211, 153, .12); }
.tb-link.tb-manual:hover { border-color: rgba(52, 211, 153, .95); background: rgba(52, 211, 153, .24); color: #a7f3d0; box-shadow: 0 0 12px rgba(52, 211, 153, .25); }
.tb-short { display: none; }
/* 手机端入口移到 hero 区（顶栏空间不足） */
.hero-links { display: none; }

/* ---------- 常用工具页 ---------- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.tool-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 18px 20px; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { border-color: rgba(124, 92, 255, .6); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.tool-idx {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7c5cff, #3ec6ff);
}
.tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tool-name { font-size: 15.5px; font-weight: 700; color: var(--text); }
.tool-card:hover .tool-name { color: var(--gold); }
.tool-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tool-url { font-size: 11.5px; color: var(--muted); opacity: .75; word-break: break-all; }
.tool-go { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease; }
.tool-card:hover .tool-go { opacity: 1; transform: translateX(0); }
.tools-empty { text-align: center; padding: 46px 0; font-size: 15px; color: var(--muted); }
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .tool-card { padding: 14px 15px; gap: 12px; }
  .tool-idx { flex-basis: 30px; width: 30px; height: 30px; font-size: 13.5px; }
  .tool-name { font-size: 14.5px; }
  .tool-go { opacity: 1; transform: none; font-size: 12.5px; }
}

/* ---------- 首页 hero ---------- */
.hero {
  margin-top: 28px;
  padding: 34px 28px 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(124, 92, 255, .10), rgba(22, 27, 38, .6)), var(--card);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 34px; letter-spacing: 6px; font-weight: 800; }
.hero .sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.search-box { display: flex; gap: 10px; margin-top: 20px; }
.search-box input {
  flex: 1; min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: #5b647a; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14.5px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: var(--card-hover); border-color: #32405e; }
.btn-primary { background: var(--grad); border: none; color: #fff; font-weight: 600; padding: 12px 24px; }
.btn-primary:hover { filter: brightness(1.12); background: var(--grad); }
.btn-danger { color: var(--red); border-color: rgba(255, 77, 109, .35); }
.btn-danger:hover { background: rgba(255, 77, 109, .12); border-color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--card); }

/* ---------- 搜索结果 ---------- */
.search-results {
  margin-top: 18px;
  text-align: left;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
.sr-head { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sr-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.sr-name { font-weight: 600; font-size: 15px; }
.sr-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-tier-chip {
  font-size: 12.5px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, .5);
  background: rgba(124, 92, 255, .12);
  color: #c9bcff;
  transition: all .15s;
}
.sr-tier-chip:hover { background: rgba(124, 92, 255, .28); }
.sr-empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }
/* 无结果时的「您是不是想找」推荐 */
.sr-suggest { gap: 8px; }
.sr-suggest .sr-tier-chip {
  font-size: 13.5px; font-weight: 600; padding: 6px 14px;
  border-color: rgba(251, 191, 36, .55);
  background: rgba(251, 191, 36, .1);
  color: #fde68a;
}
.sr-suggest .sr-tier-chip:hover { background: rgba(251, 191, 36, .22); }
.sr-sug-tier { font-size: 11.5px; font-weight: 400; opacity: .75; margin-left: 5px; }

/* ---------- NEW 角标 ---------- */
.badge-new {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #ff7a45);
  border-radius: 6px;
  padding: 1px 7px;
  vertical-align: 2px;
  box-shadow: 0 2px 10px rgba(255, 77, 109, .4);
}
/* 预购角标（后台档位表格） */
.badge-pre {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3d8bfd, #4dc3ff);
  border-radius: 6px;
  padding: 1px 7px;
  vertical-align: 2px;
  box-shadow: 0 2px 10px rgba(77, 166, 255, .35);
}

/* ---------- 会员档位卡片 ---------- */
.section { margin-top: 34px; padding-bottom: 10px; }
.section-title { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--grad); }

/* ---------- 首页「实时热度」板块 ---------- */
.heat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.heat-head .section-title { margin-bottom: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.heat-head .section-title::before { display: none; }
.heat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f87171; animation: heat-blink 1.6s ease-in-out infinite; flex: 0 0 auto; }
@keyframes heat-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(248, 113, 113, .6); } 50% { opacity: .3; box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); } }
.heat-range { font-size: 11.5px; font-weight: 400; color: var(--muted); }
/* 收起 / 展开按钮 */
.heat-toggle {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 12.5px; font-family: inherit; line-height: 1.4;
  transition: border-color .18s, background .18s, color .18s;
}
.heat-toggle:hover { border-color: var(--accent); color: var(--accent2); background: var(--card-hover); }
.heat-toggle:active { transform: translateY(1px); }
.heat-caret { display: inline-block; font-size: 10px; transition: transform .22s ease; }
#heatSection.collapsed .heat-caret { transform: rotate(-90deg); }
#heatSection.collapsed .heat-head { margin-bottom: 0; }
/* 折叠动画：用 max-height + 透明度过渡 */
.heat-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 18px 18px 14px;
  max-height: 1200px; overflow: hidden; opacity: 1;
  transition: max-height .3s ease, opacity .22s ease, padding .3s ease, margin .3s ease;
}
#heatSection.collapsed .heat-card { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-color: transparent; }
.heat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.heat-col h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--text); }
.rank-row:hover .name { color: var(--accent2); }
.rank-row .no { flex: 0 0 20px; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.rank-row:nth-child(1) .no, .rank-row:nth-child(2) .no, .rank-row:nth-child(3) .no {
  color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); border-radius: 6px; padding: 1px 0; font-size: 11px;
}
.rank-row .name { flex: 0 0 118px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.rank-row .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c5cff, #22d3ee); }
.rank-row .cnt { flex: 0 0 34px; text-align: right; font-size: 11.5px; color: var(--muted); }
.chip-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.heat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.heat-chip:hover { border-color: var(--accent); transform: translateY(-1px); background: var(--card-hover); }
.heat-chip.hot { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .09); }
.heat-chip .fire { font-size: 11px; }
.heat-foot { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); text-align: center; }
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.tier-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform .18s, border-color .18s, background .18s;
}
.tier-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.tier-card:hover { transform: translateY(-3px); border-color: #3d4a6b; background: var(--card-hover); }
.tier-card h3 { font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px;
  color: #fff; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5f4d 0%, #ff2d55 100%);
  box-shadow: 0 3px 10px rgba(255, 45, 85, .4);
  animation: badge-pulse 2.2s ease-in-out infinite;
  transform: translateY(-1px);
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(255, 45, 85, .4); }
  50% { box-shadow: 0 3px 16px rgba(255, 45, 85, .75); }
}
.tier-card .desc { color: var(--muted); font-size: 13.5px; min-height: 22px; }
.tier-card .meta {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--border); padding-top: 12px;
}
.tier-card .count { font-size: 13px; color: var(--muted); }
.tier-card .count b { color: var(--accent2); font-size: 16px; }
.tier-card .go { font-size: 13.5px; color: var(--accent2); font-weight: 600; }
.tier-card:hover .go { text-decoration: underline; }

/* ---------- 价格独立展示 ---------- */
.plan-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 9px 0 8px; }
.plan-tag {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.plan-tag .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-tag .unit::before { content: '/'; margin-right: 1px; opacity: .5; }
.plan-tag .unit { font-size: 12px; color: var(--muted); }
.plan-tag.primary {
  border-color: rgba(251, 191, 36, .35);
  background: rgba(251, 191, 36, .09);
  color: var(--gold);
  padding: 4px 11px;
}
.plan-tag.primary .num { font-size: 19px; letter-spacing: .3px; }
.plan-tag.primary .sym { font-size: 13px; margin-right: 1px; }
.plan-tag.primary .unit { color: rgba(251, 191, 36, .85); }
.plan-tag .num.is-text { font-size: 13px; }

/* 目录页头部的价格条：主价更大更醒目 */
.tier-plans { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 14px; }
.tier-plans .plan-tag { padding: 5px 12px; font-size: 13px; }
.tier-plans .plan-tag .unit { font-size: 12.5px; }
.tier-plans .plan-tag.primary { padding: 4px 15px; }
.tier-plans .plan-tag.primary .num { font-size: 27px; }
.tier-plans .plan-tag.primary .sym { font-size: 16px; }
.tier-plans .plan-tag.primary .unit { font-size: 13px; }

/* ---------- 游戏目录页 ---------- */
.tier-head { margin-top: 26px; }
.back-link { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.back-link:hover { color: var(--text); }
/* 档位页顶部「返回主页」醒目按钮 */
.home-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 13px 18px;
  border-radius: 12px;
  font-size: 14.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7c5cff 0%, #4f46e5 60%, #22d3ee 130%);
  box-shadow: 0 6px 20px rgba(124, 92, 255, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.home-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(124, 92, 255, .45);
}
.home-cta .home-cta-arrow { font-weight: 700; transition: transform .15s; }
.home-cta:hover .home-cta-arrow { transform: translateX(-3px); }
@media (max-width: 640px) {
  .home-cta { padding: 11px 14px; font-size: 13.5px; margin-top: 12px; }
}
.tier-title-box {
  margin-top: 12px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(124, 92, 255, .10), transparent), var(--card);
}
.tier-title-box h1 { font-size: 23px; }
.tier-title-box .desc { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tier-title-box .count { margin-top: 10px; font-size: 13.5px; color: var(--accent2); }
.catalog-tools { display: flex; gap: 10px; margin: 20px 0 6px; }
.catalog-tools input {
  flex: 1; min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 11px 16px;
  outline: none;
}
.catalog-tools input:focus { border-color: var(--accent); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.game-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  transition: border-color .15s, background .15s;
  word-break: break-all;
}
.game-item:hover { border-color: #3d4a6b; background: var(--card-hover); }
.game-item .idx { color: #4d5872; font-size: 11px; font-weight: 400; min-width: 21px; }
/* 游戏条目缩略图（名字前的封面小图） */
.game-item .gi-thumb {
  flex: 0 0 auto; width: 36px; height: 17px; display: block;
  object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--bg-soft);
}
.game-item .gi-thumb-empty { border: 1px dashed rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); }
.catalog-empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 46px;
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer .icp-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .5px;
  border-bottom: 1px dashed #3d4a6b;
  padding-bottom: 1px;
}
.footer .icp-link:hover { color: #cdd6f4; border-bottom-color: #cdd6f4; }

/* ---------- 后台管理 ---------- */
.admin-login-wrap { max-width: 380px; margin: 90px auto 0; padding: 0 20px; }
.admin-login {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.admin-login h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.admin-login .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14.5px;
  padding: 10px 13px;
  outline: none;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.admin-tabs { display: flex; gap: 8px; margin: 24px 0 18px; flex-wrap: wrap; }
.admin-tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.admin-tab.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.panel { display: none; }
.panel.active { display: block; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.admin-card h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.admin-card h3 .cnt { font-size: 12.5px; color: var(--muted); font-weight: 400; }
/* 可折叠卡片标题（后台各栏目通用） */
.collapse-toggle { cursor: pointer; user-select: none; }
.collapse-toggle .collapse-arrow { display: inline-block; font-size: 11px; color: var(--muted); transition: transform .18s; }
.collapse-toggle[aria-expanded="true"] .collapse-arrow { transform: rotate(90deg); }
.collapse-toggle .collapse-tip { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 400; opacity: 0; transition: opacity .15s; }
.collapse-toggle:hover .collapse-tip { opacity: 1; }
.collapse-toggle:hover { color: #cdd6f4; }

.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 160px; margin-bottom: 0; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px;
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 10px; border-bottom: 1px solid rgba(36, 45, 64, .5); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .ops { white-space: nowrap; }
.admin-table .ops .btn { margin-right: 6px; }
.admin-table input[type=checkbox] { cursor: pointer; width: 16px; height: 16px; accent-color: var(--accent); }
.t-name { font-weight: 600; }
.t-desc { color: var(--muted); font-size: 13px; }
.t-count { color: var(--accent2); font-weight: 600; }
.t-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.order-btns { display: inline-flex; gap: 4px; }

/* 批量操作工具栏 */
.batch-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 10px;
  background: rgba(124, 92, 255, .06);
  border: 1px dashed var(--border); border-radius: 10px;
  font-size: 13px;
}
.batch-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.batch-info { color: var(--accent2); font-weight: 600; margin-right: auto; }

/* 按关键词删除 */
.filter-preview-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 180px; overflow-y: auto;
  padding: 10px 12px; margin-bottom: 12px;
  background: rgba(255, 77, 109, .05);
  border: 1px solid rgba(255, 77, 109, .25);
  border-radius: 10px; font-size: 13px;
}
.filter-preview-list span {
  background: rgba(255, 77, 109, .12); color: #ff8aa1;
  padding: 3px 10px; border-radius: 12px;
}
.filter-preview-list:empty { display: none; }
.filter-confirm {
  padding: 12px 14px; margin-top: 8px;
  background: rgba(255, 77, 109, .06);
  border: 1px solid rgba(255, 77, 109, .3);
  border-radius: 10px;
}
.filter-confirm input { font-family: inherit; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover:not(:disabled) { background: #ff2d54; border-color: #ff2d54; }
.btn-danger:disabled { background: rgba(255, 77, 109, .25); border-color: rgba(255, 77, 109, .25); color: rgba(255, 255, 255, .5); cursor: not-allowed; }

dialog {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  width: min(420px, 92vw);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(5, 8, 14, .72); backdrop-filter: blur(3px); }
dialog h3 { margin-bottom: 16px; font-size: 16px; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- 公告 / 热门游戏 / 留言 ---------- */
.announcement {
  border: 1px solid rgba(251, 191, 36, .35);
  background: linear-gradient(180deg, rgba(251, 191, 36, .10), rgba(22, 27, 38, .7));
  border-radius: var(--radius);
  padding: 16px 20px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14.5px;
  line-height: 1.85;
  color: #fde6a8;
  margin: 18px 0 0;
  max-height: 420px;
  overflow-y: auto;
}
.announcement::before {
  content: '📢 店主公示';
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}
/* 档位配了闲鱼商品二维码：游戏条目/图库卡片可点击弹出扫码层 */
.qr-clickable .game-item { cursor: pointer; }
.qr-clickable .game-item:hover .gi-name { color: var(--gold); }
.qr-clickable .game-item:hover { border-color: rgba(255, 179, 71, .45); }
.qr-clickable .shot { cursor: pointer; }
.qr-clickable .shot:hover .shot-name { color: var(--gold); }
.qr-clickable .shot:hover .shot-frame { outline: 2px solid rgba(255, 179, 71, .55); outline-offset: -2px; border-radius: inherit; }
/* 预购游戏专区（显示在热门专区上方） */
.preorder-section {
  background: linear-gradient(180deg, rgba(77, 166, 255, .10), rgba(22, 27, 38, .6));
  border: 1px solid rgba(77, 166, 255, .35);
  border-radius: var(--radius);
  padding: 18px 22px 22px;
  margin-top: 20px;
}
.preorder-section h2 {
  font-size: 16px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.preorder-section h2::before {
  content: '🎁';
  font-size: 18px;
}
.preorder-section .hint {
  font-size: 12px;
  color: #8ab8e8;
  background: rgba(77, 166, 255, .08);
  border-left: 2px solid rgba(77, 166, 255, .5);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.preorder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}
.preorder-item {
  background: var(--card);
  border: 1px solid rgba(77, 166, 255, .3);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  word-break: break-all;
}
.preorder-item::before {
  content: '🎁';
  font-size: 12px;
  opacity: .85;
  flex: 0 0 auto;
}

.hot-section {
  background: linear-gradient(180deg, rgba(255, 77, 109, .10), rgba(22, 27, 38, .6));
  border: 1px solid rgba(255, 77, 109, .35);
  border-radius: var(--radius);
  padding: 18px 22px 22px;
  margin-top: 20px;
}
.hot-section h2 {
  font-size: 16px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.hot-section h2::before {
  content: '🔥';
  font-size: 18px;
}
.hot-section .hint { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}
.hot-item {
  background: var(--card);
  border: 1px solid rgba(255, 77, 109, .3);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  word-break: break-all;
}
.hot-empty { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }

/* 留言区（贴吧风格） */
.comment-section {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.comment-section h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.comment-section h2 .cnt { color: var(--muted); font-size: 13px; font-weight: 400; }
.comment-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.comment-form .field { margin: 0; }
.comment-form input { width: 150px; }
.comment-form textarea { flex: 1; min-width: 200px; min-height: 50px; }
.comment-list { border-top: 1px dashed var(--border); padding-top: 16px; }
.comment-empty { color: var(--muted); padding: 20px 0; text-align: center; }
.comment {
  border-left: 2px solid var(--border);
  padding: 10px 0 10px 14px;
  margin-bottom: 4px;
}
.comment .head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
  margin: 0 0 8px;
  background: linear-gradient(90deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .06));
  border: 1px solid rgba(124, 92, 255, .3);
  border-radius: 8px;
  padding: 6px 12px;
}
.comment .head .nick { font-weight: 700; color: #dcd4ff; font-size: 14px; }
.comment .head .floor {
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 6px;
  padding: 2px 9px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(124, 92, 255, .35);
}
.comment[data-depth="1"] > .head { background: linear-gradient(90deg, rgba(34, 211, 238, .2), rgba(34, 211, 238, .04)); border-color: rgba(34, 211, 238, .3); }
.comment[data-depth="1"] > .head .floor { background: linear-gradient(135deg, #22d3ee, #0e9aae); box-shadow: 0 2px 8px rgba(34, 211, 238, .3); }
.comment[data-depth="1"] > .head .nick { color: #b5f0f9; }
.comment .content { font-size: 14.5px; line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.comment .actions { margin-top: 6px; font-size: 12.5px; }
.comment .actions button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0 8px 0 0; font-size: 12.5px; font-family: inherit; }
.comment .actions button:hover { color: var(--accent2); }
.comment-children { margin-left: 22px; margin-top: 6px; border-left: 1px dashed var(--border); padding-left: 8px; }
.comment-reply-form { margin-top: 10px; display: none; }
.comment-reply-form.open { display: flex; gap: 8px; flex-wrap: wrap; }
.comment-reply-form input { width: 130px; }
.comment-reply-form textarea { flex: 1; min-width: 180px; min-height: 44px; }
.comment-reply-form button { align-self: flex-end; }

/* 后台多选热门游戏 */
.hot-pick-list {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--bg-soft);
}
.hot-pick-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(36, 45, 64, .5);
}
.hot-pick-item:last-child { border-bottom: none; }
.hot-pick-item input { accent-color: var(--accent); }
.hot-pick-item .ord { color: var(--muted); font-size: 12px; min-width: 30px; }
.hot-pick-toolbar { display: flex; gap: 8px; margin-bottom: 8px; }

/* ---------- 管理员身份标识 ---------- */
.whoami {
  margin-left: auto;
  margin-right: 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.role-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.role-tag.role-super { color: #ffd166; border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .12); }
.role-tag.role-normal { color: #8ab4ff; border-color: rgba(138, 180, 255, .45); background: rgba(138, 180, 255, .12); }
.role-tag.role-me { color: #6ee7b7; border-color: rgba(110, 231, 183, .45); background: rgba(110, 231, 183, .12); }
.state-on { color: #6ee7b7; font-size: 12.5px; }
.state-off { color: var(--muted); font-size: 12.5px; text-decoration: line-through; }
/* 隐藏的标签按钮（普通管理员看不到「管理员管理」） */
.admin-tab[hidden] { display: none !important; }

/* ---------- 后台访问统计 ---------- */.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-card .stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.stat-chart-box { margin-top: 18px; }
.stat-chart-head { font-size: 13.5px; color: var(--text); font-weight: 600; margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.stat-chart-head .muted { font-weight: 400; font-size: 11.5px; }
.stat-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 150px;
  padding: 8px 10px 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.stat-bar-item {
  flex: 1 1 0; min-width: 12px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  position: relative;
  padding-bottom: 18px;
  cursor: default;
}
.stat-bar-pv {
  width: 100%; background: rgba(255, 77, 109, .28);
  border-radius: 4px 4px 0 0;
  position: absolute; bottom: 18px; left: 0;
}
.stat-bar-uv {
  width: 58%; background: linear-gradient(180deg, #ff5c7c, #ff2d55);
  border-radius: 3px 3px 0 0;
  position: absolute; bottom: 18px;
  display: flex; justify-content: center;
}
.stat-bar-uv span { font-size: 9.5px; color: #fff; transform: translateY(-13px); }
.stat-bar-date { position: absolute; bottom: 0; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.stat-bar-item:hover .stat-bar-pv { background: rgba(255, 77, 109, .45); }

.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.stat-col h4 { font-size: 13.5px; margin: 0 0 10px; color: var(--text); }
.stat-rank { display: flex; flex-direction: column; gap: 6px; }
.stat-rank-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.stat-rank-no { color: var(--muted); min-width: 16px; font-size: 11.5px; }
.stat-rank-name {
  flex: 0 1 auto; max-width: 58%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat-rank-bar { flex: 1 1 auto; height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; min-width: 30px; }
.stat-rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f7cff, #7aa2ff); border-radius: 3px; }
.stat-rank-count { color: var(--muted); font-size: 12px; min-width: 32px; text-align: right; }

.dialog-textarea {
  width: 100%; min-height: 130px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14.5px;
  padding: 10px 13px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 999;
  box-shadow: var(--shadow);
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52, 211, 153, .5); }
.toast.err { border-color: rgba(255, 77, 109, .55); }

.loading { color: var(--muted); text-align: center; padding: 30px 0; }
.muted { color: var(--muted); }

/* ---------- 悬浮快捷导航（回到顶部 / 直达留言区） ---------- */
.float-nav {
  position: fixed;
  right: 18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}
.float-btn {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(22, 27, 38, .92);
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38);
  transition: transform .15s, border-color .15s, background .15s, opacity .2s;
}
.float-btn:hover { border-color: var(--accent); background: var(--card-hover); transform: translateY(-2px); }
.float-btn:active { transform: translateY(0); }
.float-btn.hidden { opacity: 0; pointer-events: none; }

/* ---------- 列表头部 / 分批加载 ---------- */
.list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 26px 0 4px; flex-wrap: wrap;
}
.list-head h2 { font-size: 17px; }
.list-head h2 .cnt { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.sort-note { font-size: 12px; color: var(--muted); font-weight: 400; }
.shown-count { font-size: 12px; color: var(--muted); }
.load-more-wrap { text-align: center; margin: 18px 0 6px; }
.load-more-wrap .btn { padding: 9px 26px; }
.game-item.game-flash {
  animation: gameFlash 1s ease-in-out 3;
  border-color: var(--accent);
}
@keyframes gameFlash {
  0%, 100% { background: var(--card); box-shadow: none; }
  50% { background: rgba(77, 166, 255, .22); box-shadow: 0 0 0 2px rgba(77, 166, 255, .55); }
}

/* ---------- 常见问题 ---------- */
.faq-section {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.faq-section h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.faq-section h2 .cnt { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.faq-item summary {
  cursor: pointer; padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: 'Q'; color: var(--accent); font-weight: 700; }
.faq-item[open] summary { border-bottom: 1px dashed var(--border); }
.faq-a { padding: 12px 14px; font-size: 13px; line-height: 1.8; color: #c8d2e8; white-space: pre-wrap; }

/* 搜索提示 / 别名提示 */
.search-tip { font-size: 12px; color: var(--muted); margin-top: 8px; }
.search-tip b { color: #9fb3d9; }
.sr-alias-tip { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* 后台标签未读角标 */
.tab-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  margin-left: 5px; border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px;
}

/* 后台 FAQ 编辑器 */
.faq-edit-list { display: flex; flex-direction: column; gap: 10px; }
.faq-edit-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .02);
}
.faq-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.faq-edit-no {
  flex: 0 0 auto; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; background: var(--card-hover); color: var(--muted); font-size: 11.5px;
}
.faq-edit-head .faq-q { flex: 1; }
.faq-edit-row .faq-a { min-height: 62px; font-size: 13px; }

/* ---------- 手机端适配 ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  /* 手机首屏压缩：让「游戏库档位」和价格提前进入第一屏 */
  .hero { margin-top: 10px; padding: 16px 14px 16px; }
  .hero h1 { font-size: 23px; letter-spacing: 4px; }
  .hero .sub { font-size: 12px; margin-top: 5px; }
  .search-box { margin-top: 12px; flex-direction: column; gap: 8px; }
  .search-box input { padding: 10px 12px; font-size: 13.5px; }
  .search-box .btn-primary { width: 100%; padding: 10px 14px; font-size: 14px; }
  .search-tip { font-size: 11px; margin-top: 8px; }
  .buy-cta { margin-top: 12px; gap: 8px; }
  .buy-btn { padding: 10px 16px; font-size: 14px; }
  .buy-note { font-size: 11.5px; margin-top: 6px; }
  .section { margin-top: 16px; }
  .section-title { font-size: 16px; }
  /* 实时热度：手机上单栏排列 */
  .heat-card { padding: 14px 13px 12px; }
  .heat-grid { grid-template-columns: 1fr; gap: 16px; }
  .heat-head { gap: 6px; }
  .heat-range { display: none; }
  .heat-toggle { padding: 4px 10px; font-size: 12px; }
  .rank-row .name { flex-basis: 92px; font-size: 13px; }
  .heat-chip { font-size: 12.5px; padding: 5px 11px; }
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier-card { padding: 18px; }
  .tier-card h3 { font-size: 16.5px; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .game-item { font-size: 12px; padding: 7px 9px; flex-direction: row; align-items: center; gap: 5px; border-radius: 6px; }
  .game-item .gi-thumb { width: 28px; height: 13px; }
  .game-item .idx { display: none; }
  /* 列表模式（问题列表等）手机上仍显示序号 */
  .game-grid.rows .game-item.row-item { display: block; padding-left: 40px; }
  .game-grid.rows .game-item.row-item .idx { display: block; font-size: 14px; left: 11px; }
  .catalog-tools { margin-top: 16px; }
  .tier-title-box { padding: 18px; }
  .tier-title-box h1 { font-size: 19px; }
  .topbar-inner { height: 52px; gap: 8px; }
  .logo { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; }
  .logo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 手机上顶栏只留 logo，三个入口按钮显示在 hero 区（更大更好点） */
  .topbar-right { display: none; }
  .hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .hero-links .tb-link { font-size: 13px; padding: 7px 14px; }
  /* 后台表格在小屏横向滚动 */
  .admin-card { padding: 16px 14px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { padding: 9px 8px; }
  .admin-login-wrap { margin-top: 50px; }
  /* 公告/热门/留言 */
  .announcement { font-size: 12.5px; padding: 11px 13px; line-height: 1.6; }
  .hot-section { padding: 16px 16px 18px; }
  .hot-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .hot-item { font-size: 12px; padding: 7px 9px; border-radius: 6px; }
  .preorder-section { padding: 16px 16px 18px; }
  .preorder-section .hint { font-size: 11.5px; padding: 6px 9px; }
  .preorder-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .preorder-item { font-size: 12px; padding: 7px 9px; border-radius: 6px; }
  .list-head { margin-top: 20px; }
  .list-head h2 { font-size: 15.5px; }
  .shown-count { font-size: 11px; }
  .faq-section { padding: 18px 16px; }
  .faq-item summary { padding: 11px 12px; font-size: 13px; }
  .comment-section { padding: 18px 16px; }
  .comment-form input { width: 100%; }
  .comment-form textarea { width: 100%; }
  .comment-children { margin-left: 10px; }
  .comment-reply-form input { width: 100%; }
  .comment-reply-form textarea { width: 100%; }
  .comment .head { font-size: 11.5px; padding: 5px 9px; gap: 6px; }
  .comment .head .nick { font-size: 13px; }
  .comment .head .floor { font-size: 11px; padding: 2px 7px; }
  .comment .content { font-size: 13.5px; }
  /* 悬浮快捷导航 */
  .float-nav { right: 12px; bottom: 16px; gap: 8px; }
  .float-btn { width: 42px; height: 42px; font-size: 17px; }
  /* 后台折叠卡片：手机端常显提示 */
  .collapse-toggle .collapse-tip { opacity: 1; font-size: 11px; }
  /* 访问统计 */
  .stat-cols { grid-template-columns: 1fr; gap: 14px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 10px 11px; }
  .stat-card .stat-value { font-size: 20px; }
  .stat-chart { height: 120px; gap: 3px; padding: 8px 6px 0; }
  .stat-bar-date { font-size: 8px; }
}
@media (max-width: 400px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* ---------- 后台 · 价格独立展示 / 定价弹窗 ---------- */
.admin-table .t-price { min-width: 150px; }
.price-chip {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 2px 7px; margin: 1px 3px 1px 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-soft);
  font-size: 12.5px; font-weight: 600; color: var(--gold);
  white-space: nowrap;
}
.price-chip em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.price-chip em::before { content: '/'; margin-right: 1px; opacity: .5; }
#priceDlg { width: min(520px, 94vw); }
.price-dlg-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: -8px 0 14px; }
.price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.price-row input {
  flex: 1; min-width: 0;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: inherit; padding: 8px 11px; outline: none;
}
.price-row input:focus { border-color: var(--accent); }
.price-row input.pr-price { flex: 0 0 110px; }
.price-row .pr-main { flex: 0 0 auto; min-width: 34px; font-size: 11px; color: var(--gold); text-align: center; }
.price-row .pr-del { flex: 0 0 auto; }
@media (max-width: 640px) {
  .tier-card .plan-row { gap: 5px; margin: 8px 0 6px; }
  .tier-card .plan-tag { font-size: 11.5px; padding: 2px 7px; }
  .tier-card .plan-tag.primary .num { font-size: 18px; }
  .tier-plans { gap: 7px; margin-top: 11px; }
  .tier-plans .plan-tag.primary .num { font-size: 23px; }
  .price-row { gap: 6px; }
  .price-row input.pr-price { flex: 0 0 86px; }
  .price-row .pr-main { display: none; }
}

/* ---------- 闲鱼购买入口（仅首页大按钮 / 页脚小链接 / 搜不到游戏时的提示） ---------- */
.buy-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px; margin-top: 16px;
}
.buy-cta[hidden] { display: none; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px;
  font-size: 16px; font-weight: 700; letter-spacing: .3px;
  color: #2b1d00;
  background: linear-gradient(135deg, #ffd977 0%, #ffb62e 55%, #ff9f00 100%);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 176, 32, .26), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.buy-btn:hover {
  color: #2b1d00;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 176, 32, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
  filter: brightness(1.03);
}
.buy-btn:active { transform: translateY(0); }
.buy-note { font-size: 12.5px; color: var(--muted); }
.buy-note b { color: var(--gold); }
.footer .foot-sep { color: #3a4459; margin: 0 7px; }
.footer .foot-buy { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px dashed transparent; }
.footer .foot-buy[hidden], .footer .foot-sep[hidden] { display: none; }
.footer .foot-buy:hover { color: var(--gold); border-bottom-color: var(--gold); }
.empty-buy { margin-top: 10px; font-size: 13.5px; }
.empty-buy a { color: var(--gold); font-weight: 600; }
.empty-buy a:hover { text-decoration: underline; }

/* 空态：其他目录有此游戏的提示（含价格，防止拍错档位产生纠纷） */
.cross-hint {
  margin: 16px auto 4px; max-width: 560px; text-align: left;
  border: 1px dashed rgba(251, 191, 36, .45); border-radius: 10px;
  background: rgba(251, 191, 36, .07);
  padding: 12px 14px; font-size: 13px; color: var(--text);
}
.cross-hint[hidden] { display: none; }
.cross-hint .cross-title { font-size: 13.5px; margin-bottom: 8px; }
.cross-hint .cross-title b { color: var(--gold); }
.cross-hint .cross-item { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.cross-hint .cross-tier { color: var(--accent2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cross-hint .cross-tier:hover { text-decoration: underline; }
.cross-hint .cross-price { color: var(--gold); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.cross-hint .cross-names { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .buy-cta { flex-direction: column; gap: 9px; margin-top: 14px; }
  .buy-btn { width: 100%; padding: 12px 20px; font-size: 15.5px; }
}

/* ---------- 闲鱼「扫码下单」弹层 ---------- */
.buy-btn { cursor: pointer; }
.qr-mask {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 14, .78);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.qr-mask[hidden] { display: none; }
.qr-modal {
  position: relative;
  width: min(340px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: qr-pop .18s ease;
}
@keyframes qr-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-head { font-weight: 700; font-size: 16px; color: var(--gold); margin-bottom: 14px; }
.qr-img { width: 224px; height: 224px; max-width: 70vw; max-height: 70vw; background: #fff; border-radius: 12px; display: block; margin: 0 auto; }
.qr-tips { font-size: 13.5px; margin-top: 14px; line-height: 1.8; }
.qr-tips span { color: var(--muted); font-size: 12.5px; }
.qr-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.qr-close:hover { color: var(--text); }
@media (max-width: 640px) {
  .qr-modal { padding: 18px 16px 20px; }
  .qr-img { width: 200px; height: 200px; }
}

/* ---------- 弹层双码并排（商品码 + 店铺码） ---------- */
.qr-list { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.qr-list.two { gap: 14px; }
.qr-list .qr-cell { flex: 0 1 auto; min-width: 0; }
.qr-list.two .qr-img { width: 158px; height: 158px; max-width: 38vw; max-height: 38vw; }
.qr-list.two .qr-cell { flex: 1 1 0; max-width: 170px; }
.qr-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.qr-list.two .qr-label { color: var(--text); font-weight: 600; font-size: 12px; }
@media (max-width: 380px) {
  .qr-list.two { gap: 10px; }
  .qr-list.two .qr-img { width: 46vw; height: 46vw; }
}

/* ---------- 档位「列表模式」：一行一条全宽（公告/FAQ 类长文本目录） ---------- */
.game-grid.rows { display: block; }
.game-grid.rows .game-item.row-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 12px 15px 12px 46px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: default;
  color: var(--text);
}
/* 列表模式序号：独立定位，字号更大，长文本换行时自动缩进对齐 */
.game-grid.rows .game-item.row-item .idx {
  position: absolute;
  left: 14px;
  top: 11px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
  color: var(--accent2);
  letter-spacing: .2px;
}
.game-grid.rows .game-item.row-item:hover { background: var(--card); border-color: #3d4a6b; }

/* ---------- 单行版式：一行一条（保留缩略图/序号/筛选/上新，游戏类目录用） ---------- */
.game-grid.rows-lite { display: block; }
.game-grid.rows-lite .game-item {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 16px;
}
.game-grid.rows-lite .game-item .gi-name { flex: 1; min-width: 0; }
.game-grid.rows-lite .game-item .gi-thumb { width: 46px; height: 21px; border-radius: 4px; }
@media (max-width: 640px) {
  .game-grid.rows .game-item.row-item { padding: 10px 12px; font-size: 12.5px; margin-bottom: 7px; }
}

/* ---------- 闲鱼双入口：下单按钮 + 进店按钮（各自弹各自二维码） ---------- */
.buy-cta .buy-note { flex: 1 0 100%; text-align: center; }
.buy-btn.buy-btn-ghost {
  color: #fff;
  background: linear-gradient(135deg, #8f6bff 0%, #7c5cff 55%, #5e3ff0 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 22px rgba(124, 92, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.buy-btn.buy-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, #9d7bff 0%, #8a6bff 55%, #6c4cf7 100%);
  box-shadow: 0 12px 28px rgba(124, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .32);
  transform: translateY(-2px);
}
.footer .foot-buy + .foot-buy { margin-left: 8px; }
@media (max-width: 640px) {
  .buy-cta .buy-btn { width: 100%; }
  .buy-btn.buy-btn-ghost { padding: 11px 20px; font-size: 15px; }
}

/* ==================== 游戏画面预览（图库入口条 / 预览页 / 灯箱） ==================== */
/* --- 档位页顶部入口条（醒目版：金色发光 + 呼吸光晕 + 扫光） --- */
.gallery-entry {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  margin-top: 14px; padding: 15px 20px;
  border: 2px solid rgba(251, 191, 36, .6); border-radius: 14px;
  background: linear-gradient(115deg, rgba(124, 92, 255, .3) 0%, rgba(34, 211, 238, .13) 55%, rgba(251, 191, 36, .18) 100%), var(--card);
  animation: ge-glow 2.6s ease-in-out infinite;
  transition: transform .18s;
}
@keyframes ge-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(251, 191, 36, .18), 0 10px 26px rgba(0, 0, 0, .3); }
  50% { box-shadow: 0 0 30px rgba(251, 191, 36, .45), 0 10px 26px rgba(0, 0, 0, .3); }
}
.gallery-entry::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg); animation: ge-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ge-shine { 0% { left: -80%; } 55% { left: 140%; } 100% { left: 140%; } }
.gallery-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(253, 224, 71, .85);
}
.gallery-entry .ge-strip { display: flex; gap: 5px; flex: 0 0 auto; }
.gallery-entry .ge-strip img {
  width: 62px; height: 29px; object-fit: cover; border-radius: 5px;
  border: 1px solid rgba(251, 191, 36, .35); background: var(--bg-soft);
}
.gallery-entry .ge-text { display: block; min-width: 0; flex: 1; }
.gallery-entry .ge-title { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gallery-entry .ge-title b {
  background: linear-gradient(92deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gallery-entry .ge-flame { font-size: 19px; animation: ge-flame 1.5s ease-in-out infinite; }
@keyframes ge-flame { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22) rotate(-6deg); } }
.gallery-entry .ge-hot {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  border-radius: 999px; padding: 2px 9px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, .4);
  animation: ge-hot-pulse 1.8s ease-in-out infinite;
}
@keyframes ge-hot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.gallery-entry .ge-title .ge-num { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .28); border-radius: 999px; padding: 1px 8px; }
.gallery-entry .ge-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.gallery-entry .ge-go {
  position: relative; z-index: 1;
  flex: 0 0 auto; font-size: 14px; color: #fff; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 999px; padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, .45);
}
.gallery-entry:hover .ge-go { text-decoration: none; filter: brightness(1.1); }

/* --- 预览页骨架 --- */
.gallery-main { padding-top: 24px; padding-bottom: 56px; }
.gallery-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.gallery-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 2.4px; font-weight: 700;
  color: var(--accent2); opacity: .85; margin-bottom: 4px;
}
.gallery-title h1 { font-size: 27px; letter-spacing: -.3px; }
.gallery-meta { margin-top: 7px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gallery-meta .gallery-tier { color: var(--text); font-weight: 600; }
.gallery-meta .dot { opacity: .5; }
.gallery-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.gallery-search input {
  width: 260px; max-width: 100%;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; padding: 10px 14px; outline: none;
  transition: border-color .15s;
}
.gallery-search input:focus { border-color: var(--accent); }

/* --- 图片网格 --- */
.shot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px; margin-top: 22px;
}
.shot {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--card);
}
.shot-frame {
  position: relative; aspect-ratio: 460 / 215; overflow: hidden;
  background: linear-gradient(110deg, #131926 25%, #1c2434 37%, #131926 63%);
  background-size: 400% 100%; animation: shot-shimmer 1.5s ease-in-out infinite;
}
@keyframes shot-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.shot-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease; }
.shot-img.is-loaded { opacity: 1; }
.shot-name {
  padding: 9px 12px 10px; font-size: 12.5px; color: var(--muted);
  white-space: normal; overflow: visible; word-break: break-word; line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.shot-frame.is-broken { animation: none; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.shot-broken { font-size: 12px; color: var(--muted); }

/* --- 加载 / 空态 --- */
.gallery-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 70px 0; color: var(--muted); font-size: 14px; }
.gallery-loading[hidden] { display: none; }
.gl-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: gl-spin .8s linear infinite; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
.gallery-empty { text-align: center; padding: 70px 20px; }
.gallery-empty .ge-icon { font-size: 40px; opacity: .55; }
.gallery-empty .ge-title { font-size: 16px; font-weight: 600; margin-top: 12px; }
.gallery-empty .ge-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.gallery-empty .btn { margin-top: 18px; }

@media (max-width: 640px) {
  .gallery-entry { flex-wrap: wrap; gap: 10px 12px; padding: 13px 15px; }
  .gallery-entry .ge-text { flex: 1 1 100%; order: -1; }
  .gallery-entry .ge-title { font-size: 16px; flex-wrap: nowrap; white-space: nowrap; }
  .gallery-entry .ge-flame { font-size: 17px; }
  .gallery-entry .ge-hot { display: inline-block; font-size: 10.5px; padding: 2px 8px; margin-left: auto; }
  .gallery-entry .ge-strip { flex: 1 1 auto; overflow: hidden; }
  .gallery-entry .ge-strip img { width: 52px; height: 25px; }
  .gallery-entry .ge-go { font-size: 13px; padding: 9px 16px; }
  .gallery-main { padding-top: 16px; }
  .gallery-title h1 { font-size: 21px; }
  .gallery-search input { width: 100%; }
  .gallery-head-row { gap: 12px; }
  .shot-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
  .shot-name { font-size: 11.5px; padding: 7px 9px 8px; }
}

/* --- 后台：游戏缩略图 / 图片设置弹窗 --- */
.admin-table .g-thumb { width: 58px; height: 27px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-soft); display: block; }
.admin-table .g-thumb-empty { width: 58px; height: 27px; border: 1px dashed var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
#imgDlg { width: min(560px, 94vw); }
.img-dlg-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: -6px 0 14px; }
.img-preview {
  margin-top: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); padding: 10px; display: flex; align-items: center; justify-content: center;
  min-height: 120px;
}
.img-preview img { max-width: 100%; max-height: 190px; border-radius: 6px; display: block; }
.img-preview .ip-empty { font-size: 12.5px; color: var(--muted); }
.img-preview .ip-broken { font-size: 12.5px; color: var(--red); }
.img-share-hint { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.img-share-hint.on { color: var(--gold, #c79a3f); }
.img-share-hint b { font-weight: 600; }
