/* 火花自动 · 站点通用样式（营销页 + 站内导航） */

body.landing {
  --ink: #08070b;
  --ink-soft: #0d0c12;
  --panel: rgba(255, 255, 255, .035);
  --panel-hover: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f5f5f7;
  --text-soft: #c6c6ce;
  --muted: #8d8d99;
  --spark: #ff6a1a;
  --flame: #ffb545;
  --rose: #ff2e63;
  --violet: #7b61ff;
  --radius: 16px;
  --max: 1160px;
  --nav-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.landing * { box-sizing: border-box; }
body.landing a { color: inherit; text-decoration: none; }
body.landing img { max-width: 100%; display: block; }
body.landing h1, body.landing h2, body.landing h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
body.landing p { margin: 0; }
body.landing ul { margin: 0; padding: 0; list-style: none; }
body.landing .wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }
body.landing :focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

/* ---------- 站内导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h, 64px);
  padding: 0 max(20px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(8, 7, 11, .58);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, .07);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #f5f5f7;
}
.site-nav--light {
  background: rgba(255, 255, 255, .78);
  border-bottom-color: #e4e4e7;
  color: #09090b;
}
.site-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; font-size: 17px; }
.site-brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.site-nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav-link { padding: 7px 11px; border-radius: 9px; font-size: 14.5px; opacity: .72; transition: opacity .14s ease, background-color .14s ease; }
.site-nav-link:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
.site-nav--light .site-nav-link:hover { background: #f4f4f5; }
.site-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav .btn { min-height: 34px; padding: 0 13px; font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background-color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, #ff9a45 0%, #ff5a1f 46%, #ff2e63 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 90, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover { box-shadow: 0 16px 32px -10px rgba(255, 90, 31, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #f5f5f7; }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn.is-soon { cursor: default; opacity: .62; }
.btn[aria-disabled="true"]:hover { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); box-shadow: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; }
.hero::before,
.hero::after { position: absolute; z-index: 0; border-radius: 50%; content: ""; filter: blur(8px); pointer-events: none; }
.hero::before {
  top: -240px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 26, .34), rgba(255, 46, 99, .12) 45%, transparent 68%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -300px; left: -220px; width: 560px; height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(123, 97, 255, .26), transparent 66%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px; margin-bottom: 22px;
  border: 1px solid rgba(255, 181, 69, .32); border-radius: 999px;
  background: rgba(255, 181, 69, .09); color: #ffcf87; font-size: 13px; letter-spacing: .01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 3px rgba(255, 181, 69, .18); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -.035em; }
.hero h1 .grad {
  background: linear-gradient(104deg, #ffd08a 4%, #ff7a29 42%, #ff2e63 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 33em; margin-top: 22px; color: var(--text-soft); font-size: 17.5px; line-height: 1.72; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: #4ade80; }

/* 聊天演示卡 */
.chat-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .022) 55%, rgba(255, 255, 255, .05));
  box-shadow: 0 40px 90px -40px rgba(255, 90, 31, .5), 0 2px 0 rgba(255, 255, 255, .06) inset;
  backdrop-filter: blur(8px);
}
.chat-card::before {
  position: absolute; inset: -1px; z-index: -1; border-radius: 23px; content: "";
  background: linear-gradient(150deg, rgba(255, 138, 61, .5), transparent 42%, rgba(123, 97, 255, .34));
  opacity: .55; filter: blur(14px);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ff8a3d, #ff2e63); color: #fff; font-weight: 650; font-size: 17px; }
.chat-meta strong { display: block; font-size: 15px; font-weight: 600; }
.chat-meta span { color: var(--muted); font-size: 12.5px; }
.streak {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 5px 11px; border: 1px solid rgba(255, 181, 69, .35); border-radius: 999px;
  background: rgba(255, 138, 61, .14); color: #ffcf87; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chat-body { display: grid; gap: 10px; padding: 16px 2px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.bubble--in { justify-self: start; border-bottom-left-radius: 5px; background: rgba(255, 255, 255, .09); color: #ededf2; }
.bubble--out { justify-self: end; border-bottom-right-radius: 5px; background: linear-gradient(135deg, #ff7a29, #ff2e63); color: #fff; box-shadow: 0 8px 20px -12px rgba(255, 60, 90, .9); }
.bubble--sticker { padding: 8px; background: rgba(255, 255, 255, .09); }
.bubble--sticker img { width: 76px; height: 76px; object-fit: contain; }
.bubble-time { display: block; margin-top: 4px; font-size: 11px; opacity: .68; }
.chat-foot { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: 12.5px; }
.chat-foot .live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .16); animation: pulse 2s ease-in-out infinite; }

/* ---------- 数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.metrics div { padding: 22px 24px; background: #0b0a0f; }
.metrics strong { display: block; font-size: 27px; font-weight: 650; letter-spacing: -.02em; background: linear-gradient(120deg, #fff, #ffb545); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metrics span { color: var(--muted); font-size: 13.5px; }

/* ---------- 通用区块 ---------- */
.section { position: relative; padding: 88px 0; }
.section--tight { padding-top: 60px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 40px); }
.section-head p { margin-top: 14px; color: #a8a8b4; font-size: 16.5px; }
.kicker { display: block; margin-bottom: 12px; color: #ff9a52; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; padding: 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.feature:hover { border-color: var(--line-strong); background: var(--panel-hover); transform: translateY(-2px); }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 16px; border: 1px solid rgba(255, 138, 61, .3); border-radius: 12px; background: rgba(255, 138, 61, .12); color: #ffa564; }
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { margin-top: 9px; color: #9c9ca8; font-size: 14.5px; line-height: 1.65; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 14px; color: #ff7a29; font-size: 13px; font-weight: 700; letter-spacing: .1em;
}
.step h3 { font-size: 17px; font-weight: 600; }
.step p { margin-top: 8px; color: #9c9ca8; font-size: 14.5px; }
.step code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* 定价 */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.plan--featured {
  border-color: rgba(255, 138, 61, .46);
  background: linear-gradient(180deg, rgba(255, 122, 41, .12), rgba(255, 255, 255, .03) 42%);
  box-shadow: 0 30px 70px -44px rgba(255, 90, 31, .9);
}
.plan-tag { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #ff8a3d, #ff2e63); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.plan h3 { font-size: 19px; font-weight: 600; }
.plan-desc { color: #9c9ca8; font-size: 13.5px; margin-top: -10px; min-height: 21px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 40px; font-weight: 650; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 13.5px; }
.plan ul { display: grid; gap: 9px; margin: 2px 0 4px; }
.plan li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: 14px; }
.plan li::before {
  position: absolute; top: .5em; left: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #ff9a45, #ff2e63); content: "";
}
.plan li.off { color: #6b6b77; }
.plan li.off::before { background: #3f3f4a; }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: 22px; color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); transition: border-color .16s ease; }
.faq details[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 550;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { margin-left: auto; color: #ff9a52; content: "+"; font-size: 19px; font-weight: 400; line-height: 1; transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 18px; color: #a4a4b0; font-size: 14.5px; line-height: 1.72; }
.faq .faq-body code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* 收尾 CTA */
.cta-band {
  position: relative; overflow: hidden;
  padding: 56px 40px; border: 1px solid rgba(255, 138, 61, .28); border-radius: 24px;
  background: radial-gradient(120% 160% at 12% 0%, rgba(255, 138, 61, .24), transparent 52%), radial-gradient(120% 160% at 92% 100%, rgba(123, 97, 255, .24), transparent 56%), #0c0b11;
  text-align: center;
}
.cta-band h2 { font-size: clamp(25px, 3vw, 35px); }
.cta-band p { max-width: 42em; margin: 14px auto 0; color: #b3b3bf; font-size: 16px; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* 页脚 */
.site-foot { padding: 44px 0 34px; border-top: 1px solid var(--line); background: #060509; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; justify-content: space-between; }
.foot-brand { max-width: 340px; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.foot-col h4 { margin: 0 0 12px; color: #e4e4ea; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.foot-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 13.5px; transition: color .14s ease; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); color: #6f6f7b; font-size: 12.5px; }

/* 文档/条款类长文 */
.doc { max-width: 820px; margin: 0 auto; padding: 64px 0 80px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 40px); }
.doc .doc-meta { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.doc h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; }
.doc p, .doc li { color: #b4b4c0; font-size: 15px; line-height: 1.8; }
.doc p + p { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 20px; list-style: disc; }
.doc .callout { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(255, 181, 69, .3); border-radius: 12px; background: rgba(255, 181, 69, .08); }
.doc .callout p { color: #e8d5b5; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }

@keyframes drift { to { transform: translate3d(-30px, 26px, 0) scale(1.08); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  body.landing * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding: 56px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-lead { font-size: 16.5px; }
  .feature-grid, .steps, .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--featured { grid-column: 1 / -1; order: -1; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav-links { display: none; }
}

@media (max-width: 640px) {
  body.landing .wrap { width: min(100% - 32px, var(--max)); }
  .site-nav { height: 58px; padding: 0 16px; }
  .site-nav .btn { min-height: 32px; padding: 0 11px; font-size: 13px; }
  .brand-text { display: none; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { padding: 18px 20px; }
  .feature-grid, .steps, .pricing { grid-template-columns: 1fr; }
  .plan--featured { order: 0; }
  .cta-band { padding: 40px 22px; border-radius: 18px; }
  .foot-grid { gap: 26px; }
  .faq summary { padding: 15px 16px; font-size: 14.5px; }
  .doc { padding: 44px 0 64px; }
}
