/* 访客首页。作用域全在 #landing 内；登录后的书房沿用原有设计体系。
 * home-*：页面版式（导航、首屏、各段落、页脚）。hf-*：影像组件（互动舞台、邀请短片），脚本依赖这些类名。
 * 规则（landing-page-design）：单一字体、命名文字样式、间距 2/4/8/12/16/24/32/40/48/64/80/96、Tailwind 圆角、
 * 背景纯色（渐变只用在首屏标题文字上）、动效只动 transform / opacity、统一缓动 cubic-bezier(.22,1,.36,1)。
 * 配色是「暖调家书」：米色纸面、胡桃棕字、陶土红点睛，与 css/theme-warm.css 同一套色值；不依赖 ?theme=warm。
 * 中文标题的行高比 Tailwind 的 1 大（1.2 到 1.3），否则两行汉字会贴在一起。
 */
#landing {
  --home-font: Geist, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --home-bg: #faf2e6;
  --home-paper: #fff9ef;
  --home-soft: #f2e3d0;
  --home-sunlit: #f8ead2;
  --home-folio: #e4c6a4;
  --home-ink: #392922;
  --home-ink2: #6b5143;
  --home-line: #e1cfb9;
  --home-line-strong: #ad8569;
  --home-seal: #994732;
  --home-seal-dk: #763323;
  --home-seal-soft: #f6dfd3;
  --home-on-seal: #fff5e5;
  --home-night: #2b1b13;
  --home-on-night: #fff1d8;
  --home-on-night-dim: #eedbc0;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-gutter: 24px;
  --home-section-space: 64px;
  --home-focus: var(--home-seal);
  --hf-progress: 0;
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block-start: 96px;
  isolation: isolate;
  background: var(--home-bg);
  color: var(--home-ink);
  color-scheme: light;
  font: 400 1rem/1.5rem var(--home-font);
  scrollbar-color: var(--home-line-strong) var(--home-bg);
}

#landing.hidden { display: none; }
#landing:has(.home-menu[open]), #landing.cinema-open { overflow: hidden; }

#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
#landing :where(h1, h2, h3, p, figure, blockquote, ol, ul, dl) { margin: 0; }
#landing :where(ol, ul) { padding: 0; list-style: none; }
#landing :where(h1, h2, h3) { text-wrap: balance; }
#landing :where(p, blockquote, summary) { text-wrap: pretty; line-break: strict; }
#landing.home-phrased :is(p, h1, h2, h3, blockquote, summary, figcaption, .home-menu-links a) { word-break: keep-all; overflow-wrap: anywhere; }
#landing :where(a, button, summary) { color: inherit; -webkit-tap-highlight-color: transparent; }
#landing :where(a) { text-decoration: none; }
#landing :where(button) { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
#landing :where(summary) { cursor: pointer; }
#landing :where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--home-focus); outline-offset: 4px; }
/* 全站旧规则（site-c / app-film）带 !important 把焦点环改成浅绿，这里用更高优先级压回首页自己的颜色 */
body.theme-c #landing :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--home-focus) !important; outline-offset: 4px; }
body.theme-c #landing [tabindex="-1"]:focus-visible { outline: none !important; }
#landing img { display: block; max-inline-size: 100%; }
#landing i.ph, #landing i.ph-fill { flex: none; line-height: 1; }

/* ───────── 文字样式（Heading / Title / Body / Button / Caption），尺寸全部落在 Tailwind 字阶上 ───────── */
#landing .heading-1 { font: 600 2.25rem/1.25 var(--home-font); }
#landing .heading-2 { font: 600 1.875rem/1.3 var(--home-font); }
#landing .heading-3 { font: 600 1.875rem/1.3 var(--home-font); }
#landing .heading-4 { font: 600 1.875rem/2.25rem var(--home-font); }
#landing .heading-5 { font: 600 1.5rem/2rem var(--home-font); }
#landing .heading-6 { font: 600 1.25rem/1.75rem var(--home-font); }
#landing .title-1 { font: 500 1.25rem/1.75rem var(--home-font); }
#landing .title-2 { font: 500 1.125rem/1.75rem var(--home-font); }
#landing .title-3 { font: 500 1rem/1.5rem var(--home-font); }
#landing .title-4 { font: 500 .875rem/1.25rem var(--home-font); }
#landing .body-3 { font: 400 1rem/1.5rem var(--home-font); }
#landing .body-5 { font: 500 .875rem/1.25rem var(--home-font); }
#landing .body-6 { font: 400 .875rem/1.5rem var(--home-font); }
/* 新增 Body 7：18 / 28 常规，汉字正文起点（长辈阅读） */
#landing .body-7 { font: 400 1.125rem/1.75rem var(--home-font); }
#landing .button-md { font: 600 1rem/1.5rem var(--home-font); }
#landing .button-sm { font: 600 .875rem/1.25rem var(--home-font); }
#landing .caption-1 { font: 500 .875rem/1.25rem var(--home-font); }
#landing .caption-2 { font: 400 .875rem/1.25rem var(--home-font); }
#landing .caption-3 { font: 600 .75rem/1rem var(--home-font); }
#landing .caption-4 { font: 500 .75rem/1rem var(--home-font); }

#landing .home-wrap { inline-size: min(80rem, calc(100% - 2 * var(--home-gutter))); margin-inline: auto; }
#landing .home-skip {
  position: absolute; z-index: 30; inset: 8px auto auto 8px; padding: 8px 12px; border-radius: 8px;
  background: var(--home-ink); color: var(--home-on-seal); transform: translateY(-200%);
}
#landing .home-skip:focus-visible { transform: none; outline-color: var(--home-on-seal); }

