/* ============================================================
   轻量产品官网 · 前台样式（深色 / 浅色双主题）
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-glow-1: rgba(59, 130, 246, .16);
  --bg-glow-2: rgba(6, 214, 224, .08);
  --surface: rgba(255, 255, 255, .042);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-solid: #0b1120;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .15);
  --txt: #e8eefc;
  --txt-2: #a2b3cf;
  --muted: #6f8099;
  --phero-veil: rgba(7, 10, 18, .72);
  --bg-veil-1: rgba(7, 10, 18, .55);
  --bg-veil-2: rgba(7, 10, 18, .82);
  --head-bg: rgba(7, 10, 18, .74);
  --head-bg-solid: rgba(7, 10, 18, .93);
  --foot-bg: rgba(6, 9, 16, .45);
  --title-grad: linear-gradient(168deg, #ffffff 26%, #b3c8ec);
  --btn-ghost-bg: rgba(255, 255, 255, .06);
  --btn-ghost-bg-h: rgba(255, 255, 255, .11);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .85);
  --shadow-md: 0 20px 44px -20px rgba(0, 0, 0, .7);
  --brand: #3b82f6;
  --brand-2: #06d6e0;
  --grad: linear-gradient(180deg, #3b82f6, #2563eb);
  --grad-brand: linear-gradient(135deg, #3b82f6, #06d6e0);
  --grad-buy: linear-gradient(120deg, #f59e0b, #f97316);
  --tag-bg: rgba(59, 130, 246, .13);
  --tag-bd: rgba(59, 130, 246, .26);
  --tag-fg: #93c5fd;
  --ok-bg: rgba(34, 211, 166, .11);
  --ok-bd: rgba(34, 211, 166, .24);
  --ok-fg: #6ee7b7;
  --warn-bg: rgba(245, 158, 11, .12);
  --warn-bd: rgba(245, 158, 11, .3);
  --warn-fg: #fcd34d;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-glow-1: rgba(59, 130, 246, .13);
  --bg-glow-2: rgba(6, 214, 224, .10);
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --surface-solid: #eef3fa;
  --line: rgba(15, 23, 42, .09);
  --line-2: rgba(15, 23, 42, .15);
  --txt: #0f172a;
  --txt-2: #47566b;
  --muted: #7d8da3;
  --phero-veil: rgba(244, 247, 252, .8);
  --bg-veil-1: rgba(244, 247, 252, .62);
  --bg-veil-2: rgba(244, 247, 252, .86);
  --head-bg: rgba(255, 255, 255, .82);
  --head-bg-solid: rgba(255, 255, 255, .95);
  --foot-bg: #eef2f9;
  --title-grad: linear-gradient(168deg, #0f172a 24%, #3b4f6b);
  --btn-ghost-bg: #ffffff;
  --btn-ghost-bg-h: #f1f5fb;
  --shadow-lg: 0 22px 48px -30px rgba(15, 23, 42, .2);
  --shadow-md: 0 14px 30px -20px rgba(15, 23, 42, .18);
  --brand: #2563eb;
  --brand-2: #0891b2;
  --grad: linear-gradient(180deg, #2563eb, #1d4ed8);
  --grad-brand: linear-gradient(135deg, #2563eb, #0891b2);
  --grad-buy: linear-gradient(120deg, #ea8a0b, #ef6c1a);
  --tag-bg: rgba(37, 99, 235, .08);
  --tag-bd: rgba(37, 99, 235, .2);
  --tag-fg: #1d4ed8;
  --ok-bg: rgba(5, 150, 105, .09);
  --ok-bd: rgba(5, 150, 105, .2);
  --ok-fg: #047857;
  --warn-bg: rgba(217, 119, 6, .10);
  --warn-bd: rgba(217, 119, 6, .22);
  --warn-fg: #b45309;
}

:root {
  --r: 16px;
  --r-sm: 10px;
  --maxw: 1320px;
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.72;
  color: var(--txt);
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 480px at 82% -12%, var(--bg-glow-1), transparent 62%),
    radial-gradient(700px 440px at 4% 4%, var(--bg-glow-2), transparent 62%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

/* 有随机背景图时，body 让位给照片层 */
body.has-bg { background-color: transparent; background-image: none; }
/* 照片在背后时卡片改用更实的底色，保证文字对比度 */
[data-theme="dark"] body.has-bg { --surface: rgba(12, 18, 32, .9); --surface-solid: #0b1120; }
[data-theme="light"] body.has-bg { --surface: rgba(255, 255, 255, .88); --surface-solid: #ffffff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- 背景照片 ---------------- */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: scale(1.04);
  filter: saturate(1.06) brightness(1.02);
}
.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-veil-1), var(--bg-veil-2) 78%);
}

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: var(--head-bg);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 16px; height: 62px; }

