/* ============ 基础 ============ */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #fafaf6;
  --card: #ffffff;
  --line: #e4e4db;
  --ink: #17181a;
  --ink-dim: #5f615b;
  --ink-faint: #9a9c93;
  --green: #84cc16;
  --green-deep: #4d7c0f;
  --green-soft: rgba(132, 204, 22, .12);
  --term-bg: #0d0f0d;
  --term-line: #1d2b21;
  --term-ink: #e8f5ec;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --display: "Clash Display", "PingFang SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #1a2e05; }

a { color: inherit; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============ 进度线 ============ */
.progress-line {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress-line::before {
  content: ""; display: block; height: 100%;
  background: var(--green);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

/* ============ 导航 ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(20px, 4vw, 44px);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(250, 250, 246, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  letter-spacing: .02em;
}
.nav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-anchors {
  display: flex; gap: 26px; margin-left: 12px;
}
.nav-anchors a {
  font-size: 14px; color: var(--ink-dim); text-decoration: none;
  transition: color .2s;
}
.nav-anchors a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-doc {
  font-size: 14px; color: var(--ink-dim); text-decoration: none;
  transition: color .2s;
}
.nav-doc:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(23, 24, 26, .28); }

/* ============ 通用揭示动画 ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22, .61, .21, 1), transform .8s cubic-bezier(.22, .61, .21, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============ 第 0 幕 · Hero ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 96px clamp(20px, 5vw, 48px);
  position: relative;
}
.hero-inner { position: relative; max-width: 980px; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 96px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}
/* Figma 式选中框 */
.sel {
  position: relative;
  display: inline-block;
  padding: 0 .08em;
  margin-left: .14em;
  color: var(--green-deep);
  white-space: nowrap;
}
.sel::before {
  content: ""; position: absolute; inset: .04em -.06em;
  border: 2.5px solid var(--green);
  border-radius: 4px;
  pointer-events: none;
}
.sel i {
  position: absolute; z-index: 1;
  width: 9px; height: 9px;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 2px;
  pointer-events: none;
}
.sel i:nth-child(1) { left: -.06em; top: .04em; transform: translate(-50%, -50%); }
.sel i:nth-child(2) { right: -.06em; top: .04em; transform: translate(50%, -50%); }
.sel i:nth-child(3) { left: -.06em; bottom: .04em; transform: translate(-50%, 50%); }
.sel i:nth-child(4) { right: -.06em; bottom: .04em; transform: translate(50%, 50%); }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-dim); line-height: 1.75;
}

/* 指令输入框 */
.composer {
  margin: 46px auto 0;
  max-width: 760px;
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px 18px 22px;
  text-align: left;
  position: relative;
  box-shadow: 0 1px 2px rgba(23, 24, 26, .05), 0 16px 48px rgba(23, 24, 26, .07);
  transition: border-color .3s, box-shadow .3s;
}
.composer:hover {
  border-color: rgba(132, 204, 22, .5);
  box-shadow: 0 1px 2px rgba(23, 24, 26, .05), 0 16px 48px rgba(132, 204, 22, .12);
}
.composer-text {
  font-family: var(--mono); font-size: clamp(13px, 1.5vw, 15.5px);
  line-height: 1.7; color: var(--ink);
  flex: 1; min-width: 0;
  text-wrap: pretty;
}
.composer-text .url { color: var(--green-deep); }
.composer-text .keep { white-space: nowrap; }
.copy-button {
  flex: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 11px;
  padding: 14px 26px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.copy-button:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(23, 24, 26, .25); }
.copy-button:active { transform: translateY(0) scale(.98); }
.copy-button.copied { background: var(--green-deep); }

.duck-sticker {
  position: absolute;
  right: -10px;
  top: -86px;
  width: clamp(64px, 7vw, 92px);
  height: auto;
  transform: rotate(8deg);
  filter: drop-shadow(0 10px 22px rgba(23, 24, 26, .2));
  user-select: none;
  pointer-events: none;
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-faint); font-size: 13px; letter-spacing: .12em;
  text-decoration: none;
}
.scroll-cue svg { animation: cue-bounce 2.2s ease-in-out infinite; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* ============ 幕标签（mono 纹理） ============ */
.act-label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--green-deep); letter-spacing: .22em; text-transform: uppercase;
}

