/* Twinsubs 官网首页（第三稿，2026-10-24 铺开）：由 tools/pages/home_v3.py 生成的首页专用样式。
   每一节都是一段真视频 + 叠在上面、按时间轴同步的 App 字幕浮窗。系统字体，不引外部资源。 */

:root {
  --brand: #0E7C66; --brand-hi: #3FBF9F; --mint: #8BE8CC;
  --stage: #050809; --stage-2: #0B1214; --stage-fg: #F1F5F3; --stage-muted: rgba(241, 245, 243, .64);
  --bg: #F2F0EA; --bg-2: #E8E5DD; --fg: #0C1412; --muted: #4A5550; --faint: #6F7A75;
  --line: rgba(12, 20, 18, .12); --card: #FFFFFF; --card-line: rgba(12, 20, 18, .08);
  --accent: var(--brand); --shadow: 0 30px 80px -30px rgba(10, 30, 25, .45);
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 80px); --max: 1240px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #070B0C; --bg-2: #0E1517; --fg: #EDF3F1; --muted: #A3B0AC; --faint: #7A8884; --line: rgba(255, 255, 255, .09);
    --card: rgba(255, 255, 255, .04); --card-line: rgba(255, 255, 255, .08); --accent: var(--brand-hi); --shadow: 0 40px 90px -30px rgba(0, 0, 0, .85); }
}
* { box-sizing: border-box; }
:root { --ink: var(--fg); --ink-soft: var(--muted); --accent-ink: var(--accent); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }
.mbr { display: none; }

/* 胶片颗粒 */
.grain { position: absolute; inset: -50%; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .12; mix-blend-mode: overlay; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* 导航 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--stage-fg); transition: background .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(5, 8, 9, .76); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom-color: rgba(255, 255, 255, .07); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 22px; white-space: nowrap; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { font-weight: 500; color: var(--stage-muted); font-size: 15px; }
.nav__lang { font-size: 14px; color: var(--stage-muted); text-decoration: none; }
.nav__cta { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; text-decoration: none; padding: 11px 20px; border-radius: 999px; background: var(--stage-fg); color: #06100E; white-space: nowrap; }
.nav__cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .nav__cta { display: none; } }

