:root {
  --bg: #070b16;
  --bg-2: #0b1220;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --line: rgba(125, 165, 255, 0.16);
  --line-strong: rgba(125, 165, 255, 0.34);
  --ink: #e9eefb;
  --muted: #94a3c4;
  --primary: #36c8ff;
  --primary-deep: #1f8fd6;
  --violet: #8b5cf6;
  --accent: #ff3d7f;
  --gold: #ffd24a;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  --maxw: 1160px;
  --grad: linear-gradient(120deg, var(--primary), var(--violet));
  --grad-warm: linear-gradient(120deg, var(--gold), #ff8a3d);
  --glow-cyan: 0 0 26px rgba(54, 200, 255, 0.4);
  --glow-pink: 0 0 26px rgba(255, 61, 127, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

/* 科技感背景：光晕 + 细网格 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(54, 200, 255, 0.20), transparent 60%),
    radial-gradient(820px 520px at 102% 0%, rgba(139, 92, 246, 0.20), transparent 55%),
    radial-gradient(760px 620px at 50% 122%, rgba(255, 61, 127, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    linear-gradient(rgba(125, 165, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 165, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 82%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.tech-num { font-family: "Orbitron", system-ui, sans-serif; font-feature-settings: "tnum"; letter-spacing: .5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand-badge {
  font-family: "Orbitron", system-ui, sans-serif;
  background: var(--grad); color: #04121f; font-size: 12px; font-weight: 900;
  padding: 4px 9px; border-radius: 9px; letter-spacing: .5px;
  box-shadow: var(--glow-cyan);
}
.brand-text {
  font-size: 20px; white-space: nowrap; font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #bfe6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 14px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: var(--panel-2); }
.header-search { margin-left: auto; display: flex; }
.header-search input {
  border: 1px solid var(--line); border-right: none; background: rgba(255, 255, 255, 0.05);
  border-radius: 20px 0 0 20px; padding: 8px 14px; width: 180px; outline: none; font-size: 13px; color: #fff;
}
.header-search input::placeholder { color: #7e8bb0; }
.header-search button {
  border: 1px solid var(--primary); background: var(--grad); border-radius: 0 20px 20px 0;
  padding: 0 12px; cursor: pointer; font-size: 14px; color: #04121f; font-weight: 800;
}
.nav-toggle { display: none; background: transparent; border: none; color: var(--ink); font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 78% 6%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(520px 300px at 18% 90%, rgba(54, 200, 255, 0.22), transparent 60%);
}
.hero-inner { display: flex; align-items: center; gap: 24px; padding: 60px 16px 64px; position: relative; z-index: 1; }
.hero-copy { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-block; font-family: "Orbitron", system-ui, sans-serif;
  background: rgba(54, 200, 255, 0.12); border: 1px solid rgba(54, 200, 255, 0.45); color: #aee9ff;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 14px; letter-spacing: .5px;
  box-shadow: inset 0 0 18px rgba(54, 200, 255, 0.15);
}
.hero-title {
  font-size: clamp(28px, 5vw, 46px); margin: 0 0 12px; line-height: 1.18; font-weight: 800;
  background: linear-gradient(100deg, #ffffff 10%, #7fe3ff 50%, #c79bff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(54, 200, 255, 0.25);
}
.hero-sub { margin: 0 0 20px; opacity: .9; font-size: 15px; max-width: 560px; color: #c4d0ec; }
.hero-search { display: flex; max-width: 480px; }
.hero-search input {
  flex: 1; border: 1px solid var(--line-strong); border-right: none; background: rgba(255, 255, 255, 0.06);
  border-radius: 24px 0 0 24px; padding: 13px 18px; font-size: 15px; outline: none; color: #fff;
}
.hero-search input::placeholder { color: #7e8bb0; }
.hero-search button {
  border: none; background: var(--grad); color: #04121f; font-weight: 800; border-radius: 0 24px 24px 0;
  padding: 0 22px; cursor: pointer; font-size: 15px; box-shadow: var(--glow-cyan);
}
.hero-stats { display: flex; gap: 20px; margin-top: 20px; font-size: 14px; color: #c4d0ec; flex-wrap: wrap; }
.hero-stats b { color: var(--gold); font-size: 18px; font-family: "Orbitron", system-ui, sans-serif; }
.hero-visual { position: relative; width: 230px; height: 210px; flex-shrink: 0; }
.float-badge {
  position: absolute; background: rgba(13, 20, 36, 0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: #fff; font-weight: 800;
  border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); padding: 10px 16px; font-size: 15px;
}
.float-badge b { font-size: 30px; color: var(--primary); font-family: "Orbitron", system-ui, sans-serif; }
.float-badge small { font-size: 13px; color: var(--muted); }
.float-badge.b1 { top: 8px; right: 0; font-size: 30px; color: var(--gold); transform: rotate(-6deg); box-shadow: var(--glow-cyan); }
.float-badge.b2 { top: 92px; left: -8px; transform: rotate(4deg); border-color: rgba(139, 92, 246, 0.5); }
.float-badge.b3 { bottom: 6px; right: 16px; background: rgba(139, 92, 246, 0.18); border-color: rgba(139, 92, 246, 0.55); transform: rotate(-3deg); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px auto; }
.benefit {
  display: flex; gap: 10px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.benefit:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow-cyan); }
.b-icon { font-size: 26px; line-height: 1; filter: drop-shadow(0 0 8px rgba(54, 200, 255, 0.4)); }
.b-t { font-weight: 800; color: #fff; }
.b-d { font-size: 12.5px; color: var(--muted); }

/* ---------- Category strip ---------- */
.cat-strip { margin: 30px auto 8px; }
.strip-title { font-size: 20px; margin: 0 0 14px; color: var(--ink); }
.cat-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-pill {
  display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-pill:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow-cyan); }
.cat-emoji { font-size: 26px; }
.cat-name { font-weight: 800; font-size: 16px; color: #fff; }
.cat-desc { font-size: 12.5px; color: var(--muted); }

/* ---------- Game sections / grid ---------- */
.game-section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; border-left: 4px solid transparent; border-image: var(--grad) 1; padding-left: 12px; }
.section-head h2 { margin: 0; font-size: 22px; color: #fff; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* ---------- Game card ---------- */
.game-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
}
.game-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(160deg, rgba(54, 200, 255, 0.10), transparent 40%);
  opacity: 0; transition: opacity .2s;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--glow-cyan); }
