/* 随口 · 网站
   一整页就是一片暮色的天：标题在天上，悬浮条站在地平线那道光上，正文沉到海面以下。
   和 App 同一套色板，系统字体，靠字重分层；唯一的强调色是地平线的暖光。动效只动 transform / opacity。 */

:root {
  --sky-top: #2E3650;
  --sky: #4F5B7C;
  --mauve: #9C8199;
  --rose: #E0B49C;
  --glow: #FFD2A6;
  --glow-deep: #E9B98A;
  --sea: #8C7084;
  --sea-deep: #4A4160;
  --deep: #262638;
  --night: #1B1B2A;

  --ink: #2E2B3D;                 /* 地平线上的深色字 */
  --ink-2: rgba(46, 43, 61, 0.68);
  --light: #F4F1F2;               /* 天上和海里的浅色字 */
  --light-2: rgba(244, 241, 242, 0.72);
  --light-3: rgba(244, 241, 242, 0.62);
  --accent-ink: #3A2A22;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-top: rgba(255, 255, 255, 0.16);
  --capsule: rgba(46, 43, 61, 0.9);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lede: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem);
  --text-h1: clamp(2.5rem, 1.2rem + 5vw, 6rem);
  --text-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --text-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 1040px;
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --slow: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--light);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--glow); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--glow); color: var(--accent-ink); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- 顶栏 ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { border-radius: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.brand-zh { font-weight: 600; }
.brand-en { margin-left: 0.4em; font-weight: 400; color: var(--light-2); letter-spacing: 0.01em; }
.top nav { display: flex; gap: 22px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--light); }
.top nav a:hover { color: var(--light); }

