/* 有你陪（Snugby）统一官网样式（14 语 SEO + 多宠真实变植绒进设备动画）。
   取值只用 .claude/skills/mochi-design/tokens.json：
   照片世界 = 实拍米色纸 + 植绒实拍/动片 + 实拍道具 + 平涂接触暗影；
   Squish 包装层 = 平涂吊牌、可可色按钮、肉垫黑字、连续圆角、无阴影无渐变无毛玻璃无 emoji。 */

:root {
  --paper: #DDCDC1;
  --today: #FFD58C; --water: #B4E0F7; --social: #FFC9D3; --sit: #DACDF7; --done: #A8E0C0; --calm: #FFF4E0;
  --ink: #1C1714; --ink2: #5C4A3A; --on-ink: #FFF4E0; --hair: rgba(28, 23, 20, 0.16);
  --cocoa: #6E4F38;
  --r-blob: 36px; --r-small: 22px; --r-window: 40px;
  --page: 20px;
  --sans: "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --pet-h: clamp(290px, 50vh, 520px);
  --C: min(640px, calc(100vw - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--calm); color: var(--ink); font-family: var(--sans); font-weight: 500; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--calm); overflow-x: hidden; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ── 顶栏与 14 语言选择器 ─────────────────────────────── */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top)); width: 100%; position: relative; z-index: 30;
}
.top-calm {
  max-width: 1180px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) var(--page) 8px;
}
.mark {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none; min-height: 44px;
}
.mark-dot { font-size: 11px; line-height: 1; flex: none; }
.round-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.round {
  min-width: 44px; height: 44px; padding: 0 15px; border-radius: 999px; border: 0;
  background: var(--cocoa); color: var(--on-ink); font: 700 14px var(--sans);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.round[aria-current="page"] { background: var(--ink); }

.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  width: min(320px, calc(100vw - 32px)); padding: 12px;
  border-radius: var(--r-small); background: var(--calm);
  border: 2px solid var(--cocoa);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  z-index: 50;
}
.lang-menu[hidden] { display: none; }
.lang-opt {
  min-height: 40px; padding: 6px 12px; border-radius: 14px; text-decoration: none;
  font: 700 13px var(--sans); color: var(--ink); display: flex; align-items: center;
  background: transparent;
}
.lang-opt:hover { background: var(--today); }
.lang-opt[aria-current="true"] { background: var(--cocoa); color: var(--on-ink); }

/* ── 通用按钮与 Squish ───────────────────────────────── */
.ink-btn {
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cocoa); color: var(--on-ink); font: 700 16px var(--sans);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  white-space: nowrap;
}
.ink-btn:disabled { opacity: .45; cursor: not-allowed; }
.text-btn {
  min-height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  font: 700 15px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
  display: inline-flex; align-items: center;
}
.squish { transform-origin: 50% 100%; transition: transform .32s var(--spring); }
.squish:active { transform: scale(1.06, .90); transition-duration: .08s; }

/* ── 纸舞台 ─────────────────────────────────────────── */
.stage {
  position: relative;
  background-color: var(--paper);
  background-image: url("/home/img/paper.jpg");
  background-size: cover;
  background-position: center 73%;
  --gutter: max(var(--page), calc((100% - 1180px) / 2));
  padding: 0 var(--gutter);
}
.stage-hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; }
.stage-together { padding-top: 72px; display: grid; grid-template-rows: auto 1fr auto; min-height: 92svh; }
.stage-buds { padding-top: 80px; padding-bottom: 72px; }
.stage-yours { padding-top: 72px; display: grid; grid-template-rows: auto 1fr auto; min-height: 94svh; }

@media (min-width: 900px) {
  :root { --C: min(660px, calc((min(100vw, 1220px) - 88px) * .58)); }
  .stage-hero { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto 1fr auto; column-gap: 24px; }
  .stage-hero .top, .stage-hero .tag-dock { grid-column: 1 / -1; }
  .stage-hero .hero-copy { align-self: center; padding-top: 0; }
  .stage-hero .devices-wrap { align-self: end; }
  .stage-hero .hero-sub { max-width: 22em; }
}