/* ───────── 导航：悬浮在顶部的半透明小胶囊 ───────── */
#landing .home-header {
  position: fixed; z-index: 10; inset: max(16px, env(safe-area-inset-top)) 0 auto; display: flex; justify-content: center;
  pointer-events: none;
}
#landing .home-nav {
  pointer-events: auto; display: flex; align-items: center; gap: 24px; max-inline-size: calc(100% - 2 * var(--home-gutter));
  padding: 4px 4px 4px 16px; border: 1px solid var(--home-line); border-radius: 9999px;
  background: rgb(250 242 230 / 82%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(76 43 27 / 14%);
}
#landing .home-brand { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--home-ink); transition: color .3s var(--home-ease); }
#landing .home-brand:hover { color: var(--home-seal); }
#landing .home-logo { display: block; inline-size: auto; block-size: 32px; }
#landing .home-nav-links, #landing .home-nav-actions { display: flex; align-items: center; gap: 4px; }
#landing .home-nav-links a {
  display: flex; align-items: center; min-block-size: 44px; padding-inline: 12px; border-radius: 9999px;
  transition: background-color .3s var(--home-ease), color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .home-nav-links a:hover { background: var(--home-seal-soft); color: var(--home-seal-dk); }
#landing .home-nav-links a[aria-current] { color: var(--home-seal); }
#landing .home-nav-links a:active { transform: scale(.98); }

/* ───────── 按钮 ───────── */
#landing .home-button, #landing .home-icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-block-size: 44px; padding: 8px 12px;
  border: 1px solid transparent;
  transition: background-color .3s var(--home-ease), border-color .3s var(--home-ease), color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .home-button:active, #landing .home-icon-button:active { transform: scale(.98); }
#landing .home-button:disabled, #landing .home-icon-button:disabled { cursor: default; opacity: .5; }
#landing .home-button i { font-size: 1rem; transition: transform .5s var(--home-ease); }
#landing .home-button:hover i.ph-arrow-right, #landing .home-button:hover i.ph-arrow-up-right { transform: translateX(4px); }
#landing .home-button--quiet { gap: 8px; padding-inline: 16px; border-radius: 9999px; background: var(--home-paper); border-color: var(--home-line-strong); }
#landing .home-button--quiet:hover { background: var(--home-seal-soft); border-color: var(--home-seal); color: var(--home-seal-dk); }
#landing .home-button--primary {
  min-inline-size: 13rem; min-block-size: 48px; justify-content: space-between; border-radius: 9999px;
  background: var(--home-seal); color: var(--home-on-seal);
}
#landing .home-button--primary:hover { background: var(--home-seal-dk); }
#landing .home-icon-button { inline-size: 44px; padding: 0; border-color: var(--home-line-strong); border-radius: 9999px; background: var(--home-paper); }
#landing .home-icon-button:hover { border-color: var(--home-seal); color: var(--home-seal); }
#landing .home-menu-toggle { display: none; }
#landing .home-menu-icon { position: relative; display: block; inline-size: 16px; block-size: 16px; }
#landing .home-menu-icon::before, #landing .home-menu-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto; block-size: 2px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--home-ease);
}
#landing .home-menu-icon::before { transform: translateY(-4px); }
#landing .home-menu-icon::after { transform: translateY(4px); }
#landing .home-menu-toggle[aria-expanded="true"] .home-menu-icon::before, #landing .home-menu-close .home-menu-icon::before { transform: rotate(45deg); }
#landing .home-menu-toggle[aria-expanded="true"] .home-menu-icon::after, #landing .home-menu-close .home-menu-icon::after { transform: rotate(-45deg); }

#landing .home-index { display: inline-flex; align-items: center; gap: 8px; color: var(--home-seal); letter-spacing: .08em; }
#landing .home-index::before { content: ""; inline-size: 16px; block-size: 2px; background: currentColor; }
#landing .home-text-link { color: var(--home-seal); text-decoration: underline; text-underline-offset: 4px; transition: color .3s var(--home-ease); }
#landing .home-text-link:hover { color: var(--home-seal-dk); }
#landing .home-trust { display: inline-flex; align-items: center; gap: 8px; }
#landing .home-trust i { font-size: 1rem; color: var(--home-seal); }

/* ───────── 1. 首屏：影像做底，纯色暖棕遮罩，标题文字渐变 ───────── */
#landing .home-hero {
  --home-focus: var(--home-on-night);
  position: relative; display: grid; align-items: end; min-block-size: 40rem; block-size: 100svh; max-block-size: 60rem;
  overflow: hidden; background: var(--home-night); color: var(--home-on-night);
}
#landing .home-hero-media, #landing .home-hero-tint { position: absolute; inset: 0; }
#landing .home-hero-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% center; }
#landing .home-hero-tint { background: rgb(43 27 19 / 56%); pointer-events: none; }
#landing .home-hero-inner { position: relative; z-index: 2; padding-block: 120px 96px; }
#landing .home-hero-copy { display: grid; justify-items: start; gap: 24px; }
#landing .home-hero .home-index { color: var(--home-on-night); }
#landing .home-hero h1 {
  inline-size: fit-content; max-inline-size: min(100%, 680px);
  background: linear-gradient(90deg, #fff9ef, #e8d3b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#landing .home-hero h1 > span { display: block; }
#landing .home-lede { max-inline-size: 680px; color: var(--home-on-night-dim); }
#landing .nb { display: inline-block; }
#landing .home-hero-action { display: grid; justify-items: start; gap: 12px; margin-block-start: 8px; }
#landing .home-hero .home-button--primary { background: var(--home-on-night); color: var(--home-night); }
#landing .home-hero .home-button--primary:hover { background: var(--home-seal-soft); }
#landing .home-hero .home-trust { color: var(--home-on-night-dim); }
#landing .home-hero .home-trust i { color: var(--home-on-night); }
#landing .home-film-link {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; color: var(--home-on-night);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 241 216 / 50%);
  transition: text-decoration-color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .home-film-link i { font-size: 1.25rem; }
#landing .home-film-link:hover { text-decoration-color: var(--home-on-night); }
#landing .home-film-link:active { transform: scale(.98); }
#landing .home-hero-foot {
  position: absolute; z-index: 2; inset: auto 0 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-inline: auto; color: var(--home-on-night-dim);
}
#landing .home-scroll-cue, #landing .home-sound { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; transition: color .3s var(--home-ease); }
#landing .home-scroll-cue:hover, #landing .home-sound:hover { color: var(--home-on-night); }
#landing .home-hero-note { margin-inline-start: auto; }
#landing .hf-equalizer { display: flex; align-items: center; gap: 2px; block-size: 16px; }
#landing .hf-equalizer i { inline-size: 2px; block-size: 4px; border-radius: 2px; background: currentColor; }
#landing .hf-equalizer i:nth-child(2) { block-size: 12px; }
#landing .hf-equalizer i:nth-child(3) { block-size: 8px; }