/* App Store 按钮 */
.appstore { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px 15px 20px; border-radius: 16px; background: var(--stage-fg); color: #04100D; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 18px 50px -12px rgba(63, 191, 159, .6); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.appstore:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 24px 60px -10px rgba(63, 191, 159, .8); }
.appstore svg { width: 22px; height: 22px; flex: none; }

/* ---------- 首屏：上文字，下电影画幅 ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: var(--stage); color: var(--stage-fg); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 20% 0%, rgba(14,124,102,.28), transparent 70%), radial-gradient(40% 40% at 90% 10%, rgba(63,191,159,.12), transparent 70%); }
.hero__text { padding-top: clamp(104px, 13vh, 144px); padding-bottom: clamp(22px, 3.4vh, 36px); display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: end; }
.hero__text > .eyebrow, .hero__text > .hero__title { grid-column: 1 / -1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--mint); margin: 0 0 16px; }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 4px rgba(255, 90, 78, .2); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }
.hero__title { margin: 0; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
:lang(zh) .hero__title { letter-spacing: -.02em; line-height: 1.12; }
.hero__sub { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--stage-muted); }
.hero__cta { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; justify-content: flex-end; }
.hero__small { margin: 0; font-size: 13.5px; color: var(--stage-fg); }
.hero__note { margin: 4px 0 0; font-size: 12.5px; color: var(--stage-muted); }
@media (max-width: 900px) {
  .hero__text { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; margin-top: 22px; }
}
@media (max-width: 560px) {
  .mbr { display: inline; }
  .hero__text { padding-top: 88px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .appstore { justify-content: center; }
}

/* ---------- 视频 + App 字幕浮窗 ---------- */
.vid { position: relative; margin: 0; }
.vid__frame { position: relative; overflow: hidden; border-radius: 20px; background: #000; isolation: isolate; box-shadow: 0 0 0 1px rgba(255,255,255,.06), var(--shadow); }
.vid__frame video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.vid:not(.vid--hero):not(.vid--rec) .vid__frame { aspect-ratio: 16 / 9; }
.vid--wide .vid__frame { aspect-ratio: 2.39 / 1 !important; border-radius: 0; }
.vid--rec .vid__frame { aspect-ratio: 720 / 514; }
.caption { position: absolute; left: 50%; bottom: 7%; z-index: 2; transform: translateX(-50%); width: min(760px, 86%); padding: 12px 22px 14px; border-radius: 20px; text-align: center; color: #fff;
  background: rgba(34, 38, 41, .7); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 24px 60px -20px rgba(0,0,0,.7); }
.caption__label { margin: 0 0 2px; font-size: 11.5px; color: rgba(241,245,243,.55); }
.caption__t, .caption__o { margin: 0; min-height: 1.3em; transition: opacity .3s ease, transform .3s ease; }
.caption__t { font-size: clamp(16px, 1.75vw, 26px); font-weight: 700; line-height: 1.3; }
.caption__o { margin-top: 2px; font-size: clamp(12.5px, 1.1vw, 15.5px); color: rgba(241,245,243,.66); line-height: 1.4; }
.caption .w { opacity: 0; filter: blur(5px); transition: opacity .26s ease, filter .26s ease; }
.caption .w.on { opacity: 1; filter: none; }
.caption__o.in { animation: oIn .45s var(--ease) both; }
.caption.idle .caption__t, .caption.idle .caption__o { opacity: 0; transform: translateY(-4px); }
@keyframes oIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sound { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,14,15,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sound[hidden] { display: none; }
.sound svg { width: 16px; height: 16px; }
.sound .on, .sound .bars { display: none; }
.sound[aria-pressed="true"] { background: #fff; color: #06100E; }
.sound[aria-pressed="true"] .on { display: block; } .sound[aria-pressed="true"] .off { display: none; }
.sound[aria-pressed="true"] .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound .bars i { width: 3px; background: currentColor; border-radius: 2px; animation: bar .9s ease-in-out infinite; }
.sound .bars i:nth-child(2) { animation-delay: .15s; } .sound .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.vcredit { margin: 10px 0 0; font-size: 12px; color: var(--faint); }
.vcredit a, .fcredit { text-decoration: none; }
.vcredit a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .caption { width: 92%; padding: 9px 12px 11px; border-radius: 14px; bottom: 5%; }
  .caption__label { display: none; }
  .sound { top: 10px; right: 10px; height: 32px; padding: 0 11px; font-size: 12px; }
}

/* ---------- 数字条 ---------- */
.facts { background: var(--stage); color: var(--stage-fg); border-top: 1px solid rgba(255,255,255,.07); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 28px 38px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.08); }
.fact b { display: block; font-size: clamp(28px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.fact span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--stage-muted); }
@media (max-width: 680px) { .facts__grid { grid-template-columns: 1fr; } .fact, .fact + .fact { padding: 20px 0; border-left: 0; } .fact + .fact { border-top: 1px solid rgba(255,255,255,.08); } }

/* ---------- 分节 ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.dark { background: var(--stage); color: var(--stage-fg); }
.dark .lede, .dark .vcredit { color: var(--stage-muted); }
.h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
:lang(zh) .h2 { letter-spacing: -.015em; line-height: 1.2; }
.lede { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 560px; line-height: 1.75; }
.center .lede { margin-inline: auto; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--faint); }

/* 对照块 */
.compare { position: relative; margin: clamp(36px, 5vw, 60px) 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; --x: 50%; user-select: none; touch-action: pan-y; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px -40px rgba(0,0,0,.9); }
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__shade { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.12); }
.compare__after { position: absolute; inset: 0; z-index: 3; clip-path: inset(0 0 0 var(--x)); }
.compare__after::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 45%); }
.compare__tag { position: absolute; top: 18px; z-index: 4; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.compare__tag--l { left: 18px; } .compare__tag--r { right: 18px; color: var(--mint); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; z-index: 5; pointer-events: none; background: rgba(255,255,255,.9); box-shadow: 0 0 20px rgba(139,232,204,.6); }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M18 15l-7 7 7 7M26 15l7 7-7 7' fill='none' stroke='%23050809' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.compare__range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__range:focus-visible + .compare__handle::after { outline: 3px solid var(--brand-hi); outline-offset: 3px; }
.compare + .vcredit { margin-top: 12px; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 5; border-radius: 16px; } .compare video { object-position: 55% 35% !important; } .compare__tag { top: 12px; font-size: 12px; } .compare__tag--l { left: 12px; } .compare__tag--r { right: 12px; } }

