/* 小章官网 · 「糯米」配色和字体，数值和 App 里的 Theme.swift 一致 */
:root {
  color-scheme: light;
  --paper: #FBF1EB;
  --card: #FFFFFF;
  --well: #FFF6F1;
  --chip: #F6ECE7;
  --line: #F1E1D9;
  --butter: #F7E7C6;
  --butter-ink: #6B4E1E;
  --butter-title: #4A3712;
  --butter-well: #FFF8EA;
  --ink: #3B2A26;
  --ink2: #7E665F;
  --ink3: #B49E96;
  --on-ink: #FFF6F0;
  --coral: #E0533D;
  --coral-deep: #D2402E;
  --coral-soft: #FDE3DB;
  --coral-line: #F7B9A9;
  --coral-ink: #A8331F;
  --blush: #FFB3A3;
  --canvas: #F7E4DB;
  --dot: #EECDBF;
  --media: #F4CFC2;

  /* 和 App 一样：标题、按钮、数字用系统圆角字体（SF Rounded），中文接苹方；正文用系统字体接苹方。粗体最多到 semibold。 */
  --round: ui-rounded, "SF Pro Rounded", "SF Compact Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --bold: 600;

  --shadow-card: 0 4px 16px rgba(170, 70, 50, .08);
  --shadow-float: 0 0 0 1px rgba(150, 70, 50, .10), 0 12px 32px rgba(150, 70, 50, .20);
  --shadow-window: 0 0 0 1px rgba(150, 70, 50, .14), 0 24px 60px rgba(120, 50, 35, .22);
  --r-card: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
/* 纸上的小点点 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
img, video { max-width: 100%; height: auto; display: block; }
video.anim { width: 100%; background: var(--media); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: var(--bold); letter-spacing: .01em; margin: 0; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
.section-head h2, .section-head p, .download-card h2, .download-card p { text-wrap: balance; }
.nw { white-space: nowrap; }
button { font: inherit; color: inherit; }
b { font-weight: var(--bold); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; text-decoration: none;
  font: var(--bold) 14px/1 var(--round);
}
.skip:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: var(--bold) 16px/1 var(--round);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 6px 18px rgba(210, 64, 46, .32), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 10px 24px rgba(210, 64, 46, .36), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-large { height: 60px; padding: 0 32px; font-size: 19px; }
.btn-large svg { width: 20px; height: 20px; }
.btn-chip { height: 34px; padding: 0 14px; font-size: 14px; background: var(--chip); color: var(--ink); }
.btn-chip:hover { background: var(--coral-soft); color: var(--coral-ink); }
:focus-visible { outline: 3px solid var(--coral-line); outline-offset: 3px; border-radius: 12px; }
.btn:focus-visible { border-radius: 999px; }

/* ---------- 小章（吉祥物，SVG 由 app.js 画） ---------- */
.mascot { display: inline-block; flex: none; line-height: 0; }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
button.mascot { border: 0; padding: 0; background: none; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--gutter);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 241, 235, .8);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  opacity: 0; transition: opacity .25s;
  border-bottom: 1px solid var(--line);
  margin: 0 calc(50% - 50vw);
}
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; }
.brand:hover .mascot { animation: wiggle .5s; }
.brand-name { font: var(--bold) 20px/1 var(--round); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--coral-ink); background: rgba(253, 227, 219, .6); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }

/* 语言切换：和 App 的分段控件一样，浅色轨道上一个白色滑块 */
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.lang button {
  border: 0; background: none; cursor: pointer; height: 30px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  font: var(--bold) 13px/1 var(--round); color: var(--ink2); transition: background .2s, color .2s, box-shadow .2s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(150, 70, 50, .18); }
.nav-links + .lang { margin-left: 4px; }