/* ───────── 2. 三条承诺 ───────── */
#landing .home-proof { background: var(--home-paper); border-block-end: 1px solid var(--home-line); }
#landing .home-proof-list { display: grid; gap: 24px; padding-block: 32px; }
#landing .home-proof-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
#landing .home-proof-list p:last-child { color: var(--home-ink2); }
#landing .home-proof-icon, #landing .home-benefit-icon, #landing .home-tagline-mark {
  display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 12px;
  background: var(--home-seal-soft); color: var(--home-seal); font-size: 1.5rem;
}

/* ───────── 通用段落 ───────── */
#landing .home-band { padding-block: var(--home-section-space); }
#landing .home-section-head { display: grid; justify-items: start; gap: 16px; }
#landing .home-section-head > p:not(.home-index) { max-inline-size: 30rem; color: var(--home-ink2); }
#landing .home-split, #landing .home-stack { display: grid; align-items: start; gap: 32px; }

/* 益处 */
#landing .home-benefits li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-block: 24px; }
#landing .home-benefits li:first-child { padding-block-start: 0; }
#landing .home-benefits li:last-child { padding-block-end: 0; }
#landing .home-benefits li + li { border-block-start: 1px solid var(--home-line); }
#landing .home-benefits h3 { margin-block-end: 4px; }
#landing .home-benefits p, #landing .home-steps p { color: var(--home-ink2); }

/* 三步 */
#landing .home-steps-band { background: var(--home-soft); }
#landing .home-steps { display: grid; gap: 16px; }
#landing .home-steps li {
  display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--home-line-strong); border-radius: 16px; background: var(--home-paper);
}
#landing .home-step-number { margin-block-end: 8px; color: var(--home-seal); font-variant-numeric: tabular-nums; }

/* ───────── 5. 互动舞台：照片 → 讲述 → 成书（滚动驱动，三个阶段） ───────── */
#landing .hf-journey { position: relative; block-size: 310svh; background: var(--home-bg); }
#landing .hf-stage {
  --hf-line: rgb(57 41 34 / 28%);
  position: sticky; inset-block-start: 0; block-size: 100svh; min-block-size: 44rem; overflow: hidden; perspective: 1800px; background: var(--home-bg);
}
#landing .hf-stage-top {
  position: absolute; z-index: 7; inset: 96px var(--home-gutter) auto; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  inline-size: min(80rem, calc(100% - 2 * var(--home-gutter))); margin-inline: auto; color: var(--home-ink2);
}
#landing .hf-stage-controls { display: flex; align-items: center; gap: 16px; }
#landing .hf-video-toggle, #landing .hf-next {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding-inline: 12px; border-radius: 9999px;
  transition: background-color .3s var(--home-ease), color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .hf-video-toggle:hover, #landing .hf-next:hover { background: var(--home-seal-soft); color: var(--home-seal-dk); }
