/* =========================================================
   ReadFlow — 产品门户
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #f4efe6;
  --bg-tint: #ece5d7;
  --surface: #fbf8f2;
  --surface-2: #f2ece1;
  --ink: #1d1a16;
  --ink-2: #554e45;
  --ink-3: #8a8276;
  --line: rgba(29, 26, 22, .11);
  --line-strong: rgba(29, 26, 22, .2);
  --accent: #2f62b5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 98, 181, .1);
  --highlight: rgba(226, 184, 98, .5);
  --keep: #3f6b55;
  --again: #c4532c;
  --tag-1: #2f62b5;
  --tag-2: #3f6b55;
  --tag-3: #b85a3a;
  --tag-4: #b4862a;
  --shadow-sm: 0 1px 2px rgba(40, 30, 15, .06), 0 2px 8px rgba(40, 30, 15, .05);
  --shadow-md: 0 2px 6px rgba(40, 30, 15, .06), 0 18px 40px -12px rgba(40, 30, 15, .18);
  --shadow-lg: 0 4px 12px rgba(40, 30, 15, .06), 0 40px 80px -24px rgba(40, 30, 15, .3);
  --grain-opacity: .35;
  --halo: radial-gradient(closest-side, rgba(70, 120, 200, .26), transparent 70%);

  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210;
    --bg-tint: #191714;
    --surface: #1f1c18;
    --surface-2: #26231e;
    --ink: #ede6d9;
    --ink-2: #b4ab9c;
    --ink-3: #7c7469;
    --line: rgba(237, 230, 217, .09);
    --line-strong: rgba(237, 230, 217, .18);
    --accent: #86aaeb;
    --accent-ink: #0d1628;
    --accent-soft: rgba(134, 170, 235, .14);
    --highlight: rgba(221, 178, 90, .3);
    --keep: #7fb398;
    --again: #e57b4f;
    --tag-1: #86aaeb;
    --tag-2: #7fb398;
    --tag-3: #e08a62;
    --tag-4: #ddb25a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .8);
    --grain-opacity: .5;
    --halo: radial-gradient(closest-side, rgba(110, 150, 225, .2), transparent 70%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131210;
  --bg-tint: #191714;
  --surface: #1f1c18;
  --surface-2: #26231e;
  --ink: #ede6d9;
  --ink-2: #b4ab9c;
  --ink-3: #7c7469;
  --line: rgba(237, 230, 217, .09);
  --line-strong: rgba(237, 230, 217, .18);
  --accent: #86aaeb;
  --accent-ink: #0d1628;
  --accent-soft: rgba(134, 170, 235, .14);
  --highlight: rgba(221, 178, 90, .3);
  --keep: #7fb398;
  --again: #e57b4f;
  --tag-1: #86aaeb;
  --tag-2: #7fb398;
  --tag-3: #e08a62;
  --tag-4: #ddb25a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .8);
  --grain-opacity: .5;
  --halo: radial-gradient(closest-side, rgba(110, 150, 225, .2), transparent 70%);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* 纸张颗粒 */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #f6f0e6; color: #1d1a16; }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn--static { cursor: default; }