/* ============ 浏览器样机 ============ */
.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: #f4f4ee;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #dddcd4;
}
.browser-address {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px;
  background: #eaeae2;
  border-radius: 8px; padding: 7px 13px;
  color: var(--ink-dim);
  white-space: nowrap; overflow: hidden;
}
.browser-body { aspect-ratio: 3 / 2; position: relative; overflow: hidden; background: #eceae3; }

/* 样机里的作品集网站截图 */
.site-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* ============ 第 1 幕 · 困境 ============ */
.act-stuck {
  min-height: 105svh;
  display: flex; align-items: center;
  padding: 120px clamp(20px, 6vw, 80px);
}
.act-stuck .stage {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.stuck-browser {
  transform: rotate(-2.4deg);
  filter: saturate(.12) brightness(.82) contrast(.92);
  box-shadow: 0 30px 70px rgba(23, 24, 26, .16);
  position: relative;
}
.stuck-browser::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(23, 24, 26, .28));
  pointer-events: none;
}
.act-stuck h2 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
}
.pain-list { margin-top: 36px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pain-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(17px, 2vw, 21px); color: var(--ink-dim);
}
.pain-list .strike { position: relative; padding: 0 2px; }
.pain-list .strike::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 54%;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .55s cubic-bezier(.65, 0, .35, 1) .25s;
}
.pain-list li.in .strike::after { transform: scaleX(1); }
.pain-list li.in { color: var(--ink-faint); }
.pain-note { margin-top: 34px; font-size: 15px; color: var(--ink-faint); line-height: 1.8; }