/* 场景：五种版式 */
.scene { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.scene__grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
/* 场景 1：全宽电影画幅，标题在上 */
.scene--wide { background: var(--stage); color: var(--stage-fg); padding-bottom: 0; }
.scene--wide .lede { color: var(--stage-muted); }
.scene--wide .scene__head .scene__text { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; }
.scene--wide .scene__head .lede { margin: 0; }
.scene--wide .scene__media { margin-top: clamp(32px, 4vw, 56px); }
.scene--wide .vid__frame { aspect-ratio: 2.39 / 1; border-radius: 0; box-shadow: none; }
.scene--wide .vcredit { width: min(var(--max), 100% - var(--gutter) * 2); margin: 12px auto 0; padding-bottom: 28px; }
@media (max-width: 760px) { .scene--wide .scene__head .scene__text { grid-template-columns: 1fr; } .scene--wide .vid__frame { aspect-ratio: 16 / 10; } }
/* 场景 2：视频在左，大 */
.scene--left .scene__grid { grid-template-columns: 7fr 4fr; }
.scene--left .scene__text { order: 2; }
/* 场景 3：视频在右，文字卡压住视频左下角 */
.scene--overlap { background: var(--bg-2); }
.scene--overlap .scene__grid { grid-template-columns: repeat(12, 1fr); align-items: end; }
.scene--overlap .scene__media { grid-column: 4 / 13; grid-row: 1; }
.scene--overlap .scene__text { grid-column: 1 / 7; grid-row: 1; z-index: 4; align-self: end; margin-bottom: clamp(-60px, -5vw, -24px); padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@media (prefers-color-scheme: dark) { .scene--overlap .scene__text { background: rgba(14, 21, 23, .88); } }
/* 场景 4：两段视频错落叠放 */
.scene--pair .scene__grid { grid-template-columns: 4fr 7fr; }
.pair { position: relative; padding-bottom: 18%; }
.pair__a { width: 82%; }
.pair__b { position: absolute; right: 0; bottom: 0; width: 46%; z-index: 4; }
.pair__b .vid__frame { border: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px) {
  .scene--left .scene__grid, .scene--pair .scene__grid { grid-template-columns: 1fr; }
  .scene--left .scene__text { order: 0; }
  .scene--overlap .scene__media, .scene--overlap .scene__text { grid-column: 1 / -1; grid-row: auto; }
  .scene--overlap .scene__text { margin: -40px 12px 0; }
  .scene--overlap .scene__grid { grid-template-columns: 1fr; }
  .scene--overlap .scene__media { order: 0; } .scene--overlap .scene__text { order: 1; }
}
@media (max-width: 560px) { .pair__a { width: 100%; } .pair { padding-bottom: 0; } .pair__b { position: relative; width: 70%; margin: -14% 0 0 auto; } }

/* 场景 5：发光边界 */
.local { overflow: hidden; isolation: isolate; }
.local::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%); }
.mac { position: relative; margin: clamp(44px, 6vw, 72px) auto 0; max-width: 980px; border-radius: 28px; padding: clamp(28px, 4vw, 44px); border: 1.5px solid rgba(63,191,159,.55); background: radial-gradient(80% 120% at 50% 0%, rgba(14,124,102,.22), rgba(5,8,9,.4) 70%); box-shadow: 0 0 0 6px rgba(63,191,159,.06), 0 0 120px -20px rgba(63,191,159,.45); }
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.pipe::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; background: linear-gradient(90deg, rgba(63,191,159,.15), rgba(63,191,159,.6), rgba(63,191,159,.15)); }
.pipe__pulse { position: absolute; top: 29px; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 20px 4px rgba(139,232,204,.7); animation: pulse 3.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes pulse { 0% { left: 12%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: calc(88% - 12px); opacity: 0; } }
.node { text-align: center; }
.node i { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 20px; background: #0B1517; border: 1px solid rgba(63,191,159,.35); color: var(--mint); }
.node i svg { width: 28px; height: 28px; }
.node b { font-size: 16px; }
.cloud { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 0; font-size: 14px; color: var(--stage-muted); }
.cloud svg { width: 30px; height: 30px; opacity: .5; }
.cloud s { text-decoration-color: #FF6B5E; text-decoration-thickness: 1.5px; }
@media (max-width: 560px) { .pipe { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } .pipe::before, .pipe__pulse { display: none; } }

/* 价格 / 常见问题 / 结尾 */
.price__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 36px; }
#price .wrap > .price__grid:first-child { margin-top: 0; }
@media (max-width: 760px) { .price__grid { grid-template-columns: 1fr; } }
.plan { border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--card-line); }
.plan h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.plan p { margin: 12px 0 0; font-size: 16px; color: var(--muted); line-height: 1.7; }
.plan--pro { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-fg); border-color: rgba(63,191,159,.45); }
.plan--pro::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(63,191,159,.35), transparent); pointer-events: none; }
.plan--pro p { color: var(--stage-muted); }
.plan--pro .appstore { position: relative; margin-top: 24px; white-space: normal; }
.req { margin-top: 20px; font-size: 14px; color: var(--faint); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }
.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; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.final { overflow: hidden; isolation: isolate; }
.final__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 50% 40%; opacity: .3; filter: saturate(.7) blur(2px); }
.final__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(5,8,9,.35), var(--stage) 100%); }
.final .h2 { font-size: clamp(34px, 5.6vw, 80px); }
.final img.icon { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(63,191,159,.6); }
.foot { background: var(--stage); color: var(--stage-muted); font-size: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.foot__in { display: grid; gap: 10px; padding: 28px 0 36px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--stage-fg); }