/* ── 标题 ─────────────────────────────────────────── */
.hero-copy { width: 100%; padding-top: clamp(28px, 6vh, 64px); }
.hero-title {
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(40px, 6.4vw, 84px);
}
.hero-sub { margin-top: 18px; max-width: 30em; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.55; }
.sec-head { width: 100%; }
.sec-eyebrow {
  display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px;
  background: var(--today); color: var(--ink); font: 800 13px var(--sans);
}
.sec-title { font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(32px, 5.2vw, 60px); }
.sec-sub { margin-top: 14px; max-width: 36em; font-size: 17px; font-weight: 600; line-height: 1.6; }
.sec-small { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink2); }

/* ── 吊牌（包装层，一屏一块，贴底） ─────────────────────── */
.tag-dock { width: 100%; padding: 0 0 max(18px, env(safe-area-inset-bottom)); }
.tag { border-radius: var(--r-blob); padding: 24px 28px; background: var(--today); transition: background-color .25s; }
.tag[data-field="social"] { background: var(--social); }
.tag[data-field="water"] { background: var(--water); }
.tag[data-field="sit"] { background: var(--sit); }
.tag[data-field="done"] { background: var(--done); }
.tag-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.tag-copy { flex: 1 1 280px; }
.tag-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tag-line { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink2); }
.tag-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.tag-split .tag-actions { margin-top: 0; }

.hero-row { display: flex; align-items: baseline; gap: 14px; }
/* 11-22 定稿：80px（移动端 72px） */
.hero-num { font: 900 80px/1 var(--round); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.hero-cap { font-size: 15px; font-weight: 700; color: var(--ink2); white-space: pre-line; line-height: 1.3; }

/* ── 首屏三设备（物理空间锁 LTR，防 RTL 破坏画面坐标） ───── */
.devices-wrap {
  direction: ltr; position: relative; display: flex; flex-direction: column; align-items: center;
  padding-top: 2.6em; padding-bottom: 34px; margin-top: 12px;
}
.devices { position: relative; display: block; width: var(--C); height: calc(var(--C) * .68); }
.device {
  position: absolute; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  -webkit-tap-highlight-color: transparent; color: var(--ink); font: inherit;
  transition: transform .28s var(--spring);
}
.device:not(.here):hover { transform: translateY(-4px) scale(1.02); }
.device-body { display: block; position: relative; }
.screen { display: block; position: relative; overflow: hidden; background: var(--paper) url("/home/img/paper.jpg") center 73% / cover no-repeat; }
.bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }

.device-mac { left: 8%; top: 0; z-index: 1; }
.device-phone { right: 0; bottom: 0; z-index: 3; }
.device-watch { left: 0; bottom: 0; z-index: 3; }

.device-mac .device-body { height: calc(var(--C) * .8 * 2540 / 3860); aspect-ratio: 3860 / 2540; }
.device-mac .screen { position: absolute; left: 10.829%; top: 11.339%; width: 78.342%; height: 77.323%; border-radius: 1.2% / 1.8%; background-position: center 80%; font-size: calc(var(--C) * .0135); }
.device-phone .device-body { height: calc(var(--C) * .44); aspect-ratio: 1350 / 2760; }
.device-phone .screen { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; border-radius: 13.5% / 6.2%; }
.device-watch .device-body { height: calc(var(--C) * .29); aspect-ratio: 560 / 880; }
.device-watch .screen { position: absolute; left: 12.857%; top: 21.818%; width: 74.286%; height: 56.364%; border-radius: 27% / 23%; background-position: center 100%; }

.device-label {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700;
}
.device-mac .device-label { top: calc(100% + 14px); }

.screen-cat { position: absolute; top: 0; height: 100%; aspect-ratio: 540 / 960; z-index: 2; }
.device-watch .screen-cat { right: 0; }
.device-mac .screen-cat { left: auto; right: 0; top: auto; bottom: 0; height: 56%; transform-origin: 50% 90.5%; }
/* iPhone 用真实 App 顶部状态栏 + 底部暖黄/浅蓝三张牌截图，77 站在真实 App 中间舞台 */
.ios-ui-top { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; z-index: 1; display: block; }
.ios-ui-bot { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; z-index: 4; display: block; }
.ios-felt-bg { position: absolute; left: 50%; bottom: 33.5%; transform: translateX(-50%); width: 76%; pointer-events: none; z-index: 1; opacity: .94; }
.device-phone .screen-cat { left: 50%; top: auto; bottom: 30%; height: 60%; transform: translateX(-50%); z-index: 3; }