/* ---------- 天空 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 5rem + 5vw, 8.5rem) var(--gutter) 1.75rem;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 55%, #7A6F8C 100%);
}
.hero::after {                                   /* 很轻的颗粒，天才不像一张塑料布 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { position: relative; max-width: var(--measure); margin: 0 auto; }
.eyebrow { font-size: 0.9rem; color: var(--light-2); margin-bottom: 1.5rem; }
.hero h1 {
  font-size: var(--text-h1); font-weight: 700; line-height: 1.05; letter-spacing: 0;
  max-width: 14em;
}
.hero-text { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.hero-dim { color: var(--light-2); font-weight: 600; }      /* 前半句退一步，重点落在后半句 */
.hero-title.is-filled .hero-text { opacity: 1; transform: none; }
/* 字贴进去以后，光标还在后面闪：这是贴进了输入框的字 */
.hero-caret { display: inline-block; width: 3px; height: 0.9em; margin-left: 0.1em; vertical-align: -0.06em; background: var(--glow); opacity: 0; }
.hero-title.is-filled .hero-caret { opacity: 1; animation: blink 1.1s steps(2) infinite 500ms; }
/* 字还没来的时候，光标在开头等着：这里是输入框 */
.hero-caret-start { margin-left: 0; margin-right: 0.05em; }
.hero-title:not(.is-filled) .hero-caret-start { opacity: 1; animation: blink 1.1s steps(2) infinite; }
.hero-title.is-filled .hero-caret-start { display: none; }
@keyframes blink { to { opacity: 0; } }
/* 说的那句话飞到标题里：原话变成字 */
.ghost { position: fixed; z-index: 5; pointer-events: none; white-space: nowrap; color: var(--light); font-weight: 600; transform-origin: left top; }
.download { padding: clamp(5rem, 4rem + 3vw, 7rem) var(--gutter) clamp(3rem, 2rem + 3vw, 4.5rem); background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 28%, var(--sea-deep) 100%); }
.download .lede { margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 600; line-height: 1.3; max-width: 20em; }
.download .cta-row { margin-top: 2rem; }
.download .btn { padding: 14px 26px; font-size: 1.1rem; border-radius: 14px; }
.lede { margin-top: 1.5rem; font-size: var(--text-lede); line-height: 1.7; max-width: 30em; color: var(--light); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 2.25rem; }
.cta-note { font-size: 0.9rem; color: var(--light); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; line-height: 1.3;
  transition: transform var(--fast) var(--ease-out), background-color var(--fast);
}
.btn-glow { background: var(--glow); color: var(--accent-ink); }
.btn-glow:hover { background: #FFDFC0; color: var(--accent-ink); transform: translateY(-1px); }
.btn-glow:active { transform: translateY(0); background: var(--glow-deep); }

/* ---------- 地平线 ---------- */
.horizon {
  position: relative;
  padding: 1.25rem var(--gutter) clamp(2.5rem, 2rem + 3vw, 4rem);
  color: var(--ink);
  background: linear-gradient(180deg, #7A6F8C 0%, var(--mauve) 18%, var(--rose) 44%, var(--glow) 56%, var(--rose) 66%, var(--sea) 100%);
}
.horizon::before {                               /* 地平线本身：一条亮线 */
  content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 1px; pointer-events: none;
  background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 28px 8px rgba(255, 210, 166, 0.55);
}
.stage { position: relative; display: grid; justify-items: start; }
.stage-row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.stage-step { margin: 0 0 16px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); min-height: 1.5em; transition: opacity 200ms; }
.stage-step.is-swapping { opacity: 0; }

/* 键盘上的那个键：按一下开始，再按一下结束 */
.keycap {
  position: relative; width: 72px; height: 60px; padding: 0; border: 0; border-radius: 10px; cursor: pointer; font: inherit;
  background: linear-gradient(180deg, #ECEAF0, #D6D3DD); color: #3B3847;
  box-shadow: 0 4px 0 #A39FAE, 0 6px 14px -6px rgba(38, 38, 56, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 110ms ease-out, box-shadow 110ms ease-out;
}
.keycap-glyph { position: absolute; top: 6px; right: 9px; font-size: 14px; line-height: 1; }
.keycap-label { position: absolute; left: 9px; bottom: 7px; font-size: 11px; line-height: 1; letter-spacing: 0.01em; }
.keycap.is-pressed, .keycap:active { transform: translateY(4px); box-shadow: 0 0 0 #A39FAE, 0 2px 6px -4px rgba(38, 38, 56, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.keycap:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }

/* 悬浮条：和 App 里一样的胶囊 */
.capsule {
  position: relative; width: max-content; height: 56px; padding: 0 7px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 28px; background: var(--capsule); color: var(--light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px -12px rgba(38, 38, 56, 0.6);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
.capsule::after {                                /* 海面上的倒影 */
  content: ""; position: absolute; left: 12%; right: 12%; top: 100%; height: 56px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0, rgba(255, 210, 166, 0.45), transparent 70%); filter: blur(5px);
}
.capsule.is-hidden { opacity: 0; transform: scale(0.9); }
.capsule.is-done { opacity: 0.6; transform: translateY(4px) scale(0.96); }
.cap-btn { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.cap-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-cancel { background: rgba(255, 255, 255, 0.14); color: var(--light); }
.cap-ok { background: var(--glow); color: var(--accent-ink); transition: opacity var(--fast), transform var(--fast); }
.capsule.is-thinking .cap-ok { opacity: 0; transform: scale(0.6); }
.cap-wave { position: relative; z-index: 1; display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; }
.cap-wave i { display: block; width: 4px; height: 9px; border-radius: 2px; background: var(--light); transform-origin: center; animation: wave 1.1s ease-in-out infinite; }
.cap-wave i:nth-child(1) { animation-delay: 0s; }  .cap-wave i:nth-child(2) { animation-delay: -0.9s; }
.cap-wave i:nth-child(3) { animation-delay: -0.3s; } .cap-wave i:nth-child(4) { animation-delay: -0.7s; }
.cap-wave i:nth-child(5) { animation-delay: -0.1s; } .cap-wave i:nth-child(6) { animation-delay: -0.5s; }
.cap-wave i:nth-child(7) { animation-delay: -0.8s; } .cap-wave i:nth-child(8) { animation-delay: -0.2s; }
.cap-wave i:nth-child(9) { animation-delay: -0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1.9); } }
.capsule.is-thinking .cap-wave { display: none; }
.cap-dots { position: relative; z-index: 1; display: none; align-items: center; gap: 7px; padding: 0 14px; }
.cap-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); animation: breathe 1.4s ease-in-out infinite; }
.cap-dots i:nth-child(2) { animation-delay: 0.2s; } .cap-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes breathe { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
.capsule.is-thinking .cap-dots { display: flex; }
.cap-fill { position: absolute; left: 44px; top: 4px; bottom: 4px; width: calc(100% - 50px); border-radius: 19px; background: rgba(255, 210, 166, 0.14); transform: scaleX(0); transform-origin: left; }
.capsule.is-thinking .cap-fill { animation: fill 1.4s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.stage-raw { margin-top: 26px; text-align: left; font-size: 1.05rem; line-height: 1.6; color: rgba(46, 43, 61, 0.92); opacity: 0; transition: opacity 420ms var(--ease-out), color 420ms var(--ease-out); }
.stage-raw.is-shown { opacity: 1; }
.stage-raw.is-live #demo-raw-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.15em; background: currentColor; animation: blink 0.9s steps(2) infinite; }
.stage-raw.is-done { color: rgba(46, 43, 61, 0.8); }
/* 口头禅和改口：整理的时候划掉、收起；最后留着划掉的样子做对照 */
.stage-raw s { display: inline-block; max-width: 8em; overflow: hidden; white-space: nowrap; vertical-align: bottom; text-decoration: none;
  transition: max-width 420ms var(--ease-out), opacity 300ms, color 300ms; }
.stage-raw.is-tidying s, .stage-raw.is-done s { text-decoration: line-through; text-decoration-color: rgba(46, 43, 61, 0.45); color: rgba(46, 43, 61, 0.45); }
.stage-raw s.is-gone { max-width: 0; opacity: 0; }
.stage-raw .ins { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; opacity: 0; transition: max-width 300ms var(--ease-out), opacity 300ms; }
.stage-raw.is-tidying .ins, .stage-raw.is-done .ins { max-width: 1em; opacity: 1; }
.stage-raw-label { display: inline-block; margin-right: 0.6em; padding: 1px 7px; border-radius: 6px; background: rgba(46, 43, 61, 0.1); font-size: 0.8rem; }

/* ---------- 海面以下 ---------- */
.why, .diffs, .film, .how, .privacy, .install {
  padding: var(--section) var(--gutter) 0;
}
.why { display: none; }
.why-text {
  max-width: var(--measure); margin: 0 auto;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.4; font-weight: 500; max-width: 18em;
}
.diffs { background: linear-gradient(180deg, var(--sea-deep) 0%, var(--deep) 100%); }
.film, .how, .privacy, .install { background: var(--deep); }
.install { padding-bottom: var(--section); background: linear-gradient(180deg, var(--deep) 0%, var(--night) 100%); }


.section-title { font-size: var(--text-h2); font-weight: 700; line-height: 1.15; letter-spacing: 0; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

.diff { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(1.5rem, 2vw + 1rem, 4rem); align-items: center; margin-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.diff:last-child { margin-bottom: 0; }
.diffs { padding-bottom: var(--section); }
.num { font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--light-3); margin-bottom: 0.75rem; }
.diff h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.25; margin-bottom: 1rem; }
.diff-text p:last-child { color: var(--light-2); max-width: 24em; font-size: 1.0625rem; }

.diff-visual {
  padding: 20px 22px 22px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-top), 0 24px 48px -32px rgba(0, 0, 0, 0.6);
}
.diff-visual figcaption { font-size: 0.85rem; color: var(--light-3); margin-bottom: 14px; }
.learned, .usage { background: none; border: 0; box-shadow: none; padding: 0; }

.compare { display: grid; gap: 12px; }
.compare-raw { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-bottom: 4px; font-size: 0.95rem; line-height: 1.6; color: var(--light-2); }
.compare-raw .compare-tag { margin-top: 3px; }
.compare-doc ol { margin: 0.35em 0 0; padding-left: 1.5em; list-style: decimal; }
.compare-doc li { margin: 0.1em 0; }
.compare-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.compare-tag { margin-top: 6px; padding: 1px 8px; border-radius: 6px; font-size: 0.8rem; background: rgba(255, 255, 255, 0.1); color: var(--light); }
.compare-body { padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 1rem; line-height: 1.6; }
.compare-item:last-child .compare-body { border-radius: 10px; }   /* 文档不是气泡 */

.learned-pill {
  width: max-content; max-width: 100%; height: 44px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 10px;
  border-radius: 22px; background: var(--capsule); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.learned-glyph { width: 16px; height: 16px; border-radius: 4px; background: var(--glow); box-shadow: inset 0 -5px 0 rgba(58, 42, 34, 0.35); }
.learned-word { font-size: 0.95rem; }
.learned-undo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-groups { margin: 0; display: grid; gap: 10px; }
.chip-groups > div { display: grid; grid-template-columns: 3em 1fr; align-items: center; gap: 12px; }
.chip-groups dt { font-size: 0.85rem; color: var(--light-3); }
.chip-groups dd { margin: 0; }
.chip-groups .chips { margin-top: 0; }
.chips li { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-edge); font-size: 0.9rem; }

.usage-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-big { font-size: 1.5rem; font-weight: 600; }
.usage-cost { color: var(--light-2); font-variant-numeric: tabular-nums; }
.usage-bar { margin-top: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.usage-bar span { display: block; width: 47%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--glow-deep), var(--glow)); }

/* 演示视频：封面 + 一个播放键，点了才出原生控制条 */
.film-frame {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #000;
  border: 1px solid var(--glass-edge); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -36px rgba(0, 0, 0, 0.75);
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play {                                    /* 停在封面的地平线上，不挡字 */
  display: none; position: absolute; left: 50%; top: 73%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%;
  place-items: center; cursor: pointer; background: var(--glow); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 32px -10px rgba(255, 210, 166, 0.6);
  transition: transform var(--fast) var(--ease-out);
}
.film-frame.is-ready .film-play { display: grid; }
.film-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.film-play:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; }
.film-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }

