/* ============================================================
   Magic Storybook 魔法绘本 — 官网样式
   设计语言：睡前故事工坊（暖奶油纸张 + 墨棕手绘感 + 番茄珊瑚）
   ============================================================ */

:root {
  --paper: #FBF3E4;
  --paper-2: #F3E6CC;
  --card: #FFFDF6;
  --ink: #3D2B1F;
  --ink-soft: #7A6248;
  --ink-faint: rgba(61, 43, 31, .14);
  --coral: #E8613C;
  --coral-deep: #C94E2C;
  --honey: #F5B63F;
  --leaf-g: #7BA05B;
  --night: #2E3A59;
  --night-deep: #222B4B;

  /* 字体全部本地自托管（vendor/fonts/fonts.css），不再依赖 Google Fonts
     全站统一阿里妈妈方圆体（阿里永久免费商用）｜拉丁 Fraunces（SIL OFL）
     标题与正文同族，层级靠字重区分：正文 400 / 标题·按钮·眉题 600 / logo 700
     --font-display 与 --font-body 故意分开保留：将来要把标题换成别的字体，只改上面一行 */
  --font-display: "Alimama FangYuan", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Alimama FangYuan", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-latin: "Fraunces", "Georgia", serif;

  --radius: 18px;
  --shadow-sticker: 4px 5px 0 rgba(61, 43, 31, .9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 纸张噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

::selection { background: var(--coral); color: var(--card); }

img, svg { display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container { width: min(1080px, 90vw); margin: 0 auto; }
.container-narrow { width: min(760px, 90vw); }

/* ---------- 标题体系 ---------- */
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coral);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  /* 方圆体字面比站酷快乐体宽，原来 .35em 的字距会显得散，收到 .2em */
  letter-spacing: .2em;
  margin-bottom: .9rem;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.28; }

h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin-bottom: 1.1rem; }

.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.9vw, 1.13rem);
  max-width: 40em;
}
.lead strong { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .08em;
  color: #FFF8EC;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 14px 18px 15px 19px;
  padding: .78em 1.5em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sticker);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 7px 9px 0 rgba(61, 43, 31, .9); background: var(--coral-deep); }