.btn--static:hover { transform: none; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #e2b862; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .5s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex: none;
  box-shadow: 0 1px 2px rgba(20, 40, 80, .18), 0 0 0 1px var(--line);
}
.brand__mark img, .download__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 34px; font-size: 14.5px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  display: grid; place-items: center; overflow: hidden;
  transition: border-color .2s, background-color .2s;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg {
  position: absolute; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), opacity .3s;
}
.theme-toggle .i-moon { opacity: 0; transform: translateY(120%) rotate(-40deg); }
:root[data-active-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: translateY(-120%) rotate(60deg); }
:root[data-active-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; }
.hero__inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; color: var(--ink-2);
  padding: 6px 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 600;
}
.hero__title em, .section__head h2 em, .download h2 em, .manifesto em {
  color: var(--accent);
  font-style: normal;
}
.hero__title em {
  background: linear-gradient(transparent 60%, var(--highlight) 60%, var(--highlight) 90%, transparent 90%);
  padding: 0 .06em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead {
  margin-top: 26px; max-width: 34em;
  font-size: 17px; line-height: 1.95; color: var(--ink-2);
}
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__meta {
  list-style: none; padding: 28px 0 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  border-top: 1px solid var(--line);
}
.hero__meta li { display: flex; flex-direction: column; gap: 2px; }
.hero__meta strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.hero__meta span { font-size: 13px; color: var(--ink-3); }

/* 手机样机 */
.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.halo { position: absolute; inset: -10% -20%; background: var(--halo); filter: blur(10px); z-index: 0; }
.phone {
  position: relative; z-index: 1;
  width: 300px; aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2b2824, #0f0e0c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-12px); } }
.phone__notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #0b0a09; z-index: 3;
}
.screen {
  height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--bg); padding: 16px 16px 0;
  display: flex; flex-direction: column;
  transition: background-color .5s;
}
.screen__status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 10px 0; }
.bars { display: flex; gap: 2px; align-items: flex-end; }
.bars i { width: 3px; background: var(--ink); border-radius: 1px; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; }
.screen__head { margin-top: 30px; display: flex; flex-direction: column; }
.screen__kicker { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.screen__title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.screen__title b { color: var(--accent); }
.chips { display: flex; gap: 6px; margin-top: 12px; }
.chip { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.chip--on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mini-shelf { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; flex: 1; align-content: start; overflow: hidden; }
.mini-book { display: flex; flex-direction: column; min-width: 0; }
.mini-book__cover {
  aspect-ratio: 3 / 4; border-radius: 4px 7px 7px 4px; background: var(--b);
  display: grid; place-items: center; padding: 6px;
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, .18), inset 5px 0 0 rgba(255, 255, 255, .12), 0 6px 12px -6px rgba(0, 0, 0, .45);
}
.mini-book__cover span { font-family: var(--serif); font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .9); text-align: center; letter-spacing: .06em; }
.mini-book b { margin-top: 6px; font-family: var(--serif); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-book small { font-size: 9.5px; color: var(--ink-3); }
.screen__tab {
  margin: 10px -16px 0; padding: 10px 14px 20px;
  display: flex; justify-content: space-around; font-size: 10.5px; color: var(--ink-3);
  border-top: 1px solid var(--line); background: var(--surface);
}
.screen__tab .on { color: var(--ink); font-weight: 600; }
.tab-review { position: relative; }
.tab-review::after { content: ""; position: absolute; top: -2px; right: -7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.float-card {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--ink-2);
  transition: background-color .5s;
}
.float-card b { color: var(--ink); }
.float-card__num { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.float-card__sub { font-size: 11px; color: var(--ink-3); }
.float-card--a { top: 16%; left: -2%; animation: float2 7s ease-in-out infinite; }
.float-card--b { bottom: 14%; right: -2%; width: 168px; animation: float2 9s ease-in-out infinite reverse; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.progress { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: var(--keep); border-radius: 3px; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 12px; }
}
@media (max-width: 480px) {
  .phone { width: 260px; }
  .float-card--a { left: 0; top: 8%; }
  .float-card--b { right: 0; }
}

/* 导入来源 */
.sources { margin-top: 56px; text-align: center; }
.sources__label { font-size: 12.5px; letter-spacing: .2em; color: var(--ink-3); }
.sources__row { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.source {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: background-color .5s;
}
.source small { font-family: var(--sans); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.source--on small { color: var(--keep); background: color-mix(in srgb, var(--keep) 14%, transparent); }
.source__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--keep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--keep) 18%, transparent); }
.source--soon { color: var(--ink-3); border-style: dashed; background: transparent; font-weight: 500; }
.source--soon small { color: var(--ink-3); background: var(--surface-2); }

/* ---------- 通用 Section ---------- */
.section { padding: 120px 0; position: relative; }
.section--tint { background: var(--bg-tint); transition: background-color .5s; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__head--left { text-align: left; margin: 0; }
.section__no {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--accent); padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; opacity: .9;
}
.section__head h2 {
  margin-top: 20px; font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.2; letter-spacing: -.015em;
}
.section__head p { margin-top: 20px; color: var(--ink-2); font-size: 16.5px; line-height: 1.9; }
@media (max-width: 640px) { .section { padding: 80px 0; } .section__head { margin-bottom: 44px; } }

/* ---------- 导入步骤 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .5s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__art {
  height: 180px; border-radius: 14px; background: var(--bg);
  display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line);
  transition: background-color .5s;
}
.step__no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.step h3 { margin-top: 6px; font-family: var(--serif); font-size: 22px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

.src-grid { display: flex; flex-direction: column; gap: 10px; width: 72%; }
.src-grid span {
  font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); text-align: center; color: var(--ink-2);
}
.src-grid .on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; font-size: 15px; padding: 12px; }
.src-grid .soon { border-style: dashed; color: var(--ink-3); background: transparent; }
.book-pick { display: flex; flex-direction: column; gap: 8px; width: 82%; }
.book-pick label {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-family: var(--serif);
  background: var(--surface); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
}
.book-pick small { margin-left: auto; font-family: var(--sans); color: var(--ink-3); font-size: 11px; }
.ck { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: none; position: relative; }
.ck.on { background: var(--ink); border-color: var(--ink); }
.ck.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sync-ring { position: relative; width: 120px; height: 120px; }
.sync-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sync-ring circle { fill: none; stroke-width: 7; }
.sync-ring .track { stroke: var(--line); }
.sync-ring .bar { stroke: var(--keep); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.step.is-in .sync-ring .bar { stroke-dashoffset: 0; }
.sync-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------- 归纳 ---------- */
.organize { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.org-tabs { display: flex; flex-direction: column; gap: 10px; }
.org-tab {
  text-align: left; cursor: pointer; background: transparent;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.org-tab:hover { border-color: var(--line-strong); }
.org-tab.is-active { background: var(--surface); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.org-tab__k { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.org-tab__d { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.org-stage {
  position: relative; min-height: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px; box-shadow: var(--shadow-md);
  transition: background-color .5s;
}
.org-view { animation: fadeUp .5s var(--ease); }
.org-view[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.shelf { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding-bottom: 8px; border-bottom: 3px solid var(--line-strong); }
.book {
  width: 38px; border-radius: 4px 4px 2px 2px; background: var(--b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .15), inset 2px 0 0 rgba(255, 255, 255, .1);
  transition: transform .3s var(--ease);
}
.book:nth-child(1) { height: 96px; } .book:nth-child(2) { height: 110px; } .book:nth-child(3) { height: 86px; width: 32px; } .book:nth-child(4) { height: 104px; width: 44px; } .book:nth-child(5) { height: 92px; }
.book span { writing-mode: vertical-rl; font-family: var(--serif); font-size: 12px; color: rgba(255, 255, 255, .88); letter-spacing: .1em; }
.book--on { transform: translateY(-10px); }
.book:hover { transform: translateY(-10px); }
.book-page { margin-top: 26px; }
.book-page__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.book-page h4 { font-family: var(--serif); font-size: 26px; }
.book-page__head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chapter { margin-top: 22px; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
blockquote {
  margin: 10px 0 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 18px; line-height: 1.75;
}
.thought { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c);
}
.topic b { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.topic span { font-family: var(--mono); font-size: 12px; opacity: .8; }
.topic--lg { padding: 14px 22px; } .topic--lg b { font-size: 22px; }
.topic--md b { font-size: 19px; }
.topic-thread { margin-top: 30px; border-top: 1px dashed var(--line-strong); padding-top: 22px; }
.topic-thread__title { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.thread-item {
  margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--bg);
  font-family: var(--serif); font-size: 16.5px; line-height: 1.7;
  border: 1px solid var(--line);
}
.thread-item span { display: block; font-family: var(--sans); font-size: 12px; color: var(--tag-1); margin-bottom: 2px; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line-strong); }
.tl-year { position: relative; font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 4px 0 6px; }
.tl-year::before { content: ""; position: absolute; left: -26px; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-item::before { content: ""; position: absolute; left: -23.5px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.tl-item time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.tl-item p { font-family: var(--serif); font-size: 16.5px; }
.tl-item span { grid-column: 2; font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
  .organize { grid-template-columns: 1fr; }
  .org-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .org-tab { flex: 1 0 auto; padding: 12px 18px; }
  .org-tab__d { display: none; }
  .org-stage { padding: 22px; min-height: 0; }
}

/* ---------- 回顾 卡片 ---------- */
.review { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.legend { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 12px; }
.key {
  min-width: 40px; height: 30px; padding: 0 10px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12.5px; font-family: var(--mono); box-shadow: 0 2px 0 var(--line-strong);
}
.key--l { color: var(--again); }
.key--r { color: var(--keep); }
.tally { margin-top: 28px !important; font-size: 14px; color: var(--ink-3) !important; }
.tally b { color: var(--ink); font-family: var(--serif); font-size: 18px; }

.deck-area { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.deck { position: relative; width: min(380px, 100%); aspect-ratio: 4 / 5; perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card {
  position: absolute; inset: 0;
  transform-origin: 50% 110%;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  will-change: transform;
}
.card.is-top { cursor: grab; }
.card.is-dragging { transition: none; cursor: grabbing; }
.card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 30px 30px 26px; display: flex; flex-direction: column;
  transition: background-color .5s;
}
.card__face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 33px, var(--line) 33px 34px);
  opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 60%); mask-image: linear-gradient(180deg, transparent 20%, #000 60%);
}
.card__face--back { transform: rotateY(180deg); background: var(--ink); color: var(--bg); border-color: transparent; }
.card__face--back::before { display: none; }
.card__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); position: relative; }
.card__tag { padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.card__quote-mark { font-family: var(--serif); font-size: 84px; line-height: .8; color: var(--c); margin-top: 22px; height: 46px; position: relative; }
.card__quote { position: relative; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.75; margin-top: 8px; flex: 1; }
.card__book { position: relative; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.card__book b { font-family: var(--serif); font-size: 16px; display: block; }
.card__book span { font-size: 12.5px; color: var(--ink-3); }
.card__hint { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.card__face--back .card__label { font-size: 12px; letter-spacing: .14em; opacity: .6; }
.card__face--back .card__thought { margin-top: 20px; font-family: var(--serif); font-size: 21px; line-height: 1.75; flex: 1; }
.card__face--back .card__meta { font-size: 12.5px; opacity: .6; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); padding-top: 14px; }

.stamp {
  position: absolute; top: 34px; z-index: 3; pointer-events: none;
  font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 14px; border: 3px solid currentColor; border-radius: 10px;
  opacity: 0; transition: opacity .15s;
}
.stamp--keep { left: 26px; color: var(--keep); transform: rotate(-14deg); }
.stamp--again { right: 26px; color: var(--again); transform: rotate(14deg); }

.deck-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: 26px; color: var(--ink-3); font-size: 14px; padding: 24px;
}
.deck-empty b { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 6px; }

.deck-controls { display: flex; gap: 18px; align-items: center; }
.round {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.round svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { transform: translateY(-3px) scale(1.04); }
.round:active { transform: scale(.94); }
.round--again { color: var(--again); }
.round--keep { color: var(--keep); width: 72px; height: 72px; }
.round--keep svg { width: 28px; height: 28px; stroke-width: 2.4; }
.round--flip { width: 50px; height: 50px; color: var(--ink-2); }
.round--again:hover { background: var(--again); color: var(--accent-ink); }
.round--keep:hover { background: var(--keep); color: var(--surface); }

@media (max-width: 960px) {
  .review { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- 引言 ---------- */
.manifesto { padding: 140px 0; text-align: center; border-top: 1px solid var(--line); }
.manifesto__text { font-family: var(--serif); font-size: clamp(26px, 3.8vw, 46px); line-height: 1.6; letter-spacing: -.01em; max-width: 920px; margin: 0 auto; }
.manifesto__by { margin-top: 28px; font-size: 14px; color: var(--ink-3); letter-spacing: .12em; }
.br-md { display: none; }
@media (max-width: 640px) { .manifesto { padding: 96px 0; } .br-md { display: inline; } }

/* ---------- 特性 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feature { background: var(--bg-tint); padding: 38px 32px; transition: background-color .4s; }
.feature:hover { background: var(--surface); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 22px; font-family: var(--serif); font-size: 20px; }
.feature p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature { padding: 30px 24px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 下载 ---------- */
.download { padding: 0 0 120px; }
.download__inner {
  position: relative; overflow: hidden; text-align: center;
  background: #1b1916; color: #f1ebe0;
  border-radius: 32px; padding: 96px 24px;
  box-shadow: var(--shadow-lg);
}
:root[data-active-theme="dark"] .download__inner { background: #221f1b; border: 1px solid var(--line); }
.download__inner::before {
  content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -320px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(80, 130, 215, .45), transparent 70%);
}
.download__inner > * { position: relative; }
.download__mark { display: block; width: 76px; height: 76px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px -8px rgba(47, 98, 181, .6); }
.download h2 { margin-top: 28px; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.25; }
.download h2 em { color: #9dbcf2; }
.download p { margin-top: 14px; color: rgba(241, 235, 224, .65); }
.download .hero__cta { justify-content: center; }
.soon { font-size: 14px; color: rgba(241, 235, 224, .55); padding: 0 12px; }
@media (max-width: 640px) { .download { padding-bottom: 80px; } .download__inner { padding: 72px 20px; border-radius: 26px; } }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 14px; color: var(--ink-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--ink-3); font-family: var(--serif); }
.footer__cols { display: flex; gap: 72px; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h4 { font-size: 13px; color: var(--ink); letter-spacing: .08em; margin-bottom: 4px; }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.beian { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.beian a { transition: color .2s; }
.beian a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.beian .sep { opacity: .5; }
@media (max-width: 640px) {
  .footer__cols { gap: 48px; }
  .footer__legal { flex-direction: column; }
  .beian { flex-direction: column; align-items: flex-start; }
  .beian .sep { display: none; }
}

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(3n+2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3n) { transition-delay: .2s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* 开发中标记 */
.dev-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 999px;
  color: var(--tag-4); background: color-mix(in srgb, var(--tag-4) 14%, transparent);
}
.dev-note {
  margin-bottom: 18px; font-size: 12.5px; color: var(--ink-3);
  padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center;
}
