/* BakeMemo 官网主页 · 纯 CSS,无脚本、无外部字体、无第三方资源。
   视觉:烘焙实验手记——暖纸、淡方格、衬线大标题、批次钢印、血脉链。 */
:root {
  color-scheme: light dark;
  --paper: #f5efe4;
  --paper-2: #efe6d6;
  --card: #fffaf2;
  --ink: #2a211b;
  --ink-2: #4a3d33;
  --muted: #7a6b5f;
  --brand: #b7562d;
  --brand-deep: #8f3f1d;
  --brand-wash: rgba(183, 86, 45, 0.1);
  --line: rgba(91, 66, 49, 0.16);
  --grid: rgba(120, 90, 60, 0.07);
  --shadow: 0 30px 60px -28px rgba(70, 40, 20, 0.45), 0 10px 22px -12px rgba(70, 40, 20, 0.25);
  --serif: "New York", ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16120e;
    --paper-2: #1d1813;
    --card: #221c16;
    --ink: #f3eadf;
    --ink-2: #dccdbd;
    --muted: #b3a291;
    --brand: #e88958;
    --brand-deep: #f2a27a;
    --brand-wash: rgba(232, 137, 88, 0.13);
    --line: rgba(255, 236, 218, 0.13);
    --grid: rgba(255, 236, 218, 0.045);
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 10px 22px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.brand small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--paper); }
.nav .lang { font-size: 14px; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,0.7); }
.btn-primary .glyph { width: 22px; height: 22px; flex: none; }
.btn-primary .two { display: flex; flex-direction: column; text-align: left; }
.btn-primary .two small { font-weight: 500; font-size: 12px; opacity: 0.75; letter-spacing: 0.02em; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* ---------- 首屏 ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-2); max-width: 30em; margin: 0 0 30px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

.stage { position: relative; height: clamp(460px, 56vw, 640px); }
.phone {
  position: absolute; width: clamp(200px, 22vw, 290px);
  border-radius: clamp(30px, 3.4vw, 44px); padding: 9px;
  background: #1d1a17; box-shadow: var(--shadow);
}
.phone img { border-radius: clamp(22px, 2.7vw, 36px); width: 100%; }
.phone.front { right: 4%; top: 6%; transform: rotate(3deg); z-index: 2; }
.phone.back { left: 2%; top: 14%; transform: rotate(-5deg); opacity: 0.97; }
.stamp {
  position: absolute; z-index: 3; left: 0; bottom: 3%;
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand); border: 3px solid var(--brand); border-radius: 10px; padding: 6px 16px 4px;
  transform: rotate(-9deg); background: color-mix(in srgb, var(--paper) 70%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { .stamp { mix-blend-mode: normal; } }
.stamp small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; font-weight: 700; text-align: center; }

/* ---------- 引言带 ---------- */
.quote { padding: clamp(48px, 7vw, 90px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.quote p {
  font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.3; margin: 0 auto; max-width: 20em; text-align: center; letter-spacing: -0.01em;
}
.quote p span { color: var(--brand); }
.quote .sub { font-family: var(--sans); font-size: 1.05rem; color: var(--muted); margin-top: 18px; letter-spacing: 0; }

/* ---------- 功能条目 ---------- */
.section-head { text-align: center; padding: clamp(64px, 8vw, 110px) 0 clamp(20px, 3vw, 36px); }
.section-head h2 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 34em; }

.entry {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px dashed var(--line);
}
.entry:last-of-type { border-bottom: 0; }
.entry:nth-of-type(even) .shot { order: -1; }
.entry .no {
  font-family: var(--serif); font-size: 15px; color: var(--brand); letter-spacing: 0.12em; font-weight: 700;
  display: inline-block; border-bottom: 2px solid var(--brand); padding-bottom: 2px; margin-bottom: 18px;
}
.entry h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.16; margin: 0 0 16px; letter-spacing: -0.01em; }
.entry p { color: var(--ink-2); margin: 0 0 12px; max-width: 30em; }
.entry ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.entry li { padding-left: 22px; position: relative; margin: 8px 0; }
.entry li::before { content: "—"; position: absolute; left: 0; color: var(--brand); }
.entry .note { font-size: 14px; color: var(--muted); }
.shot { display: flex; justify-content: center; position: relative; }
.shot .phone { position: relative; width: min(300px, 72vw); transform: none; }
.shot.tilt-l .phone { transform: rotate(-2.5deg); }
.shot.tilt-r .phone { transform: rotate(2.5deg); }