.btn:active { transform: translate(1px, 2px); box-shadow: 2px 2px 0 rgba(61, 43, 31, .9); }
.btn-small { padding: .5em 1.15em; font-size: .95rem; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .3, 1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 243, 228, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--ink-faint);
}
.nav-inner {
  width: min(1160px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: .65rem 0;
}
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.logo-zh { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.logo-en { font-family: var(--font-latin); font-style: italic; font-size: .82rem; color: var(--ink-soft); margin-top: .3em; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font-size: .95rem; text-decoration: none; color: var(--ink-soft);
  padding: .2em 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--coral); border-color: var(--coral); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vh, 5.5rem) 0 clamp(3.5rem, 8vh, 6rem);
  background:
    radial-gradient(46rem 30rem at 82% 8%, rgba(245, 182, 63, .18), transparent 60%),
    radial-gradient(40rem 28rem at 8% 90%, rgba(232, 97, 60, .08), transparent 60%);
  overflow: hidden;
}
.hero-inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.hero h1 .hl { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .hl .scribble {
  position: absolute;
  left: -2%; right: -2%; bottom: -.34em;
  width: 104%; height: .42em;
  z-index: -1;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  max-width: 34em;
  margin-bottom: 1.8rem;
}
.hero-sub strong { color: var(--coral-deep); }

/* 表单 */
.field-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 230px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px 16px 13px 17px;
  padding: .72em 1em;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  min-width: 0;
}
.signup-form input::placeholder { color: #B49A77; }
.signup-form input:focus { box-shadow: 3px 4px 0 rgba(61, 43, 31, .55); }
.signup-form input.err { border-color: var(--coral); background: #FFF1EA; }

.form-note { font-size: .86rem; color: var(--ink-soft); margin-top: .7rem; }
.form-note em { font-style: normal; color: var(--coral-deep); font-weight: 700; }
.form-status { font-size: .95rem; margin-top: .6rem; min-height: 1.5em; color: var(--leaf-g); font-weight: 600; }
.form-status a { color: var(--coral-deep); }

.hero-alt { margin-top: 1.3rem; font-size: .95rem; color: var(--ink-soft); }
.hero-alt a { color: var(--coral-deep); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- 涂鸦装饰 ---- */
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; opacity: .9; }
.d-star1 { width: 26px; top: 16%; left: 6%; fill: var(--honey); animation: float 7s ease-in-out infinite; }
.d-star2 { width: 16px; top: 64%; left: 2.5%; fill: var(--coral); animation: float 9s ease-in-out 1.2s infinite; }
.d-star3 { width: 20px; top: 12%; right: 4%; fill: var(--leaf-g); animation: float 8s ease-in-out .6s infinite; }
.d-moon { width: 44px; top: 9%; left: 42%; animation: float 10s ease-in-out .3s infinite; }
.d-cloud { width: 74px; bottom: 12%; right: 3%; animation: float 11s ease-in-out 1.8s infinite; }
.d-swirl { width: 40px; bottom: 20%; left: 44%; animation: spin 22s linear infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---- hero 宽图翻页 ---- */
.hero-stage { text-align: center; }
.hero-book-tilt { position: relative; transform: rotate(-3deg); animation: hover 6s ease-in-out infinite; }
@keyframes hover {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-2.2deg) translateY(-12px); }
}

/* 宽幅跨页开本：整张横版插画横跨左右两页，从中间书脊翻页 */
.hero-book--wide {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.49 / 1;
  margin: 0 auto;
  filter: drop-shadow(14px 22px 24px rgba(61, 43, 31, .28));
  transition: transform .95s cubic-bezier(.4, .06, .28, 1);
}
/* 合起来的书：只露封面，封面整体居中；翻开时滑回跨页位置 */
.hero-book--wide.closed { transform: translateX(-25%); }
.hb-right {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 50%;
  background: #2E3A59;
}
/* 右半页不能 overflow:hidden（翻页叶要甩出书脊到左半页）；透视原点放在书脊上，翻页才有立体感 */
.hb-right { border-radius: 3px 14px 14px 3px; perspective: 1500px; perspective-origin: 0 50%; }
/* 合书时容器左半虽无内容但仍占位，去掉命中避免压住左侧表单，封面区保持可交互 */
.hero-book--wide.closed { pointer-events: none; }
.hero-book--wide.closed .hb-right { pointer-events: auto; }
.hb-base { position: absolute; inset: 0; background: #2E3A59; border-radius: 3px 14px 14px 3px; overflow: hidden; }

/* 半页里显示整张宽图的一半：图盒 = 全书宽 × 全书高，与原图同比例，正好不裁切 */
.hw-half {
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hw-l { left: 0; }
.hw-r { left: -100%; }

/* 封面：合书状态下唯一可见的一面 */
.hb-cover { background: #2E3A59; }
.hb-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 合书 riffle：翻叶过渡临时加快 */
.hb-right.closing .hb-leaf { transition-duration: .5s; }

.hb-leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(.42, .05, .3, 1);
  will-change: transform;
}
.hb-leaf.flipped { transform: rotateY(-179deg); }
.hb-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 3px 14px 14px 3px;
  background: #FDF6E7;
}
/* 落到左半页的背面页：显示下一张宽图的左半，与左页底自然叠放 */
.hb-face.hb-backface { transform: rotateY(180deg); border-radius: 14px 3px 3px 14px; box-shadow: inset -14px 0 22px -14px rgba(0,0,0,.55); }
.hb-spine {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 45%, rgba(0,0,0,.28));
  pointer-events: none;
}
/* 翻页瞬间的受光面 */
.hb-leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 3px 14px 14px 3px;
  background: linear-gradient(100deg, rgba(0, 0, 0, .17), transparent 46%);
  opacity: 0;
  transition: opacity .5s;
}
.hb-leaf.flipping::after { opacity: 1; }
.book-shadow {
  width: 72%; height: 16px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 43, 31, .22), transparent);
  transition: width .95s cubic-bezier(.4, .06, .28, 1);
}
.hero-book--wide.closed + .book-shadow { width: 38%; }
.hero-stage-caption {
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-size: .95rem;
  letter-spacing: .14em;
  margin-top: .4rem;
}
/* 桌面可悬停：提示交互方式；触屏：显示原提示 */
.hero-stage-caption .cap-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-stage-caption .cap-hover { display: inline; }
  .hero-stage-caption .cap-touch { display: none; }
}

/* ============================================================
   跑马灯
   ============================================================ */
