:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  color: #18231f;
  background: #eef1ef;
  font-synthesis: none;
  --ink: #18231f;
  --muted: #66716c;
  --line: #d9dfdc;
  --line-soft: #e9edeb;
  --line-strong: #cbd6d0;
  --panel: #ffffff;
  --green: #177a5a;
  --green-dark: #0f5c43;
  --green-soft: #e3f2eb;
  --surface: #f8fcfa;
  --amber: #8d6c28;
  --amber-soft: #fffaf0;
  --amber-line: #ead7a9;
  --danger: #b64040;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 620px at 8% -12%, #e6f2ec 0%, rgba(230, 242, 236, 0) 62%),
    radial-gradient(900px 520px at 102% 108%, #e8f0ec 0%, rgba(232, 240, 236, 0) 58%),
    #eef1ef;
}
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: var(--green-dark); }
code {
  padding: 1px 5px;
  border: 1px solid #e1e5e3;
  border-radius: 3px;
  background: #f3f5f4;
  color: #40504a;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: .92em;
  overflow-wrap: anywhere;
}

/* header */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; flex: 0 0 auto; object-fit: contain; }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.brand:hover b { color: var(--green); }

/* deck navigation */
.deck-nav { position: fixed; top: 50%; right: 18px; z-index: 15; display: grid; gap: 12px; transform: translateY(-50%); }
.deck-nav a { width: 10px; height: 10px; display: block; border: 1px solid #a9b8b2; border-radius: 50%; background: #fff; transition: background .18s, border-color .18s, transform .18s; }
.deck-nav a:hover { border-color: var(--green); transform: scale(1.2); }
.deck-nav a.is-current { border-color: var(--green); background: var(--green); transform: scale(1.25); }
.deck-nav a span {
  position: absolute;
  right: 22px;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  background: #263a33;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity .16s, transform .16s;
}
.deck-nav a { position: relative; }
.deck-nav a:hover span, .deck-nav a:focus-visible span { opacity: 1; transform: translateX(0); }

/* pages */
.deck { position: relative; z-index: 1; display: block; }

/* background sound field (decorative) */
.sound-field { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 26px) 0 50px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-body { width: min(1320px, 100%); max-height: calc(100svh - var(--header-height) - 76px); margin: 0 auto; padding: 0 40px; overflow: auto; }
.page::after {
  content: attr(data-step) " · 播小爪（声灵 LivePet）";
  position: absolute;
  left: 40px;
  bottom: 20px;
  color: #c3cdc8;
  font-size: 10px;
  letter-spacing: .08em;
}

.page-heading { margin-bottom: 20px; }
.page-heading h2 { font-size: 30px; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.page-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.page-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--green); }
.page-footnote { margin-top: 14px; color: var(--muted); font-size: 12px; }

