/* LUMI 家庭大脑 · 网页原型
   发布会式：白底、每屏一件事、超大字、一张图。滚动全部交给浏览器，演示由用户亲手操作。 */

@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 93.7%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 53.5%; }
@property --sr { syntax: "<percentage>"; inherits: true; initial-value: 9%; }

:root {
  --bg: #FFFFFF;
  --soft: #F6F4F1;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #A1A1A6;
  --mute: #DAD6D0;
  --line: #E6E3DF;
  --warm: #C2702C;
  --glow: #F4B46C;

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --en: "Hubot Sans", "Noto Sans SC", "PingFang SC", sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 26px;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 52px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
p { margin: 0; }
::selection { background: #FBE3C6; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- 字 ---------- */
.display { margin: 0; font: 600 clamp(34px, 4.6vw, 64px)/1.3 var(--sans); letter-spacing: .01em; }
.title { margin: 0; font: 600 clamp(26px, 3.2vw, 44px)/1.4 var(--sans); letter-spacing: .01em; }
.lede { margin-top: 24px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.9; letter-spacing: .03em; color: var(--ink-2); }
.eyebrow { margin-bottom: 24px; font: 500 14px/1 var(--sans); color: var(--warm); letter-spacing: .04em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font: 500 13px/1 var(--sans); color: var(--ink-2); letter-spacing: .1em; }
.kicker em, .foot em { font: 600 1em/1 var(--en); font-stretch: 125%; color: var(--ink); letter-spacing: .16em; }
.head { margin-bottom: clamp(72px, 9vw, 128px); }

.mark { position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--warm); border-left-color: transparent; transform: rotate(-30deg); }
.mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--warm); }
.mark-lg { width: 56px; height: 56px; border-width: 3px; margin-bottom: 20px; }
.mark-lg::after { width: 14px; height: 14px; right: -6px; top: -6px; }

/* ---------- 按钮 ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: 99px; font: 500 14px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s, transform .2s; }
.pill:active { transform: scale(.97); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #3a3a3c; }
.pill-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-line:hover { background: var(--ink); color: #fff; }
.text-link { font-size: 15px; color: var(--warm); }
.text-link::after { content: " ›"; display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover::after { transform: translateX(3px); }
.ctas { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 48px; }

/* ---------- 出现 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 36px; max-width: 1200px; height: 52px; margin: 0 auto; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--en); font-stretch: 125%; letter-spacing: .2em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 13px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { height: 32px; padding: 0 16px; font-size: 13px; }
.burger { display: none; position: relative; width: 40px; height: 40px; margin-left: auto; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger i:first-child { top: 16px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { display: none; }

.layers {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 2px; padding: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(0, 0, 0, .08);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.layers.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.layers a { padding: 7px 16px; border-radius: 99px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.layers a:hover { color: var(--ink); }
.layers a.on { background: var(--ink); color: #fff; }

/* ---------- 首屏 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2a2018; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: translateY(calc((var(--p, .5) - .5) * 24%)) scale(1.04); animation: settle 2.8s var(--ease) both; }
@keyframes settle { from { transform: scale(1.14); filter: brightness(.7); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 16, 9, .66), rgba(24, 16, 9, .2) 40%, transparent 62%), linear-gradient(to right, rgba(24, 16, 9, .28), transparent 45%), linear-gradient(to bottom, rgba(24, 16, 9, .32), transparent 18%); }
.hero-in { position: relative; z-index: 1; height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) clamp(40px, 8vh, 88px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero .display { font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1.3; text-shadow: 0 2px 24px rgba(20, 12, 4, .25); }
.hero .lede { margin-top: 18px; color: rgba(255, 255, 255, .82); }
.hero .ctas { justify-content: flex-start; margin-top: 32px; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: rgba(255, 255, 255, .86); }
@property --lr { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* 开场：整屋先暗着，光从落地灯处漫开 */
.hero-dark { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #120b05;
  -webkit-mask: radial-gradient(circle at var(--lx, 34%) var(--ly, 18%), transparent var(--lr), #000 calc(var(--lr) + 38vmax));
  mask: radial-gradient(circle at var(--lx, 34%) var(--ly, 18%), transparent var(--lr), #000 calc(var(--lr) + 38vmax));
  animation: lightup 3.2s cubic-bezier(.55, .05, .25, 1) .25s both; }
@keyframes lightup { from { --lr: 0px; } to { --lr: 260vmax; } }
/* 鼠标所到之处多一点暖光 */
.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle 32vmax at var(--mx, 50%) var(--my, 50%), rgba(255, 196, 128, .32), transparent 70%); mix-blend-mode: soft-light; }
.hero:hover .hero-glow { opacity: 1; }
/* 细颗粒，压掉数码感 */
.hero-grain { position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
.hero-in { z-index: 4; transform: translateY(calc(max(0, var(--p, .5) - .5) * -160px)); opacity: calc(1 - max(0, var(--p, .5) - .5) * 2.4); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: #0d0804; opacity: calc(max(0, var(--p, .5) - .5) * 1.4); }

/* 取景框：一次框住一样东西，旁边一行字说它此刻的状态 */
.hero-marks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mk { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.mk::before, .mk::after, .mk i::before, .mk i::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid rgba(255, 255, 255, .92); opacity: 0; transition: transform .9s var(--ease), opacity .5s; }
.mk::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; transform: translate(-14px, -14px); }
.mk::after { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; transform: translate(14px, -14px); }
.mk i::before { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; transform: translate(-14px, 14px); }
.mk i::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; transform: translate(14px, 14px); }
.mk.on::before, .mk.on::after, .mk.on i::before, .mk.on i::after { opacity: 1; transform: none; }
.mk span { position: absolute; left: calc(100% + 16px); top: 50%; white-space: nowrap; font-size: 13px; line-height: 1.5; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); opacity: 0; transform: translate(-6px, -50%); transition: opacity .6s .35s, transform .8s var(--ease) .35s; }
.mk.left span { left: auto; right: calc(100% + 16px); text-align: right; transform: translate(6px, -50%); }
.mk span b { display: block; font-weight: 500; letter-spacing: .06em; }
.mk span em { color: rgba(255, 255, 255, .72); font-size: 12px; }
.mk.on span { opacity: 1; transform: translate(0, -50%); }
.mk.off::before, .mk.off::after, .mk.off i::before, .mk.off i::after, .mk.off span { transition-delay: 0s; opacity: 0; }

