/* =========================================================
   Andy 学习乐园 · 全新介绍站样式
   设计基调：暖奶油底 + 糖果色系 + 圆润字体 + 轻快动效
   ========================================================= */

:root {
  /* 糖果色板 */
  --sun: #ffc83d;        /* 暖阳黄 */
  --coral: #ff5e7a;      /* 珊瑚红 */
  --sky: #3da5ff;        /* 天空蓝 */
  --mint: #2fd6a6;       /* 薄荷绿 */
  --grape: #8b6cf0;      /* 葡萄紫 */
  --tangerine: #ff924c;  /* 橘 */
  --harmony: #0a9bad;    /* 鸿蒙青 */

  --ink: #2b2440;        /* 主文字（深靛） */
  --ink-soft: #6b6480;   /* 次文字 */
  --cream: #fff7ed;      /* 暖奶油底 */
  --paper: #ffffff;      /* 卡片白 */
  --tint-blue: #eef4ff;
  --tint-pink: #fff0f4;
  --tint-mint: #effcf6;
  --line: #efe7dc;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 6px 18px rgba(43, 36, 64, .08);
  --shadow: 0 16px 40px rgba(43, 36, 64, .12);
  --shadow-pop: 0 22px 50px rgba(255, 94, 122, .28);

  --maxw: 1140px;
  --font: "PingFang SC", "Hiragino Maru Gothic ProN", "Microsoft YaHei",
          ui-rounded, "Segoe UI Rounded", "Quicksand", "Hiragino Sans GB", sans-serif;

  --bg-cream: var(--cream);
  --brand-coral: var(--coral);
  --brand-orange: var(--tangerine);
  --brand-grad: linear-gradient(135deg, var(--coral), var(--tangerine));
  --brand-grad-hover: linear-gradient(135deg, #ff8585, #ffb46d);
  --card: var(--paper);
  --accent-blue: var(--sky);
  --accent-purple: var(--grape);
  --accent-green: var(--mint);
  --accent-green-2: #8CE99A;
  --accent-yellow: var(--sun);
  --accent-gold: #FFD43B;
  --accent-pink: #FFF3BF;
  --title-rainbow: linear-gradient(90deg, var(--coral), var(--tangerine), var(--sky), var(--grape));
  --data-bar: linear-gradient(90deg, var(--coral), var(--sun), var(--mint));
  --shadow-lg: var(--shadow);
  --muted: var(--ink-soft);
  --hero-z: 10;
}

* { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  padding-top: 68px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 820px); }