/* Apple Watch App 占位层（右上真实系统时钟 + 底部轻量计数，真表 UI 定稿后直接换图） */
.watch-ui-time {
  position: absolute; right: 11%; top: 7%; z-index: 4; pointer-events: none;
  font: 700 10px/1 var(--round); color: var(--ink); opacity: .78; font-variant-numeric: tabular-nums;
}
.watch-ui-foot {
  position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; z-index: 4; pointer-events: none;
  font: 800 10px/1 var(--round); color: var(--ink); opacity: .72; letter-spacing: .04em;
}
.device-watch:not(.here) .watch-ui-foot { opacity: .35; }

.screen-cat > img, .screen-cat > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.screen-shadow {
  position: absolute; left: 50%; top: 90.5%; width: 74%; height: 5%; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(28, 23, 20, 0.12); transition: opacity .25s;
}
.screen-cat.walking .screen-shadow, .screen-cat.empty .screen-shadow, .screen-cat.air .screen-shadow { opacity: 0; }
.screen-note {
  position: absolute; left: 10%; right: 8%; top: 10%; font-size: 12px; font-weight: 700; line-height: 1.35;
  text-align: left; z-index: 3; color: var(--ink);
}
/* 防止手表小屏单字折行；iPhone 避开真实顶部 App 栏 */
.device-watch .screen-note { font-size: 10px; left: 10%; right: 8%; top: 24%; letter-spacing: -0.02em; }
.device-phone .screen-note { top: 22%; left: 10%; right: 8%; }
.device.here .screen-note { display: none; }
.device:not(.here) .screen-note { display: block; }
.device.settle .screen-cat > :last-child { animation: settle .42s var(--spring); transform-origin: 50% 90%; }

