/* ============================================================
   智报 · ZhiBao Agent — 视觉系统 v2
   参考 html-report 设计规范：只靠字号/字重/留白建立层级，
   全部颜色走 CSS 变量，正文对比度 ≥ 4.5:1，移动端全部单列。
   ============================================================ */

@font-face {
  font-family: "Smiley Display";
  src: url("/static/fonts/smiley-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 色彩 */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F7FB;
  --ink: #070B16;
  --ink-2: #333B50;
  --muted: #646C7E;
  --line: #EAECF3;
  --line-strong: #DCE0EA;

  --accent: #4F46E5;
  --accent-2: #7C5CF0;
  --accent-deep: #3A2FA8;
  --accent-ink: #342C9E;
  --accent-soft: #EEEFFE;
  --accent-ring: rgba(79, 70, 229, .15);
  --glow: rgba(99, 82, 240, .16);

  --ok: #0B8F63;
  --ok-soft: #E6F7F0;
  --warn: #A9650B;
  --warn-soft: #FFF8E9;
  --warn-line: #F2DFB6;
  --err: #D32020;
  --err-soft: #FDECEC;

  /* 字体 */
  --font-display: "Smiley Display", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 形状 */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 阴影：三层递进，靠尺寸而不是靠黑度制造层次 */
  --sh-1: 0 1px 2px rgba(12, 18, 36, .04), 0 1px 3px rgba(12, 18, 36, .05);
  --sh-2: 0 18px 40px -24px rgba(12, 18, 36, .26), 0 2px 6px rgba(12, 18, 36, .04);
  --sh-3: 0 60px 110px -46px rgba(64, 52, 190, .42);
  --sh-inner: inset 0 1px 0 rgba(255, 255, 255, .92);

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 560px at 8% -12%, rgba(124, 92, 240, .10), transparent 64%),
    radial-gradient(820px 480px at 98% -10%, rgba(79, 70, 229, .07), transparent 62%),
    radial-gradient(1100px 600px at 50% 106%, rgba(124, 92, 240, .04), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv01" 1;
}

/* 极细网格 + 顶部渐隐，制造“设计稿纸”的质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 18, 36, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 36, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1200px 620px at 50% -6%, #000 0%, transparent 78%);
  mask-image: radial-gradient(1200px 620px at 50% -6%, #000 0%, transparent 78%);
}

a { color: var(--accent-ink); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.018em; font-weight: 700; }
p { margin: 0; }

::selection { background: rgba(79, 70, 229, .16); }

/* 缓入动画 */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.reveal { }
.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise .62s cubic-bezier(.22, .61, .36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { animation: none; opacity: 1; }
  * { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 252, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 252, .92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 13px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }

.brand-logo {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(150deg, #6C5CE7 0%, #5B4AE0 46%, #4338CA 100%);
  box-shadow: 0 10px 20px -12px rgba(67, 56, 202, .95), inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(0, 0, 0, .12);
  overflow: hidden;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, .38), transparent 46%);
  pointer-events: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 14.5px; font-weight: 700; letter-spacing: -.012em; }
.brand-text small { font-size: 9.5px; font-weight: 600; color: #8C93A6; letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; gap: 3px; margin-left: 12px; }

.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav a:hover { background: rgba(12, 18, 36, .05); color: var(--ink); }
.nav a.on {
  color: var(--accent-ink);
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(12, 18, 36, .06), 0 0 0 1px var(--line);
}

.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .14);
  white-space: nowrap;
}

.quota-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.quota-pill.trial { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.quota-pill.trial::before { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }

.link-muted { color: var(--muted); font-size: 13px; }
.link-muted:hover { color: var(--ink); }

.top-right .link-muted {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-weight: 500;
  box-shadow: var(--sh-1);
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.top-right .link-muted:hover { border-color: #C2C8DA; color: var(--ink); box-shadow: 0 6px 16px -12px rgba(12, 18, 36, .4); }

/* ------------------------------------------------------------ 布局 */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 28px 100px;
  flex: 1;
}

.foot {
  border-top: 1px solid var(--line);
  text-align: center;
  color: #969DB0;
  font-size: 12px;
  padding: 26px 28px 36px;
  letter-spacing: .015em;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ------------------------------------------------------------ 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 78px;
  align-items: center;
  padding: 40px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 240, .18), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #FFFFFF, #FAFAFF);
  border: 1px solid rgba(79, 70, 229, .17);
  box-shadow: 0 1px 2px rgba(12, 18, 36, .05), 0 8px 20px -16px rgba(79, 70, 229, .6);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16B364;
  box-shadow: 0 0 0 3px rgba(22, 179, 100, .15);
}

.hero h1 {
  margin: 28px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.16;
  background: linear-gradient(104deg, #080C18 0%, #241C63 46%, #5B45D6 82%, #7C5CF0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.95;
  max-width: 29em;
}

.hero-actions { display: flex; gap: 14px; margin: 38px 0 46px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 450px;
}

.hero-stats div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hero-stats div + div { border-left: 1px solid var(--line); padding-left: 26px; }
.hero-stats b {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ 首屏演示舞台 */
.hero-stage { position: relative; isolation: isolate; perspective: 1600px; }

.stage-glow {
  position: absolute;
  inset: -14% -10% -8% -10%;
  z-index: -1;
  background:
    radial-gradient(46% 46% at 32% 24%, rgba(124, 92, 240, .26), transparent 70%),
    radial-gradient(40% 40% at 76% 70%, rgba(79, 70, 229, .20), transparent 72%);
  filter: blur(36px);
  animation: breathe 10s ease-in-out infinite;
  pointer-events: none;
}

.demo-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFCFF 100%);
  border: 1px solid #E3E7F2;
  border-radius: var(--r-xl);
  box-shadow: 0 70px 120px -58px rgba(64, 52, 190, .46), 0 24px 46px -34px rgba(12, 18, 36, .28), var(--sh-inner);
  transform: rotateY(calc(var(--ry, -4) * 1deg)) rotateX(calc((var(--rx, 1) + var(--sx, 0)) * 1deg)) scale(var(--ss, 1));
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease;
}

.demo-card:hover {
  box-shadow: 0 80px 130px -60px rgba(64, 52, 190, .5), 0 28px 54px -36px rgba(12, 18, 36, .3), var(--sh-inner);
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(180deg, #FFFFFF, #FAFAFD);
}

.demo-top em {
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.demo-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0B8F63;
}

.demo-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16B364;
  box-shadow: 0 0 0 3px rgba(22, 179, 100, .16);
  animation: blink 1.8s ease-in-out infinite;
}

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.demo-body { position: relative; padding: 18px 18px 20px; }

/* 输入面板：模拟真实粘贴与点击 */
.demo-panel {
  position: relative;
  z-index: 1;
  padding: 11px 12px 12px;
  border: 1px solid #E7EAF3;
  border-radius: 12px;
  background: #FCFCFE;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.demo-panel.active {
  border-color: rgba(79, 70, 229, .42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .08);
}

.demo-panel.flash {
  border-color: rgba(79, 70, 229, .58);
  box-shadow: 0 0 0 5px rgba(79, 70, 229, .1), 0 14px 30px -24px rgba(79, 70, 229, .8);
}

.demo-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9AA1B2;
}

