/* ━━━ 秘密花园 SecretGarden.love ━━━ */

:root {
  --cream: #fbf7f0;
  --ivory: #f4ecdf;
  --ink: #43382e;
  --ink-soft: #7a6c5d;
  --accent: #d78a8a;          /* 玫瑰 — 可由 Tweaks 调整 */
  --accent-deep: color-mix(in oklab, var(--accent) 78%, #5a3030);
  --accent-soft: color-mix(in oklab, var(--accent) 38%, #fff);
  --accent-faint: color-mix(in oklab, var(--accent) 14%, var(--cream));
  --gold: #c2a06b;
  --serif: "Noto Serif SC", serif;
  --hand: "Ma Shan Zheng", cursive;
  --latin: "Cormorant Garamond", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(120vw 80vh at 70% -10%, var(--accent-faint), transparent 60%),
    radial-gradient(90vw 60vh at 10% 30%, color-mix(in oklab, var(--gold) 10%, var(--cream)), transparent 55%),
    var(--cream);
  overflow-x: hidden;
  cursor: default;
}
::selection { background: var(--accent-soft); }

/* 背景层 */
#petalCanvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 5;
}
#cursorGlow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px;
  margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent), color-mix(in oklab, var(--accent) 6%, transparent) 42%, transparent 68%);
  pointer-events: none; z-index: 1; opacity: 0; filter: blur(10px);
  will-change: transform;
  transition: opacity .8s ease;
}
/* 电影感暗角：仅在边缘极淡地压暗，中心完全通透 */
.vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(125vmax 95vmax at 50% 42%, transparent 58%, color-mix(in srgb, var(--ink) 13%, transparent) 100%);
  mix-blend-mode: multiply; opacity: .7;
}
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ━━━ 导航 ━━━ */
#topNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background .5s ease, box-shadow .5s ease, padding .5s ease;
}
#topNav.scrolled {
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.brand-hand { font-family: var(--hand); font-size: 26px; color: var(--accent-deep); }
.brand-latin { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.nav-links { display: flex; gap: clamp(11px, 1.7vw, 26px); align-items: center; }
.nav-links a.active { color: var(--accent-deep); }
.nav-links a.active::after { width: 100%; left: 0; }
.nav-links a.nav-cta {
  border: 1px solid color-mix(in srgb, var(--accent-deep) 55%, transparent);
  border-radius: 999px; padding: 8px 20px; color: var(--accent-deep);
  white-space: nowrap; transition: color .35s ease, background .35s ease, border-color .35s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--accent-deep); color: var(--cream); }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; letter-spacing: .12em;
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--accent-deep); transition: width .35s ease, left .35s ease;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a:hover::after { width: 100%; left: 0; }
#navBloom {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; opacity: 0; transition: opacity .6s ease;
}
#topNav.scrolled #navBloom { opacity: .9; }

/* ━━━ 首屏 ━━━ */
.hero {
  min-height: 100vh; position: relative; z-index: 2; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
/* 缓慢漂移的体积光，让首屏背景像有阳光透过花叶缓缓呼吸 */
.hero::before {
  content: ""; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 30vw at 32% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(34vw 28vw at 72% 64%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 62%);
  filter: blur(20px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: lightDrift 18s ease-in-out infinite alternate; }
  @keyframes lightDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: .9; }
    50%  { transform: translate3d(3%, 2%, 0) scale(1.08);   opacity: 1; }
    100% { transform: translate3d(-1%, 3%, 0) scale(1.04);  opacity: .85; }
  }
}
.hero-inner { will-change: transform, opacity; }
.hero-eyebrow { letter-spacing: .5em; font-size: clamp(13px, 1.4vw, 16px); color: var(--ink-soft); text-indent: .5em; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1vh, 14px); margin: 28px 0; }
.hero-title .hand {
  font-family: var(--hand); font-weight: 400;
  font-size: clamp(64px, 13vw, 168px); line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 2px 40px color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title .hand.reveal-load {
    animation: riseIn 1.3s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards,
               titleBreath 7s ease-in-out 2.2s infinite;
  }
  @keyframes titleBreath {
    0%, 100% { text-shadow: 0 2px 36px color-mix(in srgb, var(--accent) 28%, transparent); }
    50%      { text-shadow: 0 3px 58px color-mix(in srgb, var(--accent) 46%, transparent); }
  }
}
.hero-title .latin {
  font-family: var(--latin); font-weight: 500;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .14em; color: var(--ink-soft);
}
.hero-title .latin i { color: var(--accent-deep); }
.hero-sub { font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-soft); letter-spacing: .28em; }