#landing .hf-video-toggle:active, #landing .hf-next:active { transform: scale(.98); }
#landing .hf-stage-headings { position: absolute; z-index: 3; inset: 21% auto auto max(var(--home-gutter), calc((100vw - 80rem) / 2)); inline-size: 50%; pointer-events: none; }
#landing .hf-phase-title {
  position: absolute; inset: 0 auto auto 0; inline-size: max-content; max-inline-size: 100%; opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--home-ease), transform .5s var(--home-ease);
}
#landing .hf-phase-title > span { display: block; margin-block-end: 16px; color: var(--home-seal); letter-spacing: .08em; }
#landing [data-phase="photo"] .hf-phase-photo, #landing [data-phase="voice"] .hf-phase-voice, #landing [data-phase="book"] .hf-phase-book { opacity: 1; transform: translateY(0); }
#landing .hf-memory-space { position: absolute; inset: 0; perspective: 1800px; }
#landing .hf-memory-photo {
  position: absolute; inset: 48% auto auto 50%; z-index: 2; inline-size: min(50vw, 43rem); padding: 12px 12px 0; border-radius: 4px;
  background: var(--home-paper); color: var(--home-ink); box-shadow: 0 24px 64px rgb(76 43 27 / 28%);
  transform: translate(-25%, -38%) rotate(7deg); transition: transform .5s var(--home-ease), opacity .5s var(--home-ease); cursor: pointer; will-change: transform;
}
#landing .hf-photo-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--home-night); }
#landing .hf-photo-image :is(img, video) { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
#landing .hf-photo-image video { opacity: 0; transition: opacity .5s var(--home-ease); }
#landing .hf-photo-image video.is-ready { opacity: 1; }
#landing .hf-memory-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 48px; padding: 4px 8px; }
#landing .hf-memory-photo figcaption span:last-child { color: var(--home-ink2); }
#landing .hf-photo-play {
  position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 9999px;
  background: rgb(43 27 19 / 56%); color: var(--home-on-night); border: 1px solid rgb(255 241 216 / 40%); font-size: 1.5rem;
  transform: translate(-50%, -50%); transition: opacity .5s var(--home-ease);
}
#landing .hf-question {
  position: absolute; inset: 76% auto auto 52%; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px 24px;
  background: var(--home-paper); border: 1px solid var(--home-line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgb(76 43 27 / 14%);
  transform: rotate(-3deg); transition: opacity .5s var(--home-ease), transform .5s var(--home-ease); white-space: nowrap;
}
#landing .hf-question > i { font-size: 1.5rem; color: var(--home-seal); }
#landing .hf-question small { position: absolute; inset: calc(100% + 12px) auto auto 24px; color: var(--home-ink2); }
#landing [data-phase="voice"] .hf-memory-photo { inline-size: min(35vw, 32.5rem); inset-inline-start: 31%; inset-block-start: 50%; transform: translate(-50%, -12%) rotate(-6deg) scale(.85); }
#landing [data-phase="voice"] .hf-photo-play { opacity: 0; }
#landing [data-phase="voice"] .hf-question { transform: translate(-18%, -220%) rotate(0); opacity: 0; }
#landing .hf-voice-card {
  position: absolute; z-index: 3; inset: 47% auto auto 56%; inline-size: 38%; max-inline-size: 32.5rem; opacity: 0; transform: translateY(32px); pointer-events: none;
  transition: opacity .5s var(--home-ease), transform .5s var(--home-ease);
}
#landing [data-phase="voice"] .hf-voice-card { opacity: 1; transform: translateY(0); pointer-events: auto; }
#landing .hf-voice-meta { display: flex; align-items: center; gap: 8px; color: var(--home-seal); }
#landing .hf-voice-meta > span:last-child { margin-inline-start: auto; color: var(--home-ink2); }
#landing .hf-voice-dot { inline-size: 8px; block-size: 8px; border-radius: 9999px; background: var(--home-seal); box-shadow: 0 0 0 4px rgb(153 71 50 / 14%); }
#landing .hf-voice-card blockquote { margin-block-start: 24px; }
#landing .hf-listen {
  display: flex; align-items: center; gap: 12px; inline-size: 100%; min-block-size: 64px; margin-block-start: 24px; border-block: 1px solid var(--hf-line);
  font-variant-numeric: tabular-nums; transition: color .3s var(--home-ease);
}
#landing .hf-listen:hover { color: var(--home-seal); }
#landing .hf-listen-icon { display: grid; place-items: center; flex: none; inline-size: 32px; block-size: 32px; border: 1px solid var(--home-line-strong); border-radius: 9999px; font-size: .75rem; }
#landing .hf-wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex: 1; block-size: 32px; overflow: hidden; }
#landing .hf-wave i { inline-size: 2px; flex: 1; max-inline-size: 2px; block-size: var(--bar-height); background: var(--home-seal); opacity: .4; transform: scaleY(.65); border-radius: 2px; }
#landing .hf-listen.is-playing .hf-wave i { animation: hf-wave .6s var(--home-ease) infinite alternate; animation-delay: var(--bar-delay); opacity: .9; }
#landing .hf-listen:disabled { cursor: wait; opacity: .6; }
#landing .hf-voice-card > p { margin-block-start: 12px; color: var(--home-ink2); }
#landing .hf-book-wrap {
  position: absolute; inset: 47% auto auto 61%; z-index: 4; inline-size: 300px; block-size: 430px; opacity: 0; pointer-events: none; perspective: 1500px;
  transform: translate(-25%, -30%) rotate(-3deg); transition: opacity .5s var(--home-ease), transform .5s var(--home-ease);
}
#landing [data-phase="book"] .hf-memory-photo { transform: translate(-20%, -45%) rotate(0) scale(.35); opacity: 0; pointer-events: none; }
#landing [data-phase="book"] .hf-question { opacity: 0; pointer-events: none; }
#landing [data-phase="book"] .hf-book-wrap { opacity: 1; transform: translate(-25%, -30%) rotate(0); pointer-events: auto; }
#landing .hf-book {
  position: relative; display: block; inline-size: 100%; block-size: 100%; padding: 0; text-align: start; transform-style: preserve-3d;
  transform: rotateY(-17deg) rotateX(6deg); transition: transform .5s var(--home-ease); filter: drop-shadow(24px 28px 20px rgb(76 43 27 / 30%));
}
#landing .hf-book:hover { transform: rotateY(-10deg) rotateX(2deg); }
#landing .hf-book-pages { position: absolute; inset: 4px -8px 4px 0; border-radius: 0 4px 4px 0; background: var(--home-folio); transform: translateZ(-10px); box-shadow: inset -2px 0 0 #fbf1de; }
#landing .hf-book-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 32px 24px 24px 32px; border-radius: 2px 4px 4px 2px;
  background: var(--home-seal); color: var(--home-on-seal); transform-origin: left center; backface-visibility: hidden;
  transition: transform .5s var(--home-ease); box-shadow: inset 8px 0 0 -4px rgb(0 0 0 / 18%);
}
#landing .hf-book-spine { position: absolute; inset: 0 auto 0 12px; inline-size: 2px; background: rgb(0 0 0 / 14%); }
#landing .hf-book-cover > strong { margin-block-start: 16px; font: 600 2.25rem/1.3 var(--home-font); }
#landing .hf-book-cover-photo { position: absolute; inset: 112px 24px auto auto; inline-size: 104px; block-size: 152px; overflow: hidden; border-radius: 2px; }
#landing .hf-book-cover-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 55% center; }
#landing .hf-book-cover-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-block-start: auto; padding-block-start: 12px; border-block-start: 1px solid rgb(255 245 229 / 35%); }
#landing .hf-cover-mark { display: block; inline-size: 32px; block-size: auto; color: var(--home-on-seal); }
#landing .hf-book-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px; border-radius: 0 4px 4px 0; overflow: hidden;
  background: var(--home-paper); color: var(--home-ink); box-shadow: inset 8px 0 0 -4px rgb(76 43 27 / 12%);
}
#landing .hf-book-inner small { padding-block-end: 8px; border-block-end: 1px solid var(--home-line); color: var(--home-ink2); }
#landing .hf-book-inner strong { margin-block: 16px; font: 600 1.5rem/1.4 var(--home-font); }
#landing .hf-book-inner img { inline-size: 100%; block-size: 128px; object-fit: cover; border-radius: 2px; }
#landing .hf-book-inner > span { margin-block-start: 12px; font: 400 .75rem/1.9 var(--home-font); }
#landing .hf-book-inner em { margin-block-start: auto; text-align: center; font-style: normal; color: var(--home-ink2); }
#landing .hf-book[aria-expanded="true"] { transform: translateX(48px) rotateY(8deg); }
#landing .hf-book[aria-expanded="true"] .hf-book-cover { transform: rotateY(-145deg); }
#landing .hf-book-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; inline-size: 100%; min-block-size: 44px; margin-block-start: 24px;
  transition: color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .hf-book-hint:hover { color: var(--home-seal); }