.steps { display: grid; grid-template-columns: repeat(3, max-content); gap: 3.5rem; }
.steps li { display: grid; align-content: start; gap: 16px; }
.step-key {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.25rem; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-top);
}
.steps p { color: var(--light-2); max-width: 20em; }
.how-note { margin-top: 2rem; color: var(--light-3); font-size: 0.95rem; }

.privacy-lede { max-width: 26em; margin: -1.5rem 0 0; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); font-weight: 500; line-height: 1.5; }
.privacy { padding-bottom: 0; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 3rem; }
.privacy-list li { color: var(--light-2); max-width: 26em; }
.privacy-list b { display: block; font-weight: 600; color: var(--light); margin-bottom: 0.15rem; }

.install-steps { display: grid; gap: 2.5rem; counter-reset: step; }
.install-steps li { position: relative; padding-left: 3.25rem; counter-increment: step; }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1em; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-edge); font-size: 0.95rem; font-weight: 600;
}
.install-steps h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.install-steps p { color: var(--light-2); max-width: 36em; }
.install-steps p + p { margin-top: 0.75rem; }
.install-steps .btn { margin-right: 10px; }
.install-steps pre { margin: 0.75rem 0; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-edge); overflow-x: auto; }
.install-steps code { font-family: var(--mono); font-size: 0.92rem; color: var(--light); }
.small { font-size: 0.92rem; color: var(--light-3); }