.demo-paste {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #0B8F63;
  background: rgba(22, 179, 100, .1);
  border: 1px solid rgba(22, 179, 100, .2);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.demo-paste.on { opacity: 1; transform: none; }

/* 飞入输入框的工作碎片 */
.demo-frags { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.demo-frag {
  position: absolute;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-ink);
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .22);
  box-shadow: 0 10px 20px -14px rgba(64, 52, 190, .7);
  white-space: nowrap;
  opacity: 0;
}

.demo-frag.f1 { top: 18px; left: 16px; }
.demo-frag.f2 { top: 12px; right: 14px; }
.demo-frag.f3 { top: 52px; right: 40px; }

.demo-frags.run .demo-frag { animation: fragFly 1.4s cubic-bezier(.4, 0, .2, 1) both; }
.demo-frags.run .f2 { animation-delay: .14s; }
.demo-frags.run .f3 { animation-delay: .28s; }

@keyframes fragFly {
  0% { opacity: 0; transform: translateY(-12px) scale(.9); }
  22% { opacity: 1; transform: none; }
  62% { opacity: 1; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(86px) scale(.72); }
}

.demo-text {
  min-height: 78px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}

.caret {
  display: none;
  width: 1.5px;
  height: 12px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caretBlink 1s steps(1) infinite;
}

.js-demo .caret { display: inline-block; }

.demo-toolbar { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

.demo-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: default;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.demo-select::after { content: "▾"; font-size: 8px; color: #9AA1B2; }
.demo-select b { font-weight: 600; }

.demo-select.selecting {
  border-color: rgba(79, 70, 229, .5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.demo-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 96px;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px -20px rgba(12, 18, 36, .55);
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
  z-index: 8;
}

.demo-select.open .demo-menu { opacity: 1; transform: none; }

.demo-menu span {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--ink-2);
  white-space: nowrap;
}

.demo-menu span.pick { background: var(--accent-soft); color: var(--accent-ink); }

.demo-btn {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #6257EA, #4F46E5);
  box-shadow: 0 8px 16px -10px rgba(79, 70, 229, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s ease, box-shadow .18s ease, opacity .3s ease;
}

.demo-btn.pressed { transform: scale(.93); box-shadow: 0 3px 8px -6px rgba(79, 70, 229, .9); }
.demo-btn.loading { opacity: .7; }

.demo-progress {
  height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: #EEF0F7;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}

.demo-progress.on { opacity: 1; }
.demo-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.3s cubic-bezier(.3, .7, .2, 1);
}
.demo-progress.on i { width: 100%; }
.demo-progress:not(.on) i { transition: none; }

.doc-card {
  padding: 14px 16px 16px;
  margin-top: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E6E9F2;
  box-shadow: 0 18px 36px -30px rgba(12, 18, 36, .45);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.js-demo .doc-card { opacity: 1; }

.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.doc-head b { font-size: 11.8px; font-weight: 700; letter-spacing: -.01em; }
.doc-head span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.doc-export {
  cursor: default;
  transition: transform .16s ease, background .25s ease, color .25s ease;
}

.doc-export.pressed { transform: scale(.92); }
.doc-export.done { color: #0B8F63; background: rgba(22, 179, 100, .12); }

.doc-module { margin-top: 7px; }

.doc-module em {
  display: block;
  font-style: normal;
  font-size: 9.6px;
  font-weight: 700;
  color: var(--ink-2);
}

.doc-module .doc-line { margin-top: 5px; height: 6px; }

.doc-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  color: #A9660A;
  background: rgba(255, 176, 32, .14);
  border: 1px solid rgba(255, 176, 32, .3);
}

.doc-line {
  height: 7px;
  margin-top: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, #EEF0F7, #F4F5FB);
  width: var(--w, 100%);
  transition: width .55s cubic-bezier(.22, 1, .36, 1);
}

.js-demo .doc-line { width: 0; }
.js-demo .doc-module { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.js-demo .doc-module.show { opacity: 1; transform: none; }
.js-demo .doc-module:not(.show) .doc-line { transition: none; }
.js-demo .doc-module.show .doc-line { width: var(--w); }
.js-demo .doc-module.show .doc-line + .doc-line { transition-delay: .12s; }
.js-demo .doc-module.show .doc-tag { animation: tagPop .4s cubic-bezier(.22, 1.35, .36, 1) both; }
.js-demo .doc-module:not(.show) .doc-tag { display: none; }

@keyframes tagPop {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: none; }
}

/* 导出成功提示 */
.demo-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(22, 179, 100, .26);
  box-shadow: 0 16px 30px -20px rgba(12, 18, 36, .5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.demo-toast.show { opacity: 1; transform: none; }

.demo-toast .tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #fff;
  background: #16B364;
  box-shadow: 0 3px 8px -4px rgba(11, 143, 99, .9);
}

/* 模拟鼠标指针 */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .22));
  transform: translate(-40px, -40px);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}

.demo-cursor.show { opacity: 1; }

/* 状态：待命 / 生成中 / 完成 */
.demo-live { color: var(--muted); }
.demo-live::before { background: #ADB4C4; box-shadow: none; animation: none; }
.demo-live.busy { color: var(--accent-ink); }
.demo-live.busy::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); animation: blink 1.2s ease-in-out infinite; }
.demo-live.done { color: #0B8F63; }
.demo-live.done::before { background: #16B364; box-shadow: 0 0 0 3px rgba(22, 179, 100, .16); animation: none; }

/* 浮在演示卡外的信息胶囊，制造纵深 */
.preview-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(228, 231, 242, .95);
  box-shadow: 0 18px 34px -20px rgba(12, 18, 36, .4), 0 1px 0 rgba(255, 255, 255, .9) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 2;
}

.preview-float .tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  color: #fff;
  background: linear-gradient(140deg, #16B364, #0B8F63);
  box-shadow: 0 3px 8px -4px rgba(11, 143, 99, .9);
}

.preview-float.top { top: -18px; right: 26px; animation: floaty 5.5s ease-in-out infinite; }
.preview-float.bottom { bottom: -18px; right: 26px; animation: floaty 6.5s ease-in-out .8s infinite; }

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ------------------------------------------------------------ 区块标题 */
.section-head { max-width: 660px; margin: 0 0 30px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.9vw, 36px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.section-head p { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------------------------------------------ 三步 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 88px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, #FFFFFF, #FDFDFF);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1), var(--sh-inner);
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.step-copy { display: flex; gap: 15px; align-items: flex-start; }

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 240, .5), transparent);
  opacity: 0;
  transition: opacity .22s ease;
}