.marquee {
  background: var(--honey);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden;
  padding: .55rem 0;
  margin: .6rem 0 -1rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .2em;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   怎么玩：三步成书 + 互动翻书
   ============================================================ */
.how { padding: clamp(3.5rem, 8vh, 5.5rem) 0; }
.how h2 { text-align: center; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.step-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px 22px 17px 21px;
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: 5px 6px 0 rgba(61, 43, 31, .8);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-4px) rotate(.4deg); box-shadow: 8px 10px 0 rgba(61, 43, 31, .8); }
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFF8EC;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 48% 52% 50% 50%;
  margin-bottom: 1rem;
}
.step-num--b { background: var(--honey); color: var(--ink); }
.step-num--c { background: var(--leaf-g); }
.step-card h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.step-card p { font-size: .93rem; color: var(--ink-soft); }
.step-opt {
  font-size: .72rem;
  color: var(--leaf-g);
  border: 1.5px solid var(--leaf-g);
  border-radius: 255px 10px 225px 10px / 10px 225px 10px 255px;
  padding: .08em .6em;
  vertical-align: .18em;
  margin-left: .35em;
  white-space: nowrap;
}
.how-note { text-align: center; margin-top: 2rem; font-size: .93rem; color: var(--ink-soft); }
.how-demo { margin-top: clamp(3rem, 7vh, 4.6rem); text-align: center; }
.how-demo .lead { margin: 0 auto 2.6rem; }

/* ============================================================
   玩法：创想绘本
   ============================================================ */
.modes { padding: clamp(3.5rem, 8vh, 5.5rem) 0; }
.modes h2 { text-align: center; }
.modes .lead { text-align: center; margin: .3rem auto 0; }
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
}
.mode-grid--single { grid-template-columns: minmax(0, 680px); justify-content: center; margin-top: 2.4rem; }
.mode-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 2.1rem 1.9rem 1.9rem;
  box-shadow: 7px 9px 0 rgba(61, 43, 31, .85);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mode-card:hover { transform: translateY(-5px) rotate(0deg) !important; box-shadow: 10px 13px 0 rgba(61, 43, 31, .85); }
.tilt-l { transform: rotate(-.8deg); }

.mode-icon {
  width: 56px; height: 56px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px 20px 15px 21px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.mode-icon svg { width: 36px; height: 36px; }

.mode-card h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.mode-card p { font-size: .97rem; color: var(--ink-soft); }
.mode-card p strong { color: var(--ink); }

.idea-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.idea-chips span {
  font-size: .84rem;
  background: var(--paper-2);
  border: 1.5px solid var(--ink-faint);
  border-radius: 255px 12px 225px 12px / 12px 225px 12px 255px;
  padding: .28em .85em;
  color: var(--ink);
}

/* ============================================================
   互动翻书（怎么玩下半段）
   ============================================================ */
.book-scene { position: relative; }

.flipbook {
  position: relative;
  width: min(680px, 92vw);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  perspective: 2000px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .85s cubic-bezier(.4, .06, .28, 1);
}
/* 合起来的书：只露封面，封面整体居中；翻开时滑回跨页位置 */
.flipbook.closed { transform: translateX(-25%); }
/* 书桌上的垫板（合书时转正、与封面边缘对齐，只露一圈整齐的封底边） */
.flipbook::before, .flipbook::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-2);
  z-index: -1;
  transition: left .85s cubic-bezier(.4, .06, .28, 1), transform .85s cubic-bezier(.4, .06, .28, 1);
}
.flipbook::before { transform: rotate(-2.4deg); }
.flipbook::after { transform: rotate(1.8deg); background: var(--card); }
.flipbook.closed::before, .flipbook.closed::after { left: calc(50% - 6px); transform: rotate(0deg); }

/* 右底页：封底 */
.page-base {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 50%;
  z-index: 0;
  overflow: hidden;
  background: #FDF6E7;
  border: 2px solid var(--ink);
  border-radius: 3px 12px 12px 3px;
  box-shadow: inset 12px 0 20px -12px rgba(0,0,0,.4);
}

/* 书脊 */
.spine {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 30;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.06) 45%, rgba(0,0,0,.25));
  pointer-events: none;
}

.leaf {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4, .06, .28, 1);
  will-change: transform;
}
.leaf.flipped { transform: rotateY(-179deg); }
.leaf.settled, .hb-leaf.settled { visibility: hidden; }
.no-anim .leaf, .no-anim .hb-leaf { transition: none !important; }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 3px 12px 12px 3px;
  overflow: hidden;
  background: #FFFDF6;
  border: 2px solid var(--ink);
}
.face.back { transform: rotateY(180deg); border-radius: 12px 3px 3px 12px; }