#landing .hf-book-hint:active { transform: scale(.98); }
#landing .hf-stage-bottom { position: absolute; z-index: 5; inset: auto auto 112px max(var(--home-gutter), calc((100vw - 80rem) / 2)); color: var(--home-ink2); text-wrap: balance; }
#landing [data-phase="voice"] .hf-stage-bottom > p:first-child { visibility: hidden; }
#landing .hf-book-services { display: none; align-items: center; gap: 12px; margin-block-start: 16px; }
#landing .hf-book-services i.ph { display: none; }
#landing .hf-book-services > i:not(.ph) { inline-size: 4px; block-size: 4px; border-radius: 9999px; background: currentColor; }
#landing .hf-book-services a { display: inline-flex; align-items: center; gap: 4px; min-block-size: 44px; margin-inline-start: 16px; color: var(--home-seal); text-decoration: underline; text-underline-offset: 4px; }
#landing .hf-book-services a i.ph { display: inline-block; }
#landing [data-phase="book"] .hf-book-services { display: flex; }
#landing .hf-chapters {
  position: absolute; z-index: 6; inset: auto 0 24px; display: flex; gap: 24px; inline-size: min(80rem, calc(100% - 2 * var(--home-gutter))); margin-inline: auto;
}
#landing .hf-chapters button { position: relative; flex: 1; min-block-size: 48px; padding-block: 12px; text-align: start; color: var(--home-ink2); border-block-start: 1px solid var(--hf-line); transition: color .3s var(--home-ease); }
#landing .hf-chapters button:hover { color: var(--home-seal-dk); }
#landing .hf-chapters span { margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
#landing .hf-chapters i { position: absolute; inset: -1px auto auto 0; inline-size: 100%; block-size: 2px; background: var(--home-seal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--home-ease); }
#landing .hf-chapters [aria-current] { color: var(--home-seal); }
#landing .hf-chapters [aria-current] i { transform: scaleX(1); }
#landing .hf-audio-status { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes hf-wave { to { transform: scaleY(1.1); } }

/* ───────── 6. 品牌一句话：深胡桃底，逐字点亮 ───────── */
#landing .home-tagline-band { --home-focus: var(--home-on-night); background: var(--home-night); color: var(--home-on-night); padding-block: 96px; }
#landing .home-tagline-wrap { display: grid; justify-items: center; gap: 24px; text-align: center; }
#landing .home-tagline-mark { background: rgb(255 241 216 / 12%); color: var(--home-on-night); }
#landing .home-tagline { display: grid; gap: 8px; max-inline-size: 680px; }
#landing .home-tagline-line { display: block; }

/* ───────── 7. 成稿示例 ───────── */
#landing .home-example { display: grid; gap: 16px; }
#landing .home-source { display: grid; align-content: start; gap: 16px; padding: 16px; border: 1px solid var(--home-line-strong); border-radius: 16px; background: var(--home-soft); }
#landing .home-source img { inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 45%; border-radius: 8px; background: var(--home-paper); }
#landing .home-source figcaption { padding-block-start: 8px; color: var(--home-ink2); }
#landing .home-source-copy { display: grid; gap: 8px; }
#landing .home-source-copy blockquote { color: var(--home-ink2); }
#landing .home-choices { display: flex; flex-wrap: wrap; gap: 8px; }
#landing .home-choices li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--home-line-strong); border-radius: 9999px; background: var(--home-paper); }
#landing .home-choices li.is-picked { border-color: var(--home-seal); background: var(--home-seal-soft); color: var(--home-seal-dk); }
#landing .home-choices li i { font-size: 1.25rem; color: var(--home-seal); }
#landing .home-choices-note { color: var(--home-ink2); }
#landing .home-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#landing .home-example-label { color: var(--home-seal); }
#landing .home-example-label:not(:first-child) { margin-block-start: 8px; }
#landing .home-manuscript {
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 24px; border: 1px solid var(--home-line-strong); border-radius: 4px; background: var(--home-paper);
  box-shadow: 4px 4px 0 -1px var(--home-soft), 4px 4px 0 var(--home-line-strong), 8px 8px 0 -1px var(--home-soft), 8px 8px 0 var(--home-line-strong);
}
#landing .home-manuscript-copy { display: grid; gap: 16px; align-self: center; max-inline-size: 26rem; padding-block: 24px; }
#landing .home-manuscript-head, #landing .home-manuscript-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--home-ink2); }
#landing .home-manuscript-head { padding-block-end: 12px; border-block-end: 1px solid var(--home-line); }
#landing .home-manuscript-foot { padding-block-start: 12px; border-block-start: 1px solid var(--home-line); }
#landing .home-manuscript-foot .home-text-link { display: inline-flex; align-items: center; min-block-size: 44px; }

/* ───────── 8. 放心写 ───────── */
#landing .home-safe-band { background: var(--home-sunlit); }
#landing .home-safe-list { display: grid; gap: 16px; }
#landing .home-safe-list li { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--home-line-strong); border-radius: 16px; background: var(--home-paper); }
#landing .home-safe-list i { margin-block-end: 8px; font-size: 2rem; color: var(--home-seal); }
#landing .home-safe-list p { color: var(--home-ink2); }