.home-strip { padding-bottom: clamp(80px, 12vh, 140px); }
.home-strip .head { margin-bottom: clamp(40px, 6vw, 72px); }
.nav.on-hero:not(.scrolled), .nav.on-hero { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.nav.on-hero .nav-links { color: rgba(255, 255, 255, .82); }
.nav.on-hero .nav-links a:hover { color: #fff; }
.nav.on-hero .nav-cta { background: #fff; color: var(--ink); }
.nav.on-hero .burger i { background: #fff; }
.nav.on-hero .brand .mark { border-color: var(--glow); border-left-color: transparent; }
.family { display: flex; gap: 10px; max-width: 1560px; height: clamp(360px, 64vh, 660px); margin: 0 auto; padding: 0 var(--pad); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--soft); transition: flex-grow .9s var(--ease); }
.panel.on { flex-grow: 4.2; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform 1.4s var(--ease), filter .9s var(--ease); filter: saturate(.85) brightness(.94); }
.panel.on img { filter: none; transform: scale(1.02); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 42%); opacity: 0; transition: opacity .6s; }
.panel.on::after { opacity: 1; }
.cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; text-align: left; font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap b { display: block; margin-bottom: 2px; font: 600 17px/1.4 var(--sans); }
.panel.on .cap { opacity: 1; transform: none; transition-delay: .3s; }

/* ---------- 章节 ---------- */
.sec { padding: clamp(140px, 20vh, 240px) 0; }
.overview, .memory, .privacy { background: var(--soft); }

/* ---------- 时间 ---------- */


/* ---------- 时间 ---------- */
.tenyears { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ty-when { display: flex; align-items: baseline; justify-content: center; gap: 14px; color: var(--ink); }
.ty-pre, .ty-unit { font-size: 15px; letter-spacing: .12em; color: var(--ink-2); }
.ty-num { display: inline-block; min-width: 1.4ch; font: 200 clamp(64px, 7vw, 104px)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ty-gen { margin-top: 10px; font-size: 13px; letter-spacing: .14em; color: var(--warm); transition: opacity .4s; }
.ty-stage { position: relative; width: min(520px, 100%); height: clamp(340px, 50vh, 520px); margin-top: 28px; }
.bot { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%) scale(.96); opacity: 0; filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.1s var(--ease); }
.bot[data-b="0"] { height: 74%; }
.bot.on { opacity: 1; transform: translateX(-50%); filter: none; }
.ty-floor { position: absolute; left: 50%; bottom: -6px; width: 60%; height: 28px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(194, 112, 44, .16), transparent); }
.ty-latest { margin-top: 36px; min-height: 64px; }
.ty-mem { font-size: 19px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.ty-count { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.ty-count b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.ruler { position: relative; width: 100%; max-width: 960px; margin-top: 56px; padding-top: 22px; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.ruler-fill { position: absolute; left: 0; top: 22px; height: 1px; width: var(--p, 0%); background: var(--ink); }
.ruler-fill::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgba(244, 180, 108, .22); }
.ruler-marks { position: absolute; left: 0; right: 0; top: 0; height: 22px; }
.ruler-marks i { position: absolute; left: var(--at); bottom: 0; width: 1px; height: 8px; background: var(--mute); transition: height .5s var(--ease), background .5s; }
.ruler-marks i.got { height: 18px; background: var(--warm); }
.ruler-swaps { position: relative; height: 34px; }
.ruler-swaps span { position: absolute; left: var(--at); top: 12px; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ruler-swaps span:first-child { transform: none; }
.ruler-swaps span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 8px; background: var(--ink-3); }
.ruler-swaps span:first-child::before { left: 0; }
.ruler-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .ty-stage { height: 42vh; margin-top: 20px; }
  .ty-mem { font-size: 17px; }
  .ruler { margin-top: 40px; }
  .ruler-swaps span:not(:first-child) { font-size: 12px; }
}

/* ---------- 系统总览 ---------- */
.chain { text-align: center; }
.chain-task { font-size: 14px; color: var(--ink-2); }
.chain-task q { font: 500 15px var(--sans); color: var(--ink); quotes: "“" "”"; }
.chain-words { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 clamp(14px, 2.6vw, 40px); margin-top: 40px; }
.w { font: 600 clamp(36px, 4.2vw, 60px)/1.3 var(--sans); letter-spacing: .04em; color: var(--mute); transition: color .5s var(--ease); }
.w:hover { color: var(--ink-3); }
.w.on { color: var(--ink); }
.chain-words i { font: 300 clamp(18px, 1.8vw, 26px)/1 var(--sans); color: var(--mute); font-style: normal; }
.chain-back { position: relative; display: block; width: min(100%, 980px); height: 36px; margin: 6px auto 0; color: var(--ink-3); font-size: 14px; transition: color .4s; }
.chain-back::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed currentColor; opacity: .55; }
.chain-back::after { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.chain-back span { position: relative; padding: 0 16px; background: var(--soft); }
.chain-back:hover { color: var(--ink-2); }
.chain-back.on { color: var(--warm); }
.chain-detail { display: grid; max-width: 600px; margin: 64px auto 0; }
.cd { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .6s var(--ease); pointer-events: none; }
.cd.on { opacity: 1; transform: none; }
.cd b { display: block; font: 600 clamp(19px, 1.6vw, 22px)/1.4 var(--sans); }
.cd p { margin-top: 16px; color: var(--ink-2); line-height: 1.9; letter-spacing: .02em; }

/* ---------- 感知 ---------- */
.spot { --sx: 86.6%; --sy: 16.7%; --sr: 9%; position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: crosshair; transition: --sx .9s var(--ease), --sy .9s var(--ease), --sr .9s var(--ease); }
.spot img { width: 100%; height: 100%; object-fit: cover; }
.spot-dim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(14, 10, 6, 0) 0, rgba(14, 10, 6, 0) var(--sr), rgba(14, 10, 6, .62) calc(var(--sr) + 22%));
}
.spot.follow { transition: --sx .25s ease-out, --sy .25s ease-out, --sr .6s var(--ease); }
.readout { position: absolute; left: 24px; bottom: 24px; display: grid; width: min(360px, calc(100% - 48px)); padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.ro { grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; line-height: 1.5; opacity: 0; transition: opacity .4s; }
.ro.on { opacity: 1; }
.ro dt { color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.ro dd { margin: 0; color: var(--ink); }
.senses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: 56px; }
.sense { padding-top: 24px; text-align: left; border-top: 2px solid var(--line); transition: border-color .4s; }
.sense b { display: block; font: 600 17px/1.4 var(--sans); color: var(--ink-3); transition: color .4s; }
.sense span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.sense:hover b { color: var(--ink-2); }
.sense.on { border-color: var(--ink); }
.sense.on b { color: var(--ink); }
.statement { margin-top: clamp(120px, 16vh, 200px); font: 600 clamp(22px, 2.4vw, 32px)/1.6 var(--sans); letter-spacing: .02em; }

/* ---------- 记忆 ---------- */
.house { max-width: 1080px; margin: 0 auto; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.room { position: relative; min-height: 220px; padding: 28px; border-radius: 22px; background: #fff; transition: box-shadow .5s; }
.room-h { margin-bottom: 14px; font: 600 15px/1.4 var(--sans); }
.room p:not(.room-h) { font-size: 14px; color: var(--ink-2); line-height: 2; filter: blur(6px); opacity: .55; transition: filter .6s var(--ease), opacity .6s; user-select: none; }
.lock { position: absolute; left: 24px; bottom: 20px; font-size: 12px; color: var(--ink-3); transition: opacity .4s; }
.house[data-viewer="gp"] .room[data-o="gp"], .house[data-viewer="mom"] .room[data-o="mom"], .house[data-viewer="girl"] .room[data-o="girl"] { box-shadow: 0 0 0 2px var(--ink); }
.house[data-viewer="gp"] .room[data-o="gp"] p, .house[data-viewer="mom"] .room[data-o="mom"] p, .house[data-viewer="girl"] .room[data-o="girl"] p { filter: none; opacity: 1; user-select: auto; }
.house[data-viewer="gp"] .room[data-o="gp"] .lock, .house[data-viewer="mom"] .room[data-o="mom"] .lock, .house[data-viewer="girl"] .room[data-o="girl"] .lock { opacity: 0; }
.hall { margin-top: 14px; padding: 36px; border-radius: 22px; background: #fff; }
.hall-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.evt-what { margin-top: 8px; font: 600 clamp(20px, 1.8vw, 24px)/1.4 var(--sans); }
.evt-when { position: relative; display: grid; justify-items: start; margin-top: 6px; font: 500 clamp(20px, 1.8vw, 24px)/1.4 var(--en); font-stretch: 112%; }
.evt-when s, .evt-when b { grid-area: 1 / 1; font-weight: 500; text-decoration: none; transition: opacity .5s, transform .6s var(--ease); }
.evt-when s { position: relative; }
.evt-when s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.evt-when b { color: var(--warm); opacity: 0; transform: translateY(14px); }
.hall:not([data-s="0"]) .evt-when s::after { transform: scaleX(1); }
.hall:not([data-s="0"]) .evt-when s { opacity: 0; transform: translateY(-14px); transition-delay: .55s; }
.hall:not([data-s="0"]) .evt-when b { opacity: 1; transform: none; transition-delay: .7s; }
.evt-src { display: grid; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.evt-src span { grid-area: 1 / 1; transition: opacity .4s; }
.evt-src .v1 { opacity: 0; color: var(--warm); }
.hall:not([data-s="0"]) .evt-src .v0 { opacity: 0; }
.hall:not([data-s="0"]) .evt-src .v1 { opacity: 1; }
.evt-talk { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 340px; padding: 10px 14px; border-radius: 16px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.b1 { background: var(--soft); border-bottom-left-radius: 6px; }
.b2 { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; transition-delay: .5s; }
.b2 small { display: block; font-size: 12px; color: var(--glow); }
.hall[data-s="2"] .bubble { opacity: 1; transform: none; }
.terms { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; margin: 64px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.terms li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--glow); vertical-align: middle; }

.room { cursor: default; transition: box-shadow .5s, transform .5s var(--ease); }
.room-h { display: flex; align-items: center; gap: 10px; }
.room-h img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.house[data-viewer="gp"] .room[data-o="gp"], .house[data-viewer="mom"] .room[data-o="mom"], .house[data-viewer="girl"] .room[data-o="girl"] { transform: translateY(-4px); }
.steps li, .body { cursor: default; }

/* ---------- 思考 ---------- */
.think { text-align: center; }
.think-ask { font-size: 14px; color: var(--ink-2); }
.asks { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ask { min-height: 42px; padding: 8px 18px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); font: 500 14px/1.4 var(--sans); transition: box-shadow .3s, background .3s, color .3s; }
.ask:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ask.on { background: var(--ink); color: #fff; box-shadow: none; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; text-align: left; }
.lane { display: flex; flex-direction: column; min-height: 290px; padding: 28px; border-radius: 22px; background: var(--soft); transition: background .5s, box-shadow .5s; }
.lane-h { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); }
.lane-h em { font: 600 40px/1 var(--sans); color: var(--mute); transition: color .5s; }
.lane-desc { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.lane-drop { min-height: 64px; margin: 18px 0 16px; display: flex; align-items: center; }
.landed { display: inline-block; padding: 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; font: 500 14px/1.45 var(--sans); }
.lane-why { margin-top: auto; font-size: 14px; line-height: 2; letter-spacing: .02em; color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .5s .25s, transform .6s var(--ease) .25s; }
.lane-why b { display: block; margin-top: 10px; font: 600 15px/1.6 var(--sans); color: var(--ink); }
.gate { display: inline-block; margin: 0 6px 0 0; padding: 0 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink); }
.lane.on { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.lane.on .lane-h em { color: var(--warm); }
.lane.on .lane-why { opacity: 1; transform: none; }
.flyer { position: fixed; z-index: 60; margin: 0; pointer-events: none; }

/* ---------- 行动 ---------- */
.errand { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bodies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.body { margin: 0; transition: opacity .5s, transform .6s var(--ease); }
.body-img { aspect-ratio: 3 / 4.2; border-radius: 22px; background-color: var(--soft); transition: box-shadow .5s, filter .5s; filter: saturate(.6); }
.crop { background-image: var(--img); background-size: var(--z) auto; background-position: var(--x) var(--y); background-repeat: no-repeat; }
.body-bot { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 92%, #fff, var(--soft) 72%); }
.body-bot img { position: absolute; left: 50%; bottom: 4%; height: 88%; width: auto; max-width: none; transform: translateX(-50%); }
.body figcaption { margin-top: 12px; font: 600 15px/1.4 var(--sans); color: var(--ink-3); transition: color .4s; }
.body figcaption small { display: block; font: 400 13px var(--sans); color: var(--ink-3); }
.body.on .body-img { filter: none; box-shadow: 0 0 0 2px var(--ink), 0 20px 50px -20px rgba(0, 0, 0, .35); }
.body.on figcaption { color: var(--ink); }
.body.on { transform: translateY(-6px); }
.errand-msg { font: 600 clamp(18px, 1.5vw, 21px)/1.6 var(--sans); }
.steps { list-style: none; margin: 32px 0 40px; padding: 0; }
.steps li { position: relative; padding: 10px 0 10px 28px; font-size: 14px; color: var(--ink-2); opacity: .32; transition: opacity .4s; cursor: pointer; }
.steps li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); transition: background .4s, box-shadow .4s; }
.steps b { margin-right: 12px; font: 600 14px var(--sans); color: var(--ink); }
.steps li.done { opacity: 1; }
.steps li.now::before { background: var(--warm); box-shadow: 0 0 0 5px rgba(244, 180, 108, .3); }

/* ---------- 隐私 ---------- */
.ratio { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 80px); text-align: center; }
.ratio p:not(.big) { margin-top: 10px; font-size: 14px; letter-spacing: .03em; color: var(--ink-2); }
.big { font: 300 clamp(48px, 6.4vw, 96px)/1.1 var(--en); font-stretch: 125%; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.big-warm { color: var(--warm); }
.ratio-arrow { position: relative; width: clamp(48px, 8vw, 120px); height: 2px; background: var(--line); margin-bottom: 40px; }
.ratio-arrow::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: rotate(45deg); }
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1000px; margin: clamp(64px, 9vh, 110px) auto 0; }
.sw { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: #fff; cursor: pointer; }
.sw-img { width: 64px; height: 64px; flex: none; border-radius: 16px; transition: filter .5s, opacity .5s; }
.sw-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.sw-txt b { display: block; font: 600 15px/1.4 var(--sans); color: var(--ink); }
.sw-txt .off { display: none; color: var(--warm); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-knob { position: relative; flex: none; width: 51px; height: 31px; border-radius: 99px; background: var(--mute); transition: background .3s; }
.sw-knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.sw input:checked ~ .sw-knob { background: var(--warm); }
.sw input:checked ~ .sw-knob::after { transform: translateX(20px); }
.sw input:focus-visible ~ .sw-knob { outline: 2px solid var(--warm); outline-offset: 3px; }
.sw:has(input:not(:checked)) .sw-img { filter: grayscale(1); opacity: .45; }
.sw:has(input:not(:checked)) .on { display: none; }
.sw:has(input:not(:checked)) .off { display: block; }

/* ---------- FAQ ---------- */
.faq .title { margin-bottom: clamp(48px, 6vw, 80px); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; letter-spacing: .02em; list-style: none; cursor: pointer; font: 500 clamp(15px, 1.2vw, 17px)/1.5 var(--sans); transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 300 24px/1 var(--sans); color: var(--ink-3); transition: transform .4s var(--ease); }
.qa summary:hover { color: var(--warm); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa details p { padding: 0 48px 26px 0; font-size: 14px; color: var(--ink-2); line-height: 2; letter-spacing: .02em; }

/* ---------- 收尾 ---------- */
.finale { position: relative; padding-bottom: clamp(60px, 8vh, 100px); overflow: hidden; }
.finale .wrap { position: relative; }
.glow { position: absolute; left: 50%; top: 32%; width: min(780px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(244, 180, 108, .42), rgba(244, 180, 108, .12) 40%, transparent 68%); z-index: -1; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
.finale .kicker { margin: 56px 0 0; }
.finale .lede { margin-top: 14px; }
.family-sm { height: clamp(300px, 46vh, 480px); margin-top: clamp(64px, 9vh, 110px); }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot em { font-size: 14px; color: var(--ink-2); }

/* ---------- 预约 ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-card { position: relative; width: min(440px, 100%); padding: 40px 36px 32px; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .4s, transform .5s var(--ease); }
.sheet.open .sheet-card { opacity: 1; transform: none; }
.sheet h3 { margin: 0 0 18px; font: 600 22px/1.4 var(--sans); }
.sheet-x { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); }
.sheet-x::before, .sheet-x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.sheet-x::after { transform: rotate(-45deg); }
.sheet-form label { display: block; margin-top: 12px; }
.sheet-form label span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink-2); }
.sheet-form input { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--soft); font: 400 16px var(--sans); color: var(--ink); transition: box-shadow .3s, background .3s; }
.sheet-form input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--warm); }
.sheet-form .pill { width: 100%; height: 50px; margin-top: 24px; }
.sheet-done { display: none; padding: 16px 0 4px; text-align: center; }
.sheet-card.done .sheet-form { display: none; }
.sheet-card.done .sheet-done { display: block; }

/* ---------- 平板 ---------- */
@media (max-width: 1000px) {
  .errand { grid-template-columns: 1fr; }
  .switches { grid-template-columns: 1fr; max-width: 520px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .menu { display: flex; flex-direction: column; gap: 4px; max-height: 0; overflow: hidden; padding: 0 var(--pad); background: rgba(255, 255, 255, .96); transition: max-height .5s var(--ease), padding .5s var(--ease); }
  .menu.open { max-height: 420px; padding: 12px var(--pad) 24px; }
  .menu a { padding: 10px 0; font: 600 20px/1.4 var(--sans); border-bottom: 1px solid var(--line); }
  .menu .pill { margin-top: 18px; align-self: flex-start; }
  .layers a { padding: 7px 13px; }

  .hero-in { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .hero-media img { object-position: 40% 55%; }
  .hero-shade { background: linear-gradient(to top, rgba(24, 16, 9, .72), rgba(24, 16, 9, .2) 50%, transparent 70%), linear-gradient(to bottom, rgba(24, 16, 9, .35), transparent 20%); }
  .lede br, .hero .lede br { display: none; }
  .ctas { gap: 22px; }
  .family { gap: 6px; height: 62vh; height: 62svh; }
  .panel { border-radius: 18px; }
  .panel.on { flex-grow: 5.5; }
  .cap { left: 16px; right: 16px; bottom: 16px; font-size: 12px; white-space: normal; }
  .cap b { font-size: 16px; }


  .w { font-size: 40px; }
  .chain-words { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0 28px; }
  .chain-words i { display: none; }
  .chain-back span { background: var(--soft); }
  .chain-detail { margin-top: 32px; }

  .spot { aspect-ratio: 4 / 3; border-radius: 20px; }
  .spot img { object-position: 85% 50%; }
  .readout { position: static; width: auto; margin-top: 12px; box-shadow: 0 0 0 1px var(--line); }
  .spot { overflow: visible; aspect-ratio: auto; background: none; }
  .spot img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .spot-dim { bottom: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
  .senses { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .sense { padding: 16px 0; }
  .sense span { display: none; }
  .sense.on span { display: block; }

  .rooms { grid-template-columns: 1fr; gap: 10px; }
  .room { min-height: 0; padding: 20px 20px 44px; }
  .hall { padding: 22px 20px; }
  .hall-row { grid-template-columns: 1fr; }

  .title { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.5; }
  .display { font-size: clamp(30px, 8.6vw, 34px); line-height: 1.35; }
  .sec { padding: 112px 0; }
  .head { margin-bottom: 64px; }
  .lede { margin-top: 24px; }
  .hall:not([data-s="2"]) .evt-talk { display: none; }
  .errand { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .errand-side { display: contents; }
  .errand-msg { order: 1; margin-bottom: 24px; }
  .bodies { order: 2; }
  .steps { order: 3; }
  .errand .pill { order: 4; align-self: flex-start; }
  .lanes { grid-template-columns: 1fr; margin-top: 32px; }
  .lane { min-height: 0; }
  .lane:not(.on) .lane-why { display: none; }
  .lane:not(.on) .lane-drop { display: none; }
  .lane-h em { font-size: 32px; }

  .bodies { gap: 8px; }
  .body-img { border-radius: 16px; }
  .body figcaption { font-size: 14px; }

  .ratio { flex-direction: column; gap: 18px; }
  .ratio-arrow { width: 2px; height: 40px; margin: 0; }
  .ratio-arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }

  .qa details p { padding-right: 0; }
  .family-sm { height: 48vh; height: 48svh; }
  .sheet { place-items: end center; padding: 0; }
  .sheet-card { border-radius: 30px 30px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}


/* ================= 动效层 =================
   滚动仍是原生的；这里只做：进场、跟随滚动的位移、切换时的过渡。 */

/* 顶部阅读进度 */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--warm); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); pointer-events: none; }
.nav { transition: box-shadow .3s, transform .5s var(--ease); }
.nav.away { transform: translateY(-100%); }

/* 标题逐字浮现 */
.js [data-split][data-reveal] { opacity: 1; transform: none; }
[data-split] .c { display: inline-block; white-space: pre; }
.js [data-split] .c { opacity: 0; transform: translateY(.42em); filter: blur(8px); transition: opacity .7s var(--ease), transform 1s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 32ms); }
.js [data-split].in .c { opacity: 1; transform: none; filter: none; }

/* 首屏：标记旋入，家人照片依次从下方展开 */
.kicker .mark { transition: transform 1.4s var(--ease); }
.js .kicker:not(.in) .mark { transform: rotate(-300deg) scale(.4); }
.js .family .panel { clip-path: inset(100% 0 0 0 round var(--r)); transition: flex-grow .9s var(--ease), clip-path 1.3s var(--ease); transition-delay: 0s, calc(.15s + var(--n) * 90ms); }
.js .family.in .panel { clip-path: inset(0 0 0 0 round var(--r)); }
.js .family[data-reveal] { transform: none; }
.family .panel { translate: 0 calc((.5 - var(--p, .5)) * var(--k, 0) * 90px); }
.js .family:not(.in) .panel img { transform: scale(1.3); }
.panel img { transition: transform 1.6s var(--ease), filter .9s var(--ease); }
.panel:hover img { transform: scale(1.05); }

/* 时间：数字翻动、换代时一道光扫过、新记忆点亮 */

/* 总览：选中的字从左往右被墨色填满，箭头跟着亮；反馈线向回流动 */
.w { color: transparent; background: linear-gradient(90deg, var(--ink) 50%, var(--mute) 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-position .8s var(--ease); }
.w:hover { color: transparent; background-image: linear-gradient(90deg, var(--ink) 50%, var(--ink-3) 50%); }
.w.on { color: transparent; background-position: 0 0; }
.chain-words i { transition: color .5s, transform .5s var(--ease); }
.chain[data-k="0"] .chain-words i:nth-of-type(1), .chain[data-k="1"] .chain-words i:nth-of-type(2), .chain[data-k="2"] .chain-words i:nth-of-type(3) { color: var(--warm); animation: nudge 1.2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.chain-back::before { border: 0; height: 1.5px; margin-top: -.75px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px); }
.chain-back.on::before { opacity: 1; animation: flowback .6s linear infinite; }
@keyframes flowback { to { background-position: -12px 0; } }
.cd b .c { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.cd.on b .c { opacity: 1; transform: none; }
.cd p { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) .2s, transform .8s var(--ease) .2s; }
.cd.on p { opacity: 1; transform: none; }

/* 感知：照片随滚动展开；光圈中心有一圈呼吸的环；读数逐行出现 */
.spot img { transform: scale(calc(1.16 - var(--e, 1) * .16)); }
.spot { clip-path: inset(0 calc((1 - var(--e, 1)) * 7%) round var(--r)); }
.spot-ring { position: absolute; left: var(--sx); top: var(--sy); width: 0; height: 0; pointer-events: none; }
.spot-ring i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 236, 210, .9); animation: ring 2.4s var(--ease) infinite; }
.spot-ring i + i { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.spot.follow .spot-ring { opacity: .5; }
.ro > * { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.ro.on > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms); }
.sense { position: relative; border-top-color: var(--line); }
.sense::before { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.sense.on::before { transform: scaleX(1); }
.sense.on { border-top-color: var(--line); }

/* 一句结论，随滚动由浅到深 */
[data-fill] { display: table; margin-left: auto; margin-right: auto; color: transparent; background: linear-gradient(90deg, var(--ink) 0 var(--fill, 100%), var(--mute) var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; }

/* 记忆：自己房间的字逐行显影；回答前先“正在输入” */
.room p:not(.room-h):nth-of-type(3) { transition-delay: .12s; }
.reply { display: grid; justify-items: end; }
.reply > * { grid-area: 1 / 1; align-self: start; }
.typing { display: flex; gap: 5px; width: auto; padding: 14px 16px; background: var(--ink); border-bottom-right-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }
.hall[data-s="2"] .typing { animation: typing 1.3s var(--ease) .45s both; }
@keyframes typing { 0% { opacity: 0; transform: translateY(10px); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
.hall[data-s="2"] .b2 { transition-delay: 1.65s; }
.evt { transition: transform .6s var(--ease); }
.hall[data-s="1"] .evt { animation: nudgeup .9s var(--ease); }
@keyframes nudgeup { 30% { transform: translateY(-4px); } }

/* 思考：落地时卡片亮一下 */
.lane.hit { animation: hit .9s var(--ease); }
@keyframes hit { 0% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 0 rgba(244, 180, 108, .6); } 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 22px rgba(244, 180, 108, 0); } }
.ask { transition: box-shadow .3s, background .3s, color .3s, transform .3s var(--ease); }
.ask:active { transform: scale(.96); }

/* 行动：进度线往下走；机器人走进来；播放时有声波 */
.steps { position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 5.5px; top: 22px; width: 1px; bottom: 22px; background: var(--line); }
.steps::after { background: var(--warm); transform-origin: 50% 0; transform: scaleY(calc(var(--s, 0) / 4)); transition: transform .7s var(--ease); }
.steps li::before { z-index: 1; }
.steps li.now::before { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 9px rgba(244, 180, 108, .12); } }
.errand[data-s="3"] .body-bot img { animation: walkin 1.4s var(--ease); }
@keyframes walkin { from { transform: translateX(-130%); opacity: 0; } }
.wave { position: absolute; left: 76%; top: 12%; display: flex; gap: 4px; height: 28px; align-items: center; transform: translateX(-50%); opacity: 0; transition: opacity .4s; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--warm); animation: bars .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.3s; } .wave i:nth-child(3) { animation-delay: -.6s; } .wave i:nth-child(4) { animation-delay: -.15s; } .wave i:nth-child(5) { animation-delay: -.45s; }
@keyframes bars { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.errand[data-s="4"] .wave { opacity: 1; }
.body { transition: opacity .5s, transform .7s var(--ease); }

/* 隐私：箭头上有信息往外走，开关越少走得越稀；两侧数字随滚动轻微错开 */
.ratio-arrow::before { content: ""; position: absolute; inset: -1px 0; background: repeating-linear-gradient(90deg, var(--warm) 0 3px, transparent 3px 14px); animation: flow var(--flow, .9s) linear infinite; mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
@keyframes flow { to { background-position: 14px 0; } }
.ratio[data-on="2"] { --flow: 1.4s; }
.ratio[data-on="1"] { --flow: 2.4s; }
.ratio[data-on="0"] .ratio-arrow::before { animation-play-state: paused; opacity: 0; }
.ratio > div:first-child .big { translate: calc((var(--p, .5) - .5) * -60px) 0; }
.ratio > div:last-child .big { translate: calc((var(--p, .5) - .5) * 60px) 0; }
.sw { transition: transform .3s var(--ease), box-shadow .3s; }
.sw:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .3); }

/* 四层定位：选中块滑动 */
.layers { position: fixed; }
.layers a.on { background: none; }
.layers a { position: relative; z-index: 1; }
.layers-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }

/* 按钮被指针轻轻吸住 */
.pill { transition: background .3s, color .3s, box-shadow .3s, translate .35s var(--ease), transform .2s; }
.pill.mag { transition: background .3s, color .3s, box-shadow .3s, translate .12s linear, transform .2s; }

@media (max-width: 760px) { .spot img { transform: none; } .spot { clip-path: none; } .family .panel { translate: none; } }

/* 收尾：灯光跟着鼠标慢慢挪 */
.glow { translate: var(--gx, 0) var(--gy, 0); transition: translate 1.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] .c, .cd b .c, .cd p, .ro > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .family .panel { clip-path: none; }
  .hero-media img { animation: none; transform: none; }
  .hero-dark, .hero-grain { display: none; }
  .family .panel, .ratio .big, .glow { translate: none !important; }
  .spot { clip-path: none; }
  .spot img { transform: none; }
  [data-fill] { --fill: 100% !important; }
  .progress { display: none; }
}

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