/* ============================================================
   魔法词宝官网 · 魔法夜空萌系风
   tokens 见设计契约：深靛夜空 + 星光金 + 奶油纸卡
   ============================================================ */
@font-face {
  font-family: "SugarRound";
  src: url("assets/fonts/sugarround.woff2?v=8c6a7789") format("woff2");
  font-display: swap;
}

:root {
  --bg0: #1e1940;
  --bg1: #2a2552;
  --bg2: #38306b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.12);
  --cream: #fdf8e7;
  --cream-2: #f4ecd6;
  --primary: #8b7cf6;
  --primary-hover: #7a6be8;
  --primary-deep: #6c5ce0;
  --gold: #f5c542;
  --gold-deep: #e8a820;
  --mint: #5bc9a8;
  --pink: #f27ba6;
  --coral: #ff8a5c;
  --td-hi: #f6f3ff;
  --td-sub: #b7b0dc;
  --tc-hi: #3a3460;
  --tc-sub: #857daf;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --sh-dark: 0 10px 30px rgba(12, 9, 40, 0.35);
  --sh-cream: 0 6px 18px rgba(58, 52, 96, 0.12);
  --font-d: "SugarRound", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-b: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* ---- 主题 token（魔法夜空） ---- */
  --gold-shadow: 245, 197, 66;   /* 金色投影 rgb */
  --pri-rgb: 139, 124, 246;      /* 紫强调 rgb */
  --pri2-rgb: 108, 92, 224;      /* 深紫 rgb（天空光晕2） */
  --acc2-rgb: 91, 201, 168;      /* 薄荷辅助 rgb */
  --g-hi: #ffedaa; --g-mid: #f5c542; --g-deep: #e8a820; --g-dark: #c98a0e; /* 金色立体字渐变 */
  --g-edge: rgba(90, 58, 8, 0.45);
  --gold-hi: #ffd968; --on-gold: #4a3410;
  --pri-hi: #a495ff;
  --sky-deep: #1a1638;
  --sky-1: rgba(139, 124, 246, 0.22); --sky-2: rgba(108, 92, 224, 0.16); --sky-3: rgba(245, 197, 66, 0.08);
  --moon-hi: #ffe9a8; --moon-mid: #f5c542; --moon-deep: #d99a12;
  --tw-gold: rgba(245, 222, 140, 0.8); --tw-gold2: rgba(245, 197, 66, 0.5);
  --frame: #16122e; --frame-2: #2a2552;   /* 手机边框 / 截图描边 */
  --chip-bg: rgba(38, 32, 78, 0.9);
  --nav-bg: rgba(24, 20, 52, 0.88); --nav-bg-solid: rgba(24, 20, 52, 0.97);
  --cap-bg: rgba(24, 20, 52, 0.8);
  --foot-bg: rgba(14, 11, 34, 0.75);
  --panel-a: #342c68; --panel-b: #241f4c; /* 下载面板渐变 */
  --li1-bg: rgba(139, 124, 246, 0.16); --li1-fg: #b3a7ff;  /* 图标底1（紫） */
  --li3-bg: rgba(91, 201, 168, 0.14); --li3-fg: #5bc9a8;   /* 图标底3（薄荷） */
}