/* ───────── 9. 常见问题 ───────── */
#landing .home-faq-band { background: var(--home-paper); border-block-start: 1px solid var(--home-line); }
#landing .home-faq { border-block-start: 1px solid var(--home-line-strong); }
#landing .home-faq details { border-block-end: 1px solid var(--home-line-strong); }
#landing .home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 64px; padding-block: 12px; list-style: none; transition: color .3s var(--home-ease); }
#landing .home-faq summary::-webkit-details-marker { display: none; }
#landing .home-faq summary:hover { color: var(--home-seal); }
#landing .home-faq summary i { color: var(--home-seal); transition: transform .5s var(--home-ease); }
#landing .home-faq details[open] summary i { transform: rotate(45deg); }
#landing .home-faq details p { padding-block-end: 16px; padding-inline-end: 24px; color: var(--home-ink2); }

/* ───────── 10. 末尾行动 ───────── */
#landing .home-final-band { --home-focus: var(--home-on-seal); background: var(--home-seal); color: var(--home-on-seal); }
#landing .home-final { display: grid; gap: 32px; align-items: end; }
#landing .home-final .home-index, #landing .home-final .home-section-head > p:not(.home-index) { color: var(--home-on-seal); }
#landing .home-final-action { display: grid; justify-items: start; gap: 12px; }
#landing .home-final .home-trust, #landing .home-final .home-trust i { color: var(--home-on-seal); }
#landing .home-final .home-button--primary { background: var(--home-on-seal); color: var(--home-seal-dk); }
#landing .home-final .home-button--primary:hover { background: var(--home-seal-soft); }

/* ───────── 页脚 ───────── */
#landing .home-footer { padding-block: 32px; border-block-start: 1px solid var(--home-line); }
#landing .home-footer-inner { display: grid; gap: 24px; }
#landing .home-footer-brand { display: flex; align-items: center; gap: 16px; }
#landing .home-footer-brand p, #landing .home-footer-legal { color: var(--home-ink2); }
#landing .home-footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
#landing .home-footer-links a { display: inline-flex; align-items: center; min-block-size: 44px; transition: color .3s var(--home-ease); }
#landing .home-footer-links a:hover, #landing .home-footer-legal a:hover { color: var(--home-seal); text-decoration: underline; text-underline-offset: 4px; }
#landing .home-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block-start: 16px; border-block-start: 1px solid var(--home-line); }
#landing .home-footer-legal a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* ───────── 手机导航：整屏面板，链接依次上浮 ───────── */
#landing .home-menu {
  position: fixed; inset: 0; inline-size: 100%; max-inline-size: none; block-size: 100%; max-block-size: none; margin: 0;
  padding: max(16px, env(safe-area-inset-top)) var(--home-gutter) max(24px, env(safe-area-inset-bottom)); border: 0;
  background: rgb(250 242 230 / 96%); color: var(--home-ink); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow: auto;
}
#landing .home-menu::backdrop { background: transparent; }
body.theme-c #landing .home-menu { border-radius: 0; }
#landing .home-menu-head, #landing .home-menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#landing .home-menu-links { margin-block-start: 64px; border-block-start: 1px solid var(--home-line-strong); }
#landing .home-menu-links a { padding-block: 16px; border-block-end: 1px solid var(--home-line-strong); transition: color .3s var(--home-ease); }
#landing .home-menu-links a:hover { color: var(--home-seal); }
#landing .home-menu-links i { font-size: 1.25rem; color: var(--home-seal); }

/* ───────── 邀请短片（全屏） ───────── */
#landing .hf-cinema { --home-focus: var(--home-on-night); position: fixed; inset: 0; z-index: 20; overflow: hidden; background: var(--home-night); color: var(--home-on-night); }
#landing .hf-cinema.hidden { display: none; }
#landing .hf-cinema > .hf-cinema-image, #landing .hf-cinema > video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% center; }
#landing .hf-cinema > video { opacity: 0; }
#landing .hf-cinema > video.is-ready { opacity: 1; }
#landing .hf-cinema-tint { position: absolute; inset: 0; background: rgb(43 27 19 / 48%); pointer-events: none; }
#landing .hf-cinema-top { position: absolute; z-index: 2; inset: 16px var(--home-gutter) auto; display: flex; justify-content: space-between; align-items: center; }
#landing .hf-cinema-close {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 16px; border: 1px solid rgb(255 241 216 / 40%); border-radius: 9999px;
  background: rgb(43 27 19 / 56%); backdrop-filter: blur(12px); transition: background-color .3s var(--home-ease), transform .5s var(--home-ease);
}
#landing .hf-cinema-close:hover { background: rgb(43 27 19 / 80%); }
#landing .hf-cinema-close:active { transform: scale(.98); }
#landing .hf-cinema-copy { position: absolute; z-index: 2; inset: auto var(--home-gutter) 16% max(var(--home-gutter), calc((100vw - 80rem) / 2)); display: grid; justify-items: start; gap: 16px; }
#landing .hf-cinema-copy .home-index { color: var(--home-on-night); }
#landing .hf-cinema-subtitle { max-inline-size: 30rem; color: var(--home-on-night-dim); }
#landing .hf-cinema-bottom { position: absolute; z-index: 2; inset: auto var(--home-gutter) 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block-end: 16px; color: var(--home-on-night-dim); }
#landing .hf-cinema-bottom::after, #landing .hf-cinema-bottom i { content: ""; position: absolute; inset: auto 0 0; block-size: 2px; background: rgb(255 241 216 / 28%); }
#landing .hf-cinema-bottom i { background: var(--home-on-night); transform: scaleX(0); transform-origin: left; z-index: 1; }