.scroll-hint {
  position: absolute; bottom: clamp(28px, 5vh, 46px); left: 0; right: 0; margin-inline: auto;
  width: max-content; display: flex; flex-direction: column; align-items: center; gap: 13px;
  color: var(--ink-soft);
}
.hint-text {
  font-size: 12px; letter-spacing: .5em; padding-left: .5em; /* 抵消尾随字距 → 真正居中 */
  opacity: .85;
}
.hint-sub {
  font-family: var(--hand); font-size: 17px; letter-spacing: .08em;
  color: var(--accent-deep); opacity: .9;
}
.hint-line {
  position: relative; width: 1px; height: clamp(40px, 7vh, 58px);
  background: linear-gradient(var(--accent-deep), color-mix(in srgb, var(--accent-deep) 8%, transparent));
  overflow: visible;
}
.hint-line i {
  position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent-deep);
  box-shadow: 0 0 9px color-mix(in srgb, var(--accent-deep) 75%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hint-line i { animation: hintDot 2.3s cubic-bezier(.55,.05,.35,1) infinite; }
  @keyframes hintDot {
    0%   { transform: translateY(-6px); opacity: 0; }
    18%  { opacity: 1; }
    72%  { opacity: 1; }
    100% { transform: translateY(54px); opacity: 0; }
  }
}

/* 入场动画（基础态为可见，仅在允许动效时执行） */
@media (prefers-reduced-motion: no-preference) {
  .reveal-load { opacity: 0; transform: translateY(26px); animation: riseIn 1.4s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0s); }
  @keyframes riseIn { to { opacity: 1; transform: none; } }
}

/* ━━━ 绽放（滚动驱动） ━━━ */
.bloom-wrap { height: 460vh; position: relative; z-index: 2; }
.bloom-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bloom-dawn {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(120vw 90vh at 50% 110%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 60%),
    radial-gradient(80vw 60vh at 50% -20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
}
.bloom-sparkles { position: absolute; inset: 12vh 18vw; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.bloom-sparkles.on { opacity: 1; }
.bloom-sparkles span {
  position: absolute; left: var(--sx); top: var(--sy); width: 7px; height: 7px;
  background: color-mix(in srgb, var(--gold) 80%, #fff);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 70%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .bloom-sparkles span { animation: twinkle 2.1s ease-in-out infinite; animation-delay: var(--sd, 0s); }
  @keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0deg); opacity: .25; } 50% { transform: scale(1.5) rotate(40deg); opacity: 1; } }
}
.bloom-halo {
  position: absolute; left: 50%; top: 50%; margin: max(-44vmin, -380px) 0 0 max(-44vmin, -380px);
  width: min(88vmin, 760px); height: min(88vmin, 760px); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--gold) 12%, transparent) 45%, transparent 70%);
  filter: blur(8px); opacity: 0; transform: scale(.5);
}
#bloomSvg { width: min(78vmin, 680px); height: min(78vmin, 680px); position: relative; overflow: visible; }
#bloomSvg .petal { transform-origin: 0 0; will-change: transform; }

.bloom-lines { position: absolute; bottom: clamp(40px, 9vh, 90px); left: 0; right: 0; text-align: center; pointer-events: none; }
.bloom-line {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 14px); width: min(86vw, 760px);
  font-size: clamp(19px, 2.6vw, 30px); font-weight: 500; letter-spacing: .08em; line-height: 1.7;
  color: var(--ink); opacity: 0;
}
.bloom-line em { font-style: normal; color: var(--accent-deep); }