.devices-wrap .paper-line {
  position: absolute; top: 0; left: 0; margin: 0; max-width: 24em;
  font-size: 15px; font-weight: 700; color: var(--ink);
  transform: translate(var(--line-x, 0px), 4px);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.devices-wrap .paper-line.on { opacity: 1; transform: translate(var(--line-x, 0px), 0); }
.devices-wrap .hint { margin-top: 30px; font-size: 13px; font-weight: 600; color: var(--ink2); transition: opacity .4s; }
.hint.gone { opacity: 0; }

/* 真实 macOS 桌面模拟（允许系统窗口本身圆角与轻影） */
.mac-desk { position: absolute; inset: 0; display: block; }
.mac-menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 1.9em; display: flex; align-items: center; gap: 1.1em; padding: 0 1em;
  background: rgba(246, 240, 234, .78); color: #1d1d1f; font: 600 1em/1 -apple-system, "PingFang SC", sans-serif; white-space: nowrap;
}
.mac-menubar b { font-weight: 800; }
.mac-menubar i { font-style: normal; }
.mac-menubar-r { margin-left: auto; display: flex; gap: 1em; }
.mac-77 { font-weight: 700; }
.mac-win {
  position: absolute; display: block; background: #FBFBFD; border-radius: .9em; overflow: hidden;
  box-shadow: 0 .5em 1.6em rgba(0, 0, 0, .14), 0 0 0 .06em rgba(0, 0, 0, .10);
}
.mac-tl { display: flex; align-items: center; gap: .45em; height: 2.1em; padding: 0 .8em; background: #ECECEE; }
.mac-tl i { width: .75em; height: .75em; border-radius: 50%; background: #FF5F57; display: block; }
.mac-tl i:nth-child(2) { background: #FEBC2E; } .mac-tl i:nth-child(3) { background: #28C840; }
.mac-url { margin-left: 1.2em; flex: 1; height: 1.3em; border-radius: .65em; background: #fff; color: #6e6e73; font: 600 .8em/1.6 -apple-system, sans-serif; text-align: center; }
.mac-notes { left: 4%; top: 12%; width: 44%; height: 44%; }
.mac-notes .mac-side { position: absolute; left: 0; top: 2.1em; bottom: 0; width: 32%; background: #F2F1EE; display: block; }
.mac-notes .mac-body { position: absolute; left: 36%; right: 6%; top: 3em; display: flex; flex-direction: column; gap: .7em; }
.mac-safari { left: 30%; top: 46%; width: 44%; height: 40%; }
.mac-page { display: flex; flex-direction: column; gap: .7em; padding: 1em 1.2em; }
.mac-win em { display: block; height: .55em; border-radius: .3em; background: #D9D9DE; }
.mac-win em.big { height: 1em; background: #C7C7CC; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mac-tree { position: absolute; left: 3%; bottom: 2%; height: 46%; width: auto; display: block; }
.device-mac .screen-note {
  left: auto; right: 2.5%; top: 12%; width: 42%; padding: .7em .9em; border-radius: 1em; background: rgba(250, 248, 245, .94);
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .14); font: 600 1.05em/1.35 -apple-system, "PingFang SC", sans-serif; color: #1d1d1f; z-index: 3;
}
.device-mac .screen-note::before { content: attr(data-brand); display: block; font-weight: 800; font-size: .85em; color: #6e6e73; margin-bottom: .2em; }

/* ── ③ 你做一下，它陪一下（接入实拍道具） ────────────────── */
.pet-spot {
  direction: ltr; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  width: 100%; padding: 20px 0 8px;
}
.pet-stage-box {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  width: min(100%, 620px); height: var(--pet-h);
}
.den-prop {
  position: absolute; pointer-events: none; user-select: none; display: none;
}
.den-prop.on { display: block; }
.den-prop-mat { bottom: 13%; left: 50%; width: 86%; max-width: 520px; transform: translateX(-50%); z-index: 0; }
.den-prop-bowl { bottom: 13%; right: 12%; width: clamp(100px, 24%, 154px); z-index: 2; }
.den-prop-bowl.sip { animation: settle .36s var(--spring); }
.den-prop-felt { bottom: 13%; left: 50%; width: 70%; max-width: 400px; transform: translateX(-50%); z-index: 0; }
.den-prop-plant { bottom: 18%; left: 8%; width: clamp(74px, 16%, 110px); z-index: 0; }

.pet {
  position: relative; z-index: 1; display: block; border: 0; padding: 0; background: none; cursor: pointer;
  height: var(--pet-h); aspect-ratio: 422 / 480; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pet-frame { position: absolute; inset: 0; transform-origin: 51.7% 81.1%; }
.pet-frame > img, .pet-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pet-frame > video { opacity: 0; }
.pet-frame > video.on { opacity: 1; }
.pet-shadow {
  position: absolute; left: 51.7%; top: 81.1%; width: 42%; height: 5%;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(28, 23, 20, 0.12);
}
.pet.settle .pet-frame { animation: settle .42s var(--spring); }
@keyframes settle { 40% { transform: scale(1.05, .91); } 100% { transform: none; } }

.paper-line {
  min-height: 1.6em; max-width: 24em; position: relative; z-index: 2;
  font-size: 17px; font-weight: 700; line-height: 1.45; text-align: center; color: var(--ink);
  opacity: 0; transform: translateY(4px); transition: opacity .28s, transform .28s;
}
.paper-line.on { opacity: 1; transform: none; }
.pet-spot-together .paper-line { margin-bottom: -14px; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 14px -10px; }
.chip {
  min-height: 44px; padding: 0 15px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font: 700 15px var(--sans);
}
.chip[aria-pressed="true"] { background: var(--cocoa); color: var(--on-ink); }

/* ── ③b 戴上耳机 ─────────────────────────────────────── */
.buds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.buds-wrap { direction: ltr; display: flex; flex-direction: column; align-items: center; }
.buds-wrap .paper-line { margin-bottom: 6px; font-size: 16px; }
.buds-stage {
  position: relative; width: min(100%, 460px); aspect-ratio: 486 / 420;
  touch-action: pan-y; cursor: crosshair; border-radius: var(--r-small);
}
.buds-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.buds-shadow { left: 51.7%; top: 97%; width: 58%; height: 6%; }
.buds-hint { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } .buds-stage { cursor: default; } }

/* ── ④ 多只猫狗：真实照片 → 植绒 → 钻进手机/电脑 动画舞台 ── */
.custom-showcase { margin-top: 20px; display: flex; flex-direction: column; justify-content: center; }
.stage-yours .custom-showcase { margin-top: 14px; padding-bottom: 12px; }
.custom-steps-bar {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: var(--ink2);
}
.custom-step { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.custom-step::before { content: "○"; font-size: 11px; }
.custom-step.active { color: var(--ink); font-weight: 800; }
.custom-step.active::before { content: "●"; }

.morph-arena {
  direction: ltr; position: relative;
  border-radius: var(--r-blob);
  background: var(--paper) url("/home/img/paper.jpg") center 72% / cover no-repeat;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
}
/* 首页第二屏直接站在整屏米色纸舞台上，不套圆角外盒 */
.stage-yours .morph-arena {
  background: none; border-radius: 0; padding: 8px 0 10px; overflow: visible;
}
.morph-line {
  text-align: center; min-height: 1.6em; margin-bottom: 14px;
  font-size: 17px; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.morph-line.on { opacity: 1; transform: none; }

.morph-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) auto minmax(0, 1.25fr);
  gap: 20px; align-items: center; position: relative;
}

/* 左：真宠相纸 → 揉捏 + 硬边滑过变植绒（支持手指/鼠标左右拖动对比 + 角落留真宠拍立得对照） */
.morph-source { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.morph-card {
  position: relative; width: min(100%, 296px); aspect-ratio: 1;
  border-radius: var(--r-window); overflow: hidden; background: var(--paper);
  transform-origin: 50% 90%; cursor: ew-resize; touch-action: pan-y; user-select: none;
}
.morph-card.squish-go { animation: morphKnead .62s var(--spring); }
@keyframes morphKnead {
  0%   { transform: scale(1, 1); }
  28%  { transform: scale(1.09, .86); }
  58%  { transform: scale(.95, 1.05); }
  80%  { transform: scale(1.02, .98); }
  100% { transform: scale(1, 1); }
}
.morph-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none;
}
.morph-flocked-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(0 calc(100% - var(--split, 0%)) 0 0);
  pointer-events: none;
}
.morph-card.anim-wipe .morph-flocked-layer {
  transition: clip-path .72s cubic-bezier(.22, .92, .32, 1);
}
/* 干净硬边对比分割线 + 实体小圆柄 */
.morph-wipe-line {
  position: absolute; top: 0; bottom: 0; left: var(--split, 0%); width: 3px;
  background: var(--calm); transform: translateX(-50%); pointer-events: none; z-index: 3;
  opacity: 0; transition: opacity .22s ease;
}
.morph-card.anim-wipe .morph-wipe-line {
  transition: left .72s cubic-bezier(.22, .92, .32, 1), opacity .22s ease;
}
.morph-card.show-wipe .morph-wipe-line,
.morph-card:hover .morph-wipe-line { opacity: 1; }
.morph-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--cocoa); color: var(--on-ink);
  font: 800 14px/1 var(--sans); display: flex; align-items: center; justify-content: center;
}
/* 变身后留在左下角的真宠小拍立得对照，始终一眼看清「真照 → 植绒」还原度 */
.morph-polaroid {
  position: absolute; left: 12px; bottom: 12px; width: 74px;
  padding: 5px 5px 12px; border-radius: 12px; background: var(--calm);
  transform: rotate(-6deg) translateY(14px) scale(.82); opacity: 0; z-index: 4;
  pointer-events: none;
  transition: opacity .34s ease, transform .42s var(--spring);
}
.morph-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.morph-arena[data-phase="enter"] .morph-polaroid,
.morph-arena[data-phase="settled"] .morph-polaroid {
  opacity: 1; transform: rotate(-5deg) translateY(0) scale(1);
}
.morph-card.dragging .morph-polaroid,
.morph-card.show-wipe .morph-polaroid { opacity: 0; }

.morph-badge {
  position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--cocoa); color: var(--on-ink); font: 700 12px var(--sans); z-index: 4;
  pointer-events: none;
}
.morph-caption { font-size: 14px; font-weight: 700; color: var(--ink); }

/* 中间物理箭头 */
.morph-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--calm); color: var(--ink);
  font: 800 18px/1 var(--sans);
  transition: transform .35s var(--spring), background-color .25s;
}
.morph-arena[data-phase="enter"] .morph-arrow { transform: translateX(8px) scale(1.1); background: var(--today); }

/* 精准跨框飞跃的小宠物（由 JS 按真实起终点坐标跑抛物线） */
.morph-hopper {
  position: absolute; left: 0; top: 0; width: 140px; height: 140px;
  pointer-events: none; z-index: 12; opacity: 0; object-fit: contain;
  transform-origin: 50% 88%;
}

/* 目标设备落地承重微晃 */
.dest-device.bump { animation: deviceBump .38s var(--spring); }
@keyframes deviceBump {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(5px) scale(1.015, .985); }
  100% { transform: translateY(0) scale(1); }
}

