/* 竹语 Verbamboo 官网
   朴素为主：淡米色底、大而不粗的字、大量留白；背景只有很淡的竹影和光晕。
   首屏的大图标、标题、目录在滚动时变成顶栏的 Logo、标题和导航（site.js）。
   颜色沿用 App 的青绿、竹绿、米白和少量珊瑚橙。 */

:root {
  --bg: #e9e6d6;
  --surface: #ffffff;
  --surface-2: #dedbca;
  --ink: #141714;
  --ink-2: #4c524e;
  --ink-3: #868b86;
  --line: rgba(20, 23, 20, 0.1);
  --brand: #059c8f;
  --brand-ink: #04776d;
  --brand-tint: #dff1ec;
  --coral: #f27a3e;
  --coral-tint: #fde9dd;
  --gold: #e9b23c;
  --wrong: #e0663a;
  --mint: #d5eadd;
  --warm: #f1e3c4;
  --peach: #f3d8c6;
  --sky: #d5e2ee;
  --card-1: #ffffff;
  --card-2: #fbf6ea;
  --card-3: #f4ecda;
  --shadow-opacity: .17;
  --glow-a: rgba(5, 156, 143, .24);
  --glow-b: rgba(232, 170, 70, .22);
  --r: 24px;
  --r-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  --gutter: clamp(20px, 3vw, 40px);
  --bar-h: 76px;
  color-scheme: light;
}
/* 统一使用深色，不跟随系统设置 */
@media all {
  :root {
    --bg: #0f1513;
    --surface: #172019;
    --surface-2: #1e2823;
    --ink: #eef0eb;
    --ink-2: #b5bcb5;
    --ink-3: #848c85;
    --line: rgba(238, 240, 235, 0.1);
    --brand: #3fc0ae;
    --brand-ink: #66d3c3;
    --brand-tint: #17302b;
    --coral-tint: #3a251a;
    --mint: #142620;
    --warm: #262014;
    --peach: #281b15;
    --sky: #151e28;
    --card-1: #2c3a33;
    --card-2: #233029;
    --card-3: #1b2621;
    --shadow-opacity: .16;
    --glow-a: rgba(63, 192, 174, .12);
    --glow-b: rgba(242, 186, 90, .07);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); }
/* 微信 iOS 会在 body 上写行内字号缩放；!important 才能压住，免得「大字体」把首屏撑出屏幕 */
html, body { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px; line-height: 1.65; overflow-x: hidden; position: relative;
}
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: -1; }
body::before {
  inset: 0;
  background:
    radial-gradient(40vw 40vw at 8% 12%, var(--glow-a), transparent 70%),
    radial-gradient(36vw 36vw at 92% 78%, var(--glow-b), transparent 70%),
    radial-gradient(30vw 30vw at 70% 8%, var(--glow-a), transparent 70%);
}
body::after {
  top: -40px; right: -60px; width: min(42vw, 520px); height: 110vh;
  background: url(bamboo-shadow.svg) no-repeat right top / contain;
  opacity: var(--shadow-opacity); transform: scaleX(-1);
}
@media (max-width: 700px) { body::after { width: 70vw; right: -30vw; } }