/* 动效 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .enter { opacity: 0; transform: translateY(14px); animation: enter .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes enter { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .enter { opacity: 1 !important; transform: none !important; }
  .caption .w { opacity: 1; filter: none; }
}

/* ---------- 铺开时补的部分：语言切换、语言提示条、指南入口、用户声音区块、页脚 ---------- */
.nav__lang, .lang summary { font-size: 17px; color: var(--stage-muted); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.lang { position: relative; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; margin: 0; padding: 8px; list-style: none; min-width: 190px; border-radius: 14px; background: rgba(10, 14, 15, .96); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.lang li a, .lang li span { display: block; padding: 9px 14px; border-radius: 8px; font-size: 16px; color: var(--stage-fg); text-decoration: none; white-space: nowrap; }
.lang li a:hover { background: rgba(255,255,255,.08); }
.lang li span { color: var(--mint); }
.lang-hint { position: relative; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 8px 40px 8px 22px; background: #0E1517; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--stage-fg); font-size: 13px; line-height: 1.5; }
.lang-hint a { color: var(--mint); }
.lang-hint button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: transparent; color: var(--stage-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.nav { top: 0; }
.hero__sub { max-width: 40em; }
.vid--rec .vcredit { margin-top: 6px; font-size: 11.5px; }
.pair__b .vcredit { position: absolute; left: 0; right: 0; top: 100%; }

/* 首页其余区块（用户声音、指南入口、网页工具入口）沿用 .block 版式 */
.block { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; padding: clamp(48px, 6vw, 84px) 0; }
.block h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -.01em; }
.block .eyebrow { font-size: 12.5px; letter-spacing: .08em; color: var(--faint); }
.block .sub { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 46em; }
.linklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .linklist { grid-template-columns: 1fr; } }
.linklist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.linklist a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 4px; }
.linklist a:hover { text-decoration-color: var(--accent); }
.linklist small { color: var(--faint); white-space: nowrap; }
.block .note a { color: var(--accent); }
.cta-box { margin: 36px 0 0; padding: 16px 20px; border: 1px solid var(--accent); border-radius: 14px; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.cta-box b { color: var(--fg); }
.cta-box a { color: var(--accent); }
.block.final { width: auto; margin: 0; padding: clamp(80px, 10vw, 140px) 0; background: var(--stage); color: var(--stage-fg); position: relative; }
.block.final .wrap { position: relative; }
.final .store-note { margin: 14px 0 0; font-size: 13px; color: var(--stage-muted); }
.final__small { margin: 14px 0 0; font-size: 13.5px; color: var(--stage-muted); }

/* 页脚 */
.foot__in { gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a, .foot-pages a, .foot-langs a, .foot-family a { text-decoration: none; }
.foot-pages, .foot-family, .foot-langs { line-height: 1.9; }
.foot-pages a, .foot-family a, .foot-langs a { color: var(--stage-muted); }
.foot-langs [aria-current] { color: var(--stage-fg); }
.foot-pages a:hover, .foot-family a:hover, .foot-langs a:hover { color: var(--stage-fg); }
.foot__credits { font-size: 12px; line-height: 1.8; color: rgba(241,245,243,.5); }
.foot__credits a { color: inherit; }
.nav__link { font-size: 17px; color: var(--stage-muted); text-decoration: none; white-space: nowrap; }
.nav__link:hover { color: var(--stage-fg); }
@media (max-width: 1040px) { .nav__link { display: none; } }
.cta-box { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* 窄屏：长词语言（法、德、俄、荷）的标题与按钮不许撑出屏幕 */
.hero__text { grid-template-columns: minmax(0, 1fr) auto; }
.hero__title, .h2, .lede, .fact b, .plan h3, .plan p { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 900px) { .hero__text { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .hero__title { font-size: clamp(30px, 8.6vw, 44px); }
  .h2 { font-size: clamp(26px, 7.4vw, 40px); }
  .appstore { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
  .fact b { font-size: clamp(26px, 8vw, 36px); }
}

/* 导航栏：首屏大按钮在视口里时隐藏导航栏按钮，滚出后淡入（home.js 加 / 去 .is-wait；无 JS 或 reduced-motion 时一直显示） */
.js .nav__cta { transition: opacity .35s ease, visibility .35s; }
.js .nav__cta.is-wait { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .js .nav__cta.is-wait { opacity: 1; visibility: visible; pointer-events: auto; } }
@media (max-width: 640px) {
  .nav__in { height: 64px; gap: 12px; }
  .brand { font-size: 19px; gap: 10px; } .brand img { width: 32px; height: 32px; }
  .brand small { font-size: 13px; }
  .nav__lang, .lang summary { font-size: 16px; }
}
@media (max-width: 380px) { .brand small { display: none; } }

/* 首屏定义句：挪到首屏后面的第一个区块，做成一两行轻量说明 */
.facts__def { margin: 0; padding: 24px 0 2px; max-width: 72em; font-size: 13px; line-height: 1.7; color: rgba(241, 245, 243, .42); text-wrap: pretty; }
.facts__def + .facts__grid .fact { padding-top: 22px; }

/* 断行：中日韩标题与副标按词组断（auto-phrase 不支持的浏览器靠 .nb 分句块），所有语言标题 / 副标 balance，副标限宽 */
.nb { display: inline-block; max-width: 100%; }
.hero__title, .h2, .hero__sub, .lede, .plan h3 { text-wrap: balance; }
.hero__sub { max-width: min(32em, 100%); }
:lang(ja) .hero__title, :lang(ja) .h2, :lang(ja) .hero__sub, :lang(ja) .lede,
:lang(zh) .hero__title, :lang(zh) .h2, :lang(zh) .hero__sub, :lang(zh) .lede { word-break: auto-phrase; line-break: strict; }
:lang(ko) .hero__title, :lang(ko) .h2, :lang(ko) .hero__sub, :lang(ko) .lede, :lang(ko) .fact span { word-break: keep-all; }

/* 首屏文字块单列：标题、副标、按钮 + 小字依次左对齐（按钮不再悬在版面中间） */
.hero__text { grid-template-columns: minmax(0, 1fr); }
.hero__cta { justify-content: flex-start; margin-top: 22px; grid-column: 1; }
.hero__cta > div { min-width: 0; }
:lang(ru) .hero__title { font-size: clamp(30px, 3.9vw, 60px); }
:lang(ja) .hero__title { font-size: clamp(30px, 3.9vw, 58px); }
@media (max-width: 560px) { :lang(ja) .hero__title { font-size: clamp(26px, 7.3vw, 40px); } }

.hero__title { hyphens: manual; }

/* 标题不做自动连字符断词（德 / 俄 / 荷长词），栏窄时用字号控制 */
.h2, .lede, .plan h3, .plan p { hyphens: manual; }
.h2 { font-size: clamp(28px, 3.5vw, 52px); }

/* 窄屏按钮一行：不折行、字号随视口缩（clamp），长语言换短文案（.t-short），桌面保持原文案 */
.t-short { display: none; }
@media (max-width: 560px) {
  .appstore { white-space: nowrap !important; font-size: clamp(14px, 4.4vw, 17px); padding: 14px 16px 14px 14px; gap: 8px; }
  .appstore svg { width: 19px; height: 19px; }
  .t-full { display: none; } .t-short { display: inline; }
  .plan--pro .appstore { white-space: nowrap; font-size: clamp(13px, 4vw, 17px); padding-inline: 14px; max-width: 100%; }
}

/* ---------- 首屏轮播（2026-10-24 首屏震撼版）：满版电影画面 + 标题压在左下 + 底部居中 App 字幕框 ----------
   视频铺满视口宽、高 100svh（最小 620px），导航透明压在画面上；3～4 个镜头交叉淡入，每段带 App 真实双语字幕。
   字幕框单独占底部一条带（--capband），文字块排在它上面，二者不重叠；每个镜头的取景（--l / --ls / --lo / --p）在 home_v3.py 的 SHOT。 */
.hero.reel { --capband: clamp(196px, 23vh, 236px); display: flex; flex-direction: column; justify-content: flex-end; height: 100svh; min-height: 620px; }
.reel__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.reel__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.reel__shot.is-on { opacity: 1; z-index: 1; }
.reel__shot video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--l); transform-origin: var(--lo); transform: scale(var(--ls)); will-change: transform; }
.js .reel__shot.is-on video { animation: reelPush 6.5s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes reelPush { from { transform: scale(var(--ls)); } to { transform: scale(calc(var(--ls) * 1.05)); } }
.reel__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,9,.62) 0, rgba(5,8,9,0) 20%, rgba(5,8,9,0) 46%, rgba(5,8,9,.5) 70%, rgba(5,8,9,.9) 100%),
              linear-gradient(90deg, rgba(5,8,9,.55) 0, rgba(5,8,9,.22) 34%, rgba(5,8,9,0) 56%); }
.reel .grain { z-index: 2; opacity: .09; }
.hero.reel .hero__text { position: relative; z-index: 3; display: block; padding: 0 0 var(--capband); }
.nav .nav__in, .hero.reel .hero__text { width: min(1840px, 100% - var(--gutter) * 2); }
.hero.reel .hero__title { font-size: clamp(40px, 4.2vw, 112px); max-width: min(13.5em, 46vw); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
:lang(zh) .hero.reel .hero__title, :lang(ja) .hero.reel .hero__title, :lang(ko) .hero.reel .hero__title { max-width: min(9.5em, 46vw); }
:is(:lang(ru), :lang(fr), :lang(es), :lang(it), :lang(de), :lang(nl), :lang(pt)) .hero.reel .hero__title { font-size: clamp(34px, 3.5vw, 92px); }
.hero.reel .hero__sub { max-width: min(30em, 44vw); font-size: clamp(17px, 1.3vw, 28px); color: rgba(241,245,243,.82); text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.hero.reel .hero__cta { margin-top: 26px; }
.hero.reel .hero__cta > div { max-width: 19em; }
.reel__cap { position: absolute; z-index: 3; left: 50%; bottom: clamp(44px, 6vh, 64px); transform: translateX(-50%); width: min(900px, 62vw); padding: 14px 28px 16px;
  transition: opacity .32s ease, transform .32s ease; }
.reel__cap .caption__t { font-size: clamp(20px, 1.85vw, 32px); }
.reel__cap .caption__o { font-size: clamp(13px, 1.05vw, 17px); }
.reel__cap.idle { opacity: 0; transform: translate(-50%, 6px); }
.reel__cap.idle .caption__t, .reel__cap.idle .caption__o { opacity: 1; transform: none; }
.reel__meta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 11.5px; color: rgba(241,245,243,.55); }
.reel__credit a { color: inherit; text-decoration: none; }
.reel__credit a:hover { color: var(--stage-fg); }
.reel__ticks { display: inline-flex; gap: 6px; }
.reel__ticks i { position: relative; width: 26px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.reel__ticks b { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.9); }
.reel__ticks i.is-done b { width: 100%; }
.reel__sound { top: 96px; right: var(--gutter); z-index: 4; height: 40px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .reel__ticks { display: none; } }

/* 竖屏 / 窄屏（≤760 宽）：画面占上 57svh 竖向裁切（焦点对人脸），字幕框压在画面底部，标题和按钮排在画面下方 */
@media (max-width: 760px) {
  .hero.reel { height: auto; min-height: 100svh; --stageh: max(57svh, 380px); }
  .reel__stage { bottom: auto; height: var(--stageh); }
  .reel__shot video { object-position: var(--p); transform: none; transform-origin: 50% 40%; }
  .js .reel__shot.is-on video { animation-name: reelPushP; }
  @keyframes reelPushP { from { transform: scale(1); } to { transform: scale(1.05); } }
  .reel__shade { background: linear-gradient(180deg, rgba(5,8,9,.6) 0, rgba(5,8,9,0) 22%, rgba(5,8,9,0) 52%, rgba(5,8,9,.55) 80%, var(--stage) 100%); }
  .reel__cap { width: calc(100% - 28px); bottom: 40px; padding: 10px 14px 12px; }
  .reel__cap .caption__label { display: none; }
  .reel__cap .caption__t { font-size: clamp(17px, 4.9vw, 21px); }
  .reel__cap .caption__o { font-size: 13px; }
  .reel__meta { bottom: 6px; padding: 0 14px; font-size: 10px; line-height: 1.3; gap: 8px; text-align: center; }
  .reel__ticks { display: none; }
  .reel__ticks i { width: 18px; }
  .reel__sound { top: 76px; height: 32px; }
  .hero.reel .hero__text { padding: calc(var(--stageh) + 18px) 0 32px; }
  .hero.reel .hero__title, :lang(zh) .hero.reel .hero__title, :lang(ja) .hero.reel .hero__title, :lang(ko) .hero.reel .hero__title { max-width: none; font-size: clamp(30px, 8.4vw, 44px); }
  .hero.reel .hero__sub { max-width: none; font-size: 16px; margin-top: 12px; }
  .hero.reel .hero__cta { margin-top: 20px; }
}