/* ━━━ 情书（钉住 · 滚动抽出） ━━━ */
.letter-wrap { position: relative; z-index: 2; height: 280vh; }
.letter-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: clamp(38px, 8vh, 96px);
  background: radial-gradient(78vw 56vh at 50% 122%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 62%);
}
.letter-cue {
  position: absolute; top: clamp(13vh, 16vh, 20vh); left: 0; right: 0; text-align: center;
  font-family: var(--hand); font-size: clamp(19px, 2.5vw, 27px); color: var(--accent-deep);
  letter-spacing: .04em; opacity: 0; transform: translateY(10px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.letter-cue.shown { opacity: .92; transform: none; }
.env-stage.home .env-flap,
.env-stage.home .env-seal,
.env-stage.home .env-letter { transition: none; will-change: transform; }
.env-stage.home { --tuck: clamp(52px, 9vw, 84px); }
.env-stage.home .letter-paper { padding: clamp(16px, 2.4vw, 28px) clamp(22px, 4.5vw, 52px) clamp(88px, 12.5vw, 126px); }
.env-stage.home .letter-line { line-height: 1.8; font-size: clamp(15px, 1.7vw, 19px); }
.env-stage.home .letter-line.sign { padding-right: 68px; margin-top: .9em; font-size: clamp(18px, 2.1vw, 23px); }
@media (prefers-reduced-motion: reduce) {
  .letter-wrap { height: auto; }
  .letter-sticky { position: static; height: auto; overflow: visible; justify-content: center; padding: clamp(80px, 12vh, 140px) 24px; }
  .letter-cue { position: static; opacity: 1; transform: none; margin-bottom: 28px; }
}
.letter-paper {
  width: min(92vw, 660px); padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  background:
    linear-gradient(170deg, color-mix(in srgb, #fff 60%, transparent), transparent 40%),
    var(--ivory);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ink) 22%, transparent);
  position: relative;
}
.letter-paper::before, .letter-paper::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.letter-paper::after { inset: 14px; opacity: .5; }
.letter-line {
  font-size: clamp(17px, 2vw, 21px); line-height: 2.3; letter-spacing: .1em; color: var(--ink);
  opacity: 0; transform: translateY(16px); filter: blur(3px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
}
.letter-line.shown { opacity: 1; transform: none; filter: none; }
.letter-line.strong { font-weight: 700; color: var(--accent-deep); }
.letter-line.sign { text-align: right; margin-top: 1.4em; font-size: clamp(20px, 2.4vw, 26px); padding-right: 92px; }
.hand-accent { font-family: var(--hand); color: var(--accent-deep); }

/* ━━━ 通用滚动浮现（expo-out 缓动 + 同组自动错峰，见 site.js/bloom.js） ━━━ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.15s cubic-bezier(.33,.7,.3,1), transform 1.15s cubic-bezier(.22,1,.36,1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .letter-line { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ━━━ 花园五事 ━━━ */
.kicker { font-family: var(--latin); font-style: italic; letter-spacing: .4em; font-size: 14px; color: var(--gold); text-transform: uppercase; }
.services { position: relative; z-index: 2; padding: clamp(60px, 10vh, 140px) clamp(20px, 6vw, 90px); max-width: 1280px; margin: 0 auto; }
.services-head { text-align: center; margin-bottom: clamp(70px, 12vh, 150px); }
.services-head h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: .14em; margin: 18px 0 14px; }
.services-note { color: var(--ink-soft); font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .12em; }

.chapter {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px);
  align-items: center; position: relative;
  padding: clamp(50px, 9vh, 110px) 0;
}
.chapter.flip .chapter-media { order: 2; }
.chapter.flip .chapter-text { order: 1; }
.chapter-num {
  position: absolute; top: 6px; left: -10px; z-index: 0;
  font-family: var(--hand); font-size: clamp(110px, 16vw, 220px); line-height: 1;
  color: color-mix(in srgb, var(--accent) 13%, transparent);
  user-select: none; pointer-events: none;
}
.chapter.flip .chapter-num { left: auto; right: -10px; }
.chapter-media { position: relative; z-index: 1; will-change: transform; }
.chapter-media image-slot {
  width: 100%; aspect-ratio: 4 / 5; display: block;
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--ink) 35%, transparent);
  background: var(--ivory);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), box-shadow 1s ease;
}
.chapter-media image-slot:hover {
  transform: scale(1.022);
  box-shadow: 0 56px 110px -42px color-mix(in srgb, var(--ink) 45%, transparent);
}
.chapter:nth-child(odd) .chapter-media image-slot { aspect-ratio: 5 / 4; }
.chapter-text { position: relative; z-index: 1; }
.chapter-tag { letter-spacing: .3em; font-size: 14px; color: var(--gold); margin-bottom: 18px; }
.chapter-text h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: .08em; margin-bottom: 22px; }
.chapter-text h3 .hand-accent { font-size: 1.12em; margin-left: 10px; font-weight: 400; }
.chapter-text p:not(.chapter-tag) { color: var(--ink-soft); font-size: clamp(15px, 1.7vw, 18px); line-height: 2.1; letter-spacing: .06em; max-width: 30em; text-wrap: pretty; }
.chapter-link {
  display: inline-block; margin-top: 26px; text-decoration: none;
  color: var(--accent-deep); font-size: 15px; letter-spacing: .2em;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-deep) 40%, transparent);
  padding-bottom: 4px; transition: letter-spacing .4s ease, border-color .4s ease;
}
.chapter-link:hover { letter-spacing: .3em; border-color: var(--accent-deep); }