.step:hover { background: #fff; border-color: rgba(79, 70, 229, .28); box-shadow: var(--sh-2), var(--sh-inner); transform: translateY(-3px); }
.step:hover::before { opacity: 1; }

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #FFFFFF, var(--accent-soft));
  border: 1px solid rgba(79, 70, 229, .16);
  box-shadow: 0 1px 2px rgba(79, 70, 229, .1);
  font-variant-numeric: tabular-nums;
}

.step-copy b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.step-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.4px; line-height: 1.6; }

/* 每一步留白处的对应演示 */
.step-demo {
  position: relative;
  width: 100%;
  min-height: 186px;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #FBFCFF, #F6F7FD);
  border: 1px solid var(--line);
  overflow: hidden;
}

.step-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 70% at 85% 0%, rgba(124, 92, 240, .1), transparent 70%);
}

.sd-frags { min-height: 186px; }

.sd-chip {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 9.8px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
  white-space: nowrap;
}

.sd-chip.c1 { top: 16px; left: 14px; }
.sd-chip.c2 { top: 46px; left: 40px; }
.sd-chip.c3 { top: 16px; right: 12px; }

.step.active .sd-chip { animation: chipDrop 4.4s cubic-bezier(.4, 0, .2, 1) infinite; opacity: 0; }
.step.active .sd-chip.c2 { animation-delay: .5s; }
.step.active .sd-chip.c3 { animation-delay: 1s; }

@keyframes chipDrop {
  0% { opacity: 0; transform: translateY(-8px); }
  10% { opacity: 1; transform: none; }
  52% { opacity: 1; transform: none; }
  78% { opacity: 0; transform: translateY(58px) scale(.82); }
  100% { opacity: 0; transform: translateY(58px) scale(.82); }
}

.sd-drop {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 10px;
  border: 1px dashed rgba(79, 70, 229, .38);
  border-radius: 9px;
  background: rgba(255, 255, 255, .78);
}

.sd-drop-label {
  display: block;
  margin-bottom: 6px;
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9AA1B2;
}

.sd-drop i {
  display: block;
  height: 4.5px;
  margin-top: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #E9EBF5, #F2F3FA);
}

.sd-drop i:nth-child(2) { width: 86%; }
.sd-drop i:nth-child(3) { width: 70%; }
.sd-drop i:nth-child(4) { width: 78%; }

.sd-picks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 186px;
}

.sd-row { display: flex; align-items: center; gap: 9px; }
.sd-row-label { flex-shrink: 0; width: 24px; font-size: 9px; font-weight: 700; color: #9AA1B2; }
.sd-opts { display: flex; flex-wrap: wrap; gap: 5px; }

.sd-opts span {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9.6px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}

.sd-opts span.on { color: var(--accent-ink); border-color: rgba(79, 70, 229, .32); background: var(--accent-soft); }
.step.active .sd-opts span.on { animation: chipPulse 2.6s ease-in-out infinite; }

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
  50% { box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
}

.sd-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 9.4px;
  font-weight: 600;
  color: #0B8F63;
  background: rgba(22, 179, 100, .08);
  border: 1px solid rgba(22, 179, 100, .18);
}

.sd-note i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 7.5px;
  color: #fff;
  background: #16B364;
}

.sd-output { display: flex; align-items: center; min-height: 186px; }

.sd-doc {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 11px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px -24px rgba(12, 18, 36, .5);
}

.sd-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.sd-doc-head b { font-size: 9.6px; font-weight: 700; }