/* ---- 皮肤：薄荷森林（App "mint-forest"） ---- */
body[data-skin="forest"] {
  --bg0: #064e3b; --bg1: #0b6255; --bg2: #0f766e;
  --cream: #f0fdf4; --cream-2: #dcfce7;
  --primary: #0d9488; --primary-hover: #0f766e; --primary-deep: #115e59;
  --gold: #34d399; --gold-deep: #0d9488;
  --mint: #4ade80;
  --td-hi: #ecfdf5; --td-sub: #a7cdbf;
  --tc-hi: #053b2e; --tc-sub: #047857;
  --gold-shadow: 52, 211, 153;
  --pri-rgb: 13, 148, 136; --pri2-rgb: 45, 212, 191; --acc2-rgb: 250, 204, 21;
  --g-hi: #a7f3d0; --g-mid: #34d399; --g-deep: #10b981; --g-dark: #047857;
  --g-edge: rgba(2, 44, 34, 0.5);
  --gold-hi: #6ee7b7; --on-gold: #022c22;
  --pri-hi: #5eead4;
  --sky-deep: #033026;
  --sky-1: rgba(45, 212, 191, 0.18); --sky-2: rgba(13, 148, 136, 0.15); --sky-3: rgba(110, 231, 183, 0.1);
  --moon-hi: #d1fae5; --moon-mid: #6ee7b7; --moon-deep: #0d9488;
  --tw-gold: rgba(209, 250, 229, 0.8); --tw-gold2: rgba(52, 211, 153, 0.5);
  --frame: #022c22; --frame-2: #064e3b;
  --chip-bg: rgba(4, 47, 46, 0.8);
  --nav-bg: rgba(4, 42, 38, 0.85); --nav-bg-solid: rgba(4, 42, 38, 0.97);
  --cap-bg: rgba(4, 42, 38, 0.82);
  --foot-bg: rgba(3, 32, 30, 0.8);
  --panel-a: #0d5f52; --panel-b: #06382f;
  --li1-bg: rgba(13, 148, 136, 0.16); --li1-fg: #5eead4;
  --li3-bg: rgba(250, 204, 21, 0.14); --li3-fg: #fde047;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-b);
  color: var(--td-hi);
  background: var(--bg1);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: rgba(var(--gold-shadow), 0.35); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 夜空背景（渐变 + 两层星场 + 光晕） ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--sky-1), transparent 60%),
    radial-gradient(900px 600px at 8% 28%, var(--sky-2), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, var(--sky-3), transparent 60%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--bg1) 34%, var(--bg1) 66%, var(--bg0) 100%);
}
.stars, .stars2 {
  position: fixed; inset: -50% 0 0 0; z-index: -2; pointer-events: none;
  background-repeat: repeat;
}
/* 手写星点：用多重 radial-gradient 模拟随机星场，两层不同密度/速度 */
.stars {
  background-image:
    radial-gradient(1.5px 1.5px at 22px 34px, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 180px 120px, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 320px 210px, var(--tw-gold) 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 300px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 420px 80px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 500px 260px, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 260px 380px, rgba(183,176,220,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 560px 40px, rgba(255,255,255,.5) 50%, transparent 51%);
  background-size: 600px 420px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars2 {
  background-image:
    radial-gradient(1px 1px at 60px 90px, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 240px 200px, var(--tw-gold2) 50%, transparent 51%),
    radial-gradient(1px 1px at 400px 140px, rgba(255,255,255,.32) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 140px 330px, rgba(255,255,255,.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 520px 320px, var(--tw-gold2) 50%, transparent 51%);
  background-size: 620px 460px;
  animation: drift 60s linear infinite;
  opacity: 0.7;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(230px); } }

/* ---------- 流星（夜空点睛） ---------- */
.meteor {
  position: fixed; z-index: -1; width: 150px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(var(--gold-shadow), 0.95));
  filter: drop-shadow(0 0 6px rgba(var(--gold-shadow), 0.7));
  transform: rotate(-32deg); pointer-events: none; opacity: 0;
  animation: meteor 9s ease-in infinite;
}
.meteor.m1 { top: 12%; left: -160px; animation-delay: 2.2s; }
.meteor.m2 { top: 4%; left: 22%; animation-delay: 6.8s; animation-duration: 11s; }
@keyframes meteor {
  0% { opacity: 0; translate: 0 0; }
  4% { opacity: 1; }
  13% { opacity: 0; translate: 620px 390px; }
  100% { opacity: 0; translate: 620px 390px; }
}

/* 导航右上角皮肤切换 */
.skin-menu { position: relative; flex: none; }
.skin-trigger {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.skin-trigger:hover { color: var(--td-hi); border-color: rgba(var(--gold-shadow), 0.5); background: rgba(var(--gold-shadow), 0.1); transform: rotate(12deg); }
.skin-trigger svg { width: 19px; height: 19px; }
.skin-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 4px; min-width: 148px;
  background: var(--nav-bg-solid); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 8px;
  box-shadow: 0 14px 34px rgba(10, 8, 30, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97); transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.skin-menu.open .skin-pop { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.skin-pop::before {
  content: ""; position: absolute; top: -5px; right: 14px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--nav-bg-solid); border-left: 1px solid var(--glass-line); border-top: 1px solid var(--glass-line);
}
.skin-opt {
  display: flex; align-items: center; gap: 9px;
  background: transparent; border: none; color: var(--td-sub);
  font-size: 13.5px; font-family: inherit; cursor: pointer; text-align: left;
  transition: color 0.15s, background 0.15s;
}
.skin-opt::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #8b7cf6, #f5c542); }
.skin-opt[data-skin="forest"]::before { background: linear-gradient(180deg, #34d399, #0d9488); }
.skin-opt:hover { color: var(--td-hi); background: rgba(255, 255, 255, 0.06); }
.skin-pop .skin-opt { justify-content: flex-start; width: 100%; padding: 9px 13px; border-radius: 10px; }
.skin-pop .skin-opt.is-on { color: var(--gold); background: rgba(var(--gold-shadow), 0.14); }
@media (max-width: 768px) {
  .skin-trigger { width: 34px; height: 34px; }
  .skin-trigger svg { width: 17px; height: 17px; }
}

/* ---------- Hero 漂浮单词 ---------- */
.word-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.word-floats span {
  position: absolute; left: var(--x); bottom: -44px;
  font-family: var(--font-d); font-size: 17px; color: var(--td-sub);
  background: var(--chip-bg); border: 1px solid var(--glass-line);
  padding: 3px 13px; border-radius: 999px;
  opacity: 0; animation: wordrise var(--t) linear var(--d) infinite;
}
@keyframes wordrise {
  0% { opacity: 0; transform: translateY(0) rotate(-2deg); }
  9% { opacity: 0.36; }
  85% { opacity: 0.256; }
  100% { opacity: 0; transform: translateY(-560px) rotate(4deg); }
}
@media (max-width: 768px) { .word-floats { display: none; } .meteor { display: none; } }

.moon {
  position: fixed; top: 84px; right: 6vw; z-index: -1;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, var(--moon-hi), var(--moon-mid) 58%, var(--moon-deep));
  box-shadow: 0 0 44px 12px rgba(var(--gold-shadow), 0.28), 0 0 120px 40px rgba(var(--gold-shadow), 0.1);
  animation: floaty 7s ease-in-out infinite alternate;
}
/* 移动端月亮压到最底层（天空层之下，被不透明天空遮蔽，不再穿透玻璃卡） */
@media (max-width: 768px) { .moon { z-index: -4; } }

/* ---------- 通用文字与标题 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--gold);
  background: rgba(var(--gold-shadow), 0.1); border: 1px solid rgba(var(--gold-shadow), 0.3);
  padding: 6px 14px; border-radius: 999px; font-weight: 600;
}
h2.sec-title {
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.35;
  letter-spacing: 1px; margin: 14px 0 10px;
}
h2.sec-title .em { color: var(--gold); }
.sec-sub { color: var(--td-sub); font-size: 15px; max-width: 100%; }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head .sec-sub { margin: 0 auto; }
section { padding: 56px 0; position: relative; }
html { scroll-padding-top: 80px; }
@media (max-width: 768px) { section { padding: 44px 0; } }

/* 金色立体字（品牌 logo / 数字） */
.gold-text {
  background: linear-gradient(180deg, var(--g-hi) 8%, var(--g-mid) 42%, var(--g-deep) 78%, var(--g-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 var(--g-edge)) drop-shadow(0 6px 14px rgba(var(--gold-shadow), 0.25));
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: none;
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap; /* 按钮文字永不换行（如「免费下载」） */
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn svg { flex: none; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  color: var(--on-gold);
  box-shadow: 0 8px 22px rgba(var(--gold-shadow), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--gold-shadow), 0.45), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold:active { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--td-hi);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.btn-purple {
  background: linear-gradient(180deg, var(--pri-hi), var(--primary) 50%, var(--primary-deep));
  color: #fff; box-shadow: 0 8px 22px rgba(var(--pri-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-purple:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--pri-rgb), 0.45); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 18px; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(30, 25, 64, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--glass-line);
  box-shadow: 0 8px 24px rgba(10, 8, 30, 0.35);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 24px; letter-spacing: 1px; position: relative; flex: none; }
/* Logo 星光特效：字标前后各一颗闪烁四角星 */
.logo::before,
.logo::after {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 7.9 7.9 2.6-7.9 2.6L12 22.5l-2.6-7.9-7.9-2.6 7.9-2.6z' fill='%23ffd968'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(var(--gold-shadow), 0.9)) drop-shadow(0 0 14px rgba(var(--gold-shadow), 0.45));
  animation: sparkle 2.6s ease-in-out infinite;
}
.logo::before { width: 15px; height: 15px; left: -9px; top: -9px; }
.logo::after { width: 11px; height: 11px; right: -13px; bottom: -7px; animation-delay: 1.3s; animation-duration: 3.2s; }
@keyframes sparkle {
  0%, 100% { transform: scale(0.55) rotate(-12deg); opacity: 0.35; }
  50% { transform: scale(1.1) rotate(8deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .logo::before, .logo::after { animation: none; } }
/* picture 默认 display:contents 会让图片直接参与 .logo 的 flex 布局，图片的
   max-width:100% 又会反过来按 .logo 的计算宽度收缩 → 字标被压窄并溢出容器。
   这里把每张图包成独立块并禁止收缩，logo 宽度完全由图片自身尺寸决定。 */
.logo picture { display: block; flex: none; }
.logo img { height: 33px; width: auto; max-width: none; flex: none; filter: drop-shadow(0 3px 8px rgba(12, 9, 40, 0.45)); }
.logo-appicon { height: 32px; border-radius: 9px; box-shadow: 0 3px 10px rgba(12, 9, 40, 0.5); }
.foot-brand .logo img { height: 44px; }
.foot-brand .logo-appicon { height: 42px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 9px 8px; border-radius: 999px; font-size: 13.5px; color: var(--td-sub);
  transition: color 0.2s, background 0.2s; position: relative;
  white-space: nowrap; flex: 0 0 auto; /* 导航项单行显示，永不换行 */
}
.nav-links a:hover { color: var(--td-hi); background: rgba(255, 255, 255, 0.07); }
.nav-links a.active { color: var(--gold); background: rgba(var(--gold-shadow), 0.12); }
.nav-cta { margin-left: 4px; padding: 10px 16px; font-size: 13px; flex: none; }
@media (max-width: 1240px) { .nav-inner { gap: 12px; } }
/* 窄桌面（1001-1120）：9 项导航再收一档，避免与 Logo 贴边 */
@media (max-width: 1120px) and (min-width: 1001px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 9px 6px; font-size: 13px; }
  .logo img { height: 29px; }
  .logo-appicon { height: 29px; }
  .nav-cta { padding: 9px 13px; }
}
/* 移动端汉堡 */
.nav-burger { display: none; margin-left: auto; }
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  /* 移动端隐藏皮肤切换按钮（仅桌面端保留），汉堡右移补位 */
  .skin-menu { display: none; }
  .nav-burger { margin-left: auto; }
  .burger-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-line); display: flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 122px 0 44px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: center; }
/* 网格项默认 min-width:auto，副行里的不换行段会把整列撑宽；显式归零，宽度与改前一致 */
.hero-grid > div { min-width: 0; }
.hero-badge { margin-bottom: 16px; }
.hero h1 {
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 50px); line-height: 1.28; letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero-sub { color: var(--td-sub); font-size: 16px; max-width: 100%; margin-bottom: 24px; }
.hero-path {
  font-size: 14px; color: var(--td-sub); margin: -10px 0 22px; padding: 8px 32px 8px 12px;
  border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  /* 底色框只裹着两行文字，不再铺满整列；右侧多 20px 留白 */
  width: fit-content; max-width: 100%;
}
/* 副行按「→」分段：每段整段不拆开（文字不变，仅禁止段内换行） */
.hero-path .hero-step { white-space: nowrap; }
/* 副行分两行：引导语单独 block，路径整行再做分段不拆 */
.hero-path .hp-lead { display: block; margin-bottom: 4px; }
.hero-path .hp-route { display: block; }
.hero-sub strong { color: var(--td-hi); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--td-sub); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--mint); }

/* Hero 右侧：手机 + 漂浮卡 + 吉祥物 */
.hero-stage { position: relative; display: flex; justify-content: center; min-height: 520px; align-items: center; }
.hero-stage .phone {
  margin-right: 64px;
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease);
  animation: phoneIdle 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes phoneIdle {
  0%, 100% { translate: 0 0; rotate: 0.5deg; }
  35% { translate: 0 -9px; rotate: -0.6deg; }
  70% { translate: 0 5px; rotate: 0.4deg; }
}
.phone {
  width: 246px; aspect-ratio: 9 / 19; border-radius: 36px; overflow: hidden;
  border: 8px solid var(--frame); background: var(--bg2);
  box-shadow: 0 30px 60px rgba(10, 8, 30, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(var(--pri-rgb), 0.28);
  position: relative; z-index: 2;
  /* 各版块真机手机统一待机浮动；translate/rotate 独立属性不破坏既有静态倾斜 */
  animation: phoneIdle 8s ease-in-out infinite;
  will-change: transform;
}
/* 各版块错开节奏：负延迟让页面加载时就已经错位，避免整页手机同步起伏 */
#memory .phone { animation-duration: 8.5s; animation-delay: -2.5s; }
.p-shots .phone:nth-child(1) { animation-duration: 7.5s; animation-delay: -1.2s; }
.p-shots .phone:nth-child(2) { animation-duration: 9.5s; animation-delay: -4.8s; }
.books-shot .phone { animation-duration: 8s; animation-delay: -3.5s; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.small { width: 218px; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: var(--chip-bg); border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--sh-dark);
  animation: floaty 5s ease-in-out infinite alternate;
  scale: 0.75; /* 整卡缩至 75%，scale 独立属性不干扰 floaty 的 transform 与视差 translate */
}
.float-chip .fc-num { font-family: var(--font-d); font-size: 19px; }
.float-chip svg { flex: none; }
@keyframes floaty { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-task { top: 52px; left: -15%; animation-delay: 0.4s; }
.chip-combo { bottom: 142px; left: -12%; animation-delay: 1.2s; }
.chip-medal { top: 56px; right: -8%; animation-delay: 0.8s; }
.chip-star { bottom: 262px; right: -8%; animation-delay: 1.8s; }
.hero-fox {
  position: absolute; z-index: 3; right: -4%; bottom: -6%;
  width: min(170px, 25vw); opacity: 0.98;
  filter: drop-shadow(0 20px 32px rgba(10, 8, 30, 0.55));
  animation: floaty 8s ease-in-out infinite alternate;
}
/* 狐狸接地影子：随狐狸浮动同步缩放，强化"站在地上"的立体感 */
.fox-shadow {
  position: absolute; z-index: 2; right: -1%; bottom: -8.5%;
  width: min(143px, 21vw); height: 34px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(8, 6, 26, 0.55), transparent 72%);
  animation: shadowPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes shadowPulse {
  from { transform: scaleX(1); opacity: 0.9; }
  to { transform: scaleX(0.78); opacity: 0.55; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 92px; } /* 减少导航下方顶部空白 */
  .hero-stage { min-height: 0; padding: 16px 0 36px; }
  .hero-stage .phone { margin-right: 0; }
  .chip-task { left: 2%; } .chip-combo { left: 0; }
  .chip-medal { right: 2%; } .chip-star { right: 4%; bottom: 268px; }
  .hero-fox { width: 150px; bottom: -4%; }
}
@media (max-width: 480px) {
  .phone { width: 232px; }
  .float-chip { padding: 8px 11px; font-size: 12px; scale: 0.62; }
  /* 浮框贴死视口左右边（transform-origin 保证 scale 后仍贴边） */
  .chip-task { left: -26px; top: 40px; transform-origin: left center; }
  .chip-combo { left: -26px; bottom: 96px; transform-origin: left center; }
  .chip-medal { right: -26px; top: 88px; transform-origin: right center; }
  .chip-star { right: -26px; bottom: 232px; transform-origin: right center; }
  /* 狐狸减半 */
  .hero-fox { width: min(112px, 30vw); bottom: -3%; right: 2%; }
  .hero-fox-shadow { width: min(100px, 27vw); }
}

/* ---------- 信任条 ---------- */
.trust { padding: 10px 0 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 18px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.trust-item:hover { transform: translateY(-4px); border-color: rgba(var(--gold-shadow), 0.4); }
.trust-item svg { flex: none; color: var(--gold); margin-top: 2px; }
.trust-item b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.trust-item p { font-size: 13px; color: var(--td-sub); line-height: 1.6; }
@media (max-width: 920px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- 玩法区 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* 版面交替背景：拆分后的独立版面用轻玻璃底区分 */
section.sec-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 3D 词图 ---------- */
.gallery-hero { text-align: center; margin-bottom: 26px; }
.g-num { font-family: var(--font-d); font-size: clamp(46px, 6.5vw, 68px); line-height: 1.1; letter-spacing: 1px; }
.g-plus { font-size: 0.62em; margin-left: 2px; }
.gallery-hero b { display: block; font-size: 19px; margin-top: 6px; }
.gallery-hero small { color: var(--td-sub); font-size: 13px; }
.pic-marquee { display: flex; flex-direction: column; gap: 0; padding: 0 0 10px; }
.pm-row {
  /* 上下内边距为 hover 上浮/前凸留出空间（上移约15px，留20px缓冲），避免被 overflow 裁掉顶部 */
  overflow: hidden; padding: 20px 0; perspective: 1000px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.pm-track { display: flex; gap: 16px; width: max-content; transform-style: preserve-3d; animation: scrollx 76s linear infinite; }
.pm-track.pm-rev { animation-direction: reverse; animation-duration: 92s; }
.pic-marquee:hover .pm-track { animation-play-state: paused; }
.pm-item {
  flex: none; width: 168px; padding: 10px 10px 8px;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); transition: border-color 0.25s, transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
/* 裸眼3D：相邻卡片交替前后姿态，滚动时像卡片在空间里错落穿行 */
.pm-item:nth-child(odd) { transform: translateY(5px) rotateY(4deg); }
.pm-item:nth-child(even) { transform: translateY(-5px) rotateY(-4deg); }
.pm-item:hover {
  border-color: rgba(var(--gold-shadow), 0.45);
  transform: translateY(-8px) translateZ(20px) rotateY(0) scale(1.05);
  box-shadow: 0 16px 30px rgba(10, 8, 30, 0.45);
}
.pm-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pm-item i { display: block; text-align: center; font-style: normal; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 15px; color: var(--td-hi); margin-top: 8px; }
@media (max-width: 640px) { .pm-item { width: 126px; } .pm-item i { font-size: 13px; } }

/* ---------- 拍照学词（F12 · 按交互原型复刻） ---------- */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photo-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); padding: 18px;
  transition: border-color 0.25s;
}
.photo-card:hover { border-color: rgba(var(--gold-shadow), 0.35); }
.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-head b { font-size: 17px; display: block; }
.pc-head small { color: var(--td-sub); font-size: 12.5px; }
.pc-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.pc-ico svg { width: 20px; height: 20px; }
.pc-green { background: rgba(var(--acc2-rgb), 0.14); color: var(--li3-fg); }
.pc-gold { background: rgba(var(--gold-shadow), 0.14); color: var(--gold); }
.pc-flow {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  color: var(--td-sub); font-size: 12.5px;
}
.pc-flow span { background: var(--chip-bg); border: 1px solid var(--glass-line); border-radius: 999px; padding: 3px 12px; }
.pc-flow svg { width: 14px; height: 14px; opacity: 0.6; }
/* 置信度条（复刻拍物成词识别结果页顶部「词库命中 99%」） */
.wc-conf {
  display: flex; align-items: center; gap: 11px; margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(var(--pri-rgb), 0.32), rgba(var(--pri-rgb), 0.10));
  border: 1px solid var(--glass-line); border-radius: 12px; padding: 10px 12px;
}
.wc-conf-ring {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-d); font-size: 15px; font-weight: 800;
}
.wc-conf-ring i { font-style: normal; font-size: 9px; margin-left: 1px; }
.wc-conf b { font-size: 13.5px; color: var(--td-hi); }
.wc-conf small { display: block; font-size: 11.5px; color: var(--td-sub); margin-top: 1px; }
/* 词条卡：渐变描边（复刻原型 wordcard） */
.wordcard {
  border-radius: 18px; padding: 16px; position: relative; overflow: hidden;
  background: linear-gradient(var(--chip-bg), var(--chip-bg)) padding-box,
    linear-gradient(135deg, var(--primary), var(--pink), var(--gold)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 28px rgba(10, 8, 30, 0.4);
}
.wordcard::before {
  content: ""; position: absolute; top: -44px; right: -44px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--pri-rgb), 0.3), transparent 70%);
}
.wc-top { display: flex; gap: 8px; margin-bottom: 8px; }
.wc-src, .wc-stage { font-size: 10.5px; padding: 3px 10px; border-radius: 999px; }
.wc-local { background: rgba(var(--acc2-rgb), 0.16); color: var(--li3-fg); }
.wc-stage { background: rgba(var(--gold-shadow), 0.14); color: var(--gold); }
/* 词条卡右上角样例照片（取自手册样例截图；显式 display:block 覆盖全局 picture{display:contents}） */
.wc-photo { display: block; position: absolute; top: 14px; right: 14px; width: 72px; height: 77px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(10, 8, 30, 0.35); }
.wc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wc-w { font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.15; }
.wc-ph { display: flex; gap: 14px; font-size: 12.5px; color: var(--td-sub); margin-top: 4px; }
.wc-ph svg { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; opacity: 0.75; }
.wc-ps { font-size: 13px; color: var(--gold); margin-top: 5px; }
.wc-ex {
  margin-top: 10px; background: rgba(0, 0, 0, 0.22); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.6;
}
.wc-ex b { color: var(--gold); font-weight: 600; }
.wc-ex span { display: block; color: var(--td-sub); font-size: 11.5px; margin-top: 3px; }
.pc-list { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.pc-list li { display: flex; gap: 8px; font-size: 13px; color: var(--td-sub); align-items: flex-start; line-height: 1.6; }
.pc-list li svg { flex: none; color: var(--li3-fg); margin-top: 3px; }
/* 海报 mini（复刻原型杂志奶咖模板） */
.poster {
  background: #f7efe3; color: #3d2b23; border-radius: 14px; padding: 14px 14px 10px;
  box-shadow: 0 12px 28px rgba(10, 8, 30, 0.4);
  font-family: Georgia, "Times New Roman", serif; position: relative; overflow: hidden;
}
.poster::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(140, 47, 47, 0.25); border-radius: 9px; pointer-events: none;
}
/* 英文标题 + 中文副标题（同一行：中文副标题在英文标题右侧，基线对齐） */
.po-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.po-title { font-size: 22px; font-weight: 800; letter-spacing: 1.6px; color: #8c2f2f; }
.po-title em { font-style: italic; color: #c98a0e; }
.po-zh { font-size: 13px; color: #8c7b6a; letter-spacing: 2px; }
/* 海报右上角样例照片（与英文标题同排，尺寸/位置对齐业主标注红框；显式 display:block 覆盖全局 picture{display:contents}） */
.po-thumb {
  display: block; flex: none; margin-left: auto; align-self: flex-start;
  width: 112px; height: 48px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 3px 8px rgba(58, 52, 96, 0.18);
}
.po-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 五段式（与 App 内海报同构：01 词汇 / 02 短语 / 03 句型 / 04 场景描述 / 05 口语话题） */
.po-sec { margin-top: 9px; }
.po-sec h5 {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.1px; color: #8c2f2f; margin-bottom: 4px;
}
.po-sec h5 span {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 0; color: #fff;
  background: #8c2f2f; border-radius: 4px; padding: 1px 5px;
}
/* 01 词汇：2×2 网格（词 + 音标 + 中文同行，固定两行四个词） */
.po-vocab { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.po-vocab span { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; font-weight: 700; color: #5a4232; white-space: nowrap; }
.po-vocab i { font-style: normal; font-size: 9.5px; font-weight: 400; color: #8c7b6a; }
.po-vocab em { font-style: normal; margin-left: 0; font-size: 10px; font-weight: 400; color: #8c7b6a; }
.po-sec p { font-size: 11.5px; line-height: 1.5; color: #5a4232; }
.po-sec p i { font-style: normal; font-size: 10px; color: #8c7b6a; margin-left: 4px; }
.po-sec p em { font-style: normal; color: #c98a0e; margin: 0 6px; }
.po-sec p em.po-tips { display: block; margin: 1px 0 0; font-size: 9px; color: #a89684; }
/* 04 场景描述：中文另起一行 */
.po-sec p.po-para i { display: block; margin-left: 0; margin-top: 1px; }
.po-sec p b { font-size: 11.5px; font-weight: 700; color: #5a4232; }
.po-sec p u { text-decoration-color: #c98a0e; text-underline-offset: 2px; color: #8c2f2f; font-weight: 700; }

/* ---------- 词汇量测试（F12 · 按交互原型复刻） ---------- */
.vocab-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.orb-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.orb {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #c4b5fd, var(--primary) 52%, #3b2f8a 88%);
  box-shadow: 0 0 40px rgba(var(--pri-rgb), 0.5), inset -8px -10px 24px rgba(20, 12, 60, 0.55), inset 6px 6px 16px rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center; color: #fff;
  animation: floaty 6s ease-in-out infinite alternate;
}
.orb-glyph { width: 56px; height: auto; filter: drop-shadow(0 4px 8px rgba(24, 16, 64, 0.35)); }
/* 参考交互原型：左上高光 + 内层虚线旋转环 + 外层逆时针轨道（带金色卫星） */
.orb::after {
  content: ""; position: absolute; top: 12px; left: 20px;
  width: 22px; height: 12px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); filter: blur(2px);
}
.orb::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1.5px dashed rgba(196, 181, 253, 0.45);
  animation: spin 10s linear infinite;
}
.orb-ring {
  position: absolute; inset: -30px; border-radius: 50%;
  border: 1px solid rgba(var(--pri-rgb), 0.18);
  animation: spin 16s linear infinite reverse;
  pointer-events: none;
}
.orb-ring i {
  position: absolute; top: -3px; left: 50%; margin-left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.orb-orbit i {
  position: absolute; border-radius: 50%;
  background: rgba(var(--gold-shadow), 0.85); box-shadow: 0 0 8px rgba(var(--gold-shadow), 0.9);
  animation: floaty 4.5s ease-in-out infinite alternate;
}
.orb-orbit i:nth-child(1) { width: 8px; height: 8px; top: 2px; right: 8px; }
.orb-orbit i:nth-child(2) { width: 5px; height: 5px; bottom: 14px; left: 0; animation-delay: 1.2s; }
.orb-orbit i:nth-child(3) { width: 6px; height: 6px; bottom: -2px; right: 26px; animation-delay: 2.2s; }
.vocab-copy { text-align: center; }
.vocab-copy h3 { font-family: var(--font-d); font-weight: 400; font-size: 23px; margin-bottom: 10px; }
.vc-list { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.vc-list li { display: flex; gap: 9px; font-size: 14px; color: var(--td-sub); align-items: flex-start; justify-content: center; }
.vc-list li svg { flex: none; color: var(--gold); margin-top: 3px; }
.vc-medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vmedal {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-md);
  padding: 12px 6px; text-align: center;
}
.vmedal svg { width: 22px; height: 22px; margin-bottom: 5px; }
.vmedal b { display: block; font-size: 12.5px; }
.vmedal small { color: var(--td-sub); font-size: 11px; }
.vm-bronze svg { color: #d09a5e; } .vm-bronze { border-color: rgba(208, 154, 94, 0.4); }
.vm-silver svg { color: #c9d2e8; } .vm-silver { border-color: rgba(201, 210, 232, 0.4); }
.vm-gold svg { color: var(--gold); } .vm-gold { border-color: rgba(var(--gold-shadow), 0.45); }
.vm-rain svg { color: #f472b6; }
.vm-rain { border-color: rgba(244, 114, 182, 0.45); background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(91, 201, 168, 0.1), rgba(var(--gold-shadow), 0.1)); }
/* 结果卡（复刻原型 rHero / panel） */
.result-card {
  background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
  border: 1px solid rgba(var(--gold-shadow), 0.3);
  border-radius: var(--r-lg); padding: 22px 22px 18px;
  box-shadow: var(--sh-dark);
}
.rc-hero { text-align: center; margin-bottom: 14px; }
.rc-num { font-family: var(--font-d); font-size: clamp(44px, 5vw, 56px); line-height: 1.1; }
.rc-lab { color: var(--td-sub); font-size: 12px; margin-top: 4px; }
.rc-badges { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.rb { font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 999px; }
.rb-cefr { background: rgba(var(--pri-rgb), 0.2); color: var(--pri-hi); }
.rb-ci { background: rgba(var(--gold-shadow), 0.14); color: var(--gold); }
.rc-panel { background: rgba(0, 0, 0, 0.18); border-radius: var(--r-md); padding: 13px 15px; margin-bottom: 10px; }
.rc-panel h4 { font-size: 13.5px; margin-bottom: 9px; }
.rc-bars { display: grid; gap: 6px; }
.band { display: flex; align-items: center; gap: 9px; }
.band small { flex: none; width: 46px; font-size: 11px; color: var(--td-sub); }
.band-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.band-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width 1s var(--ease) 0.25s; }
.reveal.in .band-bar i { width: var(--w); }
.rc-trust { font-size: 12.5px; color: var(--li3-fg); background: rgba(var(--acc2-rgb), 0.1); border: 1px solid rgba(var(--acc2-rgb), 0.3); border-radius: 999px; padding: 6px 14px; text-align: center; }
.rc-rec { font-size: 13px; color: var(--td-sub); margin-top: 10px; text-align: center; }
@media (max-width: 920px) {
  .photo-grid { grid-template-columns: 1fr; }
  .vocab-grid { grid-template-columns: 1fr; gap: 34px; }
  .vc-medals { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) { .vc-medals { grid-template-columns: repeat(2, 1fr); } }
/* 手机端：水晶球与文案居中；Hero 双按钮同行 */
@media (max-width: 680px) {
  .hero-ctas { flex-wrap: nowrap; }
  .hero-ctas .btn { flex: 1; padding: 12px 6px; font-size: 13px; white-space: nowrap; }
}
.game-card {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  background: var(--cream); border-radius: var(--r-lg); padding: 20px 18px;
  color: var(--tc-hi); box-shadow: var(--sh-cream);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  transform-style: preserve-3d;
}
/* 裸眼3D：光斑跟随指针游走（--gx/--gy 由 JS 写入） */
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover::before { opacity: 1; }
.game-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  /* 扫光改为 background-position 动画：高光带始终画在卡面内，不会泄漏到卡外 */
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%) no-repeat;
  background-size: 300% 100%;
  background-position: 0 0;
  transition: background-position 0.7s var(--ease);
}
.game-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 16px 36px rgba(30, 24, 70, 0.22); }
.game-card:hover::after { background-position: 100% 0; }
.game-shot {
  border-radius: 14px; border: 4px solid var(--frame-2); overflow: hidden;
  flex: none; width: 118px; aspect-ratio: 9 / 19;
  box-shadow: 0 8px 18px rgba(30, 24, 70, 0.25);
  transform: translateZ(22px) rotate(-2.5deg); transition: transform 0.3s var(--ease);
}
.game-card:nth-child(even) .game-shot { transform: translateZ(22px) rotate(2.5deg); }
.game-card:hover .game-shot { transform: translateZ(34px) rotate(0) scale(1.04); }
.game-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.game-card h3 { font-family: var(--font-d); font-weight: 400; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.game-card h3 svg { color: var(--primary-deep); }
.game-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  box-shadow: 0 3px 8px rgba(30, 24, 70, 0.28);
}
.game-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: linear-gradient(180deg, var(--pri-hi), var(--primary-deep));
  border-radius: 999px; padding: 3px 10px; margin-left: 2px;
}
.game-card > div > p { font-size: 13px; color: var(--tc-sub); margin: 0 0 11px; }
.game-card ul { list-style: none; display: grid; gap: 6px; }
.game-card li { display: flex; gap: 7px; font-size: 12.5px; color: var(--tc-hi); align-items: flex-start; line-height: 1.6; }
.game-card li svg { flex: none; color: var(--mint); margin-top: 2px; }
.game-card h3 { font-size: 17.5px; flex-wrap: wrap; }
.game-ico { width: 26px; height: 26px; border-radius: 7px; }
@media (max-width: 1024px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card .game-shot { width: 128px; border-width: 4px; border-radius: 16px; }
  .game-card > div > p { font-size: 13px; }
  .game-card li { font-size: 12.5px; }
}
@media (max-width: 420px) { .game-card .game-shot { width: 96px; } }

/* ---------- 记忆法区 ---------- */
.memory-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 34px; }
.memory-copy h3 { font-family: var(--font-d); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.memory-copy > p { color: var(--td-sub); font-size: 14.5px; margin-bottom: 18px; }
/* 六节点时间轴 */
.timeline { display: flex; align-items: flex-start; position: relative; margin: 6px 0 18px; }
.timeline::before {
  content: ""; position: absolute; top: 17px; left: 6%; right: 6%;
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0.55;
}
.tl-node { flex: 1; text-align: center; position: relative; z-index: 1; }
.tl-dot {
  width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 15px; color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 4px 12px rgba(var(--gold-shadow), 0.4), inset 0 1px 0 rgba(255,255,255,.55);
}
.tl-node small { font-size: 12px; color: var(--td-sub); display: block; }
.tl-node:first-child .tl-dot, .tl-node:last-child .tl-dot { transform: scale(1.12); }
.memory-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.mstat {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 9px 14px; text-align: center;
}
.mstat .gold-text { font-family: var(--font-d); font-size: 22px; }
.mstat small { display: block; font-size: 12px; color: var(--td-sub); }
/* 手机端三个统计框强制同一行 */
@media (max-width: 640px) {
  .memory-stats { flex-wrap: nowrap; }
  .mstat { flex: 1; padding: 9px 6px; }
  .mstat .gold-text { font-size: 19px; }
  .mstat small { font-size: 11px; white-space: nowrap; }
}
/* 六档记忆状态条 */
.mem-levels { margin-top: 16px; }
.mem-levels .lv-bar { display: flex; gap: 5px; height: 14px; border-radius: 7px; overflow: hidden; }
.mem-levels .lv-bar i { flex: 1; border-radius: 4px; }
.mem-levels .lv-bar i:nth-child(1) { background: #5a67d8; opacity: .55; }
.mem-levels .lv-bar i:nth-child(2) { background: #6f7ce0; opacity: .7; }
.mem-levels .lv-bar i:nth-child(3) { background: #8b9cf0; opacity: .8; }
.mem-levels .lv-bar i:nth-child(4) { background: #b9a86a; opacity: .85; }
.mem-levels .lv-bar i:nth-child(5) { background: #e8b53a; opacity: .9; }
.mem-levels .lv-bar i:nth-child(6) { background: var(--gold); }
.mem-levels .lv-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--td-sub); margin-top: 7px; }
.memory-shot { position: relative; display: flex; justify-content: center; }
.memory-shot .phone { transform: rotate(3deg); width: 218px; }
.memory-shot .glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-shadow), 0.18), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
/* 记忆闭环三小卡 */
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loop-card {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); padding: 18px 16px; text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.loop-card:hover { transform: translateY(-5px); border-color: rgba(var(--pri-rgb), 0.5); }
.loop-icon {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.loop-icon svg { width: 22px; height: 22px; }
.monster-ico { background: #fdf8e7; overflow: hidden; }
.monster-ico img { width: 34px; height: 34px; border-radius: 50%; }
.li-purple { background: var(--li1-bg); color: var(--li1-fg); }
.li-gold { background: rgba(var(--gold-shadow), 0.14); color: var(--gold); }
.li-mint { background: var(--li3-bg); color: var(--li3-fg); }
.loop-card h4 { font-size: 16px; margin-bottom: 6px; }
.loop-card p { font-size: 13px; color: var(--td-sub); }
.loop-shot { width: 92px; margin: 10px auto 0; border-radius: 12px; border: 3px solid var(--frame); overflow: hidden; box-shadow: var(--sh-dark); animation: floatSoft 6.5s ease-in-out infinite; }
/* 三张小手机错开浮动节奏 */
.loop-card:nth-child(2) .loop-shot { animation-duration: 7.5s; animation-delay: -2.4s; }
.loop-card:nth-child(3) .loop-shot { animation-duration: 7s; animation-delay: -4.8s; }
@keyframes floatSoft {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@media (max-width: 920px) {
  .memory-top { grid-template-columns: 1fr; gap: 40px; }
  .loop-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 520px) { .timeline { flex-wrap: wrap; gap: 10px 0; } .timeline::before { display: none; } .tl-node { flex: 1 1 33%; } }

/* ---------- 魔法世界区 ---------- */
.world-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; margin-bottom: 34px; }
.world-illust {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  box-shadow: var(--sh-dark), 0 0 0 1px var(--glass-line);
}
.world-illust img { width: 100%; transition: transform 0.6s var(--ease); }
.world-illust:hover img { transform: scale(1.04); }
.world-illust figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--cap-bg); backdrop-filter: blur(6px);
  border: 1px solid var(--glass-line); color: var(--td-hi);
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
}
.world-copy .feat { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.world-copy .feat:last-child { border-bottom: none; }
.feat .f-icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.feat b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.feat p { font-size: 13.5px; color: var(--td-sub); }
/* 三张世界截图 */
/* 学伴图鉴：三只魔法学伴 */
.mates-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 28px; }
.mate-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); padding: 20px 16px 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.mate-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.mate-fox::before { background: linear-gradient(90deg, var(--gold), var(--coral)); }
.mate-sprout::before { background: linear-gradient(90deg, #34d399, #5bc9a8); }
.mate-dragon::before { background: linear-gradient(90deg, var(--primary), var(--gold)); }
.mate-card:hover { transform: translateY(-6px); border-color: rgba(var(--gold-shadow), 0.45); }
/* 成长阶梯：幼崽期 → 成长期 → 成年期（披风），等差大小 幼崽=56 / 成长=居中74 / 成年=92 */
.mate-growth { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.mate-growth figure { margin: 0; text-align: center; }
.mate-growth img { width: auto; }
.mate-growth figure:nth-child(1) img { height: 56px; animation: floaty 6s ease-in-out infinite alternate; animation-delay: 0.3s; }
.mate-growth figure:nth-child(2) img { height: 74px; animation: floaty 6s ease-in-out infinite alternate; animation-delay: 1.2s; }
.mg-cape img { height: 92px; filter: drop-shadow(0 8px 14px rgba(12, 9, 40, 0.45)); animation: floaty 6s ease-in-out infinite alternate; }
.mate-sprout .mg-cape img { animation-delay: 0.9s; }
.mate-dragon .mg-cape img { animation-delay: 1.7s; }
.mate-growth figcaption { font-size: 10.5px; color: var(--td-sub); margin-top: 3px; }
.mg-cape figcaption { color: var(--gold); font-weight: 600; }
.mate-name { display: block; font-family: var(--font-d); font-size: 18px; margin-top: 10px; }
.mate-tag { display: block; font-size: 12.5px; color: var(--td-sub); margin-top: 4px; }

.world-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.badge-belt {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 10px 14px;
}
.badge-belt img {
  width: 46px; height: auto; flex: none;
  filter: drop-shadow(0 4px 10px rgba(12, 9, 40, 0.4));
  transition: transform 0.25s var(--ease);
}
.badge-belt img:nth-child(odd) { transform: rotate(-6deg); }
.badge-belt img:nth-child(even) { transform: rotate(5deg) translateY(3px); }
.badge-belt img:hover { transform: rotate(0) scale(1.12); }
.badge-belt small { color: var(--td-sub); font-size: 12.5px; margin-left: 4px; }
.wshot {
  background: var(--cream); border-radius: var(--r-lg); padding: 10px 10px 12px;
  color: var(--tc-hi); text-align: center; box-shadow: var(--sh-cream);
  transition: transform 0.3s var(--ease);
}
.wshot:nth-child(1) { transform: rotate(-1.6deg); }
.wshot:nth-child(3) { transform: rotate(1.6deg); }
.wshot:hover { transform: rotate(0) translateY(-6px); }
.wshot .shot-frame { border-radius: 14px; overflow: hidden; border: 4px solid var(--frame-2); aspect-ratio: 9 / 12; }
.wshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* 勋章 · 装扮中心：两张截图竖排、中间留白；高度按图自身比例，不再裁切 */
.wshot .shot-stack { display: grid; gap: 10px; }
.wshot .shot-stack .shot-frame { aspect-ratio: auto; }
.wshot .shot-stack img { height: auto; }
.wshot b { display: block; margin-top: 8px; font-size: 14.5px; }
.wshot small { color: var(--tc-sub); font-size: 12px; }
/* 三卡（魔法宠物 / AI 伙伴 / 勋章·装扮中心）图像区底边对齐：
   只动底部——卡1/卡2 帧高按 316:527 定比收到统一线，卡3（两图堆叠）按同一线放大补足；
   顶部齐平、卡片宽度不变；卡1 用 contain 轻微内缩（左右各约 3.5px 暗边），卡3 放大后左右各约 3.9px 溢入 4px 装饰边 */
@media (min-width: 921px) {
  .wshot { display: flex; flex-direction: column; }
  .wshot .shot-stack { flex: 0 0 auto; }
  .wshot > .shot-frame { aspect-ratio: 324 / 527; flex: 0 0 auto; min-height: 0; }
  .wshot.wshot-full > .shot-frame { aspect-ratio: 324 / 527; }
  /* 卡1：图宽撑满帧内宽（左右 0 空隙），按原比例放大，底部溢出部分裁掉；整体上移 10px（顶部 10px 为纯背景） */
  .wshot.wshot-full > .shot-frame img {
    width: 100%; height: auto; max-width: none;
    transform: translateY(-10px);
  }
  .wshot .shot-stack { aspect-ratio: 324 / 527; grid-template-rows: 469fr 645fr; }
  .wshot .shot-stack .shot-frame { aspect-ratio: auto; }
  .wshot .shot-stack img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}
/* 魔法宠物卡：整张截图完整显示（业主「不要裁剪」），解除 9/12 定比与 cover 裁切，高度由图片自身比例决定 */
.wshot-full .shot-frame { aspect-ratio: auto; }
.wshot-full img { height: auto; object-fit: contain; }
@media (min-width: 921px) {
  /* 该卡不再参与「撑满行高」，由定比帧高与 contain 控制显示 */
  .wshot-full > .shot-frame { flex: 0 0 auto; }
}
@media (max-width: 920px) {
  .world-hero { grid-template-columns: 1fr; }
  .world-shots { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  /* 学伴图鉴手机端：单列居中，成长阶梯缩小 */
  .mates-row { grid-template-columns: 1fr; max-width: 340px; margin: 24px auto 20px; gap: 16px; }
  .mate-card { padding: 14px 8px 12px; }
  .mate-growth { gap: 8px; }
  .mate-growth figure:nth-child(1) img { height: 42px; }
  .mate-growth figure:nth-child(2) img { height: 56px; }
  .mg-cape img { height: 70px; }
  .mate-growth figcaption { font-size: 9.5px; }
  .mate-name { font-size: 16px; margin-top: 8px; }
  .mate-tag { font-size: 11.5px; }
}

/* ---------- 家长守护区 ---------- */
.parents { background: linear-gradient(180deg, transparent, rgba(20, 16, 46, 0.55) 18% 82%, transparent); }
/* 家长守护区：副标题宽度与行距沿用全局正文规则，不再单独覆盖 */
.parent-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.p-list { display: grid; gap: 9px; margin-top: 4px; }
.p-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 11px 14px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.p-item:hover { border-color: rgba(var(--acc2-rgb), 0.45); transform: translateX(4px); }
.p-item svg { flex: none; color: var(--mint); margin-top: 2px; }
.p-item b { font-size: 14.5px; display: block; }
.p-item p { font-size: 12.5px; color: var(--td-sub); line-height: 1.6; }
.p-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; padding-top: 6px; }
.p-shots .phone { width: 218px; }
.p-shots .phone:nth-child(1) { transform: rotate(-3deg); }
.p-shots .phone:nth-child(2) { transform: rotate(3deg) translateY(26px); }
.privacy-card {
  margin-top: 36px; border-radius: var(--r-lg); padding: 22px 28px;
  background: linear-gradient(135deg, rgba(var(--acc2-rgb), 0.12), rgba(var(--pri-rgb), 0.1));
  border: 1px solid rgba(var(--acc2-rgb), 0.35);
  display: flex; gap: 18px; align-items: flex-start;
}
.privacy-card svg { flex: none; color: var(--mint); }
.privacy-card h4 { font-size: 18px; margin-bottom: 6px; }
/* 正文不设宽度上限：由卡片内边距决定宽度，也不做 balance（balance 会把两行拉成等长、看起来像在 2/3 处折行） */
.privacy-card p { font-size: 12.5px; color: var(--td-sub); max-width: 100%; }
@media (max-width: 920px) {
  .parent-grid { grid-template-columns: 1fr; }
  .p-shots { max-width: 440px; margin: 0 auto; }
  /* 手机宽度随容器收缩，避免双手机并排撑破窄视口（横向溢出会推偏整页导航） */
  .p-shots .phone { width: calc(50% - 8px); }
  .privacy-card { padding: 26px; }
}
/* 手机端双手机截图满屏铺开（负外边距抵消容器留白，贴住视口左右边） */
@media (max-width: 640px) {
  .p-shots { max-width: none; margin: 0 -24px; gap: 10px; }
  .p-shots .phone { width: 100%; }
}

/* ---------- 词书区 ---------- */
.books-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.books-stat { font-size: 14.5px; color: var(--td-sub); margin: 4px 0 14px; }
.books-stat b { font-family: var(--font-d); font-size: 23px; letter-spacing: 0.5px; }
.books-copy .chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.chip {
  font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--td-hi);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover, .chip.hot { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-shadow), 0.1); }
.books-copy ul { list-style: none; display: grid; gap: 8px; }
.books-copy li { display: flex; gap: 9px; font-size: 13.5px; color: var(--td-sub); align-items: flex-start; }
.books-copy li svg { flex: none; color: var(--gold); margin-top: 3px; }
.books-shot { display: flex; justify-content: center; position: relative; }
.books-shot .phone { transform: rotate(-3deg); width: 218px; }
.books-shot .badge-ribbon {
  position: absolute; top: 22px; right: calc(50% - 176px); z-index: 3;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); color: var(--on-gold);
  font-size: 12.5px; font-weight: 700; padding: 8px 15px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(var(--gold-shadow), 0.35); transform: rotate(6deg);
}
/* 词书跑马灯 */
.marquee { overflow: hidden; margin-top: 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scrollx 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-item {
  flex: none; display: flex; align-items: center; gap: 9px;
  background: var(--glass); border: 1px solid var(--glass-line);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; color: var(--td-sub);
}
.mq-item svg { color: var(--gold); }
@media (max-width: 920px) { .books-grid { grid-template-columns: 1fr; } .badge-ribbon { display: none; } }

/* ---------- 下载区 ---------- */
.dl-panel {
  position: relative; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(700px 340px at 85% 0%, rgba(var(--gold-shadow), 0.16), transparent 60%),
    radial-gradient(560px 300px at 0% 100%, rgba(var(--pri-rgb), 0.25), transparent 60%),
    linear-gradient(160deg, var(--panel-a), var(--panel-b));
  border: 1px solid rgba(var(--gold-shadow), 0.28);
  box-shadow: 0 24px 70px rgba(8, 6, 28, 0.55);
  padding: 44px 48px; text-align: center;
}
.dl-panel h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.dl-panel > p { color: var(--td-sub); margin-bottom: 24px; }
.dl-actions { display: flex; gap: 14px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-bottom: 16px; }
.dl-badges { display: flex; gap: 14px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-bottom: 24px; }
.dl-appicon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); padding: 12px 18px;
}
.dl-appicon img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 24px rgba(10, 8, 30, 0.5); }
.dl-appicon b { font-size: 14px; }
.dl-appicon small { font-size: 12px; color: var(--td-sub); }
.dl-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--r-md); padding: 12px 18px;
}
.dl-qr img { width: 92px; height: 92px; border-radius: 8px; background: var(--cream); padding: 7px; }
.dl-qr small { font-size: 12px; color: var(--td-sub); }
.dl-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; color: var(--td-sub); font-size: 13px; }
.dl-meta span { display: inline-flex; gap: 6px; align-items: center; }
.dl-meta svg { color: var(--mint); }
/* 下载区三行说明：字号对齐 .dl-meta（13px），段间距不超过一个行高 */
.dl-panel > p.dl-note-sm { font-size: 13px; color: var(--td-sub); line-height: 1.6; margin: 14px 0 0; }
.dl-panel > p.dl-note { font-size: 12.5px; color: var(--td-sub); line-height: 1.6; margin: 8px 0 0; }
@media (max-width: 640px) {
  .dl-panel { padding: 44px 22px; }
  /* 按钮同一行等宽紧凑排布 */
  .dl-actions { flex-wrap: nowrap; }
  .dl-actions .btn { flex: 1; padding: 12px 6px; font-size: 13px; white-space: nowrap; }
  /* App 图标卡与二维码同一行 */
  .dl-badges { flex-wrap: nowrap; }
  .dl-badges > div { flex: 1; padding: 12px 10px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(var(--gold-shadow), 0.45); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--td-hi);
  display: flex; align-items: center; gap: 12px; text-align: left;
  font-size: 15px; font-weight: 600; padding: 13px 18px;
}
.faq-q .faq-bar { flex: none; width: 4px; height: 20px; border-radius: 2px; background: var(--gold); opacity: 0; transition: opacity 0.2s; }
.faq-item.open .faq-bar { opacity: 1; }
.faq-q .faq-arrow { margin-left: auto; flex: none; transition: transform 0.3s var(--ease); color: var(--td-sub); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px 36px; font-size: 14px; color: var(--td-sub); line-height: 1.6; }

/* ---------- 页脚 ---------- */
footer { background: var(--foot-bg); border-top: 1px solid var(--glass-line); padding: 40px 0 26px; }
.foot-grid { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.foot-brand .logo { font-size: 26px; margin-bottom: 12px; }
.foot-brand p { color: var(--td-sub); font-size: 13.5px; max-width: 100%; }
.foot-col b { display: block; font-size: 14px; margin-bottom: 12px; color: var(--td-hi); }
.foot-col a { display: block; color: var(--td-sub); font-size: 13.5px; padding: 4px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(183, 176, 220, 0.6); font-size: 12.5px;
}
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: var(--td-sub); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--chip-bg); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s; box-shadow: var(--sh-dark);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--primary-deep); color: #fff; }

/* ---------- 移动端悬浮下载条（≤1000px，滚过首屏后出现） ---------- */
.dl-float { display: none; }
@media (max-width: 1000px) {
  .dl-float {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    padding: 10px 12px; border-radius: 14px;
    background: var(--nav-bg-solid); border: 1px solid var(--glass-line);
    box-shadow: var(--sh-dark);
  }
  .dl-float[hidden] { display: none; }
  .dl-float-on .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .dl-float-txt {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 1px; line-height: 1.35;
  }
  .dl-float-txt b { font-size: 13px; font-weight: 600; color: var(--td-hi); }
  .dl-float-txt em { font-size: 12px; font-style: normal; color: var(--td-sub); }
  .dl-float .btn { flex: none; padding: 9px 16px; font-size: 13px; }
  .dl-float-close {
    flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-line);
    color: var(--td-sub); font-size: 16px; line-height: 1; cursor: pointer;
  }
}

/* ---------- 滚动 reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   审计整改第 4 波（2026-10-27）：仅追加，不改既有变量与布局
   ============================================================ */

/* ---------- W-F：无脚本兜底提示 / 渲染失败文案 ---------- */
.noscript-note {
  position: relative; z-index: 5;
  margin: 0; padding: 18px 22px;
  background: var(--nav-bg-solid); border-bottom: 1px solid var(--glass-line);
  color: var(--td-sub); font-size: 14px; line-height: 1.6;
}
.noscript-note strong { display: block; color: var(--td-hi); font-size: 17px; margin-bottom: 6px; }
.noscript-note p { margin: 0 0 6px; }
.noscript-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.noscript-actions a:not(.btn) { color: var(--gold); text-decoration: underline; }
.render-fallback { color: var(--td-sub); font-size: 14.5px; line-height: 1.6; padding: 14px 0; }

/* ---------- W-E：picture 不参与布局，保留原有 img 选择器与尺寸 ---------- */
picture { display: contents; }

/* ---------- W-G：汉堡按钮（label → button）与开合状态 ---------- */
.nav-burger {
  background: none; border: 0; padding: 0;
  /* margin-left:auto：移动端把汉堡顶到导航栏最右侧（此处不可再写 margin:0 覆盖） */
  margin: 0 0 0 auto;
  color: inherit; font: inherit; cursor: pointer;
}
@media (max-width: 1000px) {
  #nav.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: auto; right: 12px;
    width: min(46vw, 230px);
    background: var(--nav-bg-solid); border: 1px solid var(--glass-line);
    border-radius: var(--r-lg); padding: 12px; box-shadow: var(--sh-dark);
  }
  #nav.menu-open .nav-links a { padding: 13px 16px; font-size: 16px; }
}

/* ---------- W-G：键盘可见焦点 ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skin-opt:focus-visible { outline-offset: 1px; }

/* ---------- W-J：下载区版本信息 ---------- */
.dl-panel > p.dl-version { font-size: 13px; margin-bottom: 16px; }
.dl-version b { font-family: var(--font-d); font-size: 15px; letter-spacing: 0.3px; color: var(--td-hi); }