/* ━━━ 花园数簿 ━━━ */
.stats { position: relative; z-index: 2; text-align: center; padding: clamp(80px, 14vh, 170px) 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 56px);
  max-width: 1180px; margin: clamp(40px, 7vh, 80px) auto 0;
}
.stat { display: flex; flex-direction: column; gap: 14px; }
.stat-num {
  font-family: var(--latin); font-weight: 500; font-size: clamp(44px, 6vw, 84px); line-height: 1;
  color: var(--accent-deep); font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--ink-soft); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .12em; line-height: 1.8; }

/* ━━━ 花园相册（横向） ━━━ */
.gallery-wrap { position: relative; z-index: 2; }
.gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery-head { padding: 0 clamp(20px, 6vw, 90px); margin-bottom: clamp(24px, 4vh, 48px); }
.gallery-head h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .14em; font-weight: 600; margin: 12px 0 8px; }
.gallery-note { color: var(--ink-soft); font-size: 14px; letter-spacing: .2em; }
.gallery-track {
  display: flex; align-items: center; gap: clamp(24px, 3.5vw, 56px);
  padding: 0 clamp(20px, 6vw, 90px); width: max-content; will-change: transform;
}
.g-item { display: flex; flex-direction: column; gap: 12px; }
.g-item:nth-child(odd) { transform: rotate(-1deg); }
.g-item:nth-child(even):not(.up) { transform: rotate(.8deg); }
.g-item image-slot { display: block; background: var(--ivory); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--ink) 38%, transparent); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.g-item image-slot:hover { transform: scale(1.03); }
.g-item.tall image-slot { width: clamp(240px, 24vw, 360px); height: clamp(330px, 33vw, 500px); }
.g-item.wide image-slot { width: clamp(380px, 40vw, 620px); height: clamp(260px, 26vw, 410px); }
.g-item.square image-slot { width: clamp(280px, 28vw, 420px); height: clamp(280px, 28vw, 420px); }
.g-item.up { transform: translateY(-5vh); }
.g-item figcaption { font-size: 14px; color: var(--ink-soft); letter-spacing: .18em; }
.g-item.up figcaption { order: -1; text-align: right; }
.gallery-progress {
  margin: clamp(28px, 5vh, 52px) clamp(20px, 6vw, 90px) 0;
  height: 2px; width: min(380px, 40vw);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.gallery-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent-deep); transform: scaleX(0); transform-origin: left center;
}

/* ━━━ 终幕 ━━━ */
.finale {
  position: relative; z-index: 2; min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 0;
}
.finale-eyebrow { font-family: var(--hand); font-size: clamp(24px, 3.4vw, 38px); color: var(--accent-deep); }
.finale-domain {
  font-family: var(--latin); font-weight: 500; letter-spacing: .04em;
  font-size: clamp(44px, 9vw, 130px); line-height: 1.1; margin: 18px 0 22px; color: var(--ink);
}
.finale-domain.reveal { opacity: 1; transform: none; }
.finale-domain .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(5deg); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--cd, 0s); }
.finale-domain.shown .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .finale-domain .ch { opacity: 1; transform: none; transition: none; } }
.finale-domain i { color: var(--accent-deep); }
.finale-sub { color: var(--ink-soft); font-size: clamp(15px, 1.7vw, 18px); letter-spacing: .14em; }
.finale-cta { display: flex; align-items: center; gap: 22px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.btn-ghost {
  display: inline-block; padding: 16px 38px; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--serif); font-size: 16px; letter-spacing: .22em; text-indent: .22em; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 999px;
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--cream); box-shadow: 0 16px 40px -16px var(--accent-deep); }
.btn-ghost { transition: background .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease, transform .25s ease; }
.cta-or { color: var(--ink-soft); font-size: 14px; letter-spacing: .2em; }
.wechat { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--accent-deep); border-bottom: 1px dashed color-mix(in srgb, var(--accent-deep) 50%, transparent); padding-bottom: 2px; }
footer { margin-top: clamp(70px, 12vh, 130px); padding: 34px 20px 28px; width: 100vw; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
footer p { color: var(--ink-soft); font-size: 13px; letter-spacing: .12em; line-height: 2; }
.footer-secret { opacity: .55; font-family: var(--hand); font-size: 16px; }

/* ━━━ 秘密钥匙 & 彩蛋 ━━━ */
#secretKey {
  position: fixed; left: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--cream) 80%, transparent); color: var(--gold);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(20px) rotate(-12deg); pointer-events: none;
  transition: opacity 1s ease, transform 1s ease, box-shadow .4s ease;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#secretKey.visible { opacity: .85; transform: none; pointer-events: auto; animation: keySway 4s ease-in-out infinite; }