.sd-export {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8.4px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.step.active .sd-export { animation: exportGlow 2.6s ease-in-out infinite; }

@keyframes exportGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
  50% { box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
}

.sd-mod { margin-top: 6px; }
.sd-mod em { display: block; font-style: normal; font-size: 8.4px; font-weight: 700; color: #8E96A8; }

.sd-mod i {
  display: block;
  height: 4.5px;
  margin-top: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #EDEFF7, #F4F5FB);
  transform-origin: 0 50%;
}

.step.active .sd-mod i { animation: lineGrow 3.4s cubic-bezier(.3, .7, .2, 1) infinite; }
.sd-doc .sd-mod:nth-child(3) i { animation-delay: .2s; }
.sd-doc .sd-mod:nth-child(4) i { animation-delay: .4s; }
.sd-doc .sd-mod:nth-child(5) i { animation-delay: .6s; }

@keyframes lineGrow {
  0% { transform: scaleX(0); opacity: .4; }
  32% { transform: scaleX(1); opacity: 1; }
  86% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

.sd-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 7.6px;
  font-weight: 700;
  color: #A9660A;
  background: rgba(255, 176, 32, .14);
  border: 1px solid rgba(255, 176, 32, .3);
}

/* ------------------------------------------------------------ 卡片 */
.card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFF 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-1), var(--sh-inner);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.012em;
  margin-bottom: 8px;
}

.card-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* 激活区：左表单 + 右价值清单 */
.activate-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 88px;
}

.activate-card { display: flex; flex-direction: column; }
.activate-card > p.muted { margin: 2px 0 20px; }
.activate-card .stack { margin-top: 4px; }
.activate-card .card-foot-link { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 600; }
.activate-card .card-foot-link a { color: var(--accent-ink); }
.activate-card .card-foot-link a:hover { color: var(--accent); }

.value-card {
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(79, 70, 229, .16);
  background:
    radial-gradient(560px 220px at 96% -10%, rgba(124, 92, 240, .16), transparent 62%),
    linear-gradient(180deg, #FBFAFF 0%, #F5F5FF 100%);
  box-shadow: var(--sh-1), var(--sh-inner);
  display: flex;
  flex-direction: column;
}

.value-card .eyebrow { margin-bottom: 12px; }
.value-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }

.value-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }

.value-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.4px; line-height: 1.6; color: var(--ink-2); }
.value-list li b { display: block; color: var(--ink); font-size: 13.6px; font-weight: 700; margin-bottom: 1px; }

.value-list .tick {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(140deg, #6355E8, #4338CA);
  box-shadow: 0 4px 10px -5px rgba(67, 56, 202, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.value-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(79, 70, 229, .18);
  font-size: 12.2px;
  color: #5B5F73;
}

.muted { color: var(--muted); }
.small { font-size: 12.2px; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ 表单 */
.stack { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field > span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"], input[type="search"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder, textarea::placeholder { color: #A6ADBE; }

textarea { resize: vertical; min-height: 132px; line-height: 1.65; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, .6);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8A93A8 50%),
    linear-gradient(135deg, #8A93A8 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.filter-bar input[type="search"] { flex: 1; min-width: 220px; }

.date-field { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.date-field input { width: 138px; }

.inline-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 220px; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13.8px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .3s cubic-bezier(.22, 1, .36, 1),
    box-shadow .3s cubic-bezier(.22, 1, .36, 1),
    background .24s ease,
    border-color .24s ease,
    color .24s ease;
}

.btn:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; transition-duration: .1s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* 主按钮：一抹高光扫过，悬停时浮起 */
.btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -55%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.btn.primary:hover::before { animation: sheen .9s cubic-bezier(.22, 1, .36, 1); }

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #6257EA 0%, #4F46E5 52%, #4338CA 100%);
  box-shadow: 0 12px 24px -14px rgba(67, 56, 202, .95), inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .14);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #6B60EE 0%, #554BE8 52%, #4A3FD2 100%);
  box-shadow: 0 20px 40px -18px rgba(67, 56, 202, 1), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14);
}

.btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); box-shadow: var(--sh-1); }
.btn.ghost:hover { border-color: #C2C8DA; color: var(--ink); box-shadow: 0 10px 22px -16px rgba(12, 18, 36, .42); }

.btn.danger { color: var(--err); border-color: #F3D5D5; background: #fff; }
.btn.danger:hover { background: var(--err-soft); }

.btn.block { width: 100%; }
.btn.lg { padding: 13px 24px; font-size: 14.8px; border-radius: var(--r-md); letter-spacing: -.01em; }
.btn.sm { padding: 6px 12px; font-size: 12.8px; border-radius: var(--r-xs); }

/* 主按钮右侧箭头：只用位移做反馈 */
.btn.primary.lg::after {
  content: "→";
  margin-left: 2px;
  font-weight: 400;
  transition: transform .2s ease;
}
.btn.primary.lg:hover::after { transform: translateX(3px); }

.btn.primary.lg.block::after { content: none; }

.chip {
  font: inherit;
  font-size: 12.2px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s ease;
}

.chip:hover { border-color: rgba(79, 70, 229, .45); color: var(--accent-ink); background: var(--accent-soft); }

/* ------------------------------------------------------------ 提示 */
.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13.2px; border: 1px solid transparent; }
.alert.err { color: #991B1B; background: var(--err-soft); border-color: #F7D9D9; }
.alert.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }

.status { min-height: 18px; font-size: 12.8px; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }

/* ------------------------------------------------------------ 试用条 */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--warn-line);
  background: linear-gradient(180deg, #FFFDF7, #FFF8E9);
}

.trial-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #9A3412;
  background: #FCE7C4;
}

.trial-banner b { display: block; font-size: 13.8px; }
.trial-banner small { color: #8A6A2B; font-size: 12.2px; }
.trial-banner .btn { margin-left: auto; flex-shrink: 0; }

/* ------------------------------------------------------------ 页面头 */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}
.page-head .eyebrow { margin-bottom: 9px; }
.page-head p { margin-top: 6px; font-size: 13.2px; }
.page-head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.back-link { display: inline-block; margin-bottom: 9px; font-size: 12.5px; color: var(--muted); }
.back-link:hover { color: var(--accent-ink); }

