/* =========================================================
   Han1meViewer 介绍页样式
   配色取自应用 Logo：赤红（H 字母）+ 金色（蝴蝶结）+ 白/粉点缀
   ========================================================= */

/* ===== 1. 变量与基础 ===== */
:root {
  --red-500: #e11d3c;
  --red-400: #ff2e4d;
  --red-600: #b3122e;
  --red-soft: rgba(225, 29, 60, 0.16);

  --gold-400: #f5c542;
  --gold-300: #ffd76a;
  --gold-soft: rgba(245, 197, 66, 0.16);

  --pink-400: #ff7a9c;
  --pink-soft: rgba(255, 122, 156, 0.16);

  --bg-900: #0d070c;
  --bg-800: #120a12;
  --bg-700: #1a1019;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f6f0f3;
  --text-dim: #b9a9b3;
  --text-mute: #8b7c86;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-xl: 36px;

  --shadow-red: 0 18px 50px -18px rgba(225, 29, 60, 0.75);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --container: 1200px;
  --header-h: 70px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--gold-300);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ===== 2. 背景装饰 ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(225, 29, 60, 0.28), transparent 60%),
    radial-gradient(900px 620px at 88% 4%, rgba(245, 197, 66, 0.14), transparent 62%),
    radial-gradient(1000px 800px at 50% 120%, rgba(255, 122, 156, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-800) 0%, var(--bg-900) 55%, #08040a 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: var(--red-500); top: -80px; left: -60px; }
.orb-2 { width: 320px; height: 320px; background: var(--gold-400); top: 20%; right: -80px; opacity: 0.3; animation-delay: -6s; }
.orb-3 { width: 420px; height: 420px; background: var(--pink-400); bottom: -140px; left: 35%; opacity: 0.22; animation-delay: -11s; }

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -34px, 0) scale(1.07); }
}

/* ===== 3. 通用文字与按钮 ===== */
.gradient-text {
  background: linear-gradient(100deg, var(--red-400) 0%, var(--gold-300) 55%, var(--pink-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag-danger {
  color: #ffd9df;
  background: var(--red-soft);
  border-color: rgba(255, 46, 77, 0.4);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-ico { display: inline-flex; font-size: 17px; line-height: 1; }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--red-400), var(--red-600) 60%, #ff5a3c 100%);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -18px rgba(255, 46, 77, 0.95); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(245, 197, 66, 0.45); }

/* ===== 4. 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 7, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 5, 10, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }

.brand-logo {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 236, 240, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px -10px rgba(225, 29, 60, 0.8);
  display: grid;
  place-items: center;
}
.brand-logo-sm { width: 40px; height: 40px; border-radius: 12px; }

/* Logo 图片：src 为空时自动隐藏（避免出现破图），仅显示底色占位 */
.logo-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.logo-img[src=""] { visibility: hidden; }

/* 未填写 Logo 地址时的字母占位（填写 src 后会被图片覆盖） */
.brand-logo::after {
  content: "H";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--red-500);
}
.brand-logo-sm::after { font-size: 20px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: 0.2px; }
.brand-text em { font-size: 11.5px; font-style: normal; color: var(--text-mute); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.is-active { color: var(--gold-300); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-400), var(--gold-400));
}
.nav-cta {
  margin-left: 10px;
  color: #fff;
  background: linear-gradient(120deg, var(--red-400), var(--red-600));
  box-shadow: 0 10px 26px -14px rgba(255, 46, 77, 0.95);
}
.nav-cta:hover { color: #fff; background: linear-gradient(120deg, var(--red-400), var(--red-600)); transform: translateY(-2px); }
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 5. 首屏 ===== */
.hero { padding: clamp(40px, 6vw, 86px) 0 clamp(30px, 5vw, 60px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.hero-title {
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  color: var(--text-dim);
  max-width: 620px;
}
.hero-desc b { color: var(--text); font-weight: 700; }

.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 46, 77, 0.12), rgba(245, 197, 66, 0.07));
  border: 1px solid var(--line-strong);
}
.version-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vk { font-size: 11.5px; letter-spacing: 0.16em; color: var(--text-mute); text-transform: uppercase; }
.vv { font-size: 15px; font-weight: 800; color: var(--gold-300); word-break: break-all; font-variant-numeric: tabular-nums; }
.version-split { width: 1px; height: 30px; background: var(--line-strong); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--red-400), var(--gold-400));
  box-shadow: 0 0 12px rgba(255, 46, 77, 0.9);
  flex: none;
}

/* --- 三张截图叠加动效 --- */
.hero-visual { display: flex; justify-content: center; }

.stack {
  position: relative;
  width: min(100%, 560px);
  height: 560px;
  perspective: 1400px;
}