/* z-index 由 JS 按叶序分配：未翻的叶靠前在上，翻过的叶按翻动顺序叠在左半页 */

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #FFFDF6;
}
.page-art { width: 100%; height: 54%; object-fit: cover; display: block; }
.page-cover .page-art { height: 100%; }
.page-cover { background: #2E3A59; }

.cover-title {
  position: absolute;
  left: 0; right: 0; top: 9%;
  text-align: center;
  color: #FFF3D6;
}
.cover-title b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6.4vw, 2.2rem);
  letter-spacing: .12em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.cover-title span {
  display: block;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: .82rem;
  opacity: .85;
  margin-top: .3em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.page-corner {
  position: absolute;
  bottom: 4.5%; right: 6%;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: .68rem;
  color: rgba(255, 243, 214, .75);
}

.page-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.15rem 1.6rem;
  position: relative;
}
.page-text .zh {
  font-size: clamp(.94rem, 3.4vw, 1.08rem);
  line-height: 2.05;
  letter-spacing: .02em;
}
.page-text ruby rt {
  font-size: .48em;
  color: #C0A473;
  font-family: var(--font-latin);
  letter-spacing: .04em;
}
.page-text .en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.page-no {
  position: absolute;
  bottom: .55rem; right: .9rem;
  font-family: var(--font-latin);
  font-size: .78rem;
  color: #C0A473;
}
.page-end {
  position: absolute;
  bottom: .55rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .5em;
  color: var(--coral);
}
/* 封底 */
.page-backcover { background: var(--night); }
.page-backcover .page-art { height: 58%; }
.backcover-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: 0 1rem 1.2rem;
}
.backcover-text b {
  font-family: var(--font-display);
  font-weight: 600;
  color: #FFF3D6;
  font-size: clamp(.98rem, 2.6vw, 1.2rem);
  letter-spacing: .1em;
}
.backcover-text span {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: .72rem;
  color: rgba(255, 243, 214, .65);
}

/* 翻页瞬间的高光阴影 */
.leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0,0,0,.16), transparent 42%);
  opacity: 0;
  transition: opacity .5s;
}
.leaf.flipping::after { opacity: 1; }

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 1.7rem;
}
.book-btn {
  width: 46px; height: 46px;
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px 15px 12px 16px;
  box-shadow: 3px 4px 0 rgba(61, 43, 31, .85);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.book-btn:hover:not(:disabled) { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 rgba(61, 43, 31, .85); }
.book-btn:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 2px 0 rgba(61, 43, 31, .85); }
.book-btn:disabled { opacity: .35; cursor: default; }

.book-dots { display: flex; gap: .5rem; }
.book-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background .25s, transform .25s;
}
.book-dots i.on { background: var(--coral); transform: scale(1.25); }

.demo-note { margin-top: 1.3rem; font-size: .85rem; color: var(--ink-soft); }

/* ============================================================
   产品亮点
   ============================================================ */
.features { padding: clamp(3.5rem, 8vh, 5.5rem) 0; }
.features h2 { text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 920px;
  margin: 2.6rem auto 0;
}
.feature-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px 22px 17px 21px;
  padding: 1.6rem 1.5rem;
  box-shadow: 5px 6px 0 rgba(61, 43, 31, .8);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 8px 10px 0 rgba(61, 43, 31, .8); }
.f-icon {
  width: 52px; height: 52px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px 18px 13px 19px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.f-icon svg { width: 34px; height: 34px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.feature-card p { font-size: .92rem; color: var(--ink-soft); }
.feature-card p strong { color: var(--ink); }

/* ============================================================
   路线图
   ============================================================ */
.roadmap {
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
  background: rgba(245, 182, 63, .13);
  border-top: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
}
.roadmap h2 { text-align: center; }
.roadmap .lead { text-align: center; margin: .3rem auto 0; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 920px;
  margin: 2.6rem auto 0;
}
.roadmap-note { text-align: center; margin-top: 2.2rem; font-size: .93rem; color: var(--ink-soft); }
.roadmap-note a {
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: clamp(4rem, 9vh, 6rem) 0; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 2.2rem; }
.faq-list details {
  border-bottom: 1.5px solid var(--ink-faint);
  padding: 1.1rem .4rem;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: .4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-latin);
  font-size: 1.35rem;
  color: var(--coral);
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--ink-soft); font-size: .96rem; padding-top: .6rem; max-width: 40em; }