/* ---------- 首屏 ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--ink2); font-weight: 500; line-height: 1.4;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); flex: none; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.16; margin: 22px 0 18px; }
.hero h1:lang(en) { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.08; }
.squiggle { position: relative; color: var(--coral-deep); white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 30 0' fill='none' stroke='%23F7B9A9' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.hero-meta { font-size: 13px; color: var(--ink2); }

.hero-visual { position: relative; isolation: isolate; }
.screen {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden; background: var(--media);
  box-shadow: var(--shadow-window);
  transform: rotate(.6deg);
  animation: floaty 7s ease-in-out infinite;
  aspect-ratio: 1440 / 900;
}
@keyframes floaty { 0%, 100% { transform: rotate(.6deg) translateY(0); } 50% { transform: rotate(-.2deg) translateY(-6px); } }
.sticker { position: absolute; z-index: 2; pointer-events: none; height: auto; filter: drop-shadow(0 6px 10px rgba(150, 70, 50, .18)); }
.sticker.s1 { width: 17%; right: -4%; bottom: -8%; transform: rotate(-12deg); animation: bob 5s ease-in-out infinite; }
.sticker.s2 { width: 9%; left: -4%; top: 14%; transform: rotate(8deg); animation: bob 6s ease-in-out -2s infinite; }
.sticker.s3 { width: 6%; left: 8%; bottom: -6%; transform: rotate(-6deg); animation: bob 5.5s ease-in-out -1s infinite; }
/* 英文页换成英文章：圆章换英文圆章，方印换红色英文长章（更宽，和海报同一枚），竖的「专用」没有英文版，不显示 */
html[lang="en"] .sticker.s2 { width: 22%; left: -8%; top: 10%; transform: rotate(-8deg); }
html[lang="en"] .sticker.s3 { display: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.peek { position: absolute; top: -46px; right: 9%; z-index: 0; cursor: pointer; animation: peek 4s ease-in-out infinite; border-radius: 14px; }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-6px) rotate(-6deg); } 60% { transform: translateY(-2px) rotate(4deg); } }

/* ---------- 通用段落 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(28px, 4vw, 48px); }
.kicker {
  display: inline-block; font: var(--bold) 14px/1 var(--round); color: var(--coral-ink);
  background: var(--coral-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; margin-bottom: 14px; }
.section-head p { color: var(--ink2); font-size: 17px; }

/* 滚进来再出现（只在脚本跑起来时才先藏着） */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 介绍视频 ---------- */
.film-section { padding-top: clamp(40px, 6vw, 72px); }
.film {
  position: relative; max-width: 960px; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: #F3DCD3;
  box-shadow: var(--shadow-window); aspect-ratio: 16 / 9;
}
.film video { width: 100%; height: 100%; object-fit: cover; background: #F3DCD3; }
.film-play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-start;
  background: linear-gradient(to top, rgba(59, 42, 38, .16), rgba(59, 42, 38, 0) 35%);
}
.film-play:focus-visible { outline-offset: -6px; border-radius: 22px; }
.film-pill {
  margin: 0 0 20px 20px; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 8px 20px 8px 8px; text-align: left;
  box-shadow: var(--shadow-float); transition: transform .25s var(--spring);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.film-play:hover .film-pill { transform: translateY(-2px) scale(1.03); }
.film-btn {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--coral-deep); color: #fff;
  box-shadow: 0 6px 16px rgba(210, 64, 46, .35), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.film-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.film-label { display: flex; flex-direction: column; gap: 1px; }
.film-label b { font: var(--bold) 15px/1.3 var(--round); color: var(--ink); }
.film-label small { font-size: 12px; color: var(--ink2); }
.film.playing .film-play { display: none; }

/* ---------- 三步 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.step {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .3s var(--spring);
}
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }
.step:hover { transform: translateY(-4px) rotate(-.4deg); }
.step-media { background: var(--media); aspect-ratio: 4 / 3; }
.step-media img, .step-media video { width: 100%; height: 100%; object-fit: cover; }
.step-text { padding: 20px 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.step .num {
  width: 40px; height: 40px; border-radius: 13px; transform: rotate(-4deg);
  display: grid; place-items: center;
  background: var(--coral); color: var(--on-ink); font: var(--bold) 21px/1 var(--round);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(210, 64, 46, .3);
}
.step h3 { font-size: 20px; line-height: 1.3; }
.step p { grid-column: 1 / -1; margin-top: 12px; color: var(--ink2); font-size: 15px; }

/* ---------- 批量 ---------- */
.batch-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.batch-head { text-align: left; margin: 0; }
.batch-head p { font-size: 16px; }
.batch-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.batch-points li {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); padding: 12px 16px;
  color: var(--ink2); font-size: 14px; line-height: 1.6;
}
.batch-points b { display: block; font: var(--bold) 15px/1.4 var(--round); color: var(--ink); margin-bottom: 2px; }
.batch-shot { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-window); transform: rotate(-.5deg); aspect-ratio: 1180 / 820; background: var(--media); }

