:root {
  /* 声明只支持浅色：避免移动端「强制深色 / 夜间模式」把米白页面反色成灰黑 */
  color-scheme: light;
  --cream: #FFFCF6;
  --cream-2: #FFF6EA;
  --white: #FFFFFF;
  --ink: #2C2C2A;
  --muted: #77746C;
  --red: #E8482B;
  --red-soft: #FFF0EA;
  --teal: #17A0B4;
  --teal-soft: #E7F5F7;
  --amber: #E8A33C;
  --line: #F0E5D8;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  margin: 0 0 10px;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 252, 246, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 20px;
  font-size: 15px; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: #D63C22; color: #fff; }
.btn-ghost { background: var(--white); color: var(--red); border-color: #F1C9BB; }
.btn-ghost:hover { background: var(--red-soft); color: var(--red); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 470px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-hint { color: var(--muted); font-size: 13px; }

.phone {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px 18px 14px;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.phone-top strong { font-size: 15px; }
.phone-top span { font-size: 12px; color: var(--muted); }
.balance { padding: 18px 0 14px; }
.balance span { display: block; font-size: 12px; color: var(--muted); }
.balance strong { display: block; font-size: 30px; line-height: 1.3; color: var(--red); letter-spacing: -.02em; }
.entry { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.r { background: var(--red); }
.dot.t { background: var(--teal); }
.dot.a { background: var(--amber); }
.entry .name { flex: 1; min-width: 0; }
.entry .tag { font-size: 11px; color: var(--teal); background: var(--teal-soft); border-radius: 5px; padding: 2px 7px; }
.entry .amt { font-variant-numeric: tabular-nums; color: var(--ink); }
.phone-tabs { display: flex; justify-content: space-around; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.phone-tabs b { color: var(--red); font-weight: 600; }
.floating-note {
  position: absolute; right: -26px; top: -22px;
  background: var(--teal-soft); color: #0E6E7C; border: 1px solid #C7E6EA;
  border-radius: 10px; padding: 9px 13px; font-size: 12px; font-weight: 600;
}
.illus-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 20px 18px; font-size: 14px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .mark { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 14px; font-weight: 700; }
.trust-item b { display: block; font-size: 14px; }
.trust-item small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- sections ---------- */
.sec { padding: 76px 0; }
.sec-hd { max-width: 720px; margin-bottom: 36px; }
.sec-hd .lead { margin-top: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }
.card .kicker { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-soft); border-radius: 6px; padding: 3px 9px; margin-bottom: 14px; }
.card .quote { color: var(--ink); font-size: 15px; border-left: 3px solid var(--red); padding-left: 12px; margin-top: 14px; }

.feat { display: flex; flex-direction: column; gap: 9px; }
.feat .n { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.feat h3 { font-size: 17px; }
.feat .proof { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12px; margin-top: 2px; }
.feat .proof::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- three ends ---------- */
.ends { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ends-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ends-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.ends-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ends-list .badge { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.browser { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--white); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #EBD9C7; }
.browser-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.stat span { display: block; font-size: 11px; color: var(--muted); }
.stat strong { display: block; font-size: 20px; margin-top: 4px; }
.stat small { display: block; font-size: 11px; color: var(--teal); margin-top: 2px; }
.browser-row { display: flex; gap: 10px; padding: 0 20px 20px; }
.browser-row .bar { height: 9px; border-radius: 5px; background: #F1E5D6; }
.browser-row .bar.hot { background: var(--red); }

/* ---------- pricing ---------- */
.price-card { position: relative; }
.price-card.pick { border: 2px solid var(--red); }
.price-card .ribbon { position: absolute; top: -12px; left: 24px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 6px; }
.price-card .big { font-size: 30px; font-weight: 700; margin: 6px 0 12px; }
.price-card ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.price-card li { padding: 7px 0 7px 22px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.fineprint { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* ---------- guide ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 18px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; color: var(--red); font-size: 22px; font-weight: 700; margin-bottom: 10px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 17px 28px 17px 0; position: relative; font-weight: 600; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 14px; color: var(--red); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---------- cta band + footer ---------- */
.band { background: var(--red); color: #fff; }
.band h2 { color: #fff; }
.band .lead { color: #FFE9E1; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; }
.band .btn-primary { background: #fff; color: var(--red); border-color: #fff; }
.band .btn-primary:hover { background: var(--cream); color: var(--red); }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.band .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 13px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.foot-grid a, .foot-grid p { display: block; margin-bottom: 7px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 12px; }

/* ---------- sub pages ---------- */
.doc { padding: 48px 0 80px; max-width: 820px; }
.doc h1 { font-size: 34px; margin-bottom: 10px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--red); }

/* ---------- 栅格最小宽度兜底（2026-11-15 复检） ----------
   grid item 默认 min-width:auto 会被子项内容撑开，窄屏时整页横向溢出：
   文字与账本卡片右侧被裁。统一 minmax(0,1fr) + 子项 min-width:0。 */
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.ends-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.browser-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.hero-grid > *, .ends-grid > *, .grid-3 > *, .grid-4 > *, .grid-2 > * { min-width: 0; }
.entry .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .amt { flex: none; white-space: nowrap; }

@media (max-width: 900px) {
  .nav-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  .nav-links { display: flex; order: 3; width: 100%; margin-left: 0; gap: 18px; font-size: 13px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
  .nav-cta { margin-left: auto; }
  .hero-grid, .ends-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-in { grid-template-columns: minmax(0, 1fr); }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 54px 0; }
  .grid-3, .grid-4, .grid-2, .browser-body { grid-template-columns: minmax(0, 1fr); }
  .nav-in { gap: 10px; height: auto; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .nav-cta .btn-quiet { display: none; }
  .hero .lead { max-width: 100%; }
  .hero-actions .btn { width: 100%; }
  .floating-note { right: 0; top: -14px; font-size: 11px; padding: 6px 9px; }
  .phone { padding: 16px 14px 12px; }
  .browser-row { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