/* ============================================================
   预约 / 联系
   ============================================================ */
.signup { padding: 1rem 0 clamp(4.5rem, 10vh, 7rem); }
.signup-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 10px 0 rgba(61, 43, 31, .85);
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
.signup-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.signup-lead { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: .98rem; }

.wechat-box {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.qr-wrap {
  width: 128px; height: 128px;
  margin: 0 auto .9rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: cover; }
.qr-wrap.no-qr img { display: none; }
.qr-fallback { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.qr-fallback svg { width: 44px; height: 44px; }
.qr-fallback span { font-size: .72rem; color: var(--ink-soft); }
.qr-wrap:not(.no-qr) .qr-fallback { display: none; }

.wechat-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: .92rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.wechat-id-row b {
  font-family: var(--font-latin);
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.copy-btn {
  font-family: inherit;
  font-size: .8rem;
  color: var(--coral-deep);
  background: none;
  border: 1.5px solid var(--coral);
  border-radius: 8px 10px 9px 11px;
  padding: .14em .7em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.copy-btn:hover { background: var(--coral); color: #FFF8EC; }
.wechat-note { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1.5px solid var(--ink-faint);
  text-align: center;
  padding: 2.2rem 1rem 2.6rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.footer b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.footer-small { font-size: .8rem; margin-top: .4rem; opacity: .8; }
.footer-privacy { font-size: .74rem; margin-top: .55rem; opacity: .62; }

/* ============================================================
   GSAP 模式（main.js 检测到 GSAP 后给 <html> 挂 .gsap，
   这些动效改由 JS 驱动；无 GSAP 时自动回落到上面的 CSS 行为）
   ============================================================ */
/* 入场显现、翻书叶、跑马灯的 CSS 过渡/动画交给 GSAP 接管 */
.gsap .reveal { transform: none; transition: none; }
.gsap .leaf, .gsap .hb-leaf { transition: none; }
.gsap .marquee-track { animation: none; }
/* 磁性按钮接管位移后，hover/active 的 transform 位移与过渡移除（阴影过渡保留） */
.gsap .btn { transition: box-shadow .18s ease, background .18s ease; }
.gsap .btn:hover, .gsap .btn:active { transform: none; }
.gsap .book-btn { transition: box-shadow .15s, opacity .2s; }
.gsap .book-btn:hover:not(:disabled), .gsap .book-btn:active:not(:disabled) { transform: none; }

/* 拖拽翻页：横向手势交给 JS，纵向滚动留给浏览器 */
.flipbook { touch-action: pan-y; }

/* FAQ 答案高度动画需要裁切 */
.faq-list details p { overflow: hidden; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; margin-top: 2.6rem; }
  .hero-sub { margin-inline: auto; }
  .field-row { justify-content: center; }
  .step-card { padding: 1.4rem 1.15rem 1.3rem; }
  .signup-card { grid-template-columns: 1fr; }
  .wechat-box { max-width: 420px; margin: 0 auto; width: 100%; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  body { line-height: 1.72; }
  .hero { padding-top: 2.4rem; }
  .hero h1 br { display: none; }
  .d-moon, .d-swirl { display: none; }
  .field-row .btn { flex: 1 1 100%; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-grid--single { grid-template-columns: 1fr; }
  .mode-card.tilt-l { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .page-text { padding: .55rem .75rem 1.2rem; gap: .3rem; }
  .flipbook { aspect-ratio: 1.42 / 1; }
  .page-art { height: 40%; }
  .page-backcover .page-art { height: 52%; }
  .page-text .zh { font-size: clamp(.74rem, 3.3vw, .92rem); line-height: 1.9; }
  .page-text .en { font-size: .58rem; }
  .page-text ruby rt { font-size: .52em; }
  .page-no { font-size: .66rem; }
  .page-end { font-size: .74rem; }
  .cover-title b { font-size: clamp(1.15rem, 5.6vw, 1.6rem); }
  .book-btn { width: 42px; height: 42px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-book-tilt, .doodle { animation: none !important; }
  .hb-leaf, .leaf,
  .hero-book--wide, .flipbook, .flipbook::before, .flipbook::after,
  .book-shadow { transition: none; }
}