/* ------------------------------------------------------------ 双栏 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.detail-grid { grid-template-columns: 1.5fr 1fr; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 48px 20px;
  min-height: 258px;
  text-align: center;
  font-size: 13.2px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #FCFCFE, #F8F9FD);
}

.empty .big { font-size: 30px; line-height: 1; }
.empty-action { margin-top: 6px; }

.tips-card { background: linear-gradient(180deg, #FFFFFF, #FBFAFF); }

.tip-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }

.tip-list li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .09);
}

.tip-list b { display: block; margin-bottom: 1px; font-size: 13.2px; font-weight: 700; color: var(--ink); }

.stream-box {
  padding: 18px;
  border-radius: var(--r-md);
  background: #0C1226;
  border: 1px solid #1B2440;
  max-height: 560px;
  overflow: auto;
}

.stream-text {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.85;
  color: #DDE3F2;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 套餐 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.plan-card {
  position: relative;
  --tx: 0deg;
  --ty: 0deg;
  --lift: 0px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transform: perspective(1000px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    opacity .3s ease,
    border-color .24s ease,
    box-shadow .3s cubic-bezier(.22, 1, .36, 1),
    background .3s ease;
}

.plan-card.is-tilting { transition-duration: .12s; }

.plan-card:hover { --lift: -6px; border-color: rgba(79, 70, 229, .32); box-shadow: var(--sh-2); }
.plan-card:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }

.plan-card.featured { border-color: rgba(79, 70, 229, .45); }

.plan-card input { position: absolute; opacity: 0; pointer-events: none; }

.plan-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring), var(--sh-2);
}

.plan-card.picked {
  background: linear-gradient(180deg, #FCFBFF, #F4F2FF);
}

.plan-card.picked .plan-price { color: var(--accent-ink); }

/* 鼠标悬停某档时，其余档轻微后退；焦点更集中 */
@media (hover: hover) and (pointer: fine) {
  .plan-grid:hover .plan-card { opacity: .78; }
  .plan-grid:hover .plan-card:hover { opacity: 1; }
}

.plan-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9);
}

.plan-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.plan-price em { font-style: normal; font-size: 15px; font-weight: 600; margin-right: 1px; }
.plan-uses { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.plan-desc { margin-top: 5px; font-size: 11.8px; color: var(--muted); line-height: 1.55; }

.pricing-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0 6px;
}

.hero-link {
  align-self: center;
  margin-left: 4px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  transition: color .2s ease, text-decoration-color .2s ease;
}

.hero-link:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

.pay-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 20px; align-items: start; }

.qr-card { text-align: center; }
.qr-img {
  display: block;
  width: 204px;
  max-width: 100%;
  margin: 10px auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}

.order-no {
  margin: 8px 0 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #F4F4FF, #EFEFFF);
  border: 1px solid rgba(79, 70, 229, .16);
  word-break: break-all;
}

.result { margin-top: 18px; }

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 13.6px;
  border-bottom: 1px dashed var(--line);
}

.result-row span { flex-shrink: 0; color: var(--muted); }
.result-row b { font-weight: 600; }
.result-row b.code { color: var(--accent-ink); letter-spacing: .05em; font-family: var(--mono); }

/* 支付宝 / 微信双通道 */
.pay-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 0 auto 12px;
  max-width: 300px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.pay-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 12.6px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .18s ease;
}

.pay-tab:hover { color: var(--ink-2); }
.pay-tab:active { transform: scale(.97); }
.pay-tab.on {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px -4px rgba(12, 18, 36, .28), var(--sh-inner);
}

.pay-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.pay-logo.alipay { background: linear-gradient(145deg, #2E9BFF, #1677FF); }
.pay-logo.wxpay { background: linear-gradient(145deg, #2BD97C, #07C160); }

.qr-stage .qr-img {
  animation: qrIn .4s cubic-bezier(.22, 1, .36, 1) both;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.qr-stage .qr-img:hover { transform: scale(1.03); box-shadow: var(--sh-2); }

@keyframes qrIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.qr-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.qr-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16B364;
  box-shadow: 0 0 0 3px rgba(22, 179, 100, .16);
  animation: blink 2s ease-in-out infinite;
}

.qr-hint { margin-top: 12px; }

.pay-side { display: flex; flex-direction: column; }

.pay-summary {
  margin: 4px 0 18px;
  border-top: 1px dashed var(--line);
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.4px;
}

.sum-row span { color: var(--muted); }
.sum-row b { font-weight: 600; }
.sum-row b.sum-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent-ink);
}

.pay-note { margin-top: 12px; line-height: 1.75; }

/* 订单结果：等待 → 自动出码 */
.order-result { margin-top: 20px; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.result-head .card-title { margin-bottom: 0; }

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.6px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.order-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ADB4C4;
}

.order-badge.waiting { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(79, 70, 229, .16); }
.order-badge.waiting i { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
.order-badge.paid { color: #0B8F63; background: rgba(22, 179, 100, .1); border-color: rgba(22, 179, 100, .22); }
.order-badge.paid i { background: #16B364; }

.order-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

.order-meta { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.meta-item span { flex-shrink: 0; width: 64px; color: var(--muted); }
.meta-item b { font-weight: 600; }
.meta-item b.meta-price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--accent-ink);
}
.meta-item.wide { flex-direction: column; gap: 4px; }
.meta-item.wide span { width: auto; }
.meta-item.wide .order-no { margin: 0; width: 100%; font-size: 15px; }

.order-qr { text-align: center; }
.order-qr .qr-img { width: 132px; margin: 0 auto 6px; }
.order-qr .qr-img.hidden { display: none; }

.waiting {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line);
}

.waiting-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: waitPulse 1.2s ease-in-out infinite;
}

.waiting-dot:nth-child(2) { animation-delay: .16s; }
.waiting-dot:nth-child(3) { animation-delay: .32s; }
.waiting-text { margin-left: 6px; font-size: 12.4px; color: var(--muted); }

@keyframes waitPulse {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.pay-success {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--r-md);
  background:
    radial-gradient(360px 160px at 0% 0%, rgba(22, 179, 100, .12), transparent 70%),
    #FBFEFC;
  border: 1px solid rgba(22, 179, 100, .24);
}

.pay-success.pop { animation: successIn .55s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes successIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.success-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(140deg, #16B364, #0B8F63);
  box-shadow: 0 10px 20px -12px rgba(11, 143, 99, .9);
}

.success-main { flex: 1; min-width: 0; }
.success-main .muted { margin-bottom: 4px; }
.success-code { margin: 8px 0 10px; font-size: 20px; }

/* ------------------------------------------------------------ 报告列表 */
.report-list { display: flex; flex-direction: column; gap: 9px; }

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  flex-wrap: wrap;
}

.report-row:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--sh-2); }