.stack-hint {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.shot {
  --x: 0px;
  --rot: 0deg;
  --sc: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 236px;
  padding: 8px 8px 0;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--rot)) scale(var(--sc));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.4s ease,
    box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.shot:nth-child(1) { --x: -132px; --rot: -12deg; --sc: 0.9; z-index: 1; }
.shot:nth-child(2) { --x: 0px;    --rot: 1deg;   --sc: 0.97; z-index: 3; }
.shot:nth-child(3) { --x: 132px;  --rot: 11deg;  --sc: 0.9; z-index: 2; }

/* 鼠标移到哪张，哪张即置顶放大 */
.stack:hover .shot { opacity: 0.72; filter: saturate(0.75) brightness(0.85); }
.stack:hover .shot:hover,
.stack .shot.is-front {
  --x: 0px;
  --rot: 0deg;
  --sc: 1.06;
  z-index: 20;
  opacity: 1;
  filter: none;
  border-color: rgba(255, 46, 77, 0.65);
  box-shadow: 0 40px 80px -30px rgba(255, 46, 77, 0.85), 0 0 0 1px rgba(255, 46, 77, 0.25);
}

.shot .media {
  position: relative;
  border-radius: 20px 20px 12px 12px;
  overflow: hidden;
  aspect-ratio: 9 / 17;
  background:
    linear-gradient(160deg, rgba(255, 46, 77, 0.35), rgba(245, 197, 66, 0.16)),
    linear-gradient(180deg, #241019, #140b13);
}
.shot .media img { width: 100%; height: 100%; object-fit: cover; }

/* 空 src 或加载失败时隐藏图片，展示占位提示 */
.media.is-empty img { visibility: hidden; }
.media.is-empty::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: inherit;
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.shot-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(120deg, var(--red-400), var(--red-600));
  padding: 2px 7px;
  border-radius: 6px;
}

/* ===== 6. 数据条 ===== */
.stats {
  padding: clamp(20px, 4vw, 44px) 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px clamp(18px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--red-400), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-mute); }

/* ===== 7. 区块通用 ===== */
.section { padding: clamp(56px, 8vw, 104px) 0; }

/* 锚点跳转时预留固定导航高度，避免标题被遮挡 */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 25%, rgba(255, 255, 255, 0.022) 75%, transparent);
}

.section-head { max-width: 720px; margin-bottom: clamp(30px, 4.5vw, 52px); }
.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-300);
  padding: 5px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 197, 66, 0.34);
}
.section-title { font-size: clamp(25px, 3.6vw, 42px); letter-spacing: -0.02em; }
.section-sub { margin-top: 14px; color: var(--text-dim); font-size: 15.5px; }

/* ===== 8. 功能卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: linear-gradient(90deg, var(--red-400), var(--gold-400), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 46, 77, 0.42);
  box-shadow: 0 28px 60px -34px rgba(255, 46, 77, 0.9);
}
.feature-card:hover::before { opacity: 1; }

.feature-card h3 { font-size: 17.5px; margin: 16px 0 9px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

.f-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
}
.f-icon-red { background: var(--red-soft); border: 1px solid rgba(255, 46, 77, 0.36); color: var(--red-400); }
.f-icon-gold { background: var(--gold-soft); border: 1px solid rgba(245, 197, 66, 0.36); color: var(--gold-400); }
.f-icon-pink { background: var(--pink-soft); border: 1px solid rgba(255, 122, 156, 0.36); color: var(--pink-400); }

/* ===== 9. 用户评价 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(245, 197, 66, 0.4); }

.review-top { display: flex; align-items: center; gap: 13px; }

/* 汉字头像：不使用 img，纯文字呈现 */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--red-400), var(--red-600));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  user-select: none;
}
.avatar-gold { background: linear-gradient(140deg, var(--gold-300), #d59a10); color: #3a2400; }
.avatar-pink { background: linear-gradient(140deg, var(--pink-400), #d3355f); }

.review-user { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; min-width: 0; }
.review-user strong { font-size: 15px; }
.review-meta { font-size: 12px; color: var(--text-mute); }

.stars { color: var(--gold-400); font-size: 14px; letter-spacing: 1px; white-space: nowrap; }

.review-card > p { font-size: 14.5px; color: var(--text-dim); }

/* ===== 10. FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }

.faq-item {
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item.is-open { border-color: rgba(255, 46, 77, 0.45); background: rgba(255, 46, 77, 0.06); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.faq-mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition: background 0.3s ease, transform 0.3s ease;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-mark { background: linear-gradient(120deg, var(--red-400), var(--red-600)); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-mark::after { opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ===== 11. 下载区域 ===== */
.download-section { padding-bottom: clamp(60px, 9vw, 120px); }

.dl-card {
  position: relative;
  padding: clamp(30px, 5vw, 62px);
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(255, 46, 77, 0.3), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.dl-glow {
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 520px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 197, 66, 0.26), transparent);
  pointer-events: none;
}

.dl-head { max-width: 640px; margin: 0 auto clamp(26px, 4vw, 40px); }
.dl-head .section-sub { margin-top: 12px; }

.dl-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto clamp(28px, 4.5vw, 44px);
}
.dl-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.dl-meta-item .k { font-size: 12px; color: var(--text-mute); letter-spacing: 0.06em; }
.dl-meta-item .v { font-size: 14px; font-weight: 700; color: var(--text-dim); word-break: break-all; }
.dl-meta-item .v-strong { color: var(--gold-300); font-size: 15px; font-variant-numeric: tabular-nums; }

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-android,
.btn-ios {
  min-width: 240px;
  justify-content: flex-start;
  gap: 14px;
  padding: 15px 26px;
  border-radius: 18px;
  color: #fff;
  text-align: left;
}
.btn-android {
  background: linear-gradient(120deg, #35d07f, #14a05c 70%);
  box-shadow: 0 18px 46px -20px rgba(53, 208, 127, 0.9);
}
.btn-android:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -20px rgba(53, 208, 127, 1); }
.btn-ios {
  background: linear-gradient(120deg, #4a5160, #22262f 70%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 46px -22px rgba(0, 0, 0, 0.95);
}
.btn-ios:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); }
.btn-txt { display: flex; flex-direction: column; line-height: 1.3; }
.btn-txt b { font-size: 16.5px; }
.btn-txt em { font-size: 12px; font-style: normal; opacity: 0.82; }

.dl-tip {
  max-width: 820px;
  margin: 26px auto 0;
  font-size: 13px;
  color: var(--text-mute);
}

.dl-note {
  max-width: 860px;
  margin: 22px auto 0;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--line-strong);
}
.dl-note strong { color: var(--red-400); }