.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.logo img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.logo-text { font-size: 15.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--txt-2);
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--txt); background: var(--surface-2); }

.top-tools { display: flex; align-items: center; gap: 8px; }

.theme-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--txt-2);
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.theme-btn:hover { color: var(--txt); border-color: var(--line-2); }
.ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

.burger {
  display: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.burger span { width: 15px; height: 1.6px; background: var(--txt); border-radius: 2px; transition: .2s; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform .16s, filter .16s, background .16s, border-color .16s, color .16s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .65); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-buy { background: var(--grad-buy); box-shadow: 0 10px 24px -8px rgba(234, 138, 11, .55); }
.btn-buy:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-buy-line {
  background: var(--warn-bg);
  border-color: var(--warn-bd);
  color: var(--warn-fg);
}
.btn-buy-line:hover { background: var(--warn-bd); color: #fff; }
.btn-ghost { background: var(--btn-ghost-bg); border-color: var(--line-2); color: var(--txt); }
.btn-ghost:hover { background: var(--btn-ghost-bg-h); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 33px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 40px 0 16px; overflow: hidden; }
.hero-glow {
  position: absolute;
  left: 50%; top: -200px;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 50% at 28% 40%, var(--bg-glow-1), transparent 70%),
    radial-gradient(38% 46% at 72% 30%, var(--bg-glow-2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 视觉隐藏但对搜索引擎 / 读屏器可见的站点主标题 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 整屏软件轮播 ---- */
.hero-slider { position: relative; z-index: 1; }
.hs-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 上下留出空间，卡片阴影和圆角不会被滚动容器裁成直角 */
  padding: 6px 2px 30px;
  margin: -6px -2px -30px;
}
.hs-track::-webkit-scrollbar { display: none; }

.hs-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 40px;
  align-items: center;
  padding: 42px 46px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.hs-copy { min-width: 0; }
.hs-slide.hs-empty { display: block; text-align: center; padding: 70px 40px; color: var(--muted); font-size: 14.5px; }
.hs-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hs-name {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -.025em;
  color: var(--txt);
  line-height: 1.22;
}
.hs-name a:hover { color: var(--brand); }
.hs-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--txt-2); }
.hs-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hs-meta li {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--txt-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hs-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hs-actions .btn { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 11px; }
.hs-actions .btn svg { width: 18px; height: 18px; }

.hs-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface-solid);
  aspect-ratio: 16 / 9;
}
.hs-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hs-media:hover img { transform: scale(1.03); }
.hs-ph {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 50px; font-weight: 700; color: #fff;
  background: var(--grad-brand);
}

.hs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  color: #0d1424;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 2px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: background .16s, transform .16s, opacity .2s;
}
.hs-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hs-btn:disabled { opacity: 0; pointer-events: none; }
.hs-prev { left: -21px; }
.hs-next { right: -21px; }

.hs-view { position: relative; }

/* 软件名标签：点一下直接切过去 */
.hs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.hs-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--txt-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.hs-tab:hover { color: var(--txt); border-color: var(--line-2); transform: translateY(-1px); }
.hs-tab.is-on {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .9);
}

/* ---------------- 区块 ---------------- */
.sec { padding: 44px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sec-title {
  position: relative;
  font-size: 25px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.018em;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: -13px; top: 50%;
  width: 3px; height: .78em;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.sec-count { font-size: 12.5px; color: var(--muted); }
.sec-shots { padding-top: 8px; }

/* ---------------- 软件卡片 ---------------- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
  gap: 20px;
}
.pcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--tag-bd);
  box-shadow: var(--shadow-md);
}
.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard-media img { transform: scale(1.035); }
.pcard-ph {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 34px; font-weight: 700; color: #fff;
  background: var(--grad-brand);
}
.pcard-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 6px;
  color: #3b2504;
  background: linear-gradient(120deg, #ffd479, #ffb648);
  box-shadow: 0 6px 14px rgba(255, 182, 72, .3);
}
.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px 19px 19px;
  flex: 1;
}
.pcard-name { font-size: 17px; font-weight: 650; color: var(--txt); }
.pcard-name a:hover { color: var(--brand); }
.pcard-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.pcard-actions { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.pcard-actions .btn { flex: 1 1 auto; }

/* ---------------- 标签 ---------------- */
.game-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 5px;
  color: var(--tag-fg);
  background: var(--tag-bg);
  border: 1px solid var(--tag-bd);
}
.game-tag::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--ok-fg);
  background: var(--ok-bg);
  border: 1px solid var(--ok-bd);
}
.tag-new { color: var(--warn-fg); background: var(--warn-bg); border-color: var(--warn-bd); }