/* ---------- 试一试 ---------- */
.playground {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow-float);
  padding: clamp(14px, 2.4vw, 24px);
  max-width: 900px; margin: 0 auto;
}
.picker { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.picker::-webkit-scrollbar { display: none; }
.pick {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 116px; padding: 10px 8px 8px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--well); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: center;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s, box-shadow .2s;
}
.pick:first-child { margin-left: auto; }
.pick:last-child { margin-right: auto; }
.pick:hover { transform: translateY(-2px); }
.pick .pick-img { height: 40px; display: grid; place-items: center; }
.pick img { max-height: 40px; max-width: 96px; width: auto; }
.pick span { font: var(--bold) 13px/1.2 var(--round); color: var(--ink2); text-align: center; }
.pick[aria-checked="true"] { background: var(--coral-soft); box-shadow: inset 0 0 0 2px var(--coral-line); }
.pick[aria-checked="true"] span { color: var(--coral-ink); }

.desk {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--canvas);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  padding: clamp(18px, 4vw, 44px) 0;
  cursor: none; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.desk:focus-visible { outline-offset: -3px; border-radius: 20px; }
.paper {
  position: relative; width: min(500px, 82%); aspect-ratio: 595 / 842; margin: 0 auto;
  background: #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 34px rgba(120, 50, 35, .14);
  container-type: inline-size;
}
.paper-title { position: absolute; top: 8%; left: 0; right: 0; text-align: center; font: 700 4.2cqw/1 "Songti SC", "STSong", serif; color: #333; letter-spacing: .2em; }
.paper-title:lang(en) { font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; font-size: 3.8cqw; }
.paper-lines { position: absolute; left: 10.4%; right: 10.4%; top: 17%; }
.paper-lines i { display: block; height: 1.35cqw; background: #E7E2DE; border-radius: 2px; margin-bottom: 2.35cqw; }
.paper-lines i.gap { margin-bottom: 4.6cqw; }
.paper-stamps { position: absolute; inset: 0; }
.paper-stamps img { position: absolute; transform: translate(-50%, -50%); pointer-events: none; animation: drop .14s ease-out; }
@keyframes drop { from { transform: translate(-50%, -50%) scale(1.04); opacity: .6; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.ripple {
  position: absolute; transform: translate(-50%, -50%); border-radius: 12px;
  border: 6px solid rgba(224, 83, 61, .18); pointer-events: none; animation: ripple .45s ease-out forwards;
}
@keyframes ripple { from { transform: translate(-50%, -50%) scale(.96); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.08); opacity: 0; } }

.ghost { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 3; }
.ghost.show { opacity: 1; }
.ghost img { position: absolute; transform: translate(-50%, -50%); max-width: none; opacity: .4; transition: opacity .15s, filter .15s; }
.ghost.on img { opacity: 1; filter: drop-shadow(0 6px 6px rgba(59, 42, 38, .18)); }
.cross { /* 十字光标：跟着鼠标；章贴边停住时，十字还在鼠标上 */
  display: none; position: absolute; left: -8.5px; top: -8.5px; z-index: 3; pointer-events: none; width: 17px; height: 17px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/1.5px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/100% 1.5px no-repeat;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.hint {
  position: absolute; left: -24px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px;
  background: var(--ink); color: var(--on-ink); border-radius: 999px;
  font: 500 12px/1 var(--body); box-shadow: 0 6px 16px rgba(59, 42, 38, .25);
}
.hint.sizing { padding: 0 12px; }
.hint .pct { font-family: var(--round); font-weight: var(--bold); }
.hint .mini { width: 18px; height: 18px; border-radius: 6px; background: var(--coral); position: relative; }
.hint .mini::before, .hint .mini::after { content: ""; position: absolute; top: 8px; width: 2px; height: 3px; border-radius: 1px; background: var(--on-ink); }
.hint .mini::before { left: 5px; } .hint .mini::after { left: 11px; }
.hint .bar { width: 64px; height: 4px; border-radius: 2px; background: rgba(255, 246, 240, .25); overflow: hidden; }
.hint .bar b { display: block; height: 100%; background: var(--on-ink); border-radius: 2px; }

.demo-toast {
  position: absolute; top: 14px; right: 14px; z-index: 4; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow-float);
  transform: translateY(-10px) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; pointer-events: none;
}
.demo-toast.low { top: auto; bottom: 14px; }
.demo-toast.low:not(.show) { transform: translateY(10px) scale(.96); }
.demo-toast.show { transform: none; opacity: 1; }
.demo-toast b { display: block; font: var(--bold) 15px/1.3 var(--round); }
.demo-toast small { color: var(--ink2); font-size: 12px; }

.play-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; }
.size-ctl { display: flex; align-items: center; gap: 4px; background: var(--chip); border-radius: 999px; padding: 3px; }
.icon-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font: var(--bold) 18px/1 var(--round); box-shadow: var(--shadow-card); }
.icon-btn:active { transform: scale(.92); }
.size-val { min-width: 52px; text-align: center; font: var(--bold) 14px/1 var(--round); font-variant-numeric: tabular-nums; }
.play-count { color: var(--ink2); font-size: 14px; }
.play-actions { margin-left: auto; display: flex; gap: 8px; }
.load-error { text-align: center; color: var(--ink2); padding: 40px; }

/* ---------- 特点 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 26px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { font-size: 20px; line-height: 1.3; }
.card p { color: var(--ink2); font-size: 15px; }
.card.split { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; padding: 1px 1px 1px 28px; background: var(--paper); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.card.split .split-text { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; }
.card.split img, .card.split video { width: 100%; border-radius: 0 21px 21px 0; background: var(--paper); aspect-ratio: 720 / 570; }
.card.full { grid-column: 1 / -1; }
.card .still { margin: 14px auto -10px; width: 100%; border-radius: 12px; }
.card:nth-child(3n+2) { transition-delay: .06s; }
.card:nth-child(3n) { transition-delay: .12s; }

.ruler { margin-top: auto; padding-top: 18px; position: relative; }
.ruler img { width: 70%; margin: 0 auto; }
.ruler .ticks {
  height: 14px; margin: 10px 15% 0; border-top: 2px solid var(--ink3);
  background: repeating-linear-gradient(90deg, var(--ink3) 0 1.5px, transparent 1.5px 10%);
  background-size: 100% 8px; background-repeat: no-repeat;
}
.ruler-label { display: block; text-align: center; font: var(--bold) 13px/1 var(--round); color: var(--ink2); margin-top: 6px; }

.files { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.file { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.file small { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.sheet {
  position: relative; width: 64px; height: 84px; background: #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(150, 70, 50, .12);
  background-image: repeating-linear-gradient(180deg, transparent 0 14px, #ECE6E2 14px 17px);
  background-size: 70% 100%; background-position: center 10px; background-repeat: no-repeat;
}
.sheet img { position: absolute; width: 46px; right: 4px; bottom: 16px; transform: rotate(-4deg); }
.file.stamped .sheet { animation: thump 3.2s ease-in-out infinite; }
@keyframes thump { 0%, 70%, 100% { transform: none; } 78% { transform: scale(1.06) rotate(-2deg); } 86% { transform: scale(.98); } }
.arrow { font: var(--bold) 22px/1 var(--round); color: var(--coral); }

.local { flex-direction: row; align-items: center; gap: 20px; background: var(--butter); }
.local h3 { color: var(--butter-title); }
.local p { color: var(--butter-ink); }
.local-icon { flex: none; width: 72px; height: 72px; border-radius: 22px; background: var(--butter-well); color: var(--butter-ink); display: grid; place-items: center; }
.local-icon svg { width: 44px; height: 44px; }
.local .more {
  margin-left: auto; flex: none; text-decoration: none; font: var(--bold) 14px/1 var(--round); color: var(--butter-title);
  background: var(--butter-well); padding: 10px 16px; border-radius: 999px; transition: transform .2s var(--spring);
}
.local .more:hover { transform: translateX(3px); }

/* ---------- 工坊 ---------- */
.workshop-shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-window); max-width: 1000px; margin: 0 auto; aspect-ratio: 1320 / 888; background: var(--media); }
.gallery { margin-top: clamp(32px, 4vw, 56px); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tab {
  border: 0; cursor: pointer; height: 36px; padding: 0 16px; border-radius: 999px;
  font: var(--bold) 14px/1 var(--round); background: var(--chip); color: var(--ink2); transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--coral-soft); color: var(--coral-ink); box-shadow: inset 0 0 0 1.5px var(--coral-line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tpl {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  animation: pop .35s var(--spring) both;
}
.tpl .tpl-img {
  height: 92px; border-radius: 12px; background: var(--well); display: grid; place-items: center; margin-bottom: 8px;
}
.tpl img { max-height: 70px; max-width: 86%; width: auto; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.tpl:hover img { transform: scale(1.12) rotate(-3deg); }
.tpl b { font: var(--bold) 15px/1.3 var(--round); }
.tpl small { font-size: 12px; color: var(--ink2); line-height: 1.5; text-wrap: pretty; }
.tpl .mm { color: var(--ink2); opacity: .8; font-variant-numeric: tabular-nums; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- 小章 ---------- */
.meet-inner {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 32px; align-items: center;
}
.meet h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.meet p { color: var(--ink2); }
.meet .tip { margin-top: 12px; font: var(--bold) 14px/1 var(--round); color: var(--coral-ink); }
.moods { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mood {
  border: 0; background: var(--well); border-radius: 20px; padding: 16px 12px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 88px; min-width: 88px;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.mood small { font: var(--bold) 13px/1 var(--round); color: var(--ink2); }
.mood:hover { transform: translateY(-4px); background: var(--coral-soft); }
.mood:active .mascot, .mascot.boing { animation: boing .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boing { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1); } }

/* ---------- 隐私 ---------- */
.privacy {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--butter); border-radius: 28px; padding: clamp(24px, 4vw, 48px);
}
.privacy .kicker { background: var(--butter-well); color: var(--butter-title); }
.privacy h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--butter-title); margin-bottom: 14px; }
.privacy-copy p { color: var(--butter-ink); font-size: 16px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--butter-well); border-radius: 18px; padding: 14px 16px;
  color: var(--butter-ink); font-size: 14px; line-height: 1.55;
}
.privacy-list b { display: block; font: var(--bold) 15px/1.4 var(--round); color: var(--butter-title); margin-bottom: 2px; }
.pv-icon { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--butter); color: var(--butter-ink); display: grid; place-items: center; }
.pv-icon svg { width: 22px; height: 22px; }