/* ===== 12. 页脚 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 34px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 15.5px; }
.footer-brand p { font-size: 12.5px; color: var(--text-mute); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-inline: auto; }
.footer-nav a { font-size: 13.5px; color: var(--text-mute); transition: color 0.22s ease; }
.footer-nav a:hover { color: var(--gold-300); }

.footer-copy { font-size: 12.5px; color: var(--text-mute); }

/* ===== 13. 提示条 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 99;
  transform: translate(-50%, 26px);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--red-400), var(--red-600));
  box-shadow: var(--shadow-red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 14. 滚动进场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 15. 响应式 ===== */
@media (max-width: 1080px) {
  /* 用 minmax(0, 1fr) 而非 1fr：避免截图层的最小内容宽度（约 3 张卡片之和）
     反向撑大栅格轨道，导致移动端出现横向溢出 */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-inner > * { min-width: 0; }
  .hero-visual { order: 2; min-width: 0; }
  .stack { height: 500px; }
  .shot { width: 216px; }
  .shot:nth-child(1) { --x: -116px; }
  .shot:nth-child(3) { --x: 116px; }
  .dl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(10, 5, 10, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 13px 14px; font-size: 15.5px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; display: flex; }

  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .footer-nav { margin-inline: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .container { width: min(100% - 28px, var(--container)); }
  .brand-text em { display: none; }

  /* 截图改为横向滑动卡片，避免叠加在小屏上互相遮挡 */
  .hero-visual { width: 100%; }
  .stack {
    height: auto;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 34px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .stack::-webkit-scrollbar { height: 6px; }
  .stack::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
  .shot,
  .shot:nth-child(1),
  .shot:nth-child(2),
  .shot:nth-child(3) {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 74%;
    max-width: 300px;
    --x: 0px;
    --rot: 0deg;
    --sc: 1;
    transform: none;
    scroll-snap-align: center;
  }
  .stack:hover .shot { opacity: 1; filter: none; }
  .stack .shot.is-front { --sc: 1; box-shadow: var(--shadow-card); border-color: var(--line-strong); }
  .stack-hint { bottom: 8px; }

  .dl-actions { flex-direction: column; }
  .btn-android, .btn-ios { width: 100%; justify-content: center; text-align: center; }
  .btn-txt { align-items: center; }
}

@media (max-width: 560px) {
  .version-bar { gap: 12px; padding: 14px 16px; }
  .version-split { display: none; }
  .version-item { flex: 1 1 40%; }
  .dl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dl-meta-item { padding: 13px 10px; }
  .dl-meta-item .v { font-size: 13px; }
  .dl-meta-item .v-strong { font-size: 13.5px; }
  .hero-points { flex-direction: column; gap: 8px; }
  .review-grid, .feature-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ===== 16. 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot, .feature-card, .review-card, .btn { transition: none; }
}