#secretKey:hover { box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 14%, transparent); opacity: 1; }
@keyframes keySway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg) translateY(-3px); } }

#secretOverlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
#secretOverlay.open { opacity: 1; pointer-events: auto; }
.secret-card {
  width: min(92vw, 480px); text-align: center; background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 52px);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.45);
  transform: translateY(30px) scale(.96); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
#secretOverlay.open .secret-card { transform: none; }
.secret-kicker { font-family: var(--latin); font-style: italic; letter-spacing: .5em; font-size: 13px; color: var(--gold); margin-bottom: 16px; }
.secret-card h3 { font-size: clamp(30px, 4.4vw, 40px); font-weight: 400; margin-bottom: 26px; }
.secret-body { font-size: clamp(16px, 1.9vw, 19px); line-height: 2.3; letter-spacing: .1em; color: var(--ink); }
.secret-foot { margin: 26px 0 30px; font-size: 13px; color: var(--ink-soft); letter-spacing: .1em; line-height: 1.9; }

html, body { overflow-x: clip; }

/* ━━━ 响应式 ━━━ */
@media (max-width: 1080px) {
  .nav-links a:not(.nav-cta) { display: none; }
  #navBloom { display: none; }
}
@media (max-width: 880px) {
  .chapter { grid-template-columns: 1fr; gap: 28px; }
  .chapter.flip .chapter-media { order: 0; }
  .chapter.flip .chapter-text { order: 1; }
  .chapter-num { font-size: 96px; top: -14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item.up { transform: none; }
  #secretKey { left: 16px; bottom: 16px; }
}

/* ━━━ 子页面共享 ━━━ */
.page-hero {
  min-height: 100vh; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 34vh 24px 12vh;
}
.page-hero .hand-title {
  font-family: var(--hand); font-weight: 400; line-height: 1.15;
  font-size: clamp(56px, 10vw, 130px); color: var(--ink);
  text-shadow: 0 2px 36px color-mix(in srgb, var(--accent) 30%, transparent);
}
.page-hero .page-sub {
  margin-top: 22px; color: var(--ink-soft); font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: .14em; line-height: 2.1; max-width: 34em; text-wrap: pretty;
}
.page-section { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 10vh, 120px) clamp(20px, 6vw, 90px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 7vh, 80px); }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; letter-spacing: .12em; margin-top: 14px; }
.section-head .section-note { margin-top: 12px; color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .1em; }
.cta-band { text-align: center; padding: clamp(70px, 13vh, 150px) 24px; position: relative; z-index: 2; }
.cta-band .hand-lead { font-family: var(--hand); font-size: clamp(26px, 3.6vw, 42px); color: var(--accent-deep); margin-bottom: 30px; }
.page-footer { position: relative; z-index: 2; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); padding: 30px 20px; text-align: center; }
.page-footer p { color: var(--ink-soft); font-size: 13px; letter-spacing: .12em; line-height: 2; }
.breath { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .breath { animation: breathe 5s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
}

/* ━━━ 信封 · 真·开缄 / 封缄（3D 翻盖 + 抽信 + 火漆） ━━━ */
.env-stage {
  --ew: clamp(320px, 86vw, 540px);          /* 信封宽度 */
  --eh: calc(var(--ew) * 0.66);             /* 信封体高度 */
  --pk: calc(var(--eh) * 0.60);             /* 前袋高度 */
  --flapH: calc(var(--eh) * 0.60);          /* 翻盖高度 */
  --tuck: clamp(78px, 14vw, 120px);         /* 信纸塞入深度 */
  --seal: clamp(48px, 10vw, 64px);          /* 火漆直径 */
  position: relative;
  width: var(--ew);
  height: var(--eh);
  margin: 0 auto;
  z-index: 2;
  perspective: 1500px;
  clip-path: inset(-1400px 0px 0px 0px);    /* 只裁信封底沿，信纸可向上探出 */
}
/* 信封后壁（信封体本身） */
.env-back {
  position: absolute; inset: 0; z-index: 1; border-radius: 3px;
  background:
    linear-gradient(170deg, color-mix(in srgb,#fff 30%,transparent), transparent 46%),
    color-mix(in srgb, var(--ivory) 92%, var(--accent-faint));
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--ink) 42%, transparent);
}
/* 信纸（在信封内 → 抽出） */
.env-letter {
  position: absolute; left: 50%; bottom: var(--tuck); z-index: 2;
  width: calc(var(--ew) - 26px);
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 44px) clamp(38px, 6vw, 56px);
  transform: translateX(-50%) translateY(110%);
  transition: transform 1.5s cubic-bezier(.19,.84,.27,1), box-shadow 1.2s ease;
  box-shadow: 0 24px 50px -34px color-mix(in srgb, var(--ink) 30%, transparent);
}
.env-stage.open .env-letter {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 46px 90px -40px color-mix(in srgb, var(--ink) 48%, transparent);
}
/* 前袋：盖住信纸底部，V 形袋口 */
.env-pocket {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--pk);
  pointer-events: none; border-radius: 0 0 3px 3px;
  background:
    linear-gradient(192deg, color-mix(in srgb,#fff 40%,transparent), transparent 56%),
    color-mix(in srgb, var(--ivory) 96%, var(--accent-faint));
  border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent);
  border-top: none;
  clip-path: polygon(0 0, 50% 32%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 -2px 18px -10px color-mix(in srgb, var(--ink) 26%, transparent) inset;
}
.env-pocket::before {   /* 两道金色折缝，自袋口 V 尖向左右下角 */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), color-mix(in srgb,var(--gold) 40%,transparent) 50%, transparent calc(50% + .6px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .6px), color-mix(in srgb,var(--gold) 40%,transparent) 50%, transparent calc(50% + .6px)) right bottom / 50% 100% no-repeat;
}
/* 顶盖：翻盖，沿信封顶沿铰接，闭合时盖住袋口 */
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: var(--flapH);
  pointer-events: none; transform-origin: top center; backface-visibility: visible;
  transform: rotateX(0deg);
  transition: transform 1.15s cubic-bezier(.62,.04,.34,1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(90deg, transparent calc(50% - .6px), color-mix(in srgb, var(--gold) 26%, transparent) 50%, transparent calc(50% + .6px)),
    linear-gradient(102deg, color-mix(in srgb, var(--ivory) 84%, var(--gold)) 0%, color-mix(in srgb, #fff 55%, var(--ivory)) 46%, color-mix(in srgb, var(--ivory) 86%, var(--accent-faint)) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  filter: drop-shadow(0 10px 13px color-mix(in srgb, var(--ink) 28%, transparent));
}
.env-flap::after {  /* 翻盖内侧的暗影，增加折纸厚度感 */
  content:""; position:absolute; inset:0; clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 14%, transparent), transparent 64%); opacity:.55;
}
.env-stage.open .env-flap {
  transform: rotateX(174deg);
  z-index: 0;
  filter: drop-shadow(0 -8px 14px color-mix(in srgb, var(--ink) 18%, transparent));
}
/* 火漆封缄：闭合时停在袋口/翻盖尖端，开缄时被「掀起」淡出 */
.env-seal {
  position: absolute; left: 50%; bottom: calc(var(--eh) - var(--flapH));
  transform: translate(-50%, 50%) rotate(-6deg); z-index: 6;
  width: var(--seal); height: var(--seal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); font-size: calc(var(--seal) * 0.44); color: var(--cream);
  background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--accent-deep) 72%, #fff), var(--accent-deep) 52%, color-mix(in srgb, var(--accent-deep) 70%, #000));
  box-shadow: 0 7px 16px -5px color-mix(in srgb, var(--accent-deep) 70%, #000), 0 0 0 4px color-mix(in srgb, var(--accent-deep) 16%, transparent);
  transition: opacity .5s ease, transform .7s cubic-bezier(.5,-0.4,.3,1);
}
.env-seal::before {  /* 封缄齿边 */
  content:""; position:absolute; inset:-3px; border-radius:50%;
  background: repeating-conic-gradient(color-mix(in srgb,var(--accent-deep) 60%,#000) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 48%); mask: radial-gradient(circle, transparent 47%, #000 48%);
  opacity:.55;
}
.env-stage.open .env-seal { opacity: 0; transform: translate(-50%, -120%) scale(1.5) rotate(-22deg); }

@media (prefers-reduced-motion: reduce) {
  .env-stage { clip-path: none; height: auto; perspective: none; }
  .env-stage .env-back, .env-stage .env-pocket, .env-stage .env-flap, .env-stage .env-seal { display: none; }
  .env-stage .env-letter { position: relative; left: auto; bottom: auto; transform: none !important; transition: none; }
}
@media (max-width: 880px) { .env-stage { --ew: clamp(300px, 92vw, 460px); } }

/* —— 预约：信纸表单「写完 → 沉入信封 → 翻盖封缄」 —— */
.env-stage.book {
  --ew: clamp(330px, 94vw, 600px);
  --eh: clamp(216px, 40vw, 290px);
  height: auto;                 /* 表单在常规流中，决定容器高度，不溢出页眉 */
  clip-path: none;
  margin: clamp(20px, 4vh, 56px) auto 0;
}
/* 信封图形：短信封，贴在表单底部 */
.env-stage.book .env-back { top: auto; bottom: 0; height: var(--eh); }
.env-stage.book .env-flap {
  top: auto; bottom: calc(var(--eh) - var(--flapH));
  transform: rotateX(174deg); z-index: 0;   /* 默认敞开，藏在表单后面 */
}
.env-stage.book .env-seal { opacity: 0; transform: translate(-50%, -120%) scale(.6); }
/* 信纸表单：常规流、完全探出、可填写 */
.env-stage.book .env-letter {
  position: relative; left: auto; bottom: auto; margin: 0 auto;
  width: calc(var(--ew) - 22px); transform: translateY(0); opacity: 1;
  transition: transform 1.1s cubic-bezier(.55,.04,.3,1), opacity .9s ease, filter .8s ease, box-shadow 1s ease;
}
.env-stage.book .lf-body { transition: opacity .7s ease, filter .7s ease; }
/* 寄出：信纸沉入信封并淡去、翻盖合上、火漆盖章 */
.env-stage.book.sealing .env-letter {
  transform: translateY(38%); opacity: 0; filter: blur(3px); pointer-events: none;
  box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--ink) 50%, transparent);
}
.env-stage.book.sealing .lf-body { opacity: 0; filter: blur(3px); pointer-events: none; }
.env-stage.book.sealing .env-flap { transform: rotateX(0deg); z-index: 5; transition: transform 1s cubic-bezier(.5,0,.2,1) .5s; }
.env-stage.book.sealing .env-seal {
  opacity: 1; transform: translate(-50%, 50%) rotate(-6deg);
  animation: waxStamp .5s cubic-bezier(.3,1.4,.4,1) 1.4s both;
}
.env-stage.book #sentMsg {
  position: absolute; left: 8%; right: 8%; bottom: calc(var(--eh) + clamp(24px, 5vh, 56px));
  z-index: 8; text-align: center; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .9s ease 1.6s, transform .9s cubic-bezier(.2,.7,.2,1) 1.6s;
}
.env-stage.book.sealing #sentMsg { opacity: 1; transform: none; pointer-events: auto; }
.env-stage.book #sentMsg .hand-accent { font-size: clamp(26px, 3.4vw, 36px); display: block; margin-bottom: 14px; }
.env-stage.book #sentMsg p { color: var(--ink); font-size: 15px; letter-spacing: .1em; line-height: 2; }