.game-card:hover::after { opacity: 1; }
.card-link { display: block; height: 100%; }
.card-thumb {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(125, 165, 255, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.game-icon { width: 64%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.game-icon.ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--h1), 85%, 60%), hsl(var(--h2), 85%, 48%));
  color: #fff; font-size: 42px; font-weight: 900;
  box-shadow: 0 8px 22px hsla(var(--h1), 80%, 50%, 0.35);
}
.game-icon.ph .emoji-face { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.discount-badge {
  position: absolute; top: 8px; left: 8px; background: var(--gold); color: #2a1a00; font-weight: 900;
  font-size: 12px; padding: 3px 9px; border-radius: 9px; box-shadow: 0 2px 10px rgba(255, 210, 74, 0.55);
}
.discount-badge.big { font-size: 15px; padding: 5px 12px; border-radius: 10px; }
.card-body { padding: 10px 12px 12px; }
.card-title { margin: 0 0 4px; font-size: 15px; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* 卖点按"每行显示数量"自适应长度：桌面多列(窄卡)1行，手机少列(宽卡)2行 */
.card-tagline {
  margin: 0 0 8px; font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.cat-tag { background: rgba(54, 200, 255, 0.12); color: #aee9ff; padding: 2px 7px; border-radius: 6px; }
.plat-tag { display: inline-flex; align-items: center; gap: 3px; background: rgba(139, 92, 246, 0.16); color: #cbb6ff; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.rating { color: var(--gold); }
.dl { color: var(--muted); }
.card-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.card-price .now { color: var(--gold); font-weight: 900; font-size: 17px; }
.card-price .was { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.card-cta { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.hl { color: var(--primary); }

/* ---------- Category header ---------- */
.cat-header {
  display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 12px 0 22px;
}
.cat-header-icon { font-size: 46px; filter: drop-shadow(0 0 10px rgba(54, 200, 255, 0.4)); }
.cat-header h1 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.cat-header p { margin: 2px 0; color: var(--muted); font-size: 14px; }
.cat-count b { color: var(--primary); }
.hl { color: var(--primary); }

/* ---------- Game detail ---------- */
.game-detail { margin: 8px 0 30px; }
.detail-head {
  display: grid; grid-template-columns: 110px 1fr 240px; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.detail-icon .game-icon, .detail-icon img { width: 100%; border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mini-tag { background: rgba(54, 200, 255, 0.12); color: #aee9ff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.detail-title { margin: 0 0 6px; font-size: 26px; color: #fff; }
.detail-tagline { margin: 0 0 10px; color: var(--primary); font-weight: 600; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--muted); }
.detail-cta { text-align: center; }
.price-box {
  background: linear-gradient(135deg, rgba(54, 200, 255, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.price-now { color: var(--gold); font-weight: 900; font-size: 26px; font-family: "Orbitron", system-ui, sans-serif; }
.price-now small { font-size: 13px; color: var(--muted); font-weight: 600; font-family: inherit; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price-save { color: #04121f; background: var(--gold); display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-top: 4px; }
.btn-download {
  display: block; background: var(--grad); color: #04121f; font-weight: 900;
  font-size: 18px; padding: 13px; border-radius: 12px; box-shadow: var(--glow-cyan); margin-bottom: 8px; text-align: center;
}
.btn-download:hover { filter: brightness(1.08); }
.cta-note { font-size: 12px; color: var(--muted); margin: 0; }

.shot-section { margin: 24px 0; }
.shot-section h2, .desc-section h2, .related-section h2, .search-head h1 {
  font-size: 20px; border-left: 4px solid transparent; border-image: var(--grad) 1; padding-left: 12px; color: #fff;
}
.shot-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.shot-cell { border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.shot-cell.land { flex: 1 1 46%; aspect-ratio: 16 / 9; }
.shot-cell.port { flex: 0 1 30%; aspect-ratio: 9 / 16; }
.shot-cell img, .shot-cell .shot { width: 100%; height: 100%; object-fit: contain; }
.shot.ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h1), 70%, 52%), hsl(var(--h2), 70%, 42%)); }

/* 详情页大 Banner（预留） */
.game-banner { margin: 14px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-banner img { width: 100%; height: auto; display: block; }

/* 宣传视频（预留） */
.video-section { margin: 24px 0; }
.video-section h2 { font-size: 20px; border-left: 4px solid transparent; border-image: var(--grad) 1; padding-left: 12px; color: #fff; }
.game-video { width: 100%; border-radius: 12px; background: #000; display: block; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 直接粘入的 B站/抖音 等 <iframe> 分享代码：自适应 16:9 不变形 */
.video-embed { width: 100%; }
.video-embed > iframe, .video-embed > embed, .video-embed > video { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; background: #000; }

.detail-body { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
.desc-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.feature-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature-list li { color: #7fe3b0; font-weight: 600; font-size: 14px; }
.feature-list li::before { content: "▹ "; color: var(--primary); }
.related-section { margin-top: 8px; }

/* ---------- Search ---------- */
.search-head { text-align: center; margin: 18px 0; }
.search-head h1 { display: inline-block; color: #fff; }
.search-bar { display: flex; max-width: 520px; margin: 14px auto; }
.search-bar input { flex: 1; border: 2px solid var(--primary); border-right: none; border-radius: 24px 0 0 24px; padding: 11px 18px; font-size: 15px; outline: none; background: rgba(255, 255, 255, 0.05); color: #fff; }
.search-bar input::placeholder { color: #7e8bb0; }
.search-bar button { border: none; background: var(--grad); color: #04121f; font-weight: 800; border-radius: 0 24px 24px 0; padding: 0 24px; cursor: pointer; }
.sort-tabs { display: inline-flex; gap: 8px; }
.sort-tabs button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: all .15s; }
.sort-tabs button.active { background: var(--grad); color: #04121f; border-color: transparent; font-weight: 800; }
.search-count { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Simple page ---------- */
.simple-page { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 20px 0 30px; }
.simple-page h1 { font-size: 24px; color: #fff; }
.simple-page h2 { font-size: 18px; margin-top: 18px; color: var(--primary); }
.simple-page ol { padding-left: 22px; }
.simple-page li { margin-bottom: 8px; color: #c4d0ec; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(7, 11, 22, 0.9); border-top: 1px solid var(--line); color: #c4d0ec; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 24px; padding: 34px 16px; }
.footer-logo { color: #fff; font-weight: 800; font-size: 18px; }
.footer-slogan { color: var(--primary); margin: 6px 0; }
.footer-contact { font-size: 13px; line-height: 1.9; color: #aab6d4; }
.footer-col h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--primary); }
.footer-note { font-size: 13px; line-height: 1.8; color: #aab6d4; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 16px; font-size: 12.5px; color: #7e8bb0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .cat-pills { grid-template-columns: repeat(2, 1fr); }
  .detail-head { grid-template-columns: 88px 1fr; }
  .detail-cta { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: rgba(9, 14, 26, 0.96); padding: 8px; border-bottom: 1px solid var(--line); z-index: 49; }
  .main-nav.open { display: flex; }
  /* 手机端布局：导航缩放(☰)在左、Logo 居中、白天/黑夜开关在右 */
  .nav-toggle { display: block; order: 1; margin-left: 0; }
  .brand { order: 2; flex: 1; justify-content: center; }
  .theme-toggle { order: 3; }
  .header-search { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .shot-cell.land, .shot-cell.port { flex: 1 1 100%; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 10px; }
  /* 少列宽卡：卖点显示更多行 */
  .card-tagline { -webkit-line-clamp: 2; line-clamp: 2; }
  /* 浅色模式下手机端下拉菜单文字也需可见 */
  [data-theme="light"] .main-nav { background: rgba(255, 255, 255, 0.97); }
  [data-theme="light"] .main-nav a { color: #1b2433; }
  [data-theme="light"] .main-nav a:hover, [data-theme="light"] .main-nav a.active { color: #0d2740; background: var(--panel-2); }
}

/* ============================================================
   日间模式（浅蓝 + 浅灰主色调）
   :root 维持原暗色为默认；切到 [data-theme="light"] 时启用本组。
   ============================================================ */
[data-theme="light"] {
  --bg: #eef3fb;
  --bg-2: #e6eefa;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 255, 255, 0.94);
  --line: rgba(70, 120, 190, 0.20);
  --line-strong: rgba(70, 120, 190, 0.38);
  --ink: #1b2433;
  --muted: #5b6b85;
  --primary: #1f8fd6;
  --primary-deep: #1565a8;
  --violet: #6d5cf6;
  --accent: #e6377a;
  --gold: #d99300;
  --shadow: 0 12px 30px rgba(20, 45, 90, 0.12);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(54, 160, 255, 0.18), transparent 60%),
    radial-gradient(820px 520px at 102% 0%, rgba(120, 110, 246, 0.14), transparent 55%),
    radial-gradient(760px 620px at 50% 122%, rgba(54, 160, 255, 0.08), transparent 60%),
    var(--bg);
}
[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(70, 120, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 190, 0.06) 1px, transparent 1px);
  opacity: 0.7;
}
/* 硬色块（暗色里写死的颜色，日间需逐一覆盖） */
[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--line); }
[data-theme="light"] .brand { color: #0d2740; }
[data-theme="light"] .brand-text { background: linear-gradient(90deg, #1565a8, #3aa0e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .main-nav a:hover, [data-theme="light"] .main-nav a.active { color: #0d2740; background: var(--panel-2); }
[data-theme="light"] .header-search input { background: rgba(255, 255, 255, 0.7); color: #1b2433; border-color: var(--line); }
[data-theme="light"] .header-search input::placeholder { color: #8090a8; }
[data-theme="light"] .hero-title { background: linear-gradient(100deg, #0d2740, #1565a8, #6d5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
[data-theme="light"] .hero-sub, [data-theme="light"] .hero-stats { color: #33445e; }
[data-theme="light"] .hero-badge { background: rgba(31, 143, 214, 0.12); border-color: rgba(31, 143, 214, 0.45); color: #0d5a92; }
[data-theme="light"] .float-badge { background: rgba(255, 255, 255, 0.92); border-color: var(--line-strong); color: #1b2433; }
[data-theme="light"] .b-t, [data-theme="light"] .cat-name, [data-theme="light"] .section-head h2,
[data-theme="light"] .shot-section h2, [data-theme="light"] .desc-section h2, [data-theme="light"] .related-section h2, [data-theme="light"] .video-section h2,
[data-theme="light"] .card-title, [data-theme="light"] .detail-title, [data-theme="light"] .cat-header h1,
[data-theme="light"] .search-head h1, [data-theme="light"] .simple-page h1 { color: #1b2433; }
[data-theme="light"] .card-thumb { background:
    radial-gradient(120% 120% at 50% 0%, rgba(70, 120, 190, 0.08), transparent 60%),
    rgba(70, 120, 190, 0.04);
  border-bottom: 1px solid var(--line); }
[data-theme="light"] .site-footer { background: rgba(233, 239, 248, 0.96); color: #33445e; }
[data-theme="light"] .footer-logo { color: #1b2433; }
[data-theme="light"] .footer-note, [data-theme="light"] .footer-contact { color: #5b6b85; }
[data-theme="light"] .footer-bottom { color: #8090a8; }
[data-theme="light"] .footer-col h4 { color: #1b2433; }
[data-theme="light"] .footer-links a { color: #33445e; }
[data-theme="light"] .footer-slogan { color: var(--primary); }
[data-theme="light"] .feature-list li { color: #1c9e6a; }
[data-theme="light"] .feature-list li::before { color: var(--primary); }
[data-theme="light"] .search-bar input, [data-theme="light"] .hero-search input { background: rgba(255, 255, 255, 0.7); color: #1b2433; border-color: var(--primary); }
[data-theme="light"] .search-bar input::placeholder, [data-theme="light"] .hero-search input::placeholder { color: #8090a8; }
[data-theme="light"] .shot-cell { background: rgba(70, 120, 190, 0.05); border-color: var(--line); }

/* 浅色模式下文字色修正：暗色里写死的浅色文字在浅底上看不清，逐一改深 */
[data-theme="light"] .cat-tag { color: #0d5a92; background: rgba(31, 143, 214, 0.12); }
[data-theme="light"] .plat-tag { color: #4b3fb0; background: rgba(109, 92, 246, 0.14); }
[data-theme="light"] .mini-tag { color: #0d5a92; background: rgba(31, 143, 214, 0.12); }
[data-theme="light"] .rating { color: #c47d00; }
[data-theme="light"] .price-now { color: #b97900; }
[data-theme="light"] .detail-tagline { color: #1565a8; }
[data-theme="light"] .hl { color: #1565a8; }
[data-theme="light"] .breadcrumb a { color: #1565a8; }
[data-theme="light"] .footer-links a:hover { color: #1565a8; }
[data-theme="light"] .card-cta { color: #1565a8; }

/* 平滑切换，避免突兀闪烁 */
body { transition: background-color .3s ease; }
.site-header, .site-footer { transition: background-color .3s ease, border-color .3s ease; }

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink);
  cursor: pointer; font-size: 17px; line-height: 1; flex-shrink: 0; margin-left: 10px;
  transition: transform .15s, background .15s, border-color .15s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--primary); }
.theme-toggle .tt-icon { filter: drop-shadow(0 0 6px rgba(54, 200, 255, 0.35)); }

/* ---------- 广告位容器 ---------- */
.ad-slot {
  width: calc(100% - 24px); max-width: var(--maxw); margin: 14px auto;
  padding: 12px 14px; box-sizing: border-box;
  background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 12px;
  text-align: center; overflow: auto;
}
.ad-slot img { max-width: 100%; height: auto; margin: 0 auto; }
.ad-slot > :first-child { margin-top: 0; }
.ad-slot > :last-child { margin-bottom: 0; }
.ad-slot .ad-label { font-size: 11px; color: var(--muted); letter-spacing: .5px; }

/* ============================================================
   右侧悬浮栏：免费下载（下拉）+ 返回顶部（滚动后同步出现）
   颜色全部走 CSS 变量，自动适配暗/日间主题
   ============================================================ */
.fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.fab.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.fab-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.fab-top {
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px; line-height: 1;
}
.fab-top-ico { line-height: 1; }
.fab-dl {
  padding: 11px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: var(--grad); color: #04121f; border: none; box-shadow: var(--glow-cyan);
}
.fab-dl-ico { font-size: 15px; }
/* 首页搜索栏下方：四个引流卡片（指向外部下载落地页） */
.entry-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.entry-card {
  flex: 1 1 150px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.entry-card:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--panel-3); }
.ec-icon { font-size: 20px; line-height: 1; }
.ec-t { font-weight: 700; font-size: 13px; }
@media (max-width: 640px) {
  .fab { right: 12px; bottom: 14px; gap: 10px; }
  .entry-card { flex: 1 1 45%; }
  .ec-t { font-size: 12px; }
}