/* 血脉链小图 */
.lineage { margin: 22px 0 6px; max-width: 430px; width: 100%; }
.lineage svg { display: block; }
.lineage svg { width: 100%; height: auto; overflow: visible; }
.lineage .node { fill: var(--card); stroke: var(--line); }
.lineage .node.now { stroke: var(--brand); stroke-width: 2; }
.lineage text { font-family: var(--sans); font-size: 13px; fill: var(--ink-2); }
.lineage .g { font-family: var(--serif); font-weight: 700; fill: var(--brand); font-size: 14px; }
.lineage .delta { fill: var(--muted); font-size: 12px; }
.lineage path { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 5 5; }

/* ---------- 中段 CTA ---------- */
.inline-cta {
  margin: clamp(40px, 6vw, 70px) auto 0; max-width: 820px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.inline-cta h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.inline-cta p { color: var(--muted); margin: 0 0 22px; }

/* ---------- 大屏 ---------- */
.big { margin-top: clamp(64px, 8vw, 110px); padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: var(--paper); }
.big .section-head { padding-top: 0; }
.big .section-head p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.big .devices { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.tablet, .duo { background: #0f0d0b; border-radius: 30px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.tablet img, .duo img { border-radius: 20px; }
.big figcaption { margin-top: 14px; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 15px; text-align: center; }
.big .cta-row { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.big .btn-primary { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { .big { background: #0b0907; } }

/* ---------- 隐私 ---------- */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 10px; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.promise b { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; }
.promise span { color: var(--muted); font-size: 15px; line-height: 1.6; display: block; }

/* ---------- 免费与 Pro ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); }
.plan.pro { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-wash), transparent 55%), var(--card); }
.plan h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 6px; }
.plan .tag { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 800; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px auto 0; max-width: 46em; }

/* ---------- 收尾 CTA ---------- */
.final { text-align: center; padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); }
.final img.icon { width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 24px; box-shadow: var(--shadow); }
.final h2 { font-family: var(--serif); font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.06; margin: 0 0 16px; letter-spacing: -0.02em; }
.final p { color: var(--muted); font-size: 1.1rem; margin: 0 0 30px; }
.final .cta-row { justify-content: center; }
.final .mini { margin: 22px 0 0; font-size: 15px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--muted); }
.foot .sp { margin-left: auto; }

/* ---------- 手机底部常驻下载条 ---------- */
.dock { display: none; }

/* ---------- 入场 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-tilt-f { from { opacity: 0; transform: translateY(28px) rotate(3deg); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes rise-tilt-b { from { opacity: 0; transform: translateY(36px) rotate(-5deg); } to { opacity: 0.97; transform: rotate(-5deg); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-9deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-9deg) scale(0.96); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
.hero .copy > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero .copy > *:nth-child(2) { animation-delay: 80ms; }
.hero .copy > *:nth-child(3) { animation-delay: 160ms; }
.hero .copy > *:nth-child(4) { animation-delay: 240ms; }
.hero .copy > *:nth-child(5) { animation-delay: 320ms; }
.phone.back { animation: rise-tilt-b 900ms 200ms cubic-bezier(.2,.7,.2,1) both; }
.phone.front { animation: rise-tilt-f 900ms 340ms cubic-bezier(.2,.7,.2,1) both; }
.stamp { animation: stamp 520ms 1000ms cubic-bezier(.3,1.4,.5,1) both; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { height: clamp(420px, 108vw, 600px); max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: clamp(180px, 46vw, 260px); }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry:nth-of-type(even) .shot { order: 0; }
  .big .devices { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .nav-links a.hide-s { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .nav-links { gap: 14px; }
  .nav .btn-sm { display: none; }
  .foot .sp { margin-left: 0; }
  body { padding-bottom: 84px; }
  .dock {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
    align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.45);
  }
  .dock img { width: 40px; height: 40px; border-radius: 10px; }
  .dock .t { line-height: 1.25; font-size: 14px; }
  .dock .t b { display: block; font-size: 15px; }
  .dock .t span { color: var(--muted); }
  .dock .btn { margin-left: auto; padding: 10px 18px; font-size: 15px; }
}