@keyframes waxStamp {
  0% { transform: translate(-50%, 50%) scale(2.2) rotate(-18deg); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translate(-50%, 50%) scale(1) rotate(-6deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .env-stage.book { clip-path: none; height: auto; }
  .env-stage.book .env-letter { transition: none; }
  .env-stage.book.sealing .env-seal { animation: none; }
}

/* ━━━ 子页面共享组件：套餐 / 常见问题 / 客户私语 ━━━ */

/* 套餐 */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 36px); align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(34px, 3.6vw, 50px) clamp(26px, 3vw, 40px) clamp(30px, 3.2vw, 44px);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, border-color .6s ease;
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -38px color-mix(in srgb, var(--ink) 40%, transparent); }
.pkg.feature {
  border-color: color-mix(in srgb, var(--accent-deep) 55%, transparent);
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent-deep) 42%, transparent);
}
.pkg.feature::before {
  content: "最 受 欢 迎"; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent-deep); color: var(--cream);
  font-size: 11.5px; letter-spacing: .28em; text-indent: .28em; padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}
.pkg .pkg-name { font-family: var(--hand); font-size: clamp(28px, 3vw, 36px); color: var(--accent-deep); line-height: 1; }
.pkg .pkg-en { font-family: var(--latin); font-style: italic; letter-spacing: .26em; font-size: 12.5px; color: var(--gold); margin-top: 8px; text-transform: uppercase; }
.pkg .pkg-price { margin: 20px 0 4px; font-family: var(--latin); font-weight: 500; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.pkg .pkg-price small { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); margin-left: 6px; }
.pkg .pkg-rule { height: 1px; margin: 20px 0 22px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 50%, transparent), transparent); }
.pkg ul { list-style: none; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.pkg li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; letter-spacing: .04em; }
.pkg li::before { content: "❀"; position: absolute; left: 0; top: 1px; color: color-mix(in srgb, var(--accent) 75%, var(--gold)); font-size: 12px; }
.pkg .pkg-cta {
  margin-top: 28px; text-align: center; text-decoration: none; padding: 13px 0;
  font-size: 14.5px; letter-spacing: .22em; text-indent: .22em; color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 45%, transparent); border-radius: 999px;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.pkg .pkg-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--cream); }