.report-main { flex: 1; min-width: 0; }

.report-title {
  display: block;
  margin-bottom: 6px;
  font-size: 14.6px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-title:hover { color: var(--accent-ink); }

.report-meta { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11.8px; color: var(--muted); }

.report-meta span {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.report-actions { display: flex; align-items: center; gap: 7px; }
.report-actions form { margin: 0; }

/* ------------------------------------------------------------ 详情 */
.detail-title { font-size: 23px; letter-spacing: -.025em; }

.prose { font-size: 14.8px; line-height: 1.9; color: #1F2937; }
.prose h1 { font-size: 21px; margin: 2px 0 16px; }
.prose h2 { font-size: 17px; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 {
  margin: 22px 0 9px;
  padding-left: 11px;
  font-size: 15px;
  border-left: 2.5px solid var(--accent);
  color: var(--ink);
}
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 21px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  margin: 14px 0;
  padding: 11px 16px;
  border-left: 2.5px solid #C7CBF0;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: #FAFAFF;
  color: var(--ink-2);
}

.stack-aside { display: flex; flex-direction: column; gap: 16px; }

.quick-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* 周报整理辅助：收集箱 / 模板 / 周一提醒 */
.brief-tools { margin-top: -2px; }

.tpl-row { display: flex; gap: 7px; margin-top: 2px; }
.tpl-row select { flex: 1; min-width: 0; }

.inbox {
  margin-top: 4px;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.inbox summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.inbox summary::-webkit-details-marker { display: none; }

.inbox summary b {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.inbox[open] summary { border-bottom: 1px dashed var(--line); }
.inbox-body { padding: 10px 0 12px; }
.inbox-body .inline-form { margin-top: 0; }

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 170px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.inbox-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
}

.inbox-list li span { flex: 1; line-height: 1.5; }

.inbox-list li button {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #9AA1B2;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease;
}

.inbox-list li button:hover { color: #E5484D; }
.inbox-list .inbox-empty { padding: 8px 0 2px; border: 0; background: transparent; font-size: 11.5px; color: var(--muted); }

.week-reminder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(79, 70, 229, .07), rgba(124, 92, 240, .04));
}

.week-reminder b { display: block; font-size: 13px; }
.week-reminder small { color: var(--muted); font-size: 11.8px; }
.week-reminder .btn { margin-left: auto; flex-shrink: 0; }

.week-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
  animation: blink 2.4s ease-in-out infinite;
}

.versions { margin: 0; padding-left: 19px; }
.versions li { margin-bottom: 10px; font-size: 13.2px; }
.versions summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.version-text {
  margin: 8px 0 0;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
  border-radius: var(--r-xs);
  background: #F8F9FD;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12.2px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}

/* ------------------------------------------------------------ FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }

.faq details {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--sh-1);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.faq details:hover { border-color: var(--line-strong); background: #fff; box-shadow: 0 8px 20px -16px rgba(12, 18, 36, .3); }
.faq summary { font-size: 13.8px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  float: right;
  color: #98A0B3;
  font-weight: 400;
  transition: color .18s ease, transform .18s ease;
}
.faq details[open] summary::after { content: "－"; color: var(--accent); }
.faq p { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-bottom: 40px; }
  .hero-preview { transform: none; max-width: 620px; width: 100%; }
  .preview-float.bottom { left: 12px; }
  .hero::before { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .grid, .detail-grid, .pay-grid, .activate-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .activate-grid { margin-bottom: 64px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar-inner { padding: 11px 16px; gap: 10px; flex-wrap: wrap; }
  .brand-text small { display: none; }
  .nav { display: none; }
  .top-right { gap: 10px; }
  .wrap { padding: 34px 18px 72px; }
  .card { padding: 24px; border-radius: var(--r-md); }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: 38px; line-height: 1.2; margin: 22px 0 20px; }
  .hero-sub { font-size: 15.5px; line-height: 1.85; }
  .hero-actions { margin: 28px 0 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 0; }
  .hero-stats div + div { padding-left: 14px; }
  .hero-stats b { font-size: 21px; }
  .preview-float { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .plan-card { padding: 16px 14px; }
  .plan-price { font-size: 25px; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 21px; }
  .report-row { padding: 14px; }
  .report-actions { width: 100%; justify-content: flex-end; }
  .report-title { white-space: normal; }
  .trial-banner { flex-wrap: wrap; }
  .trial-banner .btn { width: 100%; margin-left: 0; }
  .filter-bar { padding: 11px; }
  .date-field input { width: 128px; }
  .section-head { margin-bottom: 22px; }
  .steps { margin-bottom: 56px; }
  .value-card { padding: 26px; }
  .order-body { grid-template-columns: 1fr; gap: 16px; }
  .order-qr { text-align: left; }
  .order-qr .qr-img { margin: 0 0 6px; }
  .pay-success { padding: 16px; }
  .meta-item b.meta-price { font-size: 26px; }
  .success-code { font-size: 17px; }
  .week-reminder { align-items: flex-start; flex-wrap: wrap; }
  .week-reminder .btn { margin-left: 20px; }
}

/* ------------------------------------------------------------ 滚动与交互增强 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #4F46E5, #7C5CF0 58%, #A78BFA);
  box-shadow: 0 0 14px rgba(124, 92, 240, .45);
}

/* 标题下划线随进入视口绘出 */
.section-head h2 { position: relative; }

.section-head h2::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(124, 92, 240, .08));
  transition: width 1.05s cubic-bezier(.22, 1, .36, 1) .12s;
}

.section-head.seen h2::after { width: 72px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* 首屏演示卡随页面滚动轻微下沉 */
.hero-stage { transform: translate3d(0, var(--sy, 0px), 0); will-change: transform; }

/* 首屏文案随滚动上浮、轻微缩小与淡出，和演示卡形成前后层 */
.hero-main {
  transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1));
  opacity: var(--ho, 1);
  will-change: transform, opacity;
}