/* ============ 第 2 幕 · 部署日志（全页唯一深色元素） ============ */
.act-deploy { height: 320svh; position: relative; }
.deploy-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 90px clamp(16px, 4vw, 48px) 40px;
}
.deploy-head { text-align: center; margin-bottom: 34px; }
.deploy-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.01em;
}
.log-window {
  width: min(780px, 100%);
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(23, 24, 26, .06), 0 30px 70px rgba(23, 24, 26, .22);
  overflow: hidden;
}
.log-titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #18201a;
}
.log-titlebar .browser-dots i { background: #223028; }
.log-title {
  font-family: var(--mono); font-size: 12px; color: #5a6a5e;
  letter-spacing: .06em;
}
.log-status {
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px;
  color: #b5e853;
  display: inline-flex; align-items: center; gap: 7px;
}
.log-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.log-window.done .log-status::before { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .log-window.celebrate { animation: log-pop .55s cubic-bezier(.34,1.56,.64,1); }
}
@keyframes log-pop { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.log-body {
  padding: 26px 26px 30px;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.55vw, 15px);
  line-height: 2.15;
  min-height: 15.5em;
  color: var(--term-ink);
}
.log-line {
  display: flex; gap: 10px; align-items: baseline;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log-line.on { opacity: 1; transform: none; }
.log-line .tick { color: var(--green); flex: none; }
.log-line .cmd { color: #b5e853; flex: none; }
.log-line .note { color: #5a6a5e; font-size: .86em; }
.log-line.final { color: var(--green); font-weight: 500; }
.log-cursor {
  display: inline-block; width: .55em; height: 1.1em;
  background: var(--green); vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.deploy-hint {
  margin-top: 26px;
  font-size: 13px; color: var(--ink-faint); letter-spacing: .1em;
}

/* ============ 第 3 幕 · 结果（亮灯） ============ */
.act-live {
  background:
    radial-gradient(46% 52% at 72% 50%, rgba(132, 204, 22, .09), transparent 70%),
    var(--card);
  min-height: 105svh;
  display: flex; align-items: center;
  padding: 130px clamp(20px, 6vw, 80px);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.act-live .stage {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.act-live h2 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
}
.live-facts { margin-top: 36px; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.live-facts li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(16px, 1.9vw, 19px); color: #3c3e39; line-height: 1.6;
}
.live-facts .tick { color: var(--green-deep); font-weight: 700; flex: none; }
.live-wrap { position: relative; }
.live-browser {
  box-shadow:
    0 0 0 1px rgba(132, 204, 22, .18),
    0 24px 70px rgba(23, 24, 26, .14),
    0 0 110px rgba(132, 204, 22, .18);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.live-browser .browser-address .lock { color: var(--green-deep); flex: none; }
.live-browser .browser-body { background: #fff; }

/* Figma 式评论钉 */
.pin {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0;
  filter: drop-shadow(0 8px 20px rgba(23, 24, 26, .18));
}
.pin-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pin-avatar img { width: 22px; height: 22px; border-radius: 50%; }
.pin-bubble {
  margin-left: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  white-space: nowrap;
}
.pin-bubble .tick { color: var(--green-deep); font-weight: 700; }
.pin-1 { top: 4%; right: -18px; animation: float 6s ease-in-out .8s infinite; }
.pin-2 { bottom: 10%; left: -22px; animation: float 6.6s ease-in-out 1.6s infinite; }

/* ============ 第 4 幕 · 价格 ============ */
.act-price {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 48px);
  position: relative;
}
.act-price::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 38% at 50% 52%, rgba(132, 204, 22, .08), transparent 70%);
}
.price-inner { position: relative; }
.price-plan {
  margin-top: 22px;
  font-family: var(--mono); font-size: 14px; letter-spacing: .3em;
  color: var(--ink-dim);
}
.price-figure {
  margin-top: 10px;
  font-size: clamp(110px, 19vw, 220px);
  font-weight: 700; line-height: 1.1;
  color: var(--green-deep);
  display: flex; justify-content: center;
}
.price-figure .sel { color: var(--green-deep); margin-left: 0; padding: 0 .1em; }
.price-figure .sel::before { border-width: 4px; border-radius: 10px; }
.price-figure .sel i { width: 14px; height: 14px; border-width: 2.5px; border-radius: 3px; }
.price-lines {
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: clamp(15px, 1.8vw, 18px); color: var(--ink-dim); line-height: 1.7;
}
.price-lines strong { color: var(--ink); font-weight: 600; }

/* 老虎机价格数字 */
.roll-tag {
  display: inline-flex; align-items: center; gap: 1px;
  font-family: var(--mono); font-weight: 500;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 7px; padding: 1px 9px;
  transform: translateY(-1px);
}
.roll-window {
  display: inline-flex;
  height: 1.3em; line-height: 1.3em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.roll-col { display: flex; flex-direction: column; will-change: transform; }
.roll-col span { display: block; height: 1.3em; text-align: center; }
.price-actions {
  margin-top: 46px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  font-size: 16px; font-weight: 600;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 13px;
  padding: 17px 36px; cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(23, 24, 26, .28); }
.btn-ghost {
  font-size: 16px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 36px;
  display: inline-flex; align-items: center;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--card); }

/* ============ FAQ ============ */
.act-faq {
  max-width: 780px; margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 48px) 130px;
}
.faq-title {
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 26px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] {
  border-color: rgba(132, 204, 22, .45);
  box-shadow: 0 10px 34px rgba(132, 204, 22, .08);
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-size: 16.5px; font-weight: 600;
  cursor: pointer;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-deep); }
.faq-item summary .plus {
  flex: none;
  font-family: var(--mono); font-weight: 400; font-size: 20px;
  color: var(--ink-faint);
  transition: transform .3s cubic-bezier(.22, .61, .21, 1), color .2s;
}
.faq-item[open] summary .plus { transform: rotate(45deg); color: var(--green-deep); }
.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px; color: var(--ink-dim); line-height: 1.85;
}
.faq-answer code {
  font-family: var(--mono); font-size: .88em;
  background: var(--green-soft); color: var(--green-deep);
  border-radius: 5px; padding: 2px 7px;
}

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(20px, 5vw, 48px) 54px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.site-footer .fbrand { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); font-size: 14px; }
.site-footer .fbrand img { width: 22px; height: 22px; border-radius: 6px; }
.legal-links { display: flex; gap: 26px; flex-wrap: wrap; }
.legal-links a {
  font-size: 13.5px; color: var(--ink-faint); text-decoration: none;
  transition: color .2s;
}
.legal-links a:hover { color: var(--ink); }

/* ============ 复制提示 ============ */
.copy-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 80;
  transform: translate(-50%, 90px);
  background: var(--ink); color: #fff;
  border-radius: 13px;
  padding: 14px 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px;
  box-shadow: 0 18px 48px rgba(23, 24, 26, .3);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22, .61, .21, 1), opacity .4s;
  pointer-events: none;
}
.copy-toast.show { transform: translate(-50%, 0); opacity: 1; }
.copy-toast .tick { color: var(--green); font-weight: 700; }

/* ============ Hero 装饰性滚动淡出（仅支持原生滚动驱动动画的浏览器；装饰性质，无需回退） ============ */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-inner {
      animation: hero-drift auto linear both;
      animation-timeline: scroll(root block);
      animation-range: 0% 90svh;
    }
    @keyframes hero-drift {
      to { opacity: .1; transform: translateY(-60px) scale(.97); }
    }
  }
}