/* ---------------- 关于 / 联系 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
}
.about-tag { margin-top: 10px; font-size: 13px; color: var(--muted); }
.about-body { font-size: 15px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  justify-items: start;
}
.contact-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.contact-value { font-size: 15px; color: var(--txt); font-weight: 600; word-break: break-all; }
a.contact-value:hover { color: var(--brand); }

/* ---------------- 演示图片 ---------------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.shot {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  aspect-ratio: 16 / 9;
  transition: transform .2s, border-color .2s;
}
.shot.is-wide { grid-column: 1 / -1; max-height: 540px; }
.shot:hover { transform: translateY(-2px); border-color: var(--tag-bd); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 获取（下载 / 购买） ---------------- */
.get-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.get-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.get-card.is-buy {
  border-color: var(--warn-bd);
  background:
    radial-gradient(420px 140px at 100% 0%, var(--warn-bg), transparent 70%),
    var(--surface);
}
.get-head { display: flex; flex-direction: column; gap: 3px; }
.get-label { font-size: 16px; font-weight: 650; color: var(--txt); }
.get-note { font-size: 12px; color: var(--muted); }
.get-meta { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.get-meta span { padding: 2px 8px; border-radius: 5px; background: var(--surface-2); }
.get-tip { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------------- 功能特性（可选） ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat {
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 11px;
  font-size: 17px;
  border-radius: 10px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-bd);
}
.feat-title { font-size: 14.5px; color: var(--txt); margin-bottom: 5px; }
.feat-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------------- 时间线（可选） ---------------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--tag-bd), var(--line));
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -24px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
}
.tl-item.is-latest .tl-dot { border-color: transparent; background: var(--grad-brand); box-shadow: 0 0 0 4px var(--tag-bg); }
.tl-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tl-ver { font-size: 14.5px; font-weight: 650; color: var(--txt); }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-list { margin-top: 7px; padding-left: 15px; list-style: disc; }
.tl-list li { font-size: 13px; color: var(--txt-2); margin-bottom: 3px; }

/* ---------------- FAQ（可选） ---------------- */
.faq { display: flex; flex-direction: column; gap: 9px; max-width: 800px; }
.faq-item {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--txt);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 18px 14px; font-size: 13px; color: var(--txt-2); line-height: 1.8; }

/* ---------------- 富文本 ---------------- */
.prose { font-size: 14.5px; line-height: 1.9; color: var(--txt-2); max-width: 800px; }
.prose h2, .prose h3 { color: var(--txt); margin: 22px 0 10px; }
.prose h2 { font-size: 18px; }
.prose h3 { font-size: 15.5px; }
.prose p { margin: 0 0 13px; }
.prose ul, .prose ol { margin: 0 0 13px; padding-left: 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--txt); }
.prose img { border-radius: 10px; margin: 10px 0; }
.prose blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--tag-bd);
  background: var(--tag-bg);
  border-radius: 0 8px 8px 0;
}

/* ---------------- 面包屑 / 详情头 ---------------- */
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 18px 0 2px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.crumb a:hover { color: var(--txt); }
.crumb span[aria-hidden] { color: var(--line-2); }
.crumb-game { color: var(--tag-fg); }