/* FAQ 展开时内容轻微下滑淡入 */
.faq details[open] p { animation: faqIn .32s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 点击翻页 + 自动轮播（三步 / 定价） ---------------- */
.carousel-viewport { overflow: hidden; padding: 2px; margin: -2px; }

.carousel .steps,
.carousel .plan-grid {
  --per: 1;
  display: flex;
  gap: 20px;
  margin-bottom: 0;
  transform: translate3d(var(--shift, 0px), 0, 0);
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.carousel .steps > .step,
.carousel .plan-grid > .plan-card {
  flex: 0 0 calc((100% - 20px * (var(--per) - 1)) / var(--per));
  min-width: 0;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.carousel-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: border-color .2s ease, color .2s ease, transform .18s ease, box-shadow .2s ease;
}

.carousel-arrow:hover { border-color: rgba(79, 70, 229, .35); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.carousel-arrow:active { transform: scale(.94); }

.carousel-dots { display: flex; align-items: center; gap: 8px; }

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}

.carousel-dots button.on { width: 22px; background: var(--accent); }

@media (min-width: 901px) {
  .carousel#flow .step {
    min-height: 360px;
    padding: 40px 46px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
  }
  .carousel#flow .step-copy { max-width: 52%; }
  .carousel#flow .step-demo { width: 46%; min-height: 260px; margin-top: 0; }
  .carousel#flow .step-num { width: 52px; height: 52px; border-radius: 16px; font-size: 17px; }
  .carousel#flow .step-copy b {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: .005em;
    line-height: 1.2;
  }
  .carousel#flow .step-copy small { font-size: 15px; margin-top: 10px; line-height: 1.9; }
  .carousel#flow .sd-picks, .carousel#flow .sd-output { min-height: 260px; }

  .carousel#pricing .plan-card { padding: 34px 30px; }
  .carousel#pricing .plan-price { font-size: 46px; }
  .carousel#pricing .plan-name { font-size: 15px; }
}

/* 标题遮罩揭示：从下沿向上展开 */
.js .hero h1 { animation: headlineIn 1.05s cubic-bezier(.16, 1, .3, 1) .1s both; }

@keyframes headlineIn {
  from { clip-path: inset(-12% 0 100% 0); transform: translateY(16px); }
  to { clip-path: inset(-12% 0 -12% 0); transform: none; }
}

.js .section-head h2 {
  clip-path: inset(-15% 0 100% 0);
  transition: clip-path 1s cubic-bezier(.16, 1, .3, 1);
}

.js .section-head.seen h2 { clip-path: inset(-15% 0 -15% 0); }

/* 右侧章节导航轨（宽屏） */
.scroll-rail { display: none; }

@media (min-width: 1400px) {
  .scroll-rail {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .scroll-rail a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--muted);
    opacity: .62;
    transition: opacity .22s ease, color .22s ease;
  }
  .scroll-rail a em {
    font-style: normal;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .22s ease, transform .26s cubic-bezier(.22, 1, .36, 1);
  }
  .scroll-rail a i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--line-strong);
    transition: width .32s cubic-bezier(.22, 1, .36, 1), background .32s ease;
  }
  .scroll-rail:hover a em { opacity: .75; transform: none; }
  .scroll-rail a:hover { color: var(--ink-2); opacity: 1; }
  .scroll-rail a.on { color: var(--accent-ink); opacity: 1; }
  .scroll-rail a.on em { opacity: 1; transform: none; }
  .scroll-rail a.on i { width: 20px; background: var(--accent); }
}

/* ------------------------------------------------------------ 丝滑微交互 */
.wrap { animation: pageIn .5s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  0% { left: -55%; opacity: 0; }
  35% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* 首屏主按钮每隔几秒自动扫一次光，提示可以点 */
.hero-actions .btn.primary::before {
  animation: autoSheen 7s cubic-bezier(.22, 1, .36, 1) 2.4s infinite;
}

.hero-actions .btn.primary:hover::before { animation: sheen .9s cubic-bezier(.22, 1, .36, 1); }

@keyframes autoSheen {
  0%, 80% { left: -55%; opacity: 0; }
  84% { opacity: .85; }
  94%, 100% { left: 120%; opacity: 0; }
}

/* 鼠标跟随柔光：卡片、步骤、套餐、报告行共用 */
.spot { position: relative; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 70, 229, .075), transparent 62%);
  transition: opacity .4s ease;
}

.spot:hover::after { opacity: 1; }

.step, .plan-card, .report-row, .faq details, .value-card, .demo-card {
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s cubic-bezier(.22, 1, .36, 1),
    border-color .3s ease,
    background .3s ease;
}

.report-row:hover { transform: translateY(-3px); }