/* ───────── 响应式 ───────── */
@media (min-width: 48rem) {
  #landing { --home-gutter: 32px; --home-section-space: 80px; }
  #landing .heading-1 { font-size: 3rem; line-height: 1.2; }
  #landing .heading-2 { font-size: 2.25rem; line-height: 1.25; }
  #landing .heading-3 { font-size: 2.25rem; line-height: 1.3; }
  #landing .home-proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
  #landing .home-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; }
  #landing .home-stack { gap: 48px; }
  #landing .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #landing .home-example { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #landing .home-safe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #landing .home-manuscript { padding: 32px; margin-inline-end: 8px; }
  #landing .home-final { grid-template-columns: minmax(0, 1fr) auto; }
  #landing .home-footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  #landing .home-footer-links { justify-content: flex-end; }
  #landing .home-footer-legal { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  #landing { --home-gutter: 48px; --home-section-space: 96px; }
  #landing .home-split { gap: 64px; }
  #landing .home-steps li { padding: 32px; }
  #landing .home-safe-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #landing .home-manuscript { padding: 48px; }
  #landing .hf-stage-headings .heading-3 { font-size: 3rem; line-height: 1.3; }
}
@media (min-width: 72rem) {
  #landing .heading-1 { font-size: 3.75rem; line-height: 1.2; }
  #landing .heading-2 { font-size: 3rem; line-height: 1.2; }
}
@media (max-width: 63.99rem) {
  #landing .hf-memory-photo { inline-size: 58vw; inset-inline-start: 43%; inset-block-start: 51%; }
  #landing .hf-question { inset-inline-start: 40%; inset-block-start: 78%; }
  #landing .hf-voice-card { inset-inline-start: 52%; inset-block-start: 51%; inline-size: 42%; }
  #landing [data-phase="voice"] .hf-memory-photo { inline-size: 42vw; inset-inline-start: 28%; inset-block-start: 53%; transform: translate(-50%, -10%) rotate(-7deg) scale(.78); }
  #landing .hf-book-wrap { inset-inline-start: 58%; inset-block-start: 48%; inline-size: 260px; block-size: 380px; }
}
@media (max-width: 47.99rem) {
  #landing .home-nav { justify-content: space-between; inline-size: calc(100% - 2 * var(--home-gutter)); gap: 8px; }
  #landing .home-nav-links { display: none; }
  #landing .home-nav-actions { margin-inline-start: auto; }
  #landing .home-menu-toggle { display: inline-flex; }
  #landing .home-hero { align-items: stretch; min-block-size: 40rem; block-size: 100svh; max-block-size: none; }
  #landing .home-hero-media { inset: 0 0 auto; block-size: 46%; }
  #landing .home-hero-media img { object-position: 66% center; }
  #landing .home-hero-tint { inset: 0 0 auto; block-size: 46%; background: rgb(43 27 19 / 30%); }
  #landing .home-hero-inner { align-self: end; padding-block: 24px 72px; }
  #landing .home-hero-copy { gap: 16px; }
  #landing .home-hero .home-index { display: none; }
  #landing .home-lede { font-size: 1rem; line-height: 1.5rem; }
  #landing .home-hero-action { gap: 8px; margin-block-start: 0; }
  #landing .home-hero-foot { inset-block-end: 8px; }
  #landing .home-hero-note { inline-size: 100%; margin-inline-start: 0; }
  #landing .home-scroll-cue { display: none; }
  #landing .hf-journey { block-size: 330svh; }
  #landing .hf-stage { min-block-size: 45rem; }
  #landing .hf-stage-top { inset-block-start: 80px; justify-content: flex-end; }
  #landing .hf-stage-top .home-index { display: none; }
  #landing .hf-stage-controls { gap: 4px; }
  #landing .hf-video-toggle, #landing .hf-next { white-space: nowrap; }
  #landing .hf-stage-headings { inset: 19% var(--home-gutter) auto var(--home-gutter); inline-size: auto; }
  #landing .hf-phase-title > span { margin-block-end: 8px; }
  #landing .hf-memory-photo { inset: 48% auto auto 50%; inline-size: 78vw; max-inline-size: 28.75rem; padding: 8px 8px 0; transform: translate(-50%, -20%) rotate(6deg); }
  #landing .hf-question { inset: 75% auto auto 12%; padding: 12px 16px; gap: 8px; transform: rotate(-3deg); }
  #landing [data-phase="voice"] .hf-memory-photo { inline-size: 78vw; inset: 42.5% auto auto 50%; transform: translate(-65%, -35%) rotate(-7deg) scale(.55); }
  #landing .hf-voice-card { inset: 57% var(--home-gutter) auto var(--home-gutter); inline-size: auto; max-inline-size: none; }
  #landing .hf-voice-card blockquote { margin-block-start: 8px; font-size: 1.25rem; line-height: 2rem; }
  #landing .hf-listen { margin-block-start: 8px; min-block-size: 48px; }
  #landing .hf-voice-card > p { margin-block-start: 8px; }
  #landing .hf-book-wrap { inset: 32% auto auto 50%; inline-size: 216px; block-size: 308px; transform: translate(-50%, 0) rotate(3deg); }
  #landing [data-phase="book"] .hf-book-wrap { transform: translate(-50%, 0) rotate(0); }
  #landing .hf-book-cover { padding: 24px 16px 16px 24px; }
  #landing .hf-book-cover > strong { margin-block-start: 8px; font-size: 1.875rem; }
  #landing .hf-book-cover-photo { inset: 96px 16px auto auto; inline-size: 72px; block-size: 108px; }
  #landing .hf-book-inner { padding: 16px; }
  #landing .hf-book-inner strong { margin-block: 8px; font-size: 1.25rem; line-height: 1.5; }
  #landing .hf-book-inner img { block-size: 80px; }
  #landing .hf-book-inner > span { margin-block-start: 8px; line-height: 1.7; }
  #landing .hf-book[aria-expanded="true"] { transform: translateX(32px) rotateY(8deg); }
  #landing .hf-book-hint { margin-block-start: 8px; }
  #landing .hf-stage-bottom { inset-block-end: 88px; inset-inline: var(--home-gutter); }
  #landing .hf-book-services { flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
  #landing .hf-book-services a { margin-inline-start: 8px; }
  #landing .hf-chapters { inset-block-end: 16px; gap: 16px; }
  #landing .home-tagline-band { padding-block: 80px; }
  #landing .home-tagline { font-size: 1.875rem; line-height: 1.4; }
  #landing .home-footer-legal { flex-direction: column; }
  #landing .hf-cinema-top { inset-block-start: 16px; }
  #landing .hf-cinema > .hf-cinema-image, #landing .hf-cinema > video { block-size: 76%; }
  #landing .hf-cinema-tint { block-size: 76%; background: rgb(43 27 19 / 30%); }
  #landing .hf-cinema-copy { inset-block-end: 19%; }
  #landing .hf-cinema-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 47.99rem) and (max-height: 48.75rem) {
  #landing .hf-stage-headings { inset-block-start: 18%; }
  #landing [data-phase="book"] .hf-stage-bottom > p:first-child { display: none; }
  #landing .hf-question small { display: none; }
  #landing .hf-book-wrap { inset-block-start: 34%; transform-origin: 50% 0; transform: translate(-50%, 0) rotate(3deg) scale(.9); }
  #landing [data-phase="book"] .hf-book-wrap { transform: translate(-50%, 0) rotate(0) scale(.9); }
}
@media (max-width: 23rem) {
  #landing { --home-gutter: 16px; }
  #landing .home-tagline { font-size: 1.5rem; }
}

