/* ============================================================
   LeapFun AI — Marketing Site
   Design system mirrors LeapFun AI Studio (frontend-next):
   light warm-white, monochrome black chrome, single blue accent,
   Inter typeface, 0.75rem radius. ElevenLabs-grade layout.
   ============================================================ */

:root {
  /* --- tokens copied from the Studio app (globals.css, light) --- */
  --bg:            #fdfcfc;
  --fg:            #0a0a0a;
  --card:          #ffffff;
  --primary:       #000000;
  --primary-fg:    #ffffff;
  --secondary:     #f5f3f1;
  --fill:          #f5f3f1;
  --fill-2:        #ecebe8;
  --muted-fg:      #777169;
  --muted-2:       #a59f97;
  --border:        #e5e5e5;
  --border-strong: #d8d5d0;
  --blue:          #0447ff;   /* the one accent — links, focus, highlights */
  --blue-hover:    #0335c9;
  --ok:            #16a34a;
  --radius:        0.75rem;

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 3px rgba(10,10,10,.06);
  --shadow-md: 0 8px 30px -12px rgba(10,10,10,.14);
  --shadow-lg: 0 30px 80px -30px rgba(10,10,10,.22);

  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* , *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.05; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px; font-weight: 600; font-size: 14.5px;
  letter-spacing: 0; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--fill); border-color: var(--border-strong); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--primary); color: var(--primary-fg); text-align: center;
  font-size: 13px; padding: 9px 16px; position: relative; z-index: 60;
}
.announce a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a b { font-weight: 600; }
.announce a .chev { transition: transform .2s; }
.announce a:hover .chev { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(253,252,252,.8);
  backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.nav-left { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a { font-size: 14px; font-weight: 500; color: var(--fg); opacity: .82; transition: opacity .2s; }
.nav-links > a:hover { opacity: 1; }

/* Product 下拉(2026-07-30 导航重构):名称 + 一句话副标题,两列 */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; font-family: inherit; color: var(--fg); opacity: .82; background: none; border: 0; cursor: pointer; transition: opacity .2s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { opacity: 1; }
.nav-dd-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
/* 2026-07-30 二版:双列紧凑格 → 单列清单(用户反馈原排版局促)。
   图标进 34px 圆角底色块、行高宽松、垂直居中,展开带 150ms 渐入。 */
.nav-dd-panel { position: absolute; top: calc(100% + 14px); left: -14px; display: none; grid-template-columns: 320px; gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; }
.nav-dd.open .nav-dd-panel { display: grid; animation: ddIn .15s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-dd-item { display: flex; gap: 13px; padding: 10px 12px; border-radius: 10px; align-items: center; transition: background .15s; }
.nav-dd-item:hover { background: var(--fill); }
.nav-dd-item > svg { width: 34px; height: 34px; padding: 8px; background: var(--fill); border-radius: 9px; color: var(--fg); flex-shrink: 0; transition: background .15s; }
.nav-dd-item:hover > svg { background: var(--fill-2); }
.nav-dd-t { display: block; font-size: 14px; font-weight: 600; font-style: normal; color: var(--fg); line-height: 1.3; }
.nav-dd-s { display: block; font-size: 12.5px; font-style: normal; color: var(--muted-fg); margin-top: 2px; line-height: 1.35; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.logo-mark { height: 23px; width: auto; display: block; }
.logo-text { font-size: 18.5px; font-weight: 700; letter-spacing: -0.03em; }

/* Language toggle */
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 100px; padding: 2px; background: var(--card); }
.lang button { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 100px; color: var(--muted-fg); transition: .2s; }
.lang button.active { background: var(--primary); color: var(--primary-fg); }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; align-items: center; justify-content: center; background: var(--card); }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .06s; }
[data-delay="2"] { transition-delay: .12s; }
[data-delay="3"] { transition-delay: .18s; }
[data-delay="4"] { transition-delay: .24s; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgba(4,71,255,.07), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--card); font-size: 13px; font-weight: 500;
  color: var(--muted-fg); margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .grad { color: var(--blue); }
:root[lang="zh"] .hero h1 { line-height: 1.14; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted-fg); max-width: 620px; margin: 0 auto 30px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted-2); display: flex; gap: 8px; justify-content: center; align-items: center; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Studio demo widget ---------- */
.demo {
  max-width: 760px; margin: 52px auto 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; position: relative;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--fill-2); }
