/* ============================================================
   游戏平台原型 · 设计系统
   深色电竞风 / 无外部依赖 / 响应式
   ============================================================ */
:root {
  --bg: #080a0f;
  --bg-2: #0c1017;
  --panel: #11161f;
  --panel-2: #161d28;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e9eef8;
  --muted: #8e9bb0;
  --muted-2: #64708a;
  --brand: #7b5cff;
  --brand-2: #a78bfa;
  --cyan: #22d3ee;
  --gold: #ffc857;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .9);
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(123, 92, 255, .16), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(34, 211, 238, .10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul { list-style: none; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 10, 15, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid; place-items: center; font-size: 16px; font-weight: 900; color: #06070b;
  box-shadow: 0 6px 20px -6px rgba(123, 92, 255, .8);
}
.logo small { display: block; font-size: 10px; color: var(--muted-2); font-weight: 500; letter-spacing: 2px; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  padding: 8px 14px; border-radius: 9px; color: var(--muted);
  font-weight: 500; transition: .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); background: rgba(123, 92, 255, .16); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .35); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; width: 220px; transition: .18s;
}
.search:focus-within { border-color: rgba(123, 92, 255, .6); box-shadow: 0 0 0 3px rgba(123, 92, 255, .15); }
.search input { background: none; border: 0; outline: 0; color: var(--text); width: 100%; }
.search input::placeholder { color: var(--muted-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; transition: .18s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5b3df5);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(123, 92, 255, .9);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(123, 92, 255, 1); }
.btn-gold { background: linear-gradient(135deg, #ffd479, #f5a623); color: #201400; box-shadow: 0 10px 24px -12px rgba(245, 166, 35, .9); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }

.banner {
  position: relative; overflow: hidden; border-radius: 20px;
  min-height: 340px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 75% 15%, rgba(123, 92, 255, .45), transparent 60%),
    radial-gradient(500px 260px at 20% 90%, rgba(34, 211, 238, .25), transparent 60%),
    linear-gradient(135deg, #171d2b, #0b0e15);
  padding: 36px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow);
}
.banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .02), 0 0 0 90px rgba(255, 255, 255, .015);
}
.banner-kicker {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-bottom: 14px;
  padding: 5px 12px; border: 1px solid rgba(255, 200, 87, .35); border-radius: 99px;
  background: rgba(255, 200, 87, .08);
}
.banner h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; font-weight: 900; letter-spacing: .5px; margin-bottom: 12px; }
.banner h1 em { font-style: normal; background: linear-gradient(120deg, var(--gold), #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner p { color: #b9c4d6; max-width: 520px; margin-bottom: 22px; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-dots { display: flex; gap: 8px; margin-top: 26px; }
.banner-dots i { width: 22px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); transition: .3s; }
.banner-dots i.on { background: var(--gold); width: 34px; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.side-card {
  border-radius: 20px; border: 1px solid var(--line); overflow: hidden; position: relative;
  background: linear-gradient(140deg, #1a2130, #0d1118);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  transition: .25s;
}
.side-card:hover { border-color: rgba(123, 92, 255, .45); transform: translateY(-2px); }
.side-card .tag { align-self: flex-start; }
.side-card h3 { font-size: 19px; font-weight: 800; margin: 12px 0 6px; }
.side-card p { color: var(--muted); font-size: 13px; }
.side-card .glow { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, .35), transparent 65%); }

/* ---------- 区块标题 ---------- */
.section { padding: 40px 0 6px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: .4px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(var(--brand), var(--cyan)); }
.section-sub { color: var(--muted-2); font-size: 13px; margin-left: 2px; }
.section-more { margin-left: auto; color: var(--muted); font-size: 13px; }
.section-more:hover { color: var(--brand-2); }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat i { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; background: rgba(123, 92, 255, .14); color: var(--brand-2); }
.stat.gold b { color: var(--gold); }
.stat.gold i { background: rgba(255, 200, 87, .12); color: var(--gold); }
.stat.cyan b { color: var(--cyan); }
.stat.cyan i { background: rgba(34, 211, 238, .12); color: var(--cyan); }
.stat.ok b { color: var(--ok); }
.stat.ok i { background: rgba(52, 211, 153, .12); color: var(--ok); }

/* ---------- 游戏卡片 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .22s; position: relative; display: block;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .5); box-shadow: 0 20px 40px -24px rgba(123, 92, 255, .8); }
.game-cover {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  display: grid; place-items: center; font-size: 40px; font-weight: 900; color: rgba(255, 255, 255, .92);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 10, 15, .92)); }
.cover-1 { background: linear-gradient(150deg, #5b3df5, #1b1140 70%); }
.cover-2 { background: linear-gradient(150deg, #b91c1c, #2a0a0a 70%); }
.cover-3 { background: linear-gradient(150deg, #0e7490, #062a33 70%); }
.cover-4 { background: linear-gradient(150deg, #a16207, #2a1a04 70%); }
.cover-5 { background: linear-gradient(150deg, #4d7c0f, #16210a 70%); }
.cover-6 { background: linear-gradient(150deg, #7e22ce, #22062f 70%); }
.cover-7 { background: linear-gradient(150deg, #1d4ed8, #0a1533 70%); }
.cover-8 { background: linear-gradient(150deg, #be123c, #2b0710 70%); }
.cover-9 { background: linear-gradient(150deg, #0f766e, #04211e 70%); }
.cover-10 { background: linear-gradient(150deg, #c2410c, #2a1004 70%); }
.game-meta { padding: 12px 14px 14px; position: relative; z-index: 2; margin-top: -54px; }
.game-meta h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.game-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 14px; color: var(--muted-2); font-size: 12px; }
.game-foot .code { font-family: ui-monospace, Consolas, monospace; color: var(--cyan); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  background: rgba(123, 92, 255, .14); color: var(--brand-2); border: 1px solid rgba(123, 92, 255, .25);
}
.tag.gold { background: rgba(255, 200, 87, .12); color: var(--gold); border-color: rgba(255, 200, 87, .28); }
.tag.cyan { background: rgba(34, 211, 238, .12); color: var(--cyan); border-color: rgba(34, 211, 238, .28); }
.tag.ok { background: rgba(52, 211, 153, .12); color: var(--ok); border-color: rgba(52, 211, 153, .28); }
.tag.gray { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line-2); }
.tag.danger { background: rgba(248, 113, 113, .12); color: var(--danger); border-color: rgba(248, 113, 113, .28); }

/* ---------- 面板/表格 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 15.5px; font-weight: 700; }
.panel-body { padding: 18px 20px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 14px; color: var(--muted-2); font-weight: 600; font-size: 12px;
  letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; color: var(--cyan); font-size: 12.5px; }

/* ---------- 表单 ---------- */
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); outline: none; transition: .18s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(123, 92, 255, .65); box-shadow: 0 0 0 3px rgba(123, 92, 255, .14); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ---------- 筛选条 ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.chip {
  height: 34px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line-2);
  color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; transition: .18s;
}
.chip:hover { color: var(--text); border-color: rgba(123, 92, 255, .4); }
.chip.on { background: rgba(123, 92, 255, .16); border-color: rgba(123, 92, 255, .5); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted-2); font-size: 12.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.footer a:hover { color: var(--brand-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 详情页 ---------- */
.detail-head { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 28px; }
.detail-cover {
  border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 68px; font-weight: 900; color: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.detail-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-title h1 { font-size: 30px; font-weight: 900; letter-spacing: .5px; }
.detail-desc { color: #b4c0d3; margin: 14px 0 20px; max-width: 720px; }
.dl-list { display: grid; gap: 12px; margin-top: 8px; }
.dl-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px; transition: .18s;
}
.dl-item:hover { border-color: rgba(123, 92, 255, .45); }
.dl-item .code-badge {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
  color: #06070b; background: linear-gradient(135deg, var(--gold), #f5a623);
  padding: 6px 12px; border-radius: 8px; letter-spacing: 1px;
}
.dl-item .dl-info { display: flex; flex-direction: column; gap: 2px; }
.dl-item .dl-info b { font-size: 14px; }
.dl-item .dl-info span { font-size: 12px; color: var(--muted-2); }
.dl-item .dl-actions { margin-left: auto; display: flex; gap: 8px; }
.copybox {
  display: flex; align-items: center; gap: 10px; background: var(--bg-2);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; margin-top: 14px;
}
.copybox code { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 弹层/提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #1b2434; border: 1px solid rgba(123, 92, 255, .45); color: #fff;
  padding: 11px 20px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 99; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 后台布局 ---------- */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .logo { padding: 4px 8px 20px; }
.side-group { margin-bottom: 18px; }
.side-group > span { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted-2); padding: 0 10px 8px; font-weight: 700; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: var(--muted); font-size: 13.5px; transition: .15s; margin-bottom: 5px;
}
.side-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-link.on { background: rgba(123, 92, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .3); }
.side-link i { width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; font-size: 13px; opacity: .85; }
.admin-main { padding: 0; }
.admin-top {
  height: 62px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 26px; gap: 16px; position: sticky; top: 0; background: rgba(8, 10, 15, .82);
  backdrop-filter: blur(12px); z-index: 20;
}
.admin-top h1 { font-size: 17px; font-weight: 800; }
.crumb { color: var(--muted-2); font-size: 12.5px; }
.admin-body { padding: 24px 26px 60px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 10px 16px; color: var(--muted); font-size: 13.5px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.on { color: #fff; border-bottom-color: var(--brand); }

/* ---------- 进度/进度条 ---------- */
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }

/* ---------- SEO 文章页 ---------- */
.article-wrap { max-width: 860px; margin: 30px auto 0; }
.seo-page { background: #fff; color: #1b2430; border-radius: 16px; padding: 46px 52px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.seo-page h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; color: #101827; }
.seo-page .seo-meta { color: #64748b; font-size: 13px; margin-bottom: 22px; }
.seo-page h2 { font-size: 20px; margin: 26px 0 10px; color: #111827; padding-left: 10px; border-left: 4px solid #7b5cff; }
.seo-page p { color: #334155; font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.seo-page ul { list-style: disc; padding-left: 22px; color: #334155; font-size: 15px; line-height: 1.9; }
.seo-page .seo-cta {
  display: flex; align-items: center; gap: 14px; margin: 26px 0;
  background: linear-gradient(120deg, #f5f3ff, #eef2ff); border: 1px solid #ddd6fe;
  border-radius: 12px; padding: 16px 20px;
}
.seo-page .seo-cta b { color: #4c1d95; }
.seo-page .seo-cta a { margin-left: auto; background: #6d28d9; color: #fff; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.seo-page .seo-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.seo-page .seo-tags a { font-size: 13px; color: #6d28d9; background: #f5f3ff; padding: 5px 11px; border-radius: 99px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 860px) {
  .nav, .search { display: none; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .stats, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-head { grid-template-columns: 1fr; }
  .detail-cover { max-width: 260px; aspect-ratio: 3/4; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .seo-page { padding: 26px 20px; }
  .seo-page h1 { font-size: 23px; }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { min-height: 280px; padding: 24px; }
  .hero-side { grid-template-columns: 1fr; }
}

/* ============ 后台/表单补充（平台实际使用） ============ */
.table-wrap { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.flash { padding: 11px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.flash.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: #6ee7b7; }
.flash.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; padding: 0 10px; }
.pager a:hover { color: #fff; border-color: rgba(123,92,255,.5); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.thumb { width: 46px; height: 60px; border-radius: 8px; object-fit: cover; background: linear-gradient(150deg,#2a2350,#12101f); display: grid; place-items: center; font-weight: 800; color: #cfc8ff; }
.btn-danger { background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.btn-danger:hover { background: rgba(248,113,113,.22); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 20px; margin-bottom: 6px; }
.login-card p { color: var(--muted-2); font-size: 12.5px; margin-bottom: 22px; }
.empty { text-align: center; padding: 40px; color: var(--muted-2); }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; color: var(--cyan); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ 主题切换器 ============ */
.theme-switch { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; gap: 4px; background: rgba(12,16,23,.82); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.theme-switch a { padding: 6px 12px; border-radius: 99px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.theme-switch a:hover { color: #fff; }
.theme-switch a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
@media (max-width: 560px) { .theme-switch { right: 10px; bottom: 10px; } }

/* ============ 手机端后台：汉堡菜单 + 抽屉 ============ */
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); align-items: center; justify-content: center; margin-right: 12px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.menu-btn span::before { position: absolute; top: -5px; }
.menu-btn span::after { position: absolute; top: 5px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .sidebar {
    display: block !important;
    position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 95;
    transform: translateX(-100%); transition: transform .22s ease; height: 100vh;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 94; }
  .sidebar-mask.show { display: block; }
  .admin-top { padding: 0 14px; gap: 8px; }
  .admin-top h1 { font-size: 15px; }
  .crumb { display: none; }
  .admin-body { padding: 16px 14px 60px; }
  .admin-grid { grid-template-columns: repeat(2,1fr) !important; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 720px; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-top .btn { padding: 0 10px; }
  .toolbar, .filterbar { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ============ 客服浮窗 ============ */
.kefu-float { position: fixed; right: 18px; bottom: 76px; z-index: 85; }
.kefu-btn { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(123,92,255,.9); }
.kefu-panel { display: none; position: absolute; right: 0; bottom: 64px; width: 180px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.kefu-panel.show { display: block; }
@media (max-width: 560px) { .kefu-float { bottom: 70px; right: 12px; } }

/* ============ 系统切换（三大系统） ============ */
.sys-switch { display: flex; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-left: 14px; }
.sys-switch a { padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sys-switch a:hover { color: var(--text); }
.sys-switch a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
@media (max-width: 860px) { .sys-switch { display: none; } }

/* ============ H5 三端 ============ */
.h5-body { padding-bottom: 70px; }
.h5-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(8,10,15,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.h5-main { padding: 14px; max-width: 720px; margin: 0 auto; }
.h5-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: rgba(10,13,19,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
.h5-tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; color: var(--muted); font-size: 11.5px; }
.h5-tabbar a i { display: block; font-size: 17px; font-style: normal; margin-bottom: 2px; }
.h5-tabbar a.on { color: var(--brand-2); }
.h5-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.h5-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.h5-card b { display: block; font-size: 22px; font-weight: 800; }
.h5-card span { color: var(--muted); font-size: 12px; }
.h5-list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.h5-list a, .h5-list div.row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px; }
.h5-list a:last-child, .h5-list div.row:last-child { border-bottom: 0; }
.h5-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

/* ============ 在线客服聊天 ============ */
.chat-float { position: fixed; left: 18px; bottom: 76px; z-index: 86; }
.chat-btn { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, #2bb4ff, #22c98a); box-shadow: 0 10px 24px -10px rgba(43,180,255,.8); }
.chat-panel { display: none; position: absolute; left: 0; bottom: 54px; width: 320px; max-width: calc(100vw - 36px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.chat-panel.show { display: block; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 13.5px; }
.chat-body { height: 260px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.15); }
.chat-msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.55; word-break: break-word; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,.07); color: var(--text); }
.chat-msg.admin { align-self: flex-start; background: rgba(34,201,138,.14); border: 1px solid rgba(34,201,138,.3); }
.chat-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; background: var(--input-bg, rgba(255,255,255,.05)); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--text); font-size: 13px; outline: none; }
@media (max-width: 560px) { .chat-float { bottom: 70px; left: 12px; } }

/* 关键词池按钮组 */
.kw-chip { border-color: var(--line-2); color: var(--text); font-size: 12.5px; padding: 7px 12px; }
.kw-chip:hover { border-color: var(--brand); color: var(--brand-2); background: rgba(123,92,255,.08); }

/* 标签多选 */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick { position: relative; }
.tag-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tag-pick span { display: inline-block; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; cursor: pointer; transition: .15s; }
.tag-pick input:checked + span { background: rgba(123,92,255,.18); border-color: var(--brand); color: #fff; font-weight: 700; }
.tag-pick span:hover { border-color: var(--brand); color: var(--text); }

/* ---------- 图片自适应（手机 / 电脑） ---------- */
img.game-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
img.detail-cover { width: 100%; max-width: 300px; height: auto; display: block; object-fit: cover; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shots-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
@media (max-width: 640px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  img.detail-cover { max-width: 220px; }
}

/* 标签项：勾选 + 删除 + 新增 */
.tag-item { display: inline-flex; align-items: center; }
.tag-x { margin-left: -6px; background: transparent; border: 0; color: var(--muted-2); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 6px; }
.tag-x:hover { color: var(--danger); background: rgba(255,255,255,.07); }
.tag-add { display: inline-flex; gap: 6px; align-items: center; }
.tag-add input { width: 120px; padding: 7px 10px; border-radius: 9px; border: 1px dashed var(--line-2); background: transparent; color: var(--text); font-size: 12.5px; outline: none; }
.tag-add input:focus { border-color: var(--brand); }

/* 图片完整显示（不裁切、自动适应容器） */
img.detail-cover {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  display: block;
}
.shots-grid img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
@media (max-width: 640px) {
  img.detail-cover { max-width: 100%; }
  .shots-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shots-grid img { max-height: 180px; }
}

/* ---------- 手机端下载页 ---------- */
.m-page { max-width: 720px; margin: 0 auto; padding: 12px 14px 96px; }
.m-cover { width: 100%; max-height: 58vh; object-fit: contain; background: rgba(255,255,255,.04); border-radius: 16px; display: block; }
.m-head-row { display: flex; gap: 12px; align-items: center; margin: 14px 0 4px; }
.m-icon { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--panel); flex: 0 0 auto; }
.m-title { font-size: 22px; font-weight: 900; line-height: 1.25; margin: 0; }
.m-sub { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.m-sec-title { font-size: 15px; font-weight: 800; margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--brand); }
.m-intro { font-size: 14px; color: var(--muted); line-height: 1.9; }
.m-shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.m-shots img { flex: 0 0 72vw; max-height: 52vh; object-fit: contain; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; scroll-snap-align: start; }
.m-dl-list { display: flex; flex-direction: column; gap: 10px; }
.m-dl-btn { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.m-dl-btn.on { border-color: rgba(123,92,255,.6); }
.m-dl-plat { font-size: 12px; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--muted); }
.m-dl-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-dl-go { font-size: 12.5px; color: var(--brand-2); font-weight: 800; }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,13,19,.97); border-top: 1px solid var(--line); }
.m-bar img, .m-bar-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--panel); flex: 0 0 auto; display: grid; place-items: center; font-weight: 900; color: var(--brand-2); }
.m-bar-info { flex: 1; min-width: 0; }
.m-bar-info b { display: block; font-size: 14px; }
.m-bar-info span { display: block; font-size: 11.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-bar-btn { flex: 0 0 auto; height: 42px; padding: 0 22px; border-radius: 12px; font-weight: 800; }

@media (max-width: 768px) {
  .m-shots img { flex: 0 0 min(72vw, 340px); }
}

/* 封面铺满 + 手机截图两列大图 */
img.detail-cover { aspect-ratio: 3 / 4; object-fit: cover; background: transparent; }
.m-cover { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 16px; }
.m-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; scroll-snap-type: none; padding: 2px 0 10px; }
.m-shots img { width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; scroll-snap-align: none; }

/* 最终版：截图横向滚动 + 自动轮播；封面自适应屏幕 */
.shots-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.shots-grid img { flex: 0 0 32%; max-height: 320px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }
@media (max-width: 768px) {
  .shots-grid img { flex: 0 0 68vw; }
  .m-shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; grid-template-columns: none; }
  .m-shots img { flex: 0 0 68vw; width: auto; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: start; }
  .m-cover { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); border-radius: 0; aspect-ratio: auto; max-height: 70vh; object-fit: cover; }
}
/* 桌面截图：一次约显示 2 张，其余横向滚动 */
@media (min-width: 769px) { .shots-grid img { flex: 0 0 45%; aspect-ratio: auto; max-height: 340px; } }

/* 手机端最终调整：封面完整显示 + 客服按钮不挡内容 */
@media (max-width: 768px) {
  .m-page { padding-bottom: 130px; }
  .m-cover { max-height: none; height: auto; aspect-ratio: auto; object-fit: contain; background: #05070b; }
  .chat-float { left: auto; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .kefu-float { display: none; }
}

/* 电脑端：截图约 3 张并排、16:9 整齐显示，横向滚动 */
@media (min-width: 769px) {
  .shots-grid { gap: 12px; padding-bottom: 12px; }
  .shots-grid img {
    flex: 0 0 30%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
  }
  img.detail-cover { max-width: 280px; }
}

/* 修正：电脑端截图完整显示（不裁切）；手机端客服回到左侧且消息框不出屏 */
@media (min-width: 769px) {
  .shots-grid img {
    flex: 0 0 24%;
    aspect-ratio: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
  }
}
@media (max-width: 768px) {
  .chat-float { left: 12px; right: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .chat-float .chat-panel { left: 0; right: auto; max-width: calc(100vw - 24px); }
}

/* 电脑端封面完整显示，不裁切 */
@media (min-width: 769px) {
  img.detail-cover {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, .04);
    border-radius: 14px;
  }
}

/* 手机端锁定屏幕宽度：不能左右拖动、不缩放，按手机分辨率自适应 */
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 768px) {
  .m-page { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .m-cover {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border-radius: 0;
    aspect-ratio: auto;
    height: auto;
  }
  .m-shots { max-width: 100%; overflow-x: auto; }
}

/* 手机端截图：按老站做法，一行 2 张、原图比例、不裁切 */
@media (max-width: 768px) {
  .m-shots { gap: 6px; }
  .m-shots img {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 8px;
  }
}

/* 手机端封面：按老站做法（满宽 + 10:14 比例 + 图片铺满） */
@media (max-width: 768px) {
  .m-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 10 / 14;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    margin: 0 auto;
    background: #05070b;
  }
}

/* 回退：手机端封面完整显示（按图片原比例，不裁切） */
@media (max-width: 768px) {
  .m-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
    background: #05070b;
  }
}

/* 电脑端详情页：游戏介绍 + 三个下载按钮 + iOS 扫码弹层 */
.detail-intro-title { font-size: 17px; font-weight: 800; margin: 6px 0 8px; padding-left: 10px; border-left: 3px solid var(--brand); }
.dl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 6px; }
.dl-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.dl-tile.off { opacity: .55; }
.dl-tile-name { font-size: 16px; font-weight: 800; }
.dl-tile-sub { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.qr-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 100; align-items: center; justify-content: center; }
.qr-modal-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; text-align: center; max-width: 330px; }
.qr-modal-title { font-weight: 800; margin-bottom: 12px; }
@media (max-width: 768px) { .dl-tiles { grid-template-columns: 1fr; } }

/* 手机端下载按钮：未上传的端显示灰色 */
.m-dl-btn.off { opacity: .5; pointer-events: none; border-style: dashed; }

/* 手机端客服二维码 */
.m-kefu { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.m-kefu img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; flex: 0 0 auto; }
.m-kefu-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 未上传的端：明显灰色按钮 */
.m-dl-btn.off { opacity: 1; background: rgba(255,255,255,.04); border: 1px dashed var(--line-2); color: var(--muted-2); pointer-events: none; }
.m-dl-btn.off .m-dl-plat { background: rgba(255,255,255,.06); color: var(--muted-2); }
.m-dl-btn.off .m-dl-go { color: var(--muted-2); }
.dl-tile.off { opacity: 1; background: rgba(255,255,255,.03); border-style: dashed; }
.dl-tile.off .dl-tile-name, .dl-tile.off .dl-tile-sub { color: var(--muted-2); }
.dl-tile.off .btn { background: rgba(255,255,255,.05); color: var(--muted-2); border: 1px dashed var(--line-2); }

/* 底部栏无包时灰色按钮 */
.m-bar-off { background: rgba(255,255,255,.08) !important; color: var(--muted-2) !important; border: 1px dashed var(--line-2); }

/* 微信客服悬浮按钮：在线客服上方 */
.kefu-float-btn { position: fixed; left: 18px; bottom: 130px; z-index: 87; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(123,92,255,.45); background: linear-gradient(135deg, rgba(123,92,255,.95), rgba(80,60,220,.95)); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(80,60,220,.35); }
.kefu-qr-layer { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.75); align-items: center; justify-content: center; }
.kefu-qr-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; text-align: center; }
.kefu-qr-box img { width: 200px; height: 200px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; display: block; margin: 12px auto; }
.kefu-qr-title { font-weight: 800; }
@media (max-width: 768px) {
  .kefu-float-btn { left: 12px; bottom: calc(136px + env(safe-area-inset-bottom)); height: 40px; padding: 0 16px; font-size: 13.5px; }
}

/* 浮动按钮位置调整：在线客服右移、面板上移避免挡住微信客服、移除右侧按钮 */
.chat-float { left: 30px; }
.chat-panel { bottom: 116px; }
@media (max-width: 768px) {
  .chat-float { left: 30px; right: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .chat-panel { bottom: 118px; left: 0; max-width: calc(100vw - 24px); }
  .kefu-float-btn { left: 18px; }
}

/* 对齐：在线客服与微信客服左边缘同一 X 坐标 */
.chat-float { left: 18px; }
@media (max-width: 768px) { .chat-float { left: 18px; right: auto; } }

/* 微信客服再左移一格 */
.kefu-float-btn { left: 9px; }
@media (max-width: 768px) { .kefu-float-btn { left: 9px; } }

/* 微信客服 / 在线客服 按钮统一尺寸并对齐 */
.chat-btn, .kefu-float-btn {
  width: 108px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 999px;
  text-align: center;
}
.kefu-float-btn { left: 18px; bottom: 132px; }
.chat-float { left: 18px; }
@media (max-width: 768px) {
  .chat-btn, .kefu-float-btn { width: 104px; height: 42px; font-size: 13px; }
  .kefu-float-btn { left: 18px; bottom: calc(138px + env(safe-area-inset-bottom)); }
  .chat-float { left: 18px; }
}

/* 电脑端：下载按钮移入右侧介绍下方 */
.detail-dl { margin-top: 20px; max-width: 780px; }
.detail-dl .section-head { margin-bottom: 12px; }
.detail-dl .section-title { font-size: 17px; }
.detail-dl .dl-tile { padding: 14px 14px 16px; }
.detail-dl .copybox { margin-top: 14px; max-width: 100%; }

/* 下载链接放在“选择下载端”标题右侧 */
.detail-dl .section-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.copybox.cp-inline { margin: 0; flex: 1; min-width: 260px; max-width: 440px; padding: 8px 12px; }
.copybox.cp-inline code { font-size: 12.5px; }

/* 下载区整体下移，底边与左侧封面对齐 */
.detail-head { align-items: stretch; }
.detail-head > div:last-child { display: flex; flex-direction: column; }
.detail-head .detail-dl { margin-top: auto; padding-top: 18px; }

/* 电脑端：二维码卡片移到介绍右侧；下载链接框收窄 */
.detail-intro-row { display: flex; gap: 22px; align-items: flex-start; }
.detail-intro-row .detail-intro { flex: 1; min-width: 0; }
.qr-top-card { flex: 0 0 186px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.qr-top-card img { width: 150px; height: 150px; background: #fff; border-radius: 10px; padding: 6px; display: block; margin: 0 auto 8px; }
.qr-top-title { font-weight: 800; font-size: 13px; }
.qr-top-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.copybox.cp-inline { flex: 0 0 360px; max-width: 360px; margin-left: auto; }
.copybox.cp-inline code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; display: inline-block; vertical-align: middle; }

/* 下载链接框移到“选择下载端”标题右侧 */
.copybox.cp-inline { margin-left: 0; flex: 0 0 380px; max-width: 380px; }
.detail-dl .section-head { justify-content: flex-start; }

/* 二维码卡片下移到“选择下载端”上方右侧（红框位置） */
.detail-intro-row { position: relative; }
.qr-top-card { position: absolute; right: 76px; top: 118px; margin: 0; z-index: 2; }

/* 二维码卡片上移左移，放进红框区域 */
.qr-top-card { top: 6px; right: 230px; }

/* 手机端底部下载栏：完全不透明 */
.m-bar { background: #0a0d13 !important; border-top: 1px solid var(--line); }

/* 手机端底部栏：实色面板，和页面背景区分开 */
.m-bar { background: #141a26 !important; box-shadow: 0 -10px 24px rgba(0,0,0,.55); }

/* 手机端：隐藏页脚，底部栏纯黑不透明 */
@media (max-width: 768px) {
  .footer { display: none !important; }
  .m-page { padding-bottom: 140px; }
}
.m-bar { background: #000000 !important; box-shadow: 0 -8px 22px rgba(0,0,0,.85); border-top: 1px solid rgba(255,255,255,.08); }

/* 手机端底部下载按钮：橙色实心圆角（参考样式） */
.m-bar-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar-btn {
  background: linear-gradient(180deg, #ffb52e, #ef8f00) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  height: 44px;
  padding: 0 24px !important;
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(239, 143, 0, .35);
}
.m-bar-off {
  background: rgba(255,255,255,.08) !important;
  color: var(--muted-2) !important;
  box-shadow: none !important;
  border: 1px dashed var(--line-2) !important;
}

/* 二维码卡片位置（按需求调整） */
.qr-top-card { top: -60px; right: 130px; }