/* 右：目标设备舞台（Mac / iPhone 真机 App / Apple Watch 占位 / Windows + 同步副屏） */
.morph-dest { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dest-frame { position: relative; width: min(100%, 450px); aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; }

/* 主设备容器切换 */
.dest-device { position: relative; display: none; }
.dest-frame[data-dev="mac"] .dest-mac,
.dest-frame[data-dev="phone"] .dest-phone,
.dest-frame[data-dev="watch"] .dest-watch,
.dest-frame[data-dev="win"] .dest-win { display: block; }

.dest-mac { width: 96%; aspect-ratio: 3860 / 2540; }
.dest-mac .screen {
  position: absolute; left: 10.829%; top: 11.339%; width: 78.342%; height: 77.323%;
  border-radius: 1.2% / 1.8%; font-size: clamp(5px, 0.72vw, 8.5px);
}
.dest-phone { height: 100%; aspect-ratio: 1350 / 2760; }
.dest-phone .screen {
  position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%;
  border-radius: 13.5% / 6.2%;
}
.dest-watch { height: 84%; aspect-ratio: 560 / 880; }
.dest-watch .screen {
  position: absolute; left: 12.857%; top: 21.818%; width: 74.286%; height: 56.364%;
  border-radius: 27% / 23%; background-position: center 100%;
}
.dest-watch .watch-ui-time { font-size: 12px; right: 11%; top: 7%; }
.dest-watch .watch-ui-foot { font-size: 13px; bottom: 7%; }

/* 同步副屏（放在主设备角落，实时显示另一台设备的同步留字） */
.sync-peer {
  position: absolute; z-index: 6; pointer-events: none;
  transition: transform .35s var(--spring), opacity .25s;
}
.sync-peer-watch {
  left: -2%; bottom: 0; height: 48%; aspect-ratio: 560 / 880; display: block;
}
.sync-peer-watch .screen {
  position: absolute; left: 12.857%; top: 21.818%; width: 74.286%; height: 56.364%;
  border-radius: 27% / 23%;
}
.sync-peer-phone {
  right: 2%; bottom: 0; height: 74%; aspect-ratio: 1350 / 2760; display: none;
}
.sync-peer-phone .screen {
  position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%;
  border-radius: 13.5% / 6.2%;
}
/* 主设备是 Watch 时，副屏切为 iPhone 真机 App 同步留字；否则副屏显示 Apple Watch 同步留字 */
.dest-frame[data-dev="watch"] .sync-peer-watch { display: none; }
.dest-frame[data-dev="watch"] .sync-peer-phone { display: block; }
.dest-frame[data-dev="phone"] .sync-peer-watch { left: 6%; }

.sync-peer-note {
  position: absolute; left: 10%; right: 8%; top: 24%; z-index: 3;
  font: 700 9px/1.35 var(--sans); color: var(--ink); text-align: left; white-space: pre-line;
}
.sync-peer-phone .sync-peer-note { top: 22%; font-size: 10px; }
.sync-peer-watch .watch-ui-time { font-size: 8.5px; }

/* Windows 11 笔记本框（干净自绘，无苹果 logo） */
.dest-win { width: 92%; aspect-ratio: 16 / 10.4; }
.win-lid {
  position: relative; width: 100%; height: 92%; border-radius: 14px 14px 6px 6px;
  background: #1C1B1A; padding: 9px 9px 12px;
}
.win-base {
  width: 108%; height: 8%; margin-left: -4%; border-radius: 0 0 10px 10px;
  background: #3A3836;
}
.win-screen {
  position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden;
  background: var(--paper) url("/home/img/paper.jpg") center 75% / cover no-repeat;
}
.win-window {
  position: absolute; left: 7%; top: 10%; width: 56%; height: 58%; border-radius: 8px;
  background: #FBFBFD; box-shadow: 0 6px 18px rgba(0,0,0,.12); overflow: hidden;
}
.win-titlebar { height: 18px; background: #EFECE7; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 8px; }
.win-titlebar i { width: 7px; height: 2px; background: #6E6A66; display: block; }
.win-lines { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.win-lines em { display: block; height: 5px; border-radius: 3px; background: #DDDAD5; }
.win-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 11%;
  background: rgba(248, 244, 238, .88); display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 10px;
}
.win-taskbar i { width: 10px; height: 10px; border-radius: 3px; background: #6E4F38; opacity: .55; display: block; }
.win-taskbar i:first-child { background: #3B82B8; opacity: .85; }
.win-tray { position: absolute; right: 10px; font: 700 9px/1 var(--sans); color: var(--ink); }

/* 住进设备里的透明植绒宠物 */
.dest-pet-slot {
  position: absolute; z-index: 3; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transform: translate(-24px, -14px) scale(.85);
  transition: opacity .25s ease, transform .42s var(--spring);
}
.dest-pet-slot.in { opacity: 1; transform: none; }
.dest-pet-slot.settle { animation: settle .42s var(--spring); transform-origin: 50% 92%; }
.dest-pet-slot > img, .dest-pet-slot > video { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 2; }
.dest-pet-shadow {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: 62%; height: 9%; border-radius: 50%; background: rgba(28, 23, 20, .14); z-index: 1;
}

.dest-mac .dest-pet-slot { right: 8%; bottom: 10%; width: 34%; aspect-ratio: 1; }
/* iPhone 真实 App 画面与 Watch 表盘中，用 left/right/margin 居中，避免 settle 动画覆盖 translateX */
.dest-phone .dest-pet-slot { left: 0; right: 0; margin: 0 auto; bottom: 35%; width: 66%; aspect-ratio: 1; transform: translateY(-14px) scale(.86); }
.dest-phone .dest-pet-slot.in { transform: none; }
.dest-watch .dest-pet-slot { left: 0; right: 0; margin: 0 auto; bottom: 16%; width: 76%; aspect-ratio: 1; transform: translateY(-10px) scale(.86); }
.dest-watch .dest-pet-slot.in { transform: none; }
.dest-win .dest-pet-slot { right: 9%; bottom: 10%; width: 34%; aspect-ratio: 1; }

/* 四端同步状态条（可点击，随时把当前宝贝叫去任意设备） */
.sync-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.sync-pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--calm); color: var(--ink2); font: 700 12.5px var(--sans);
}
.sync-pill[aria-pressed="true"] { background: var(--cocoa); color: var(--on-ink); }
.sync-dot { font-size: 10px; line-height: 1; }

/* 下方 6 只猫狗选择条 */
.pet-roster {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px;
}
.roster-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--calm); color: var(--ink); font: 700 14px var(--sans);
  min-height: 48px;
}
.roster-btn img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; display: block; }
.roster-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.roster-kind { font-size: 11px; font-weight: 600; color: var(--ink2); }
.roster-btn[aria-pressed="true"] { background: var(--cocoa); color: var(--on-ink); }
.roster-btn[aria-pressed="true"] .roster-kind { color: rgba(255, 244, 224, .82); }

.custom-cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ── calm 主区与子页统一排版 ──────────────────────────── */
.calm { background: var(--calm); padding: 28px max(var(--page), calc((100% - 1180px) / 2)) 48px; }
.calm-narrow { max-width: 820px; margin: 0 auto; padding: 20px var(--page) 56px; }
.calm-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.calm-label { font-size: 13px; font-weight: 800; color: var(--ink2); letter-spacing: .02em; margin-bottom: 10px; text-transform: uppercase; }
.calm-list { list-style: none; margin: 0; padding: 0; }
.calm-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.row-title { font-size: 17px; font-weight: 800; }
.row-desc { margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--ink2); }
.row-tail { font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; padding-top: 3px; }
.calm-more { margin-top: 10px; }