.demo-bar .title { font-size: 12.5px; color: var(--muted-2); margin-left: 4px; font-weight: 500; }
.demo-body { padding: 20px; }
.demo-script { font-size: 16px; line-height: 1.7; color: var(--fg); min-height: 54px; }
.demo-script .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.voice-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.voice-pill {
  font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border);
  color: var(--muted-fg); transition: .2s; display: inline-flex; gap: 7px; align-items: center; background: var(--card);
}
.voice-pill .sw { width: 8px; height: 8px; border-radius: 50%; }
.voice-pill.active { border-color: var(--primary); color: var(--fg); background: var(--fill); }
.demo-player { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 17px; height: 17px; }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; flex: 1; }
.wave span { flex: 1; background: var(--fill-2); border-radius: 3px; height: 22%; transition: background .3s; }
.wave.playing span { background: var(--blue); animation: bounce 1s var(--ease) infinite; }
@keyframes bounce { 0%,100% { height: 22%; } 50% { height: 88%; } }
.demo-player .time { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- Trust / logo cloud ---------- */
.trust { padding: 44px 0; border-top: 1px solid var(--border); }
.trust p { text-align: center; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 24px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-row span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--muted-2); white-space: nowrap; }

/* ---------- Section scaffolding ---------- */
.sec { padding: 92px 0; }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; font-weight: 800; margin: 16px 0 16px; line-height: 1.05; }
:root[lang="zh"] .sec-head h2 { line-height: 1.2; }
.sec-head p { font-size: 17px; color: var(--muted-fg); line-height: 1.6; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Feature grid(5 卡:3+2 居中,6 轨每卡跨 2)---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { grid-column: span 2; }
.feature:nth-child(4) { grid-column: 2 / span 2; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--fg); margin-bottom: 18px; border: 1px solid var(--border);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature p { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.feature .lnk { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.feature .lnk svg { width: 14px; height: 14px; transition: transform .2s; }
.feature:hover .lnk svg { transform: translateX(3px); }

/* ---------- Voice showcase (ElevenLabs-style cards) ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.voice-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.voice-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vc-orb {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), transparent 42%),
    radial-gradient(circle at 68% 72%, var(--o3), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--o1), var(--o2) 78%);
  box-shadow: inset 0 -6px 14px rgba(10,10,10,.18), var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.vc-orb:hover { transform: scale(1.06); box-shadow: inset 0 -6px 14px rgba(10,10,10,.18), var(--shadow-md); }
.vc-orb svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(10,10,10,.35)); }
.vc-orb .ic-pause { display: none; }
.voice-card.playing .vc-orb .ic-play { display: none; }
.voice-card.playing .vc-orb .ic-pause { display: block; }
.voice-card.playing .vc-orb { animation: vc-pulse 1.6s ease-in-out infinite; }
@keyframes vc-pulse {
  0%, 100% { box-shadow: inset 0 -6px 14px rgba(10,10,10,.18), 0 0 0 0 rgba(4,71,255,.28); }
  50%      { box-shadow: inset 0 -6px 14px rgba(10,10,10,.18), 0 0 0 9px rgba(4,71,255,0); }
}
.vc-info h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; }
.vc-cat {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--blue); background: rgba(4,71,255,.07); border-radius: 100px; padding: 3px 10px; margin-bottom: 8px;
}
.vc-info p { font-size: 13.5px; color: var(--muted-fg); line-height: 1.55; }
.voices-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 26px; }
.voices-hint { text-align: center; font-size: 13px; color: var(--muted-fg); margin-bottom: 18px; }

/* ---------- FAQ(原生 details,零 JS)---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 0 18px; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; padding: 15px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted-2); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 13.5px; color: var(--muted-fg); line-height: 1.6; padding-bottom: 16px; }

/* ---------- Alternating showcase rows ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.showcase.flip .show-media { order: -1; }
.show-copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 16px; line-height: 1.08; }
.show-copy p { font-size: 16.5px; color: var(--muted-fg); line-height: 1.62; margin-bottom: 20px; }
.show-copy ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.show-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg); }
.show-copy li svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.show-media {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-md); min-height: 260px; display: flex; flex-direction: column; justify-content: center;
}

/* mock: engine chips */
.engine-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.engine-chip { font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.engine-chip .sw { width: 8px; height: 8px; border-radius: 50%; }

/* mock: product-frame mock(2026-07-30 替代装饰性蓝色声波条 —— 展示真实工作流) */
.mock-app { display: flex; flex-direction: column; gap: 14px; }
.mock-head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fill-2); }
.mock-head-t { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted-2); letter-spacing: .02em; }
.mock-script { font-size: 15px; line-height: 1.65; color: var(--fg); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); display: inline-flex; gap: 7px; align-items: center; }
.mock-chip .sw { width: 9px; height: 9px; border-radius: 50%; }
.mock-chip.ghost { color: var(--muted-fg); background: var(--fill); border-color: transparent; }
.mock-player { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.mock-pbtn { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; flex-shrink: 0; }
.mock-pbtn svg { width: 14px; height: 14px; margin-left: 1px; }
.mock-track { flex: 1; height: 5px; border-radius: 5px; background: var(--fill-2); overflow: hidden; }
.mock-track span { display: block; height: 100%; border-radius: 5px; background: var(--fg); }
.mock-time { font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono); flex-shrink: 0; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.mock-fic { width: 32px; height: 32px; border-radius: 9px; background: var(--fill); color: var(--fg); display: grid; place-items: center; flex-shrink: 0; }
.mock-fic svg { width: 16px; height: 16px; }
.mock-fmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mock-fmeta b { font-size: 13px; font-weight: 600; }
.mock-fmeta span { font-size: 11.5px; color: var(--muted-2); }
.mock-ok { font-size: 12px; font-weight: 600; color: var(--ok); flex-shrink: 0; }
.mock-prompt { background: var(--fill); border-radius: 10px; padding: 13px 15px; font-size: 14px; }

/* mock: studio paragraph rows */
.mock-rows { display: flex; flex-direction: column; gap: 9px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.mock-row .tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--fill); color: var(--muted-fg); flex-shrink: 0; }
.mock-row .bar { height: 8px; border-radius: 5px; background: var(--fill-2); flex: 1; }
.mock-row.done .bar { background: linear-gradient(90deg, var(--blue), #7ea0ff); }

/* mock: transcript */
.mock-transcript { font-size: 13.5px; color: var(--fg); line-height: 1.8; }
.mock-transcript .ts { color: var(--blue); font-family: var(--font-mono); font-size: 12px; margin-right: 8px; }

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; background: var(--card); transition: border-color .3s, box-shadow .3s; }
.case:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.case .k { font-size: 13px; font-weight: 700; color: var(--blue); }
.case h3 { font-size: 19px; font-weight: 700; margin: 12px 0 9px; letter-spacing: -0.02em; }
.case p { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }

/* ---------- API / code ---------- */
.api-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.code {
  background: #0c0c0e; border: 1px solid #1c1c22; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid #1c1c22; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a32; }
.code-bar .fname { font-size: 12px; color: #6a6a76; margin-left: 6px; font-family: var(--font-mono); }
.code pre { padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #d7d7de; }
.code .k { color: #7ea0ff; } .code .s { color: #7fd88f; } .code .c { color: #6a6a76; } .code .f { color: #e8b04b; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 58px 0; background: var(--card); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .n { font-size: clamp(34px, 4.5vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .n em { font-style: normal; color: var(--blue); }
.stat .l { font-size: 13.5px; color: var(--muted-fg); margin-top: 10px; }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 40px; padding: 5px; border: 1px solid var(--border); border-radius: 100px; background: var(--card); }
.price-toggle button { font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 100px; color: var(--muted-fg); transition: .2s; }
.price-toggle button.active { background: var(--primary); color: #fff; }
.price-toggle .save { font-size: 11px; color: var(--ok); font-weight: 700; }
.pricing { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.tier { border: 1px solid var(--border); border-radius: 16px; padding: 24px 18px; background: var(--card); position: relative; transition: border-color .3s, box-shadow .3s; }
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tier .badge { position: absolute; top: -11px; left: 22px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 4px 11px; border-radius: 100px; }
.tier h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; line-height: 1; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.tier .quota { font-size: 13.5px; color: var(--muted-fg); margin-bottom: 20px; }
.tier .quota b { color: var(--fg); font-weight: 600; }
.tier ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.tier li { font-size: 13.5px; color: var(--fg); display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.tier li svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.pricing-foot { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--muted-2); }
.pricing-foot a { color: var(--blue); font-weight: 500; }

/* ---------- Affiliate teaser ---------- */
.affiliate-band { padding: 80px 0; }
.affiliate-card {
  background: var(--primary); color: var(--primary-fg); border-radius: 22px; padding: 56px 48px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative;
}
.affiliate-card::before { content: ""; position: absolute; top: -60px; right: -20px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(4,71,255,.35), transparent 65%); }
.affiliate-card .eyebrow { color: #7ea0ff; }
.affiliate-card h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 14px; line-height: 1.06; }
.affiliate-card p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.affiliate-stat { position: relative; z-index: 1; text-align: center; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 30px; }
.affiliate-stat .big { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.affiliate-stat .big em { font-style: normal; color: #7ea0ff; }
.affiliate-stat .sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 100px 0; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; line-height: 1.03; }
.cta-band p { font-size: 18px; color: var(--muted-fg); max-width: 48ch; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 62px 0 34px; background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot-brand p { color: var(--muted-fg); font-size: 14px; margin: 16px 0; max-width: 30ch; line-height: 1.6; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted-fg); transition: .2s; }
.foot-social a:hover { color: var(--fg); border-color: var(--border-strong); background: var(--fill); }
.foot-social svg { width: 16px; height: 16px; }
.foot-col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted-fg); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.foot-bottom p { font-size: 13px; color: var(--muted-2); }
.foot-legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-legal a, .foot-legal button { font-size: 13px; color: var(--muted-fg); transition: color .2s; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--fg); }

/* ---------- Cookie consent (CCPA) ---------- */
.consent {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 200; max-width: 440px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-lg); transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.consent.show { transform: none; opacity: 1; }
.consent h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.consent h4 svg { width: 17px; height: 17px; color: var(--blue); }
.consent p { font-size: 13px; color: var(--muted-fg); line-height: 1.55; margin-bottom: 16px; }
.consent p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.consent-actions .btn { padding: 9px 16px; font-size: 13px; }
.consent-actions .link { font-size: 13px; color: var(--muted-fg); text-decoration: underline; text-underline-offset: 3px; }

.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,.45); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 18px; max-width: 520px; width: 100%; padding: 30px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal > p { font-size: 14px; color: var(--muted-fg); margin-bottom: 22px; line-height: 1.55; }
.pref { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.pref-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pref-top h5 { font-size: 15px; font-weight: 700; }
.pref p { font-size: 12.5px; color: var(--muted-fg); margin-top: 7px; line-height: 1.5; }
.pref .locked { font-size: 12px; color: var(--ok); font-weight: 700; }
.switch { position: relative; width: 42px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--fill-2); border-radius: 100px; transition: .25s; }
.slider::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(17px); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.gpc-note { font-size: 12.5px; color: var(--ok); margin-top: 14px; display: none; align-items: center; gap: 7px; }
.gpc-note.show { display: flex; }
.gpc-note svg { width: 15px; height: 15px; }

/* ---------- Legal & simple pages ---------- */
.legal-page { padding: 72px 0 80px; max-width: 780px; }
.legal-page h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 36px; }
/* 标题区居中变体(隐私政策页用):只影响 h1 与生效日期行,正文仍左对齐 */
.legal-hero-center h1, .legal-hero-center .updated { text-align: center; }
.legal-page h2 { font-size: 21px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal-page h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.legal-page p, .legal-page li { color: #33312e; font-size: 15.5px; line-height: 1.72; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-page strong { color: var(--fg); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-page th, .legal-page td { border: 1px solid var(--border); padding: 11px 13px; text-align: left; font-size: 14px; }
.legal-page th { background: var(--fill); font-weight: 700; }
.legal-page td { color: var(--muted-fg); }

:root[lang="en"] .only-zh { display: none; }
:root[lang="zh"] .only-en { display: none; }

/* ---------- FAQ 独立页 ---------- */
/* min-height 撑住短内容:问答不足一屏时,页脚别飘到屏幕中间。 */
.faq-page { padding: 72px 0 96px; min-height: calc(100vh - 380px); }
.faq-page .sec-head { margin-bottom: 40px; }

/* ---------- Affiliate page specifics ---------- */
.aff-hero { padding: 84px 0 60px; text-align: center; }
.aff-hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 20px; }
.aff-hero h1 em { font-style: normal; color: var(--blue); }
.aff-hero p { font-size: 18px; color: var(--muted-fg); max-width: 44ch; margin: 0 auto 28px; }
.aff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aff-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; background: var(--card); }
.aff-step .idx { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.aff-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.aff-step p { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.faq { max-width: 760px; margin: 0 auto; }
/* 仅作用于 affiliate 页的 .faq 容器(下划线分隔风)。
   ⚠️ 曾用裸 .faq-item 写在这里,把首页/FAQ 页的圆角卡片手风琴全局覆盖成裸行
   (同名类靠后者胜)—— 2026-07-17 收进 .faq 作用域,并显式还原卡片规则带入的属性。 */
.faq .faq-item { border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 22px 0; }
.faq .faq-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.faq .faq-item p { font-size: 14.5px; color: var(--muted-fg); line-height: 1.62; padding-bottom: 0; }

/* ---------- Mobile ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: var(--bg); display: none; flex-direction: column; padding: 84px 24px 40px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 18px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--border); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 18px; }
.mm-group { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 10px 0 4px; }

/* FAQ 独立页标题(2026-07-30 用户反馈:页面主标题偏小)——
   眉标与 h2 均按"页面级标题"放大,仅作用于 faq-page,不影响首页区块标题。 */
.faq-page .sec-head .eyebrow { font-size: 15px; }
.faq-page .sec-head h2 { font-size: clamp(34px, 4.5vw, 48px); }

@media (max-width: 1000px) {
  .features, .cases, .aff-steps, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:nth-child(4) { grid-column: auto; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .showcase, .api-wrap, .affiliate-card { grid-template-columns: 1fr; gap: 32px; }
  .showcase.flip .show-media { order: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav-right .btn-ghost, .nav-right .lang { display: none; }
  .features, .cases, .pricing, .aff-steps, .voice-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
  .affiliate-card { padding: 36px 26px; }
  .consent { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