.pkg.feature .pkg-cta { background: color-mix(in srgb, var(--accent-deep) 12%, transparent); }
.pkg-foot { text-align: center; margin-top: clamp(28px, 4vh, 44px); color: var(--ink-soft); font-size: 13.5px; letter-spacing: .1em; line-height: 2; }
.pkg-foot em { font-style: normal; color: var(--accent-deep); }

/* 常见问题 */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.qa { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 2.6vw, 28px) 4px; font-size: clamp(16px, 1.8vw, 19px); font-weight: 600;
  letter-spacing: .06em; color: var(--ink); transition: color .3s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-deep); }
.qa summary .q-mark {
  flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.qa summary .q-mark::before, .qa summary .q-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent-deep); border-radius: 2px;
}
.qa summary .q-mark::before { width: 15px; height: 1.5px; transform: translate(-50%, -50%); }
.qa summary .q-mark::after { width: 1.5px; height: 15px; transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.qa[open] summary .q-mark { transform: rotate(180deg); }
.qa[open] summary .q-mark::after { transform: translate(-50%, -50%) scaleY(0); }
.qa .qa-body { overflow: hidden; }
.qa .qa-body p {
  padding: 0 38px clamp(22px, 2.6vw, 28px) 4px; color: var(--ink-soft);
  font-size: clamp(14.5px, 1.6vw, 16px); line-height: 2.05; letter-spacing: .05em; text-wrap: pretty; max-width: 42em;
}
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-body { animation: qaOpen .5s cubic-bezier(.2,.7,.2,1); }
  @keyframes qaOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* 客户私语 */
.voice { text-align: center; max-width: 820px; margin: 0 auto; }
.voice .voice-mark { font-family: var(--latin); font-size: clamp(70px, 9vw, 120px); line-height: .6; color: color-mix(in srgb, var(--accent) 40%, transparent); }
.voice blockquote {
  font-family: var(--serif); font-size: clamp(20px, 2.8vw, 30px); font-weight: 500; line-height: 1.95;
  letter-spacing: .06em; color: var(--ink); text-wrap: balance; margin: 8px 0 26px;
}
.voice blockquote em { font-style: normal; color: var(--accent-deep); }
.voice .voice-sign { font-family: var(--latin); font-style: italic; font-size: 16px; letter-spacing: .2em; color: var(--ink-soft); }
.voice .voice-sign b { font-family: var(--hand); font-weight: 400; font-style: normal; color: var(--accent-deep); font-size: 22px; margin-right: 10px; }

@media (max-width: 880px) {
  .pkg-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pkg.feature { transform: none; }
}