.nav a {
  transition: background .24s ease, color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.nav a:hover { transform: translateY(-1px); }

input[type="text"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover { border-color: #C9CEDC; }

/* ------------------------------------------------------------ 首屏标题逐字入场 + 高级交互 */
.hero-aura {
  position: absolute;
  inset: -70px -50px -40px;
  border-radius: 44px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(440px circle at var(--mx, 22%) var(--my, 28%), rgba(104, 86, 240, .17), transparent 64%);
}

.hero-aura.on { opacity: 1; }

.js .hero h1.title-ready { animation: none; }

.hero-title.title-ready {
  position: relative;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

/* 每个字独立在 3D 空间里旋转出场 */
.hero-title .hero-line {
  display: block;
  perspective: 1100px;
  transform-style: preserve-3d;
  padding: 0 .22em .2em;
  margin: 0 -.22em -.2em;
}

.hero-title .ch-mask {
  display: inline-block;
  perspective: 760px;
  transform-style: preserve-3d;
  vertical-align: top;
}

.hero-title .ch-space {
  display: inline-block;
  width: .26em;
}

.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 55%;
  transform: rotateY(-118deg) rotateX(22deg) translateZ(-70px) scale(.86);
  filter: blur(7px);
  backface-visibility: hidden;
  text-shadow: 0 1px 0 rgba(17, 24, 39, .05), 0 14px 26px rgba(17, 24, 39, .1);
  animation: charSpin 1.15s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 52ms + 80ms);
  will-change: transform, opacity, filter;
}

.hero-title .grad.ch {
  background: linear-gradient(100deg, #4F46E5 0%, #7C5CF0 38%, #B49CFF 55%, #4F46E5 100%);
  background-size: 400% 100%;
  background-position: calc(var(--gi, 0) * -33.333%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  animation:
    charSpin 1.15s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 52ms + 80ms) forwards,
    keywordFloat 6.5s ease-in-out 2.4s infinite;
}

.hero-title.title-ready {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.hero-title.title-ready::after {
  content: "";
  position: absolute;
  inset: -.3em -1.4em;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
  mix-blend-mode: overlay;
  animation: titleSheen 8s ease-in-out 1.5s infinite;
}

@keyframes charSpin {
  0% {
    opacity: 0;
    transform: rotateY(-118deg) rotateX(22deg) translateZ(-70px) scale(.86);
    filter: blur(7px);
  }
  55% { opacity: 1; }
  76% {
    transform: rotateY(9deg) rotateX(-3deg) translateZ(10px) scale(1.03);
    filter: blur(0);
  }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes keywordFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

@keyframes titleSheen {
  0%, 72% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
  76% { opacity: .85; }
  96% { transform: translateX(130%) skewX(-16deg); opacity: 0; }
  100% { transform: translateX(130%) skewX(-16deg); opacity: 0; }
}

/* 套餐卡：指针柔光跟随 + 推荐档位呼吸高亮 */
.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 18%), rgba(79, 70, 229, .13), transparent 62%);
}

.plan-card:hover::after { opacity: 1; }

.carousel#pricing .plan-card.featured { animation: featureGlow 5.5s ease-in-out infinite; }

@keyframes featureGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(79, 70, 229, .22), 0 14px 32px -24px rgba(79, 70, 229, .55); }
  50% { box-shadow: 0 0 0 1px rgba(79, 70, 229, .42), 0 20px 44px -22px rgba(79, 70, 229, .78); }
}

/* 定价区：指针跟随的柔光 + 区块滚动入场 */
#pricing { position: relative; }

#pricing::before {
  content: "";
  position: absolute;
  inset: -60px -30px;
  border-radius: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(560px circle at var(--px, 50%) var(--py, 16%), rgba(104, 86, 240, .13), transparent 64%);
}

#pricing:hover::before { opacity: 1; }

.js .reveal:not(.hero) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.in:not(.hero) {
  opacity: 1;
  transform: none;
}

/* 催单行 */
.claim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.claim-row #order-claim-status { flex: 1; min-width: 200px; }

.alert.ok { color: #067647; background: #ECFDF3; border-color: #CDEBDC; }

/* 管理后台 */
.admin-login { max-width: 460px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stat { padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 4px; }
.admin-stat span { font-size: 12.5px; color: var(--muted); }
.admin-stat b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.admin-stat small { font-size: 12px; color: var(--muted); }
.admin-stat.ok b { color: #067647; }
.admin-table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-size: 11.5px; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr.paid { background: #FCFDFC; }
.admin-table .mono { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-variant-numeric: tabular-nums; }
.admin-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.admin-badge.pending { color: var(--warn); background: var(--warn-soft); }
.admin-badge.paid { color: #067647; background: #ECFDF3; }
.admin-claim { margin-top: 4px; font-size: 11.5px; color: var(--accent-ink); }
.code-inline { margin-top: 4px; color: var(--accent-ink); }
.admin-confirm { display: inline; }
.admin-foot { margin-top: 14px; }

@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-glow, .preview-float, .btn.primary::before { animation: none !important; }
  .wrap { animation: none; }
  .js-demo .doc-card { opacity: 1 !important; transform: none !important; }
  .js-demo .doc-line { width: var(--w) !important; }
  .js-demo .doc-module { opacity: 1 !important; transform: none !important; }
  .demo-frag, .step-demo *, .demo-toast { animation: none !important; }
  .sd-chip { opacity: 1 !important; }
  .sd-mod i { transform: none !important; }
  .demo-cursor { display: none; }
  .scroll-progress { display: none; }
  .hero-stage { transform: none !important; }
  .hero-main { transform: none !important; opacity: 1 !important; }
  .faq details[open] p { animation: none; }
  .hero h1 { animation: none; }
  .js .section-head h2, .js .section-head.seen h2 { clip-path: none; transition: none; }
  .scroll-rail a, .scroll-rail a i, .scroll-rail a em { transition: none; }
  .section-head h2::after { width: 72px; transition: none; }
  .carousel .steps, .carousel .plan-grid { transition: none; }
  .hero-title .ch { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; translate: none !important; }
  .hero-title .ch-mask { overflow: visible; }
  .hero-title.title-ready::after { display: none; }
  .hero-title .grad.ch { background: none; -webkit-text-fill-color: var(--accent-ink); color: var(--accent-ink); }
  .hero-aura { display: none; }
  .carousel#pricing .plan-card.featured { animation: none; }
}
