/* ============================================================
   MathOCR 官网样式
   ============================================================ */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --max: 1160px;
  --nav-h: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #dbe3ff;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  font-weight: 600;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .88em;
  color: var(--primary-dark);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(79, 70, 229, .36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.btn-white:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .24); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 顶部公告 ---------- */
.announcement {
  background: linear-gradient(90deg, #1e1b4b, #312e81 50%, #1e1b4b);
  color: #e0e7ff;
  text-align: center;
  font-size: 13px;
  padding: 9px 20px;
  letter-spacing: .01em;
}
.announcement-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #a5f3fc;
  border-radius: 50%;
  margin-right: 9px;
  box-shadow: 0 0 0 4px rgba(165, 243, 252, .16);
  vertical-align: 1px;
}
.announcement a { color: #fff; font-weight: 600; margin-left: 6px; }
.announcement a:hover { text-decoration: underline; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .04); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 6px 14px rgba(79, 70, 229, .3);
}
.brand-mark-x { font-size: 11px; font-style: normal; align-self: flex-end; margin-bottom: 8px; margin-left: 1px; }
.brand-name { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 550; color: var(--ink-2); transition: color .18s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 80px; background: linear-gradient(180deg, #fbfbff 0%, #ffffff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero-blob-1 { width: 560px; height: 560px; background: radial-gradient(circle, #c7d2fe, transparent 68%); top: -180px; left: -120px; }
.hero-blob-2 { width: 520px; height: 520px; background: radial-gradient(circle, #bae6fd, transparent 68%); top: 40px; right: -140px; opacity: .42; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid #e0e7ff;
  color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  padding: 7px 15px 7px 11px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.badge-star { color: #f59e0b; font-size: 15px; }
.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(100deg, #4f46e5 10%, #7c3aed 45%, #0284c7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: 17px; color: var(--ink-2); line-height: 1.85; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.hero-meta i { width: 4px; height: 4px; background: var(--muted-2); border-radius: 50%; }

.hero-visual { position: relative; padding: 10px 0; }
.window-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(30, 27, 75, .18), 0 4px 14px rgba(15, 23, 42, .06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.window-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.window-bar {
  height: 34px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 14px;
  position: relative;
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.hero-screenshot { width: 100%; height: auto; }
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
  display: flex; align-items: center; gap: 11px;
  font-size: 13px;
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
.float-card-1 { bottom: 30px; left: -34px; }
.float-card-2 { top: -18px; right: -18px; animation-delay: -2.5s; }
.float-card-2 code { background: #fff; border: none; padding: 0; font-size: 12px; color: var(--primary-dark); }
.float-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.float-card strong { display: block; font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.float-card small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 数据条 ---------- */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; }
.stat-item { text-align: center; border-right: 1px solid var(--line); padding: 0 18px; }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1.2; }
.stat-item span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 通用 section ---------- */
.section { padding: 104px 0; }
.section-heading { max-width: 680px; margin-bottom: 56px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-heading h2, .detail-copy h2, .word-copy h2, .faq-intro h2, .download-inner h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.25;
  letter-spacing: -.03em;
  font-weight: 780;
  margin-bottom: 16px;
}
.section-heading p, .detail-copy > p, .word-copy > p, .faq-intro p, .download-inner > p { color: var(--muted); font-size: 16px; }

/* ---------- 核心功能 ---------- */
.features-section { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c7d2fe; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.icon-blue { background: #eef2ff; color: #4f46e5; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }
.icon-indigo { background: #e0e7ff; color: #4338ca; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.01em; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- 识别引擎 ---------- */
.engines-section { background: var(--bg-soft); }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.engine-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.engine-featured { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(79, 70, 229, .12); }
.engine-ribbon {
  position: absolute; top: -13px; right: 22px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, .3);
}
.engine-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; }
.badge-blue { background: #eef2ff; color: #4f46e5; }
.badge-purple { background: #f3e8ff; color: #9333ea; }
.badge-teal { background: #ccfbf1; color: #0d9488; }
.engine-head h3 { font-size: 21px; font-weight: 750; margin-bottom: 6px; }
.engine-tagline { font-size: 13px; color: var(--muted); min-height: 44px; margin-bottom: 12px; }
.engine-list { margin: 6px 0 20px; flex: 1; }
.engine-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.engine-list li span { color: var(--muted); flex-shrink: 0; }
.engine-list li strong { font-weight: 600; color: var(--ink-2); text-align: right; }
.engine-foot { font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 9px; padding: 10px 12px; line-height: 1.6; }

/* ---------- 功能详情 ---------- */
.feature-detail { background: #fff; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 68px; align-items: center; }
.feature-detail.reverse .detail-copy { order: 2; }
.feature-detail.reverse .detail-visual { order: 1; }
.detail-copy h2 { margin-bottom: 18px; }
.detail-copy > p { margin-bottom: 26px; }
.detail-list li { display: flex; gap: 12px; margin-bottom: 17px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.detail-list strong { color: var(--ink); font-weight: 700; }
.detail-list .check {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  background: #eef2ff; color: var(--primary); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.detail-visual .window-frame { transform: none; }
.detail-visual .window-frame:hover { transform: translateY(-4px); }
.detail-visual img, .word-visual img { width: 100%; }

/* ---------- Word 集成 ---------- */
.word-section { background: var(--bg-soft); }
.word-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.detail-list.compact li { margin-bottom: 13px; }

/* ---------- 流程 ---------- */
.workflow-section { background: #fff; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; }
.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 800; color: #dbe3ff; letter-spacing: .04em; }
.step-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.step-arrow { align-self: center; color: #cbd5e1; font-size: 22px; font-weight: 300; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-soft); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.faq-intro p { margin-top: 4px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 21px 4px;
  font-size: 15px; font-weight: 650; color: var(--ink);
  transition: color .18s;
}
.faq-question:hover { color: var(--primary); }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--muted);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.faq-plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] { color: var(--primary); }
.faq-question[aria-expanded="true"] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 30px 21px 4px; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 下载 CTA ---------- */
.download-section { padding: 0 0 100px; background: var(--bg-soft); }
.download-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1e3a8a 100%);
  border-radius: 26px;
  padding: 74px 40px 78px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 60px rgba(30, 27, 75, .25);
}
.download-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .35), transparent 65%);
  top: -220px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
/* 只让内容层浮起；装饰光斑必须保持 absolute，否则会变成 520×520 的空白块把卡片撑高 */
.download-inner > * { position: relative; z-index: 1; }
.download-inner > .download-glow { position: absolute; z-index: 0; }
.download-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #a5b4fc; margin-bottom: 16px; text-transform: uppercase; }
.download-inner h2 { color: #fff; margin-bottom: 14px; }
.download-inner > p { color: #c7d2fe; font-size: 16px; margin-bottom: 28px; }
.download-buttons { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.download-note { font-size: 12px; color: #a5b4fc; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1020; color: #94a3b8; padding: 66px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.15fr 1.35fr; gap: 60px; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { box-shadow: none; }
.footer-brand p { font-size: 13px; line-height: 1.9; margin-top: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 650; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 11px; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 12px; color: #64748b; }

/* ---------- 正文内联链接 ---------- */
.inline-link { color: var(--primary); font-weight: 650; }
.inline-link:hover { text-decoration: underline; }

/* ---------- 轻提示 ---------- */
.site-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  font-size: 13px; padding: 12px 20px;
  border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200; max-width: calc(100% - 32px); text-align: center;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hero 购买提示 ---------- */
.hero-buy-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero-buy-note a { color: var(--primary); font-weight: 650; }
.hero-buy-note a:hover { text-decoration: underline; }

/* ---------- 价格 ---------- */
.pricing-section { background: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-featured { border: 2px solid var(--primary); box-shadow: 0 18px 46px rgba(79, 70, 229, .14); }
.price-card .btn-block { margin-top: auto; }
.price-ribbon {
  position: absolute; top: -13px; right: 22px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, .3);
}
.price-head h3 { font-size: 20px; font-weight: 750; margin-bottom: 5px; }
.price-desc { font-size: 13px; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; gap: 2px; margin: 20px 0 6px; min-height: 52px; }
.price-strong { font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.price-currency { font-size: 22px; font-weight: 700; color: var(--ink); align-self: flex-start; margin-top: 5px; }
.price-unit { font-size: 13px; color: var(--muted); margin-left: 4px; }
.price-membership { font-size: 26px; font-weight: 750; color: var(--primary); letter-spacing: -.02em; }
.price-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.price-features { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 24px; }
.price-features li {
  position: relative; padding-left: 22px; font-size: 13.5px;
  color: var(--ink-2); line-height: 1.7; margin-bottom: 8px;
}
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 800; font-size: 12px;
}
.price-features .price-muted { color: var(--muted-2); font-size: 12.5px; }
.price-features .price-muted::before { content: "·"; color: var(--muted-2); }
.btn-block { display: flex; width: 100%; padding: 12px 20px; font-size: 15px; }

.payment-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 32px; padding: 16px 22px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; font-size: 13px; color: var(--muted);
}
.pay-secure { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.pay-secure svg { color: #059669; }
.pay-divider { width: 1px; height: 14px; background: var(--line); }
.pay-recover { margin-left: auto; color: var(--primary); font-weight: 650; white-space: nowrap; }
.pay-recover:hover { text-decoration: underline; }

/* ---------- 激活授权 ---------- */
.activate-section { background: var(--bg-soft); }
.activate-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.activate-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 780; letter-spacing: -.03em; margin-bottom: 14px; }
.activate-copy > p { font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 520px; }
.serial-box { display: flex; gap: 10px; margin: 24px 0 9px; }
.serial-box input {
  flex: 1; min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.serial-box input::placeholder { color: var(--muted-2); letter-spacing: .03em; }
.serial-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.serial-box input.invalid { border-color: #fca5a5; background: #fef2f2; }
.serial-box .btn { white-space: nowrap; }
.serial-hint { font-size: 12.5px; color: var(--muted); }
.serial-hint.error { color: #dc2626; }
.serial-hint.ok { color: #059669; }

.activate-result {
  margin-top: 20px; background: #fff; border: 1px solid #c7d2fe;
  border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm);
}
.activate-result-label { font-size: 12px; font-weight: 700; color: #059669; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.activate-result code {
  display: block; word-break: break-all; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 11.5px; color: var(--primary-dark);
  line-height: 1.6; margin-bottom: 12px;
}
.activate-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.activate-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 11px; }

.activate-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.activate-side h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.activate-steps li { display: flex; gap: 13px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.activate-steps li:last-of-type { margin-bottom: 8px; }
.activate-steps li span {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 1px;
}
.activate-steps li strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.activate-recover { display: inline-block; font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 6px; }
.activate-recover:hover { text-decoration: underline; }

/* ---------- 购买弹窗 ---------- */
body.modal-open { overflow: hidden; }
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal {
  position: relative; width: 100%; max-width: 460px; min-width: 0;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .3);
  animation: modalIn .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalIn { from { transform: translateY(16px) scale(.98); } to { transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: #f1f5f9; color: var(--muted); font-size: 21px; line-height: 1;
  display: grid; place-items: center; transition: background .18s, color .18s;
}
.modal-close:hover { background: #e2e8f0; color: var(--ink); }
.modal-badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.modal-head h3 { font-size: 24px; font-weight: 780; letter-spacing: -.02em; margin-bottom: 8px; }
.modal-head p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.order-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.order-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 9px; }
.order-row strong { font-size: 16px; font-weight: 750; color: var(--ink); }
.order-row-muted { font-size: 13px; color: var(--muted); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 14px; font-size: 14px; color: var(--ink-2); }
.order-total strong { font-size: 21px; color: var(--primary); font-weight: 800; letter-spacing: -.02em; }
.order-includes { margin-bottom: 22px; }
.order-includes li { position: relative; padding-left: 22px; font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 7px; }
.order-includes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #059669; font-weight: 800; font-size: 12px; }
.modal-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.65; margin-top: 12px; }
.link-btn { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 650; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.modal-link { display: block; margin: 10px auto 0; }

/* ---------- 结算流程 ---------- */
.modal-checkout { max-width: 520px; }
.checkout-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; padding-right: 24px; }
.cp-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); font-weight: 600; white-space: nowrap; }
.cp-step i { width: 20px; height: 20px; border-radius: 50%; background: #f1f5f9; color: var(--muted-2); font-style: normal; font-size: 11px; display: grid; place-items: center; font-weight: 800; }
.cp-step.active { color: var(--primary); }
.cp-step.active i { background: var(--primary); color: #fff; }
.cp-step.done i { background: #dcfce7; color: #059669; }
.cp-line { flex: 1; height: 1px; background: var(--line); min-width: 12px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field em { color: #dc2626; font-style: normal; }
.field small { color: var(--muted-2); font-weight: 500; font-size: 11px; margin-left: 4px; }
.field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.field input.invalid { border-color: #fca5a5; background: #fef2f2; }
.form-error { font-size: 12.5px; color: #dc2626; min-height: 18px; margin: 2px 0 8px; }
#payForm .btn { margin-top: 2px; }

.qr-panel { display: flex; gap: 18px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.qr-box { width: 150px; height: 150px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.qr-side { flex: 1; min-width: 0; }
.qr-amount { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.qr-plan { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.qr-status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
  70% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
.qr-order { font-size: 11px; color: var(--muted-2); word-break: break-all; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #92400e; margin-bottom: 12px; }
.pay-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pay-actions .link-btn { align-self: center; }

.checkout-done { text-align: center; padding-top: 6px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #059669; font-size: 30px; display: grid; place-items: center; margin: 4px auto 16px; font-weight: 800; }
.checkout-done h3 { font-size: 24px; font-weight: 780; margin-bottom: 8px; }
.done-text { font-size: 14px; color: var(--muted); }
.done-email { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin: 6px 0 18px; word-break: break-all; }
.done-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.75; text-align: left; margin-bottom: 18px; }
.checkout-done .btn { margin-bottom: 6px; }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-visual { max-width: 760px; margin-inline: auto; width: 100%; }
  .float-card-1 { left: 0; }
  .feature-grid, .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .word-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail.reverse .detail-copy { order: 0; }
  .feature-detail.reverse .detail-visual { order: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .activate-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step-arrow { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--max)); }
  :root { --nav-h: 64px; }
  .announcement { font-size: 11px; padding: 8px 12px; line-height: 1.5; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .menu-toggle { display: block; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .hero-subtitle { font-size: 15px; }
  .desktop-only { display: none; }
  .float-card { display: none; }
  .window-frame { transform: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 26px 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item strong { font-size: 26px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 40px; }
  .feature-grid, .engine-grid { grid-template-columns: 1fr; }
  .engine-tagline { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .download-section { padding-bottom: 72px; }
  .download-inner { padding: 56px 24px 60px; border-radius: 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .payment-meta { flex-direction: column; align-items: flex-start; gap: 9px; padding: 16px 18px; }
  .pay-divider { display: none; }
  .pay-recover { margin-left: 0; }
  .serial-box { flex-direction: column; }
  .serial-box .btn { width: 100%; }
  .activate-side { padding: 26px 22px; }
  .modal { padding: 30px 22px 24px; border-radius: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 24px 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .faq-question { font-size: 14px; }
}

@media (max-width: 430px) {
  .qr-panel { flex-direction: column; text-align: center; }
  .qr-side { text-align: center; }
  .qr-status { justify-content: center; }
  .checkout-progress { gap: 5px; }
  .cp-step { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