/* hero */
.page-hero { align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hero-main { padding: 34px 38px; border-left: 4px solid var(--green); background: var(--surface); }
.eyebrow { display: block; color: var(--green); font-size: 11px; font-weight: 700; }
.hero-main h1 { margin: 10px 0 16px; font-size: 54px; line-height: 1.1; }
.hero-lead { color: #46534e; font-size: 15px; line-height: 1.85; }
.hero-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #cfe3d9; color: var(--muted); font-size: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.stat-row li { padding: 14px 14px 15px; border: 1px solid var(--line); background: #fff; }
.stat-row b { display: block; color: var(--green); font-size: 26px; line-height: 1.1; }
.stat-row span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audience-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; }
.audience-row span { color: var(--muted); font-size: 11px; }
.audience-row b { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: #34443e; background: #fff; font-size: 11.5px; font-weight: 600; }
.hero-aside { padding: 30px; border: 1px solid var(--line); background: #fff; }
.hero-aside h2 { font-size: 16px; }
.point-list { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: point; }
.point-list li { position: relative; padding: 0 0 17px 32px; counter-increment: point; }
.point-list li:last-child { padding-bottom: 0; }
.point-list li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
}
.point-list b { display: block; font-size: 13.5px; }
.point-list span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.scroll-hint { position: absolute; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; transform: translateX(-50%); transition: opacity .3s; }
.scroll-hint svg { width: 16px; height: 16px; animation: hint-bob 1.6s ease-in-out infinite; }
.scroll-hint.is-hidden { opacity: 0; }
@keyframes hint-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* visual page + promo shots */
.visual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.6fr); gap: 18px; align-items: start; }
.visual-steps { margin: 0; padding: 0; list-style: none; counter-reset: vstep; display: grid; gap: 12px; }
.visual-steps li { position: relative; padding: 16px 20px 16px 50px; border: 1px solid var(--line); background: #fff; counter-increment: vstep; }
.visual-steps li::before { content: counter(vstep); position: absolute; left: 18px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; font-weight: 700; }
.visual-steps b { display: block; font-size: 14px; }
.visual-steps span { display: block; margin-top: 6px; color: #46534e; font-size: 12.5px; line-height: 1.7; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(24,35,31,.07); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.page-split-main { min-width: 0; }
.page-split-side { grid-template-columns: minmax(0, 1fr) 290px; }

/* how it works */
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow-step { position: relative; padding: 26px 26px 24px; border: 1px solid var(--line); background: #fff; }
.flow-index { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 700; }
.flow-step h3 { font-size: 16px; }
.flow-step p { margin-top: 9px; color: #46534e; font-size: 13px; line-height: 1.8; }
.demo-band { margin-top: 18px; padding: 20px 24px; border: 1px solid #b9dccb; background: #f5fbf8; }
.demo-band h3 { font-size: 14.5px; color: var(--green-dark); }
.demo-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.demo-list li { padding: 14px; border: 1px solid #cfe3d9; background: #fff; }
.demo-list code { display: block; border: 0; padding: 0; color: var(--green-dark); background: none; font-size: 14px; font-weight: 700; }
.demo-list span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.demo-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
.compare-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.compare-band article { padding: 18px 22px; border: 1px solid var(--line); border-top: 3px solid #d7ddd9; background: #fff; }
.compare-band article.compare-good { border-top-color: var(--green); background: var(--surface); }
.compare-band h3 { font-size: 14px; }
.compare-band p { margin-top: 8px; color: #46534e; font-size: 12.5px; line-height: 1.75; }

/* example cards */
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.example-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.example-card { padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.example-card > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.example-card h3 { font-size: 17px; }
.example-tag { padding: 3px 8px; border-radius: 3px; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 700; white-space: nowrap; }
.example-story { margin-top: 12px; color: #46534e; font-size: 13px; line-height: 1.7; }
.phrase-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.phrase-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-soft); }
.phrase-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.phrase-list code { border: 0; padding: 0; color: var(--green-dark); background: none; font-size: 13px; font-weight: 700; }
.phrase-list span { color: var(--muted); font-size: 12px; text-align: right; }
.note-band { display: grid; gap: 7px; margin-top: 16px; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--surface); }
.note-band b { font-size: 14.5px; }
.note-band span { color: #46534e; font-size: 13px; line-height: 1.75; }

/* day timeline */
.day-list { display: grid; gap: 12px; }
.day-row { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-left: 4px solid var(--green); background: #fff; }
.day-time { color: var(--green-dark); font-size: 15px; font-weight: 700; }
.day-row ul { margin: 0; padding-left: 18px; }
.day-row li { margin-bottom: 8px; color: #46534e; font-size: 13px; line-height: 1.75; }
.day-row li:last-child { margin-bottom: 0; }

/* capabilities */
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.capability-card { padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.capability-card h3 { padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); color: var(--green-dark); font-size: 14px; }
.capability-card ul { margin: 11px 0 0; padding-left: 17px; }
.capability-card li { margin-bottom: 6px; color: #46534e; font-size: 12px; line-height: 1.72; }
.capability-card li:last-child { margin-bottom: 0; }

/* changelog */
.release { padding: 20px 24px; border: 1px solid var(--line); background: #fff; }
.release-latest { border-color: #b9dccb; background: #f5fbf8; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.release-tag { padding: 3px 9px; border-radius: 3px; color: #4e6259; background: #f0f4f2; font-size: 11px; font-weight: 700; white-space: nowrap; }
.release-latest .release-tag { color: #fff; background: var(--green); }
.release-head h3 { font-size: 15px; }
.release ul { margin: 12px 0 0; padding-left: 18px; }
.release li { margin-bottom: 6px; color: #46534e; font-size: 12.5px; line-height: 1.75; }
.release li:last-child { margin-bottom: 0; }
.release li b { color: var(--ink); }
.version-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.version-list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.version-list .release-tag { flex: 0 0 auto; }
.version-list span:last-child { color: #46534e; font-size: 12.5px; }

/* in progress + limits */
.pending-card { padding: 20px 24px; border: 1px solid var(--amber-line); background: var(--amber-soft); }
.pending-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pending-head h3 { font-size: 15px; }
.pending-badge { padding: 3px 9px; border-radius: 3px; color: #fff; background: var(--amber); font-size: 11px; font-weight: 700; }
.pending-card ul { margin: 12px 0 0; padding-left: 18px; }
.pending-card li { margin-bottom: 6px; color: #765d2d; font-size: 13px; line-height: 1.75; }
.pending-card li:last-child { margin-bottom: 0; }
.limit-list { margin: 16px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); background: #fff; }
.limit-list li { padding: 15px 24px; border-bottom: 1px solid var(--line-soft); color: #46534e; font-size: 13px; line-height: 1.8; }
.limit-list li:last-child { border-bottom: 0; }
.limit-list b { color: var(--ink); }

/* privacy + start + cta */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.privacy-item { padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: #fff; }
.privacy-item h3 { font-size: 14.5px; }
.privacy-item p { margin-top: 9px; color: #46534e; font-size: 13px; line-height: 1.75; }
.start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: start; }
.start-steps li { position: relative; padding: 20px 24px 20px 54px; border: 1px solid var(--line); background: #fff; counter-increment: start; }
.start-steps li::before { content: counter(start); position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; font-weight: 700; }
.start-steps b { display: block; font-size: 14px; }
.start-steps span { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.page-footer-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1080px) {
  .example-grid-3, .capability-grid, .version-list, .privacy-grid, .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid, .demo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page::after { display: none; }
  .page-split, .page-split-side { grid-template-columns: minmax(0, 1fr) 250px; }
  .visual-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-snap-type: none; }
  .page-header { position: static; }
  .deck-nav { display: none; }
  .page { min-height: 0; padding: 24px 0 36px; }
  .page-body { max-height: none; overflow: visible; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: 34px; }
  .page-heading h2 { font-size: 24px; }
  .example-grid, .example-grid-3, .capability-grid, .version-list, .privacy-grid, .start-steps, .flow-grid, .demo-list, .compare-band, .visual-grid, .page-split, .page-split-side { grid-template-columns: 1fr; }
  .visual-steps { order: -1; }
  .shot-inset { max-width: 420px; }
  .day-row { grid-template-columns: 1fr; gap: 8px; }
  .scroll-hint { display: none; }
}

@media (max-width: 580px) {
  .page-header { padding: 12px 14px; }
  .page-body { padding: 0 14px; }
  .hero-main, .hero-aside, .flow-step, .example-card, .capability-card, .release, .pending-card, .privacy-item, .day-row, .start-steps li, .limit-list li, .note-band, .demo-band, .compare-band article { padding-left: 16px; padding-right: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-main h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
}

/* 矮窗口：整体压缩，避免页面出现内部滚动条 */
@media (max-height: 860px) and (min-width: 861px) {
  .page { padding: calc(var(--header-height) + 14px) 0 30px; }
  .page-body { max-height: calc(100svh - var(--header-height) - 48px); }
  .page-heading { margin-bottom: 13px; }
  .page-heading h2 { font-size: 25px; }
  .page-kicker { margin-bottom: 7px; }
  .hero-main { padding: 22px 26px; }
  .hero-main h1 { font-size: 40px; margin: 8px 0 10px; }
  .hero-lead { font-size: 13px; line-height: 1.7; }
  .stat-row { margin-top: 13px; gap: 8px; }
  .stat-row li { padding: 9px 10px 10px; }
  .stat-row b { font-size: 20px; }
  .stat-row span { margin-top: 4px; font-size: 10px; }
  .audience-row { margin-top: 11px; }
  .hero-aside { padding: 20px; }
  .point-list { margin-top: 11px; }
  .point-list li { padding-bottom: 10px; }
  .flow-step, .example-card, .capability-card, .release, .pending-card, .privacy-item, .start-steps li, .day-row, .limit-list li { padding: 13px 17px; }
  .flow-index { width: 24px; height: 24px; margin-bottom: 8px; font-size: 12px; }
  .flow-step h3, .example-card h3, .pending-head h3, .release-head h3 { font-size: 14.5px; }
  .capability-card h3 { font-size: 13px; }
  .hero-aside h2, .demo-band h3, .note-band b { font-size: 13.5px; }
  .flow-step p, .example-story, .day-row li, .limit-list li, .pending-card li { font-size: 12px; line-height: 1.65; }
  .capability-card li, .release li, .privacy-item p, .start-steps span, .version-list span:last-child { font-size: 11.5px; line-height: 1.65; }
  .demo-band, .note-band { padding: 13px 18px; }
  .demo-list, .flow-grid, .capability-grid, .example-grid-3, .privacy-grid, .start-steps, .version-list, .compare-band { gap: 10px; }
  .day-list { gap: 8px; }
  .day-row ul, .capability-card ul, .release ul, .pending-card ul { margin-top: 8px; }
  .page-footnote { margin-top: 10px; }
  .page-split, .page-split-side { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
  .visual-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.55fr); gap: 12px; }
  .shot figcaption { margin-top: 7px; font-size: 11px; }
  .visual-steps li { padding: 11px 14px 11px 42px; }
  .visual-steps li::before { left: 14px; top: 11px; width: 20px; height: 20px; font-size: 11px; }
  .visual-steps b { font-size: 13px; }
  .visual-steps span { margin-top: 4px; font-size: 11.5px; }
}

/* 更矮的窗口：放弃整屏分页，改成普通长页面，避免出现页面内滚动条 */
@media (max-height: 799px) and (min-width: 861px) {
  html { scroll-snap-type: none; }
  .page { min-height: 0; padding: calc(var(--header-height) + 18px) 0 40px; }
  .page-body { max-height: none; overflow: visible; }
  .page::after { display: none; }
}

@media print {
  html { scroll-snap-type: none; }
  .page-header { position: static; }
  .deck-nav, .scroll-hint, .sound-field { display: none; }
  .page::after { display: none; }
  body { background: #fff; }
  .page { min-height: 0; padding: 18px 0; break-inside: avoid; }
  .page-body { max-height: none; overflow: visible; }
  .release, .example-card, .capability-card, .privacy-item, .limit-list, .day-row { break-inside: avoid; }
}