img, svg, picture { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: var(--r-sm); z-index: 80; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
.hint { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- 顶栏 ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); }
.menu-open .bar { z-index: 70; }
.bar::before {
  content: ""; position: absolute; inset: 0; opacity: var(--bar-bg, 1);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.bar-in { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.bar-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; justify-self: start; }
.bar-logo img { width: 44px; height: 44px; border-radius: 11px; }
.bar-logo span { display: grid; line-height: 1.1; }
.bar-logo small { font-size: .6em; font-weight: 600; color: var(--brand-ink); letter-spacing: .02em; }
.bar-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.bar-nav { display: flex; gap: 2px; justify-self: end; will-change: transform; }
.bar-nav a, .hero-nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.bar-nav a:hover, .hero-nav a:hover { background: var(--surface); }
.bar-nav .lang, .hero-nav .lang { background: var(--surface); margin-left: 6px; }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { transform-origin: top right; position: absolute; top: calc(var(--bar-h) - 4px); right: var(--gutter); background: var(--surface); border-radius: 18px; padding: 8px; display: grid; min-width: 180px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
.menu[hidden] { display: none; }
.menu a { color: var(--ink); text-decoration: none; padding: 12px 16px; border-radius: 12px; }
.menu a:hover { background: var(--bg); }
@media (max-width: 760px) {
  :root { --bar-h: 64px; }
  .bar-nav { display: none; }
  .menu-btn { display: block; }
  .bar-in { grid-template-columns: auto 1fr auto; }
  .bar-logo img { width: 40px; height: 40px; }
  .bar-logo { font-size: 18px; gap: 8px; }
  .bar-title { display: none; }
  .hero .brand-name { font-size: 40px; }
  .hero .brand-name span, .bar-logo small { font-size: .667em; }
}
/* 有脚本时：首屏还在时顶栏里的东西先藏起来，由首屏元素飞过去替换 */
.morph .bar [data-to] { opacity: 0; pointer-events: none; }
.morph .bar.landed [data-to] { pointer-events: auto; }
.morph .bar.landed [data-to] { opacity: 1; }
/* 飞行中的替身：固定在屏幕上，由脚本按滚动进度移动，不受系统滚动推动 */
/* 滚动时间轴模式：原件直接随滚动变形，层级要压过顶栏 */
.morph.stl .hero-icon-wrap { z-index: 60; }
.morph.stl .hero-icon[data-from] { position: relative; z-index: 1; will-change: transform; }
.morph.stl .frags { z-index: 2; }
.morph.stl .hero-title[data-from] { position: relative; z-index: 58; will-change: transform; }
.morph.stl .brand-name[data-from] { z-index: 55; will-change: transform; }
.fly-ghost { position: fixed !important; top: 0 !important; left: 0 !important; margin: 0 !important; transform-origin: top left; will-change: transform; pointer-events: none; visibility: hidden; }
.morph .bar.landed ~ main [data-from] { visibility: hidden; }
.morph .frags { transition: none; }

/* ---------- 下载按钮（待上线） ---------- */
.dl { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 16px;
  border-radius: 16px; background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; user-select: none;
}
.dl-btn svg { width: 24px; height: 24px; flex: none; }
.dl-btn em { font-style: normal; display: grid; line-height: 1.15; font-size: 16px; font-weight: 600; color: var(--ink-2); text-align: left; }
.dl-btn small { font-size: 11px; font-weight: 500; color: var(--ink-3); }

/* ---------- 首屏（D 版：图标、App 碎片、轮播语言、考试标签） ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: var(--bar-h); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 24px 40px; }
.hero-left { display: grid; justify-items: center; }
.hero-grid { position: relative; }
/* 首屏左上角的大号名称；比例和顶栏 logo 文字一致，往下滑时整体缩进顶栏 */
.brand-name { position: absolute; top: calc(12px - var(--bar-h)); left: var(--gutter); z-index: 2; transform-origin: top left; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1.1; }
.brand-name p { margin: 0; display: grid; }
.brand-name b { font-weight: 600; }
.brand-name span { font-size: .6em; font-weight: 600; color: var(--brand-ink); letter-spacing: .02em; }
.hero-icon-wrap { position: relative; padding: 24px 80px 40px; }
.halo { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -48%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%); }
.hero-icon { width: min(28vw, 340px); transform-origin: top left; }
.hero-icon img { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 40px 80px -40px rgba(10, 60, 50, .5); }
.frags { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; }
.frag {
  position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px;
  background: var(--surface); color: var(--ink); border-radius: 16px; padding: 9px 14px;
  box-shadow: 0 18px 36px -20px rgba(20, 40, 30, .45); animation: bob 5s ease-in-out infinite;
}
.frag.f1 { top: 14%; left: -6%; background: var(--coral); color: #fff; border-radius: 999px; padding: 7px 16px 7px 7px; animation-delay: -.5s; }
.frag.f1 i { font-style: normal; font-weight: 700; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px; }
.frag.f2 { top: 0; right: -4%; display: grid; gap: 0; animation-delay: -1.5s; }
.frag.f2 em { font-style: normal; font-size: 11.5px; color: #c4622c; }
.frag.f2 span { font-size: 18px; }
.frag.f3 { bottom: 20%; left: -10%; animation-delay: -2.5s; }
.medal-dot { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, #f0b93e 70%); }
.frag.f4 { bottom: 6%; right: 2%; background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; animation-delay: -3.2s; }
.frag.f5 { top: 50%; right: -12%; animation-delay: -4s; }
.frag.f6 { top: 62%; left: -16%; font-size: 17px; animation-delay: -1s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero-copy { display: grid; justify-items: end; text-align: right; }
.hero-title { font-size: clamp(46px, 6.4vw, 100px); line-height: 1.05; letter-spacing: .02em; font-weight: 600; white-space: nowrap; transform-origin: top left; }
html[lang="en"] .hero-title { letter-spacing: -0.03em; font-size: clamp(42px, 5.8vw, 92px); }
.rot { margin: 12px 0 0; font-size: clamp(20px, 2vw, 28px); color: var(--ink-2); }
.rot b { display: inline-block; min-width: 4.2em; text-align: center; color: var(--brand-ink); font-weight: 600; border-bottom: 3px solid var(--brand); transition: opacity .25s var(--ease), transform .25s var(--ease); }
html[lang="en"] .rot b { min-width: 5.6em; }
.rot b.out { opacity: 0; transform: translateY(-8px); }
.hero-sub { margin: 18px 0 26px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 25em; }
/* 手机端简介一句一行，不带标点；电脑端仍是一段话 */
.sub-mob { display: none; }
@media (max-width: 760px) {
  .hero-sub .sub-desk { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-sub .sub-mob { display: block; }
  .sub-mob span { display: block; }
}
.hero .dl { justify-content: flex-end; }
.hero-exams { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.hero-exams span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.hero .facts { display: flex; gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero .facts li { display: grid; justify-items: end; }
.hero .facts b { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero .facts span { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 68px; }
  /* 手机：图标居中，碎片分在左右两侧 */
  .hero-left { justify-items: center; }
  .hero-icon-wrap { padding: 20px 0 32px; }
  .hero-icon { width: min(46vw, 220px); }
  .frag { font-size: 12px; padding: 6px 10px; border-radius: 12px; }
  .frag.f1 { left: auto; right: 74%; top: 2%; padding: 5px 11px 5px 5px; }
  .frag.f1 i { padding: 1px 7px; }
  .frag.f2 { right: auto; left: 72%; top: 24%; }
  .frag.f2 span { font-size: 15px; }
  .frag.f3 { left: auto; right: 78%; bottom: 30%; }
  .medal-dot { width: 20px; height: 20px; }
  .frag.f4 { right: auto; left: 74%; bottom: 8%; }
  .frag.f5 { top: auto; bottom: -2%; right: 66%; }
  .frag.f6 { display: none; }
  /* 窄屏下标题按屏宽缩放，系统字号再大也不会冲出屏幕 */
  .hero-copy { min-width: 0; max-width: 100%; }
  .hero { overflow-x: clip; }
  .hero-title { font-size: min(46px, 12.4vw); }
  html[lang="en"] .hero-title { font-size: min(42px, 10.6vw); }
  .hero-copy { justify-items: center; text-align: center; }
  .hero .dl, .hero-exams { justify-content: center; }
  .hero .facts { justify-content: center; }
  .hero .facts li { justify-items: center; }
}

/* ---------- 字幕条 ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; gap: 64px; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(26px, 3.2vw, 44px); white-space: nowrap; }
.marquee span:nth-child(odd) { color: var(--brand-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 标题 ---------- */
.sec-title { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 48px; }
.sec-lede { margin: -28px 0 40px; color: var(--ink-2); font-size: 18px; max-width: 34em; }
.idx { display: inline-block; font-size: 14px; color: var(--brand-ink); background: var(--surface); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- 四个功能区 ---------- */
.zones { padding: clamp(56px, 7vw, 100px) 0 40px; }
.zones h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.zones p { color: var(--ink-2); margin: 0; }

/* 01 学习 */
.z-learn { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; background: var(--mint); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); }
.z-learn p { max-width: 26em; }
.levels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.levels button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 9px; border-radius: 999px; border: 2px solid transparent;
  background: var(--surface); color: var(--ink-2); font-size: 15px; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.levels button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.3); }
.levels button:active { transform: translateY(0) scale(.98); }
.levels button[aria-pressed="true"] { border-color: var(--brand); }
.levels b { display: grid; place-items: center; width: 42px; height: 30px; border-radius: 999px; background: #c6d4bf; color: #4f6249; font-size: 13px; font-variant-numeric: tabular-nums; }
.levels .done b { background: var(--gold); color: #fff; }
.levels .now { background: var(--coral); color: #fff; }
.levels .now b { background: rgba(255,255,255,.25); color: #fff; }
.levels .boss b { background: #b8d98f; color: #3d5a2a; }
.z-shot { justify-self: center; }

/* 手机：照 App 重现的学习之路，可滚动 */
.phone { width: min(300px, 74vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 10px; background: #151a18; box-shadow: 0 40px 70px -40px rgba(10, 40, 30, .55); }
.app { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #fbfaf1; color: #2a2420; display: flex; flex-direction: column; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 4px; font-size: 14px; }
.status b { font-weight: 600; }
.status .dyn { width: 84px; height: 24px; border-radius: 13px; background: #0c0f0e; }
.status i { width: 26px; height: 12px; border-radius: 4px; border: 1.5px solid #2a2420; position: relative; }
.status i::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #2a2420; border-radius: 2px; }
.app-head { padding: 6px 16px 8px; }
.app-crumb { display: flex; justify-content: space-between; margin: 0 !important; font-size: 12px; font-weight: 600; color: #2a2420 !important; }
.app-crumb span { color: #0b8b7e; }
.app-big { margin: 6px 0 0 !important; font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", sans-serif; font-size: 25px; font-weight: 900; color: #10a091 !important; line-height: 1.2; text-shadow: 0 2px 0 #cdeee5; }
.app-small { margin: 2px 0 8px !important; font-size: 11px; color: #8a827a !important; }
.app-goal { display: flex; justify-content: space-between; align-items: center; background: #fbe9db; border-radius: 14px; padding: 8px 12px; font-size: 12px; }
.app-goal b { font-size: 16px; }
.route-scroll { flex: 1; overflow: hidden; touch-action: pan-y; position: relative; background: linear-gradient(180deg, #eef7ec, #e6f3e8); }
.route-scroll::-webkit-scrollbar { display: none; }
.route-map { position: relative; height: 980px; }
.route-map .vine { position: absolute; inset: 0; width: 100%; height: 100%; }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; font-family: ui-rounded, "SF Pro Rounded", sans-serif;
  font-weight: 900; font-size: 22px; line-height: 1; color: #fff; background: radial-gradient(circle at 35% 30%, #f6cf6b, #e2a531);
  box-shadow: 0 6px 0 rgba(0,0,0,.12), 0 0 0 5px rgba(255,255,255,.7);
}
.node small { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; }
.node.now { width: 92px; height: 92px; background: radial-gradient(circle at 35% 30%, #ff9c63, #f0702f); }
.node.now em { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 800; color: #7a5410; background: #fbe6a3; padding: 4px 10px; border-radius: 999px; }
.node.lock { background: radial-gradient(circle at 35% 30%, #cfdac8, #a9b9a2); color: #4f6249; }
.node.boss { width: 132px; height: 72px; border-radius: 20px; background: linear-gradient(180deg, #d4ecb0, #a9d47f); color: #3d5a2a; box-shadow: 0 8px 0 #b39a7f, 0 0 0 5px rgba(255,255,255,.7); }
.node .crown { position: absolute; top: -26px; left: 50%; width: 36px; height: 24px; transform: translateX(-50%); background: #f0b93e; clip-path: polygon(0 100%, 4% 20%, 28% 55%, 50% 0, 72% 55%, 96% 20%, 100% 100%); }
.node.ping { animation: ping .9s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 6px 0 rgba(0,0,0,.12), 0 0 0 5px rgba(255,255,255,.7), 0 0 0 0 rgba(5,156,143,.6); } 100% { box-shadow: 0 6px 0 rgba(0,0,0,.12), 0 0 0 5px rgba(255,255,255,.7), 0 0 0 26px rgba(5,156,143,0); } }
.tabbar { display: flex; justify-content: space-around; padding: 10px 8px 14px; background: rgba(255,255,255,.85); border-top: 1px solid #ece7da; font-size: 11px; color: #8a827a; }
.tabbar .on { color: #0b8b7e; font-weight: 700; }
/* 手机端：关卡在左，手机画面在右；画面按 260px 排版再用 transform 整体缩小（iOS Safari 的 zoom 不缩文字） */
@media (max-width: 760px) {
  article.z-learn { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: start; padding: 24px 18px; }
  .z-learn .z-copy { display: contents; }
  .z-learn .idx { justify-self: start; }
  .z-learn .idx, .z-learn h3, .z-learn p { grid-column: 1 / -1; }
  .levels { grid-column: 1; align-self: center; flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 24px; }
  .levels button { flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 8px 10px 9px; border-radius: 16px; font-size: 13px; line-height: 1.3; text-align: left; }
  .levels b { width: 38px; height: 22px; font-size: 12px; }
  .z-shot { --k: .74; grid-column: 2; margin-top: 24px; width: calc(260px * var(--k)); height: calc(260px * 19 / 9 * var(--k)); }
  .phone { width: 260px; transform: scale(var(--k)); transform-origin: top left; }
}
@media (max-width: 370px) { .z-shot { --k: .66; } }

/* 02 复习 + 04 我的 */
.z-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.z-review, .z-me { border-radius: var(--r); padding: clamp(28px, 3.4vw, 44px); }
.z-review { background: var(--warm); }
.z-me { background: var(--sky); }
.cards { position: relative; height: 290px; margin-top: 32px; }
.mcard {
  position: absolute; left: 50%; top: 0; width: min(320px, 86%); padding: 16px 20px; border: 0; border-radius: 18px; text-align: left;
  display: grid; gap: 2px; cursor: pointer; box-shadow: 0 14px 30px -18px rgba(60, 40, 10, .45);
  transition: transform .45s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.mcard span { font-size: 22px; font-weight: 500; }
.mcard em { font-style: normal; font-size: 13px; }
.mcard .ok { color: var(--brand-ink); }
.mcard .again { color: #c4622c; }
.mcard.c3 { background: var(--card-3); transform: translate(-54%, 0) rotate(-4deg); z-index: 1; }
.mcard.c2 { background: var(--card-2); transform: translate(-46%, 72px) rotate(3deg); z-index: 2; }
.mcard.c1 { background: var(--card-1); transform: translate(-50%, 144px) rotate(-2deg); z-index: 3; }
/* 鼠标放上去：保持叠放，被指的那张往上弹出、放大、边框高亮 */
.mcard { outline: 2px solid transparent; outline-offset: 0; }
@media (hover: hover) {
  .mcard:hover, .mcard:focus-visible { z-index: 6; outline-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent), 0 26px 40px -20px rgba(60, 40, 10, .5); }
  .mcard.c3:hover, .mcard.c3:focus-visible { transform: translate(-54%, -26px) rotate(-2deg) scale(1.07); }
  .mcard.c2:hover, .mcard.c2:focus-visible { transform: translate(-46%, 40px) rotate(1deg) scale(1.07); }
  .mcard.c1:hover, .mcard.c1:focus-visible { transform: translate(-50%, 136px) rotate(-1deg) scale(1.07); }
}
/* 点按（手机）：同样的效果 */
.mcard.is-active { z-index: 6; outline-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent), 0 26px 40px -20px rgba(60, 40, 10, .5); }
.mcard.c3.is-active { transform: translate(-54%, -26px) rotate(-2deg) scale(1.07); }
.mcard.c2.is-active { transform: translate(-46%, 40px) rotate(1deg) scale(1.07); }
.mcard.c1.is-active { transform: translate(-50%, 136px) rotate(-1deg) scale(1.07); }
.cards { padding-top: 30px; height: 320px; }
.mcard.c3 { top: 30px; } .mcard.c2 { top: 30px; } .mcard.c1 { top: 30px; }

.prefs { margin-top: 28px; background: var(--surface); border-radius: 18px; padding: 20px; }
.pref-label { margin: 0 0 8px !important; font-size: 13px; color: var(--ink-3) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button {
  padding: 8px 15px; border-radius: 999px; border: 0; background: var(--bg); font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.chips button:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 45%, transparent); }
.chips button:active { transform: scale(.96); }
.chips button.on { background: var(--brand); color: #fff; }
.chips button.on { color: #08201c; }
.pref-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.pref-sample { margin: 10px 0 0 !important; font-size: 26px; line-height: 2; color: var(--ink) !important; }
.pref-sample rt { font-size: .45em; color: var(--brand-ink); transition: color .3s var(--ease); }
.pref-sample.off rt { color: transparent; }

/* 开关（两处共用） */
.tg-input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; margin: 0; cursor: pointer; position: relative;
  background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.tg-input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.tg-input:checked { background: var(--brand); }
.tg-input:checked::after { transform: translateX(18px); }
.tg-input:hover, label:hover > .tg-input { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent); }

/* 03 成长 */
.z-growth { display: grid; grid-template-columns: 1.2fr 1.05fr 0.85fr; gap: 32px; align-items: center; margin-top: 24px; background: var(--peach); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); }
.lv-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; font-size: 15px; }
.lv-line b { font-weight: 500; }
.lv-line span { color: #b5541f; }
.xp { height: 10px; border-radius: 5px; background: var(--surface); margin-top: 10px; overflow: hidden; }
.xp i { display: block; height: 100%; background: var(--coral); border-radius: 5px; }
.g-cal { background: var(--surface); border-radius: 20px; padding: 18px 16px 14px; }
.g-month { margin: 0 0 10px !important; font-weight: 600; text-align: center; color: var(--ink) !important; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; text-align: center; }
.cal > span { font-size: 12px; color: var(--ink-3); }
.day { position: relative; height: 34px; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); border-radius: 10px; font-variant-numeric: tabular-nums; }
.day.learned { color: var(--ink); font-weight: 700; }
.day.learned::before {
  content: ""; position: absolute; width: 30px; height: 30px; top: 1px; left: 50%; margin-left: -15px; z-index: -1; opacity: .35;
  background: var(--coral); -webkit-mask: url(flame.svg) center / contain no-repeat; mask: url(flame.svg) center / contain no-repeat;
}
.day { isolation: isolate; }
.day.future { opacity: .4; }
.day.prev { opacity: .45; }
.day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-legend { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0 !important; font-size: 12px; color: var(--ink-3) !important; }
.flame-ico { width: 14px; height: 14px; background: var(--coral); opacity: .6; -webkit-mask: url(flame.svg) center / contain no-repeat; mask: url(flame.svg) center / contain no-repeat; }
.medals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.medals button {
  width: 100%; display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 6px 2px; border-radius: 16px;
  font-size: 13px; color: var(--ink-3); cursor: pointer; transition: transform .2s var(--ease);
}
.medals button:hover { transform: translateY(-3px); }
.medals button:active { transform: scale(.96); }
.medals .got { color: var(--ink); }
.seal { width: 64px; height: 64px; display: block; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.badge-tip {
  position: absolute; z-index: 40; width: 260px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  background: var(--surface); color: var(--ink); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.4), 0 0 0 1px var(--line);
}
.badge-tip[hidden] { display: none; }
.badge-tip::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); top: calc(50% - 7px); right: -7px; box-shadow: 1px -1px 0 var(--line); }
.badge-tip.below::after { top: -7px; right: auto; left: var(--ax, 50%); margin-left: -7px; box-shadow: -1px -1px 0 var(--line); }
.bt-seal { width: 64px; height: 64px; }
.bt-name { margin: 0 0 2px !important; font-weight: 700; font-size: 17px; color: var(--ink) !important; }
.bt-state { margin: 0 0 4px !important; font-size: 13px; font-weight: 600; color: var(--coral) !important; }
.bt-state.locked { color: var(--ink-3) !important; }
.bt-why { margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--ink-2) !important; }
.medals button[aria-expanded="true"] { color: var(--brand-ink); }

@media (max-width: 1000px) {
  .z-learn, .z-pair, .z-growth { grid-template-columns: 1fr; }
  .medals { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 试一试 ---------- */
.try { padding: clamp(56px, 7vw, 100px) 0; }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.demo h3 { font-size: 22px; margin-bottom: 16px; }
@media (max-width: 900px) { .try-grid { grid-template-columns: 1fr; gap: 56px; } }
.quiz, .reader { background: var(--surface); border-radius: var(--r); padding: 24px; }
.quiz-top { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.bar-p { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-p i { display: block; height: 100%; width: 58%; background: var(--brand); border-radius: 4px; }
.quiz-q { font-size: 18px; font-weight: 500; margin: 20px 0 16px; line-height: 1.45; }
.opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opt {
  width: 100%; display: grid; grid-template-columns: 32px 1fr 22px; gap: 12px; align-items: center;
  text-align: left; font-size: 15.5px; line-height: 1.4; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
  .opt:not(:disabled):hover {
    border-color: var(--brand); transform: translateY(-2px);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent), 0 0 24px -4px color-mix(in srgb, var(--brand) 60%, transparent);
  }
}
.opt:not(:disabled):focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent), 0 0 24px -4px color-mix(in srgb, var(--brand) 60%, transparent); }
.opt:not(:disabled):active { transform: translateY(1px) scale(.99); }
.opt.is-picked { cursor: default; }
.opt .k { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.opt .mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); display: grid; place-items: center; }
.opt .mark svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.opt.is-right { border-color: var(--brand); background: var(--brand-tint); }
.opt.is-right .mark { background: var(--brand); border-color: var(--brand); }
.opt.is-wrong { border-color: var(--wrong); background: color-mix(in srgb, var(--wrong) 8%, var(--surface)); }
.opt.is-wrong .mark { background: var(--wrong); border-color: var(--wrong); }
.opt.is-right .mark .ok, .opt.is-wrong .mark .no { opacity: 1; }
.explain { margin-top: 16px; border-radius: 14px; padding: 18px 20px; background: var(--coral-tint); font-size: 15px; line-height: 1.6; }
.explain.good { background: var(--brand-tint); }
.explain h4 { display: flex; align-items: center; gap: 8px; }
.explain h4 i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; background: var(--wrong); }
.explain.good h4 i { background: var(--brand); }
.explain[hidden] { display: none; }
.explain h4 { font-size: 16px; margin-bottom: 6px; color: color-mix(in srgb, var(--coral) 75%, var(--ink)); }
.explain.good h4 { color: var(--brand-ink); }
.explain p { margin: 6px 0 0; color: var(--ink-2); }
.explain p b { color: var(--ink); font-weight: 500; }
.again-btn { margin-top: 14px; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.again-btn:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 45%, transparent); }
.seg { position: relative; display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: left .4s var(--ease), width .4s var(--ease); }
.seg button { position: relative; border: 0; background: transparent; color: var(--ink-2); min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; transition: color .2s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.no-js .seg button[aria-pressed="true"] { background: var(--surface); }
@media (max-width: 400px) { .quiz, .reader { padding: 18px; } .seg { max-width: 100%; } .seg button { padding: 0 9px; font-size: 14px; } }
.reader-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.sample { min-height: 190px; display: grid; align-content: center; padding: 28px 4px 8px; }
.sample p { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 2.2; }
.sample[data-lang="en"] p { font-size: clamp(22px, 2.6vw, 30px); }
.sample ruby { ruby-position: over; }
.sample rt { font-size: 0.42em; color: var(--brand-ink); letter-spacing: 0.02em; transition: color .35s var(--ease); }
.sample[data-lang="en"] rt { font-size: 0.5em; font-family: "Lucida Grande", "Segoe UI", "Helvetica Neue", sans-serif; }
.sample.off rt { color: transparent; }
.sample p.tr, .sample[data-lang] p.tr { font-size: 15px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.sample-wrap[hidden] { display: none; }
.reader-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- 考试专项 ---------- */
.exams-sec { padding: clamp(56px, 7vw, 100px) 0; }
.exam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.exam { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.exam-lang { margin: 0 0 12px; display: inline-block; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); }
.exam h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.01em; }
.exam h3 small { font-size: 16px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.exam-what { margin: 8px 0 24px; color: var(--ink-2); }
.ladder { display: flex; gap: 6px; position: relative; padding-bottom: 26px; }
.ladder span { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ladder span:nth-child(1) { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.ladder span:nth-child(2) { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.ladder span:nth-child(3) { background: color-mix(in srgb, var(--brand) 34%, var(--surface)); }
.ladder span:nth-child(4) { background: color-mix(in srgb, var(--brand) 48%, var(--surface)); }
.ladder span:nth-child(5) { background: color-mix(in srgb, var(--brand) 62%, var(--surface)); color: #fff; }
.ladder span:nth-child(6) { background: color-mix(in srgb, var(--brand) 78%, var(--surface)); color: #fff; }
.ladder span:nth-child(7) { background: var(--brand); color: #fff; flex: 1.4; }
.ladder::before, .ladder::after { position: absolute; bottom: 0; font-size: 12px; color: var(--ink-3); }
.ladder::before { content: "入门"; left: 0; }
.ladder::after { content: "最难"; right: 0; }
html[lang="en"] .ladder::before { content: "Easiest"; }
html[lang="en"] .ladder::after { content: "Hardest"; }
.exam-rows { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.exam-rows li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.exam-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.exam-rows b { font-weight: 500; font-size: 18px; }
.exam-rows span { color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-3); margin: 28px 0 0; max-width: 50em; }
@media (max-width: 760px) { .exam-grid { grid-template-columns: 1fr; } }

/* ---------- 常见问题 ---------- */
.faq-sec { padding: clamp(56px, 7vw, 100px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 19px; font-weight: 500; border-radius: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus:not(:focus-visible), .pointer .faq summary:focus-visible { outline: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--ink-2); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0 0 22px; color: var(--ink-2); max-width: 36em; }

/* ---------- 结尾、页脚 ---------- */
.close { padding: clamp(56px, 7vw, 100px) 0; }
.statement { margin: 0 0 36px; font-size: clamp(36px, 5vw, 72px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .tm { flex-basis: 100%; margin: 0; }

/* ---------- 鼠标拖尾 ---------- */
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; }

/* ---------- 文档页 ---------- */
.doc { max-width: 760px; padding: calc(var(--bar-h) + 56px) var(--gutter) 96px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.15; letter-spacing: -0.02em; }
.doc .meta { color: var(--ink-3); margin: 10px 0 40px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 44px 0 8px; font-weight: 500; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 500; color: var(--ink); background: var(--surface); }
@media (max-width: 560px) { .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px; } }
.doc-bar .bar-in { grid-template-columns: 1fr auto; }
.doc-bar .bar-nav { display: flex; }

/* ---------- 动效前状态 ---------- */
.js [data-enter] { opacity: 0; }
.js.ready [data-enter] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .frag { animation: none; }
  .rot b { transition: none; }
  .js [data-enter] { opacity: 1; }
  .marquee-track { animation: none; }
  .mcard, .seg-pill, .tg-input::after, .sample rt, .pref-sample rt { transition: none; }
}