/* ---------- 文字 ---------- */
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  text-align: center;
  margin-bottom: 8px;
}
.section-title .em { color: var(--coral); }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.light { color: #fff; }
.light.muted { color: rgba(255,255,255,.82); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 800; cursor: pointer;
  border: none; border-radius: 999px;
  padding: 14px 26px; font-size: 16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn-primary { background: linear-gradient(135deg, var(--coral), var(--tangerine)); color: #fff; box-shadow: var(--shadow-pop); }
.btn-gold { background: linear-gradient(135deg, var(--sun), #ffae3d); color: #5a3d00; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); }
.btn-ghost.light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-mini { padding: 9px 16px; font-size: 14px; background: var(--ink); color: #fff; }

/* App 下载弹窗按钮 */
.btn-apk {
  width: 100%; justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #ff5e7a);
  color: #fff; box-shadow: 0 8px 20px rgba(255,94,122,.25);
}
.btn-apk:hover { box-shadow: 0 12px 26px rgba(255,94,122,.35); }
.btn-harmony {
  width: 100%; justify-content: center;
  background: #0a9bad; color: #fff;
  opacity: .55; cursor: not-allowed;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(255, 247, 237, .92);
  border-bottom: 1px solid rgba(43,36,64,.06);
}
.nav-inner {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; flex-shrink: 0; }
.brand .logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; background: transparent; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; transition: background .15s;
  text-decoration: none; display: inline-flex; align-items: center;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(43,36,64,.06); }
.nav-support { color: var(--grape); }
.nav-cta { background: linear-gradient(135deg, var(--coral), var(--tangerine)); color: #fff; box-shadow: var(--shadow-pop); }
.nav-login { background: rgba(255,255,255,.65); border: 1.5px solid var(--line); }
.nav-toggle { display: none; }

/* ---------- 通用 section ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-soft { background: linear-gradient(180deg, #fff, #fffdf9); }
.section-tint { background: var(--tint-blue); }

.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral);
  background: var(--tint-pink); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* 漂浮装饰 */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; z-index: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, #fff3d6 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 10%, #ffe1ea 0%, transparent 55%),
    linear-gradient(180deg, #fff7ed, #fff);
  padding-top: clamp(36px, 5vw, 64px);
}
.hero-inner {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
  position: relative; z-index: 2;
}
.hero-copy { position: relative; z-index: 3; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--sun);
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  margin: 18px 0 14px; letter-spacing: -.02em;
}
.hero-title .hl {
  background: linear-gradient(120deg, var(--coral), var(--tangerine));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .hl2 {
  background: linear-gradient(120deg, var(--sky), var(--grape));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--ink-soft); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hero-app-note { font-size: 14px; color: var(--ink-soft); }

/* App 下载按钮小图标 */
.app-glyph {
  width: 20px; height: 20px; display: inline-block;
  background-image: url("../assets/logo-192.png");
  background-size: 20px 20px; background-position: center; background-repeat: no-repeat;
  vertical-align: middle;
}

/* 吉祥物舞台 */
.hero-stage { position: relative; min-height: 360px; display: grid; place-items: center; }
.mascot { width: min(78%, 420px); height: auto; filter: drop-shadow(0 22px 30px rgba(255,94,122,.25)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

.floaty { position: absolute; animation: floaty 6s ease-in-out infinite; opacity: .9; }
.floaty.f1 { top: 6%; left: 4%; animation-delay: 0s; }
.floaty.f2 { top: 18%; right: 6%; animation-delay: .8s; }
.floaty.f3 { bottom: 14%; left: 10%; animation-delay: 1.4s; }
.floaty.f4 { bottom: 8%; right: 14%; animation-delay: 2.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(12deg); } }

/* 信任数据条（美化卡片） */
.trustbar {
  width: min(100% - 40px, var(--maxw)); margin: 8px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #fffdf6 100%);
  border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.trust-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
.trust-card.t1 { --glow: var(--sun); border-color: #ffd9b3; }
.trust-card.t2 { --glow: var(--sky); border-color: #c2e8ff; }
.trust-card.t3 { --glow: var(--mint); border-color: #c2f3de; }
.trust-card.t4 { --glow: var(--grape); border-color: #e8d7ff; }
.trust-card::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, var(--glow), transparent 55%);
}
.t-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 14px; box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.t-ico svg { width: 28px; height: 28px; }
.trust-card.t1 .t-ico { background: linear-gradient(135deg, var(--sun), var(--tangerine)); }
.trust-card.t2 .t-ico { background: linear-gradient(135deg, var(--sky), var(--grape)); }
.trust-card.t3 .t-ico { background: linear-gradient(135deg, var(--mint), #1ec490); }
.trust-card.t4 .t-ico { background: linear-gradient(135deg, var(--grape), var(--coral)); }
.trust-card .t-body b {
  display: block; font-size: clamp(28px, 3.4vw, 36px); line-height: 1;
  background: linear-gradient(120deg, var(--coral), var(--tangerine));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-card .t-body b i { font-style: normal; font-size: .55em; vertical-align: top; margin-left: 2px; }
.trust-card .t-body > span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

/* =========================================================
   平板截图框（iPad 横屏外观）
   ========================================================= */
.tablet-frame {
  position: relative;
  background: #16131f;
  border-radius: 22px;
  padding: 12px 14px 14px 14px;
  box-shadow:
    0 32px 70px rgba(43,36,64,.26),
    inset 0 0 0 2px rgba(255,255,255,.08),
    inset 0 0 0 5px #2b2640;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 16 / 10.5;
}
.tablet-frame::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #2b2640;
  border: 1px solid rgba(255,255,255,.15);
}
.tablet-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 12px;
  background: var(--cream);
  display: block;
}
.tablet-notch {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.22);
}
.tablet-frame.small { max-width: 480px; }

/* =========================================================
   手机截图框（竖版）
   ========================================================= */
.phone-frame {
  position: relative;
  background: #16131f;
  border-radius: 30px;
  padding: 8px 8px 10px 8px;
  box-shadow:
    0 24px 56px rgba(43,36,64,.22),
    inset 0 0 0 2px rgba(255,255,255,.08),
    inset 0 0 0 4px #2b2640;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
}
.phone-frame::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 14px; border-radius: 999px; background: #16131f;
  border: 1px solid rgba(255,255,255,.12);
}
.phone-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 22px;
  background: var(--cream);
  display: block;
}
.phone-notch {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.22);
}

/* 家长端展示区：两台手机并排（家长端 + 财商分析） */
.phone-row { display: flex; gap: 20px; justify-content: center; align-items: flex-start; flex-wrap: wrap; width: 100%; }
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-cap {
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 16px; box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* =========================================================
   学习乐园岛
   ========================================================= */
.island-map {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.island-spot {
  position: relative; border-radius: var(--radius); padding: 20px 14px; text-align: center;
  background: #fff; box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.island-spot:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.island-orb {
  width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 -6px 12px rgba(0,0,0,.08);
}
.island-icon { width: 42px; height: 42px; display: block; }
.island-orb span { font-weight: 900; color: #fff; font-size: 22px; }
.island-spot b { font-size: 17px; }
.island-spot small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 4px; }
.island-show {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  background: linear-gradient(160deg, #fff, #fffdf6);
  border-radius: var(--radius-lg); padding: 28px; border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.island-caption h3 { font-size: 24px; margin: 0 0 12px; }
.island-caption p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* 知识地图展示 */
.map-show { text-align: center; }
.map-caption,
.island-hero-caption {
  margin: 18px 0 0; font-size: 15px; color: var(--ink-soft);
  background: #fff; display: inline-block; padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* =========================================================
   多维闯关
   ========================================================= */
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ch-card {
  position: relative; border-radius: var(--radius); padding: 22px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ch-card:hover { transform: translateY(-7px) rotate(.6deg); box-shadow: var(--shadow); }
.ch-icon { width: 58px; height: 58px; margin-bottom: 10px; }
.ch-card h3 { font-size: 18px; margin: 0 0 6px; }
.ch-card p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.ch-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; color: #fff; background: var(--sun); padding: 3px 9px; border-radius: 999px; }
.ch-card .ch-glow { position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; opacity: .14; }
.ch-highlight { background: linear-gradient(160deg, #fff, #fff3d6); border-color: #ffe4a8; }
.ch-highlight .ch-tag { background: var(--coral); }

/* =========================================================
   自适应引擎 · 难度仪表
   ========================================================= */
.engine-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.gauge {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center;
}
.gauge-track {
  position: relative; height: 16px; border-radius: 999px; margin: 40px 6px 14px;
  background: linear-gradient(90deg, #ffe0a3 0%, var(--mint) 50%, #ffb3c1 100%);
}
.gauge-marker {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 30px;
  transform: translate(-50%, -50%); transition: left 1.3s cubic-bezier(.34,1.4,.5,1);
}
.gauge-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.gauge-status {
  margin-top: 18px; font-weight: 800; font-size: 17px; color: var(--mint);
}
.engine-points { list-style: none; padding: 0; margin: 0; }
.engine-points li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.engine-points li:last-child { border-bottom: none; }
.engine-points .ep-n { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg,var(--sky),var(--grape)); }
.engine-points b { display: block; }
.engine-points p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   题型难度分类 · 交互浏览器
   ========================================================= */
.explorer { background: linear-gradient(160deg, #fff, #f3f8ff); border-radius: var(--radius-lg); padding: clamp(22px,3vw,38px); box-shadow: var(--shadow); border: 1px solid var(--line); }
/* 筛选 Tab：单行，小屏可横向滚动 */
.explorer-bar {
  display: flex; flex-wrap: nowrap; gap: 10px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  margin-bottom: 22px; padding-bottom: 4px;
}
.explorer-bar::-webkit-scrollbar { display: none; }
.ex-tab {
  flex: none; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; transition: all .15s;
}
.ex-tab:hover { border-color: var(--sky); color: var(--ink); }
.ex-tab.active { background: linear-gradient(135deg, var(--sky), var(--grape)); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* 题型卡片：横向一行排列，可左右滑动 */
.ex-grid {
  display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; scrollbar-width: thin; -ms-overflow-style: auto;
  padding-bottom: 8px;
}
.ex-grid::-webkit-scrollbar { height: 8px; }
.ex-grid::-webkit-scrollbar-thumb { background: rgba(60,80,140,.25); border-radius: 999px; }
.qtype {
  flex: 0 0 260px; align-self: stretch;
  background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); animation: pop .35s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.qtype h4 { font-size: 17px; margin: 0 0 4px; }
.qtype .qt-class { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
/* 4 档难度：卡片内竖排，不滑动 */
.ladder { display: flex; flex-direction: column; gap: 7px; }
.lvl { display: flex; align-items: center; gap: 10px; }
.lvl .lv-dot { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.lvl .lv-txt { font-size: 13.5px; color: var(--ink); }
.lvl-1 { background: var(--mint); } .lvl-2 { background: var(--sky); }
.lvl-3 { background: var(--grape); } .lvl-4 { background: var(--coral); }
.ex-foot { margin-top: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.ex-foot b { color: var(--coral); }

/* =========================================================
   星星银行
   ========================================================= */
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bank-shot { margin-bottom: 28px; display: grid; place-items: center; }
.reward {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .2s;
}
.reward:hover { transform: translateY(-5px); }
.reward .r-emoji { font-size: 34px; }
.reward b { font-size: 16px; }
.reward .r-cost { display: block; color: var(--coral); font-weight: 800; font-size: 14px; }

/* =========================================================
   家长端 · 学情看板
   ========================================================= */
.parent-show {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: #fff; border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
}
.parent-copy h3 { font-size: 22px; margin: 0 0 14px; }
.parent-copy ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.parent-copy li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; color: var(--ink-soft); }
.parent-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }
.parent-copy li b { color: var(--ink); }

/* 家长端 · 手机旁「学习分析」卡片 */
.parent-visual { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.analysis-card { width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.analysis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.analysis-thumb { position: relative; }
.analysis-thumb img { display: block; width: 100%; height: auto; }
.analysis-zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(43,36,64,.72); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.analysis-meta { padding: 12px 14px; text-align: left; }
.analysis-meta b { font-size: 15px; }
.analysis-meta span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.analysis-shot { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }

/* =========================================================
   免费体验 CTA
   ========================================================= */
.cta-section { background: linear-gradient(135deg, #ff7a93, #ff924c 60%, #ffba49); color: #fff; }
.cta-card {
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.45);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); text-align: center;
  backdrop-filter: blur(4px);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 22px 0; }
.qr-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.qr-fig { margin: 0; text-align: center; }
.qr-fig img { width: 132px; height: 132px; border-radius: 16px; background: #fff; padding: 7px; box-shadow: var(--shadow); }
.qr-fig figcaption { font-size: 13px; margin-top: 8px; color: #fff; }

/* =========================================================
   页脚
   ========================================================= */
.footer { background: var(--ink); color: #fff; padding: 34px 0; }
.footer-inner { width: min(100% - 40px, var(--maxw)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer .muted { color: rgba(255,255,255,.6); }

/* =========================================================
   弹窗（通用 + App 下载双栏）
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(43,36,64,.55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; padding: 30px;
  box-shadow: var(--shadow); animation: pop .3s ease both;
}
.modal-x { position: absolute; top: 14px; right: 16px; border: none; background: #f1ece4; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); }
.modal-title { font-size: 24px; }
.letter p { margin: 0 0 14px; }

/* App 下载双栏 */
.app-box { max-width: 720px; padding: 28px; }
.app-download {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.app-col {
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  border: 1.5px solid var(--line); background: #fff;
}
.app-col.android { background: linear-gradient(160deg, #fff, #fff8f5); border-color: #ffd9d2; }
.app-col.harmony { background: linear-gradient(160deg, #e8f8f9, #f2fdfe); border-color: #c2ebed; }
.app-col-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; margin-bottom: 14px;
}
.os-icon { font-size: 22px; }
.app-qr {
  width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 14px;
  background: #fff; padding: 6px; border: 1px solid var(--line);
}
.app-version,
.app-status {
  font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.55;
}
.app-version b,
.app-status b { color: var(--coral); }
.app-status { display: inline-block; background: rgba(10,155,173,.12); color: var(--harmony); padding: 4px 10px; border-radius: 999px; }
.app-hint { font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; }

.harmony-badge {
  width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 18px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(10,155,173,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.harmony-badge svg { width: 64px; height: 64px; }
.harmony-badge span { font-weight: 800; color: var(--harmony); font-size: 16px; }
.harmony-badge small { color: var(--harmony); opacity: .75; font-size: 13px; }

/* =========================================================
   滚动浮现
   ========================================================= */
/* 默认显示（JS 缺失/失败时内容仍可见，避免整页空白）；启用 JS 后才走隐藏→浮现动画 */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { min-height: 280px; order: -1; }
  .engine-wrap, .compare, .dash, .island-show, .parent-show, .app-download { grid-template-columns: 1fr; }
  .grid-4, .island-map { grid-template-columns: repeat(2, 1fr); }
  .subjects { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .challenge-grid, .bank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; gap: 4px;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 12px; background: rgba(43,36,64,.06); cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .hero-stage { min-height: 220px; }
  .mascot { width: min(58%, 260px); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; gap: 4px;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 12px; background: rgba(43,36,64,.06); cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .challenge-grid, .bank-grid, .subjects { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .tablet-frame { max-width: 100%; aspect-ratio: 16 / 10; }
  .tablet-frame.small { max-width: 100%; }
  .phone-frame { max-width: 180px; }
  .app-box { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .trustbar { grid-template-columns: 1fr; }
  .island-map { grid-template-columns: 1fr; }
  .trust-card .t-body b { font-size: clamp(24px, 8vw, 32px); }
}

/* 尊重减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   apd 兼容补充（login.html / 旧组件）
   ========================================================= */

.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-orange); color: #fff; font-weight: 900; font-size: 0;
  background-image: url("../assets/logo-192.png");
  background-size: 40px 40px; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 4px 10px rgba(255,154,77,.35);
  flex-shrink: 0;
}
.brand-name {
  font-size: 17px; letter-spacing: .3px;
  background: var(--title-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px;
  font-family: inherit; background: #fffbef; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(255,169,77,.18); background: #fff; }
.form-err { color: #c92a2a; background: #ffe3e3; border: 1px solid #ffc9c9; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* ---------- 登录页 ---------- */
.page-login {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(255,169,77,.20), transparent 60%),
    radial-gradient(700px 380px at 0% 14%, rgba(255,107,107,.14), transparent 55%),
    var(--bg-cream);
  min-height: 100dvh; display: flex; flex-direction: column;
}
.login-wrap { flex: 1; display: grid; place-items: center; padding: 40px 18px; }
.login-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px 34px; width: 100%; max-width: 420px;
}
.login-title {
  text-align: center; font-size: 28px; margin-bottom: 6px;
  background: var(--title-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-hint {
  text-align: center; color: #8a5a00; font-weight: 700;
  background: linear-gradient(135deg, #FFF3BF, #FFE066);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 22px;
  box-shadow: 0 4px 10px rgba(255,212,59,.18);
}
.login-foot { text-align: center; margin-top: 20px; font-size: 15px; color: var(--muted); }
.ok-badge {
  font-size: 60px; text-align: center; margin-bottom: 8px;
  filter: drop-shadow(0 6px 14px rgba(255,107,107,.30));
}

/* ===== 滑动验证 ===== */
.slider {
  position: relative; height: 44px; border-radius: 12px;
  background: #f1e9e0; border: 1.5px solid var(--line, #F3E8DE);
  overflow: hidden; user-select: none; touch-action: none; margin: 4px 0 2px;
}
.slider-bar {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: linear-gradient(135deg, #FFA94D, #FF6B6B); opacity: .35;
}
.slider-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #8A7B8A; pointer-events: none;
}
.slider-btn {
  position: absolute; top: 2px; left: 2px; width: 40px; height: 36px;
  background: #fff; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; color: var(--brand-coral, #FF6B6B); cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); touch-action: none;
}
.slider-btn:active { cursor: grabbing; }
.ok-validity {
  text-align: center; font-size: 14px; color: #2B8A3E; font-weight: 700; margin: 2px 0 12px;
}

/* ===== 财商养成区 ===== */
.wealth-sub { font-size: clamp(18px, 2.4vw, 22px); text-align: center; margin: 38px 0 18px; color: var(--ink); }
.w-coins, .w-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.w-coin, .w-feat {
  background: #fff; border: 1px solid #ffe3d3; border-radius: 18px; padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(255,140,80,.10); transition: transform .2s ease, box-shadow .2s ease;
}
.w-coin:hover, .w-feat:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(255,140,80,.18); }
.w-emoji, .w-fico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, #fff0d9, #ffe0c2); margin-bottom: 12px;
}
.w-coin h3, .w-feat h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.w-coin p, .w-feat p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.w-flow { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 6px auto 0; max-width: 980px; }
.w-flow .wf {
  flex: 1 1 160px; min-width: 150px; background: linear-gradient(135deg, #fff7ef, #fff0e2);
  border: 1px solid #ffd8b8; border-radius: 16px; padding: 18px 14px; text-align: center;
}
.wf-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; margin-bottom: 8px; }
.w-flow .wf b { display: block; font-size: 16px; color: var(--ink); }
.w-flow .wf small { color: var(--ink-soft); font-size: 12.5px; }
.wf-arrow { align-self: center; font-size: 22px; color: var(--tangerine); font-weight: 800; }

.w-safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 6px auto 0; }
.w-safe-item {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #f0ebfa;
  border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(139,108,240,.08);
}
.w-sico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.w-safe-item b { color: var(--ink); font-size: 15px; }
.w-safe-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

@media (max-width: 820px) {
  .w-coins, .w-feats { grid-template-columns: 1fr; }
  .w-safe { grid-template-columns: 1fr; }
  .wf-arrow { transform: rotate(90deg); }
}

/* ===== 营销区吸顶小条（#wealth 滚动时吸顶） ===== */
.w-strip {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(43, 36, 64, .06);
}
.w-strip-in {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: 14px; padding: 9px 0;
}
.w-strip-brand { font-weight: 800; font-size: 15px; white-space: nowrap; }
.w-strip-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.w-strip-nav a {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; transition: background .15s, color .15s;
}
.w-strip-nav a:hover { background: rgba(43, 36, 64, .06); color: var(--ink); }
.wealth-sub { scroll-margin-top: 150px; }

/* ===== 添加到主屏幕（Web App） ===== */
.app-webapp {
  margin-top: 22px; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(135deg, #fff7ef, #fff);
  border: 1.5px dashed var(--brand-orange, #ff7a33);
}
.app-webapp-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.app-webapp-tip { margin: 8px 0 14px; font-size: 13.5px; color: var(--muted, #6b7280); line-height: 1.6; }
.btn-webapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-grad, linear-gradient(90deg,#ff7a33,#ff5a8a));
  color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 22px; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(255,122,51,.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn-webapp:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(255,122,51,.34); }
.btn-webapp:disabled { background: #2B8A3E; box-shadow: none; cursor: default; }
.webapp-guide { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(43,36,64,.08); }
.webapp-guide .wg-os { font-size: 14px; line-height: 1.7; margin: 0 0 8px; }
.webapp-guide .wg-note { font-size: 12.5px; color: var(--muted, #6b7280); margin: 4px 0 0; }

@media (max-width: 640px) {
  .w-strip-nav { display: none; }
}