/* ============ 动效层 ============ */
/* Hero 点阵画布 */
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner, .scroll-cue { z-index: 1; }

/* 上线礼花 */
.confetti-fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* Hero 开场编排：行遮罩 + 错峰浮现 */
.hero h1 .lm { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .lm-in { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .lm-in { transform: translateY(112%); animation: lm-up 1s cubic-bezier(.22,.61,.21,1) .06s forwards; }
  .hero h1 .lm:nth-of-type(2) .lm-in { animation-delay: .2s; }
  .hero .hero-sub { opacity: 0; animation: fade-up .85s cubic-bezier(.22,.61,.21,1) .6s forwards; }
  .hero .composer { opacity: 0; animation: fade-up .85s cubic-bezier(.22,.61,.21,1) .75s forwards; }
}
@keyframes lm-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* 打字光标 */
.composer-text.typing::after {
  content: ""; display: inline-block; width: .55em; height: 1.05em;
  margin-left: 2px; vertical-align: -.15em;
  background: var(--green); animation: blink 1s steps(2) infinite;
}

/* 选中框自绘 + 手柄弹入 */
@keyframes sel-draw { from { clip-path: inset(-10px calc(100% + 10px) -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
@keyframes handle-pop { from { scale: 0; } 60% { scale: 1.35; } to { scale: 1; } }
.intro .hero .sel::before, .intro .hero .sel i { opacity: 0; }
.intro .hero .sel.drawn::before { opacity: 1; animation: sel-draw .55s cubic-bezier(.65,0,.35,1) both; }
.intro .hero .sel.drawn i { opacity: 1; animation: handle-pop .45s cubic-bezier(.34,1.56,.64,1) both; }
.intro .hero .sel.drawn i:nth-child(2) { animation-delay: .07s; }
.intro .hero .sel.drawn i:nth-child(3) { animation-delay: .14s; }
.intro .hero .sel.drawn i:nth-child(4) { animation-delay: .21s; }
@media (prefers-reduced-motion: no-preference) {
  .price-figure.in .sel::before { animation: sel-draw .6s cubic-bezier(.65,0,.35,1) .15s both; }
  .price-figure.in .sel i { animation: handle-pop .5s cubic-bezier(.34,1.56,.64,1) both; }
  .price-figure.in .sel i:nth-child(1) { animation-delay: .5s; }
  .price-figure.in .sel i:nth-child(2) { animation-delay: .58s; }
  .price-figure.in .sel i:nth-child(3) { animation-delay: .66s; }
  .price-figure.in .sel i:nth-child(4) { animation-delay: .74s; }
  .live-wrap.in .pin-1 { animation: pin-pop .7s cubic-bezier(.34,1.56,.64,1) .15s backwards, float 6s ease-in-out 1s infinite; }
  .live-wrap.in .pin-2 { animation: pin-pop .7s cubic-bezier(.34,1.56,.64,1) .3s backwards, float 6.6s ease-in-out 1.2s infinite; }
}
@keyframes pin-pop { from { scale: .2; opacity: 0; } 60% { scale: 1.1; opacity: 1; } to { scale: 1; } }

/* 鸭子落位 */
.intro .duck-sticker { opacity: 0; transform: rotate(8deg) translateY(-50px) scale(.5); }
.intro .duck-sticker.landed { opacity: 1; transform: rotate(8deg); transition: transform .75s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }

/* ============ 移动端 ============ */
@media (max-width: 860px) {
  .nav-anchors { display: none; }
  .nav-doc { display: none; }
  .act-stuck .stage, .act-live .stage { grid-template-columns: 1fr; gap: 44px; }
  .act-live .stage .live-copy { order: -1; }
  .duck-sticker { display: none; }
  .composer { flex-direction: column; align-items: stretch; text-align: center; }
  .copy-button { width: 100%; }
  .act-deploy { height: 260svh; }
  .log-body { line-height: 2; }
  .log-line { white-space: normal; display: block; }
  .log-line .cmd, .log-line .tick { margin-right: 10px; }
  .log-line .note { display: block; padding-left: 1.7em; }
  .pin { display: none; }
  .scroll-cue { display: none; }
}

/* ============ 减少动态 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .log-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue svg, .log-status::before, .live-browser, .log-cursor, .pin { animation: none !important; }
  .act-deploy { height: auto; }
  .deploy-sticky { position: static; height: auto; padding-top: 120px; padding-bottom: 120px; }
  .pain-list .strike::after { transition: none; transform: scaleX(1); }
}