.phero { position: relative; padding: 8px 0 0; overflow: hidden; }
.phero-glow {
  position: absolute;
  left: 50%; top: -160px;
  width: 820px; height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 40%, var(--bg-glow-1), transparent 70%);
  pointer-events: none;
}
.phero-grid {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 18px;
  padding-bottom: 26px;
}
.phero-icon-wrap { flex: 0 0 auto; }
.phero-icon {
  width: 88px; height: 88px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
}
.phero-icon-ph {
  display: grid; place-items: center;
  font-size: 34px; font-weight: 700; color: #fff;
  background: var(--grad-brand);
}
.phero-copy { min-width: 0; flex: 1; }
.phero-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.phero-title { font-size: clamp(25px, 3.4vw, 34px); font-weight: 750; color: var(--txt); letter-spacing: -.022em; }
/* 详情页头部文字直接压在照片上：左侧压深一档，右侧保留画面 */
body.has-bg .phero { isolation: isolate; }
body.has-bg .phero::before {
  content: "";
  position: absolute;
  inset: -18px -30px -14px -30px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--phero-veil) 0%, transparent 72%);
  pointer-events: none;
}
body.has-bg .phero-title,
body.has-bg .phero-sub,
body.has-bg .breadcrumb,
body.has-bg .bc,
body.has-bg .bc a { text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }
.phero-sub { margin: 9px 0 0; font-size: 15px; color: var(--txt-2); max-width: 620px; }
.phero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.phero-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.phero-chips li {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--txt-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ---------------- 灯箱 ---------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 7, 14, .93);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: min(1160px, 94vw); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lb-x {
  position: absolute;
  top: 18px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- 404 ---------------- */
.err { padding: 90px 0 50px; text-align: center; }
.err-code {
  font-size: clamp(76px, 15vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-title { margin-top: 6px; font-size: 21px; color: var(--txt); }
.err-sub { margin-top: 10px; color: var(--muted); font-size: 14px; }
.err-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------- 页脚 ---------------- */
.foot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: var(--foot-bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 26px;
}
.foot-brand { font-size: 16px; font-weight: 700; color: var(--txt); }
.foot-tag { margin: 7px 0 12px; font-size: 13px; color: var(--muted); }
.foot-declare { font-size: 12px; color: var(--muted); max-width: 400px; line-height: 1.8; }
.foot-col h2 { font-size: 12.5px; color: var(--txt); margin-bottom: 10px; font-weight: 600; }
.foot-col li { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.foot-col a:hover { color: var(--txt); }
.foot-col .muted { color: var(--muted); opacity: .7; }
.foot-bottom {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.foot-bottom a:hover { color: var(--txt); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 940px) {
  .hs-slide { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .hs-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 22px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 14px; }
  .hs-btn { display: none; }   /* 手机上直接用手指滑，圆点提示位置 */
  .hs-slide { padding: 18px; gap: 18px; }
  .hs-name { font-size: 23px; }
  .hs-desc { font-size: 14px; }
  .hs-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero { padding: 22px 0 12px; }
  .sec { padding: 34px 0; }
  .sec-title { font-size: 19px; }
  .sec-title::before { left: -9px; width: 2.5px; }
  .pcard-grid, .shot-grid, .feat-grid { grid-template-columns: 1fr; }
  .phero-grid { flex-direction: column; gap: 16px; }
  .phero-icon { width: 72px; height: 72px; border-radius: 17px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .nav-dl { display: none; }
}

/* ============================================================
   交互与动效
   ============================================================ */

/* ---------- 顶部阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 14px rgba(59, 130, 246, .55);
  transition: width .1s linear;
}

/* ---------- 顶栏滚动态 ---------- */
.top {
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.top.is-scrolled {
  box-shadow: 0 14px 36px -24px rgba(0, 0, 0, .95);
  border-bottom-color: var(--line-2);
  background: var(--head-bg-solid);
}

/* ---------- 导航下划线 ---------- */
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover { background: transparent; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- 进入视口淡入上浮 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity .6s ease var(--d, 0s),
    transform .68s cubic-bezier(.22, .68, .28, 1) var(--d, 0s);
}

/* ---------- 卡片：鼠标光晕 + 描边高亮 ---------- */
.pcard-body,
.contact-card,
.get-card,
.feat {
  position: relative;
  isolation: isolate;
}
.pcard-body::after,
.contact-card::after,
.get-card::after,
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(140, 195, 255, .34),
    transparent 64%
  );
  opacity: 0;
  transition: opacity .32s ease;
}
[data-theme="light"] .pcard-body::after,
[data-theme="light"] .contact-card::after,
[data-theme="light"] .get-card::after,
[data-theme="light"] .feat::after {
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(37, 99, 235, .13),
    transparent 64%
  );
}
.pcard:hover .pcard-body::after,
.contact-card:hover::after,
.get-card:hover::after,
.feat:hover::after { opacity: 1; }

/* ---------- 按钮：hover 扫光 ---------- */
.btn-primary,
.btn-buy {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-buy::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 42%;
  left: -70%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  pointer-events: none;
  transition: left .6s cubic-bezier(.3, .6, .3, 1);
}
.btn-primary:hover::after,
.btn-buy:hover::after { left: 128%; }

/* ---------- Hero 光晕跟随鼠标 ---------- */
.hero-glow {
  transform: translate3d(calc(-50% + var(--gx, 0px)), var(--gy, 0px), 0);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* 深色主题靠边框区分层级，再叠投影只会在照片上糊出一圈脏边 */
[data-theme="dark"] .hs-slide { box-shadow: none; }

/* ---------- 轮播：圆点与卡片微交互 ---------- */
.hs-dot:hover { background: var(--brand); opacity: .55; }
.hs-media { transition: border-color .25s; }
.hs-media:hover { border-color: var(--tag-bd); }

/* ---------- 主题切换按钮 ---------- */
.theme-btn svg { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.theme-btn:hover svg { transform: rotate(28deg) scale(1.06); }

/* ---------- 关闭动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after, .btn-buy::after { display: none; }
  .hero-glow { transform: translate3d(-50%, 0, 0); transition: none; }
  .pcard:hover, .contact-card:hover, .get-card:hover { transform: none; }
}