.sub-hero { padding: 28px 0 36px; }
.sub-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-bottom: 20px; }
.photo-window { width: 136px; height: 136px; border-radius: var(--r-window); overflow: hidden; background: var(--paper); flex: none; }
.photo-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-title { font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(32px, 5vw, 52px); }
.sub-lead { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--ink2); line-height: 1.65; max-width: 42em; }
.sub-sec { margin-top: 44px; }

/* 定制页 4 步卡片（平涂无阴影无描边） */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.step-blob { border-radius: var(--r-small); padding: 22px; background: var(--paper); }
.step-num { font: 900 32px/1 var(--round); color: var(--cocoa); margin-bottom: 8px; }
.step-title { font-size: 17px; font-weight: 800; }
.step-desc { margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ink2); }

/* FAQ 手风琴 */
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font: 800 20px/1 var(--round); color: var(--cocoa); flex: none; transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-body { padding: 0 0 18px; font-size: 15px; font-weight: 500; line-height: 1.65; color: var(--ink2); }

/* 留信箱吊牌 */
.tag-waitlist { position: sticky; top: 24px; }
.wait-form { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.wait-input {
  flex: 1 1 200px; min-height: 50px; border-radius: var(--r-small); border: 0; padding: 0 18px;
  background: var(--calm); color: var(--ink); font: 600 16px var(--sans);
}
.wait-input::placeholder { color: var(--ink2); }
.wait-check {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.wait-check input { width: 18px; height: 18px; accent-color: var(--cocoa); }
.wait-msg { margin-top: 10px; min-height: 1.4em; font-size: 15px; font-weight: 700; }
.path-pill {
  display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 14px;
  background: var(--calm); font: 700 13px var(--sans); color: var(--ink);
}

.foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  padding-top: 32px; margin-top: 24px; border-top: 1px solid var(--hair);
  font-size: 13px; font-weight: 600; color: var(--ink2);
}
.foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ── 移动端适配 ───────────────────────────────────────── */
@media (max-width: 820px) {
  :root { --pet-h: clamp(250px, 42vh, 380px); }
  .round { padding: 0 11px; font-size: 13px; }
  .hero-copy { padding-top: 22px; }
  .tag { padding: 20px; }
  .tag-title { font-size: 23px; }
  .hero-num { font-size: 72px; }
  .buds-grid, .calm-inner, .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .morph-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .morph-card { width: min(100%, 250px); }
  .dest-frame { width: min(100%, 320px); }
  .morph-arrow { transform: rotate(90deg); }
  .morph-arena[data-phase="enter"] .morph-arrow { transform: rotate(90deg) translateX(6px); }
  .morph-polaroid { width: 60px; left: 10px; bottom: 10px; padding: 4px 4px 10px; }
  .device-label { font-size: 11px; }
  .device-phone .screen-note { font-size: 9.5px; }
  .device-watch .screen-note { font-size: 8.5px; }
  .tag-waitlist { position: static; }
  .stage-buds { padding-top: 56px; padding-bottom: 56px; }
  .stage-yours { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .squish, .squish:active { transform: none; transition: none; }
  .pet.settle .pet-frame, .device.settle .screen-cat > *, .morph-card.squish-go, .morph-hopper.hop, .dest-pet-slot.settle { animation: none; }
  .morph-flocked-layer { transition: none; }
  .paper-line, .morph-line { transition: none; }
}