/* ---------- 常见问题 ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font: var(--bold) 17px/1.4 var(--round);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); color: var(--ink2); font-size: 18px; font-weight: 400; transition: transform .25s, background .2s;
}
.faq summary:hover::after { background: var(--coral-soft); color: var(--coral-ink); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--coral-soft); color: var(--coral-ink); }
.faq details p { color: var(--ink2); padding: 0 0 20px; font-size: 15px; max-width: 40em; }
.faq details a { color: var(--coral-ink); text-underline-offset: 3px; }

/* ---------- 下载 ---------- */
.download { padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(56px, 8vw, 96px); }
.download-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--card); border-radius: 32px; box-shadow: var(--shadow-float);
  padding: clamp(36px, 6vw, 64px) var(--gutter);
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(closest-side, var(--coral-soft), transparent); z-index: 0;
}
.download-card > * { position: relative; }
.download-card .big { animation: peek 3.6s ease-in-out infinite; margin-bottom: 14px; }
.download-card h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.download-card p { color: var(--ink2); }
.download-card .btn { margin: 28px 0 14px; }
.req { font-size: 14px; }
.install {
  list-style: none; margin: 28px auto 0; padding: 0; max-width: 640px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left;
}
.install li {
  background: rgba(255, 255, 255, .78); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.install li { display: flex; align-items: flex-start; gap: 10px; }
.install b {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; margin-top: -1px;
  background: var(--coral-soft); color: var(--coral-ink); font: var(--bold) 13px/1 var(--round);
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; align-items: center;
  color: var(--ink2); font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand b { display: block; font: var(--bold) 15px/1.3 var(--round); color: var(--ink); }
.footer-brand small { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.footer-links a { text-decoration: none; padding: 6px 10px; border-radius: 10px; }
.footer-links a:hover { color: var(--coral-ink); background: rgba(253, 227, 219, .6); }
.fine { grid-column: 1 / -1; font-size: 12px; color: var(--ink2); }

/* ---------- 窄屏 ---------- */
@media (max-width: 920px) {
  .batch-inner { grid-template-columns: 1fr; }
  .batch-head { text-align: center; }
  .batch-points { text-align: left; }
  .batch-shot { transform: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .lead { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.split { grid-template-columns: 1fr; padding: 1px; }
  .card.split img, .card.split video { max-width: 560px; margin: 0 auto; border-radius: 0 0 21px 21px; }
  .hero-visual { margin-top: 28px; }
  .sticker.s1 { right: -2%; }
  .sticker.s2 { left: -2%; }
  .card.split .split-text { padding: 24px 24px 0; }
  .meet-inner { grid-template-columns: 1fr; text-align: center; }
  .privacy { grid-template-columns: 1fr; }
  .nav-links a { padding: 6px 7px; font-size: 14px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15.5px; }
  .nav { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand-name { font-size: 18px; }
  .hero h1 { margin-top: 18px; }
  .hero h1:lang(en) { font-size: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lead { text-wrap: balance; }
  .section-head p { font-size: 16px; }
  .tab { padding: 0 12px; font-size: 13px; }
  .moods { justify-content: center; }
  .mood { flex: 0 1 calc((100% - 16px) / 3); min-width: 0; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card.split, .card.full { grid-column: auto; }
  .local { flex-direction: column; text-align: center; }
  .local .more { margin: 4px auto 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tpl { padding: 10px 10px 10px; }
  .tpl .tpl-img { height: 76px; }
  .pick { width: 100px; }
  .play-bar { row-gap: 8px; }
  .play-count { order: 3; width: 100%; text-align: center; font-size: 13px; }
  .peek { top: -34px; }
  .peek, .peek svg { width: 48px !important; height: 48px !important; }
  .film { border-radius: 16px; }
  .film-pill { margin: 0 0 10px 10px; padding: 5px 14px 5px 5px; gap: 8px; }
  .film-btn { width: 36px; height: 36px; }
  .film-btn svg { width: 16px; height: 16px; margin-left: 2px; }
  .film-label b { font-size: 13px; }
  .film-label small { font-size: 11px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; padding: 16px 0; }
  .install { grid-template-columns: 1fr; }
  .install li { align-items: center; }
  .btn-large { height: 56px; padding: 0 26px; font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* 触屏：没有悬停的章，点一下直接盖；按钮放大好点 */
.for-touch { display: none; }
@media (hover: none) {
  .for-mouse { display: none; }
  .for-touch { display: inline; }
  .desk { cursor: auto; }
}
@media (pointer: coarse) {
  .icon-btn { width: 40px; height: 40px; }
  .btn-chip { height: 40px; padding: 0 16px; }
  .lang button { height: 34px; min-width: 42px; }
}

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