.foot { padding: 2.5rem var(--gutter) 3rem; background: var(--night); color: var(--light-3); font-size: 0.92rem; }
.foot p { max-width: var(--measure); margin: 0 auto; }

/* ---------- 进场 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .top { padding: 16px var(--gutter); }
  .top nav { gap: 16px; }
  .diff { grid-template-columns: 1fr; gap: 1.5rem; }
  .film-frame { border-radius: 12px; }
  .film-play { width: 52px; height: 52px; }
  .film-play svg { width: 20px; height: 20px; margin-left: 3px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { grid-template-columns: auto 1fr; align-items: center; }
  .privacy-list { grid-template-columns: 1fr; }
  .bubble { max-width: 86%; }
  .stage-row { gap: 14px; }
  .keycap { width: 62px; height: 52px; }
  .capsule { transform: scale(0.9); }
  .capsule.is-hidden { transform: scale(0.8); }
  .capsule.is-done { transform: translateY(4px) scale(0.86); }
  .hero-text { transition-duration: 300ms; }
  .hero-text br { display: none; }          /* 窄屏按自然宽度折行，不硬切 */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cap-wave i, .cap-dots i { animation: none; }
  .cap-wave i { transform: scaleY(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .capsule, .btn, .hero-text, .stage-raw, .keycap, .film-play { transition: none; }
  .hero-caret, .stage-raw.is-live #demo-raw-text::after { animation: none; }
}

/* ---------- 图文安装指南 ---------- */
.page-guide { background: var(--deep); }
.top-guide { position: static; }
.guide { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--gutter) var(--section); }
.guide h1 { font-size: var(--text-h2); font-weight: 600; line-height: 1.2; }
.guide-lede { margin-top: 0.75rem; color: var(--light-2); }
.guide-step { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.guide-step h2 { display: flex; align-items: center; gap: 12px; font-size: var(--text-h3); font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
.guide-num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 0.95rem; background: var(--glass); border: 1px solid var(--glass-edge); }
.guide-step p, .guide-step li { color: var(--light-2); }
.guide-step p + p { margin-top: 0.75rem; }
.guide-step ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.guide-step code { font-family: var(--mono); font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.guide-step pre { margin: 0.75rem 0 1rem; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-edge); overflow-x: auto; }
.guide-step pre code { padding: 0; background: none; color: var(--light); }
.guide figure { margin: 1rem 0 1.25rem; }
.guide figure img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--glass-edge); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -24px rgba(0, 0, 0, 0.7); }
.guide figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--light-2); }
.fig-dialog { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.fig-dialog img { width: 260px; }
.guide-alt { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-edge); }
.guide-alt summary { cursor: pointer; font-weight: 600; color: var(--light); }
.guide-alt summary::marker { color: var(--glow); }
.guide-alt > *:not(summary) { margin-top: 0.75rem; }
.guide a { color: var(--glow); }
.guide a:hover { color: #FFE2C4; }
@media (max-width: 560px) {
  .fig-dialog { grid-template-columns: 1fr; }
}