/* ───────── 动效：仅在允许动态时启用；滚动出现与逐字点亮由脚本加类 ───────── */
@media (prefers-reduced-motion: no-preference) {
  #landing { scroll-behavior: smooth; }
  #landing .home-reveal { transition: opacity .7s var(--home-ease), transform .7s var(--home-ease); }
  #landing .home-reveal:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(32px); }
  #landing .home-tagline-motion [data-home-word] { opacity: .32; transition: opacity .5s var(--home-ease); }
  #landing .home-tagline-motion [data-home-word].is-lit { opacity: 1; }
  #landing.sound-on .hf-equalizer i { animation: hf-equalize 1s var(--home-ease) infinite alternate; }
  #landing.sound-on .hf-equalizer i:nth-child(2) { animation-delay: -.4s; }
  #landing.sound-on .hf-equalizer i:nth-child(3) { animation-delay: -.7s; }
  #landing .home-menu[open] .home-menu-links a { animation: home-menu-link .22s var(--home-ease) both; }
  #landing .home-menu[open] .home-menu-links a:nth-child(2) { animation-delay: 60ms; }
  #landing .home-menu[open] .home-menu-links a:nth-child(3) { animation-delay: 120ms; }
  #landing .home-menu[open] .home-menu-links a:nth-child(4) { animation-delay: 180ms; }
  #landing .home-menu[open] .home-menu-close .home-menu-icon::before { animation: home-menu-cross-top .5s var(--home-ease); }
  #landing .home-menu[open] .home-menu-close .home-menu-icon::after { animation: home-menu-cross-bottom .5s var(--home-ease); }
}
@media (prefers-reduced-motion: reduce) {
  #landing *, #landing *::before, #landing *::after { animation: none !important; scroll-behavior: auto !important; }
  #landing :is(.home-button, .home-icon-button, .home-nav-links a, .hf-book, .hf-book-cover, .hf-phase-title, .hf-voice-card, .hf-memory-photo, .hf-question, .hf-book-wrap) { transition-property: opacity, background-color, color, border-color !important; transition-duration: .2s !important; }
  #landing .hf-photo-image video { display: none; }
  #landing .hf-journey { block-size: auto; }
  #landing .hf-stage { position: relative; block-size: 56.25rem; }
}
@keyframes hf-equalize { to { block-size: 16px; } }
@keyframes home-menu-link { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-menu-cross-top { from { transform: translateY(-4px); } }
@keyframes home-menu-cross-bottom { from { transform: translateY(4px); } }

@media (forced-colors: active) {
  #landing .home-hero h1 { background: none; color: CanvasText; }
  #landing .home-button { border-color: ButtonText; }
}

/* ───────── 登录 / 注册窗：在首页上打开时用同一套暖色，不再是深绿 ───────── */
.auth-close { display: none; position: absolute; top: 12px; right: 12px; z-index: 2; inline-size: 44px; block-size: 44px; border-radius: 9999px; border: 0; background: rgb(76 43 27 / 8%); color: var(--vg-ink2); cursor: pointer; align-items: center; justify-content: center; font-size: 1.125rem; }
body.landing-mode .auth-close { display: flex; }
body.theme-c.landing-mode #auth-modal {
  --auth-bg: #fff9ef; --auth-paper: #392922; --auth-muted: #6b5143; --auth-accent: #994732; --auth-line: #e1cfb9;
  --vg-soft: #f2e3d0; --vg-line-strong: #ad8569; --ui-surface: #fff9ef; --desk-line: #ad8569;
  background: rgb(43 27 19 / 60%); backdrop-filter: blur(8px); color-scheme: light;
}
body.theme-c.landing-mode #auth-modal #auth-dialog { box-shadow: 0 24px 80px rgb(76 43 27 / 30%); }
body.theme-c.landing-mode #auth-modal input:focus { background: #fff; }
body.theme-c.landing-mode #auth-modal form button[type=submit] { color: #fff5e5; }
body.theme-c.landing-mode #auth-modal form button[type=submit]:hover { background: #763323; color: #fff5e5; }
body.theme-c.landing-mode #auth-modal #auth-tabs button.border-b-2 { color: #994732; }
body.theme-c.landing-mode #auth-modal :is(h1, h2) { font-family: var(--vg-sans); }
