:root {
  --ink: #0c1222;
  --ink-2: #263149;
  --muted: #5f6b85;
  --line: rgba(16, 24, 40, .09);
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --cyan: #06b6d4;
  --bg: #f7f8fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px -8px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -24px rgba(24, 32, 72, .35), 0 8px 24px -12px rgba(24, 32, 72, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- background ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.glow-a {
  width: 620px; height: 620px;
  top: -240px; right: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 65%);
}
.glow-b {
  width: 560px; height: 560px;
  top: 420px; left: -220px;
  background: radial-gradient(circle, rgba(6, 182, 212, .28), transparent 65%);
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 18, 34, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 34, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, #9333ea);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .9);
}
.btn-primary:hover { box-shadow: 0 16px 32px -14px rgba(79, 70, 229, 1); }
.btn-line {
  border-color: rgba(12, 18, 34, .14);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
}
.btn-line:hover { border-color: rgba(12, 18, 34, .28); background: #fff; }
.btn-ghost { color: var(--ink-2); padding: 10px 12px; }
.btn-ghost:hover { color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 248, 252, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247, 248, 252, .9); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8);
}
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.logo-sub { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { bottom: 15px; }
.nav-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  border: 1px solid rgba(79, 70, 229, .16);
  color: #4338ca;
  font-size: 12.5px;
  font-weight: 600;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -.03em;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 540px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 42px;
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- chat widget ---------- */
.hero-visual { position: relative; }
.widget {
  position: relative;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 552px;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: linear-gradient(120deg, #1e1b4b, #312e81 55%, #4338ca);
  color: #fff;
}
.agent { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
}
.agent-meta { display: flex; flex-direction: column; line-height: 1.35; }
.agent-meta strong { font-size: 14.5px; }
.online { font-size: 11.5px; color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 5px; }
.online i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .05), transparent 42%),
    #fbfbfe;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(12, 18, 34, .16); border-radius: 4px; }

.msg { display: flex; gap: 8px; max-width: 90%; animation: rise .28s ease both; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.8px;
  line-height: 1.6;
  word-break: break-word;
}
.msg.bot .bubble {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px -4px rgba(16, 24, 40, .14);
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--brand), #6d28d9);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg .meta { display: block; font-size: 10.5px; color: #9aa3b8; margin-top: 4px; }
.msg.user .meta { text-align: right; color: rgba(255, 255, 255, .72); }
.msg .bubble b { font-weight: 700; }
.msg .bubble .hint {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(16, 24, 40, .12);
  font-size: 12.5px;
  color: var(--muted);
}

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a5b0c4;
  animation: blink 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

.quick-chips {
  display: flex;
  gap: 7px;
  padding: 10px 14px 4px;
  overflow-x: auto;
  background: #fbfbfe;
  scrollbar-width: none;
}
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chips button {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, .22);
  background: rgba(79, 70, 229, .06);
  color: #4338ca;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .15s, transform .15s;
}
.quick-chips button:hover { background: rgba(79, 70, 229, .13); transform: translateY(-1px); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #fbfbfe;
}
.chat-input input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, .12);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input input::placeholder { color: #a3adc2; }
.chat-input input:focus {
  border-color: rgba(79, 70, 229, .55);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.send-btn {
  width: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 1);
  transition: transform .15s;
}
.send-btn:hover { transform: translateY(-1px); }
.send-btn:active { transform: scale(.97); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.35; }
.float-card strong { font-size: 12.5px; }
.float-card span:not(.float-icon) { font-size: 11px; color: var(--muted); }
.float-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
}
.float-icon.alt { background: rgba(6, 182, 212, .14); color: #0891b2; }
.float-a { top: 42px; left: -42px; }
.float-b { bottom: 58px; right: -34px; animation-delay: -3s; }

/* ---------- logos ---------- */
.logos { padding: 26px 0 6px; }
.logos-title { text-align: center; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.logo-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 42px;
  opacity: .6;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: #4b5670;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(244, 246, 252, .7));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin: 0 0 28px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(79, 70, 229, .08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.025em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, .26);
  box-shadow: 0 18px 40px -22px rgba(24, 32, 72, .32);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(6, 182, 212, .1));
  border: 1px solid rgba(79, 70, 229, .14);
  margin-bottom: 16px;
}
.card-lg { grid-column: span 2; }
.mini-dialog {
  margin-top: 18px;
  background: #f8f9fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.md-row {
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 10px;
  max-width: 82%;
  line-height: 1.5;
}
.md-row.user { align-self: flex-end; background: #eef0ff; color: #3730a3; }
.md-row.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.bars {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 118px;
  padding: 8px 4px 0;
}
.bars .bar {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #6366f1, rgba(99, 102, 241, .28));
  position: relative;
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: bottom;
}
.bars .bar:nth-child(even) { background: linear-gradient(180deg, #06b6d4, rgba(6, 182, 212, .25)); }
.bars .bar span {
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- console ---------- */
.console-inner {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 52px;
  align-items: center;
}
.console-copy h2 { font-size: clamp(25px, 3vw, 34px); }
.console-copy > p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.check-list { margin: 22px 0 28px; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.3px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .3);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8.5px;
  width: 5px; height: 8px;
  border: solid #16a34a;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.console-mock {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .1);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfe;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-tabs { margin-left: 14px; display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.mock-tabs .active { color: var(--ink); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 186px 1fr; min-height: 396px; }
.mock-list { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 4px; background: #fcfcff; }
.mock-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  position: relative;
}
.mock-item.active { background: rgba(79, 70, 229, .08); }
.mi-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
.mi-avatar.alt { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.mi-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mi-text strong { font-size: 12.5px; }
.mi-text span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  position: absolute; right: 7px; top: 7px;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 600;
}
.badge.ai { background: rgba(34, 197, 94, .14); color: #15803d; }
.badge.hot { background: rgba(249, 115, 22, .16); color: #c2410c; }
.badge.human { background: rgba(59, 130, 246, .14); color: #1d4ed8; }
.mock-panel { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mp-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mp-head strong { font-size: 13px; }
.mp-tag { font-size: 10.5px; color: #15803d; background: rgba(34, 197, 94, .12); padding: 2px 7px; border-radius: 6px; }
.mp-msg {
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 10px;
  max-width: 88%;
  line-height: 1.55;
}
.mp-msg.bot { background: #f5f6fb; align-self: flex-start; border-bottom-left-radius: 4px; }
.mp-msg.user { background: #eef0ff; color: #3730a3; align-self: flex-end; border-bottom-right-radius: 4px; }
.mp-suggest {
  margin-top: auto;
  border: 1px dashed rgba(79, 70, 229, .35);
  background: rgba(79, 70, 229, .045);
  border-radius: 10px;
  padding: 10px 12px;
}
.mp-suggest span { font-size: 10.5px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.mp-suggest p { font-size: 12.5px; margin-top: 4px; color: var(--ink-2); }
.mp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.mp-stats div { display: flex; flex-direction: column; line-height: 1.3; }
.mp-stats b { font-size: 15px; }
.mp-stats span { font-size: 10.5px; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -26px rgba(24, 32, 72, .35); }
.price-card.featured {
  border-color: rgba(79, 70, 229, .4);
  box-shadow: 0 24px 56px -28px rgba(79, 70, 229, .55);
  background: linear-gradient(180deg, #fff, #faf9ff);
}
.ribbon {
  position: absolute;
  top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 1);
}
.price-card h3 { font-size: 16px; color: var(--ink-2); }
.price {
  margin: 14px 0 4px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.price > span:first-child { font-size: 20px; font-weight: 600; margin-right: 2px; }
.price .per { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.price-card ul { display: grid; gap: 10px; margin-bottom: 24px; }
.price-card li { font-size: 13.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- faq ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px 18px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-list details[open] { border-color: rgba(79, 70, 229, .3); box-shadow: var(--shadow-sm); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 26px 15px 0;
  font-size: 14.8px;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 16px; font-size: 13.8px; color: var(--muted); }

/* ---------- cta ---------- */
.cta-band { padding: 20px 0 88px; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 46px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .45), transparent 46%),
    linear-gradient(120deg, #1e1b4b, #4338ca 62%, #6d28d9);
  box-shadow: 0 30px 70px -34px rgba(49, 46, 129, .9);
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-inner p { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---------- footer ---------- */
.footer { background: #0b1120; color: #cbd5e1; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer .logo-mark { box-shadow: none; }
.footer .logo-text { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; color: #8b97ad; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 12.5px; color: #fff; margin-bottom: 12px; letter-spacing: .04em; }
.footer-cols a { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 9px; transition: color .15s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7a92;
}

/* ---------- fab ---------- */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .85);
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.highlight-flash { animation: flash 1.6s ease; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .5); }
  100% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .float-a { left: -12px; }
  .float-b { right: -12px; }
  .console-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-column: span 2; }
  .faq-inner { grid-template-columns: 1fr; gap: 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open a { padding: 11px 0; border-bottom: 1px solid rgba(16, 24, 40, .06); }
  .nav-cta .btn-ghost { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-inner { padding: 32px 26px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 44px 0 24px; }
  .hero-stats { gap: 22px; }
  .stat b { font-size: 22px; }
  .widget { height: 510px; }
  .float-card { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-lg { grid-column: auto; }
  .section { padding: 62px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-list { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 13px; }
  .fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ================= upgraded chat components ================= */
.head-right { display: flex; align-items: center; gap: 8px; }
.kb-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { border-color: rgba(79, 70, 229, .35); color: var(--brand); }
.theme-toggle .tt-sun { display: none; }
[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, .06); color: #e6ebf5; }
[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
[data-theme="dark"] .theme-toggle .tt-sun { display: block; }

.msg-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.msg.user .msg-col { align-items: flex-end; }
.msg.card-row { display: block; max-width: 94%; }

.thinking { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.thinking i {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, .22);
  border-top-color: #4f46e5;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.msg-tools { display: flex; align-items: center; gap: 2px; opacity: .6; transition: opacity .2s ease; }
.msg:hover .msg-tools { opacity: 1; }
.msg-tools button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #8792a8;
  font-size: 10.5px;
  transition: background .15s ease, color .15s ease;
}
.msg-tools button:hover { background: rgba(79, 70, 229, .08); color: #4338ca; }
.msg-tools button.active { background: rgba(79, 70, 229, .12); color: #4338ca; }

.sources { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.src-label { font-size: 10.5px; color: #98a2b8; }
.sources button {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, .18);
  background: rgba(79, 70, 229, .05);
  color: #4338ca;
  transition: background .15s ease;
}
.sources button:hover { background: rgba(79, 70, 229, .12); }

.attach-btn {
  width: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, .12);
  background: #fff;
  color: var(--muted);
  display: grid; place-items: center;
  transition: color .15s ease, border-color .15s ease;
}
.attach-btn:hover { color: var(--brand); border-color: rgba(79, 70, 229, .4); }
.send-btn.stopping { background: #1f2937; box-shadow: 0 8px 18px -10px rgba(31, 41, 55, .9); }

.attach-preview {
  display: block;
  max-width: 190px;
  max-height: 140px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.attach-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
  margin-bottom: 4px;
}

.chat-toast {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translate(-50%, 8px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  z-index: 5;
}
.chat-toast.show { opacity: 1; transform: translate(-50%, 0); }

.msg.human .bubble {
  padding: 10px 13px;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  font-size: 13.8px;
  line-height: 1.6;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, .22);
  color: #065f46;
}
.msg.human .meta { color: #6b9b87; }

/* cards */
.card-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 6px 18px -14px rgba(16, 24, 40, .5);
  font-size: 12.5px;
}
.cm-head { display: flex; align-items: center; gap: 7px; }
.cm-head strong { font-size: 13px; }
.cm-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(79, 70, 229, .12);
  color: #4338ca;
}
.cm-badge.warn { background: rgba(245, 158, 11, .16); color: #b45309; }
.cm-badge.ok { background: rgba(34, 197, 94, .16); color: #15803d; }
.cm-status { margin-left: auto; font-size: 10.5px; color: #b45309; background: rgba(245, 158, 11, .12); padding: 2px 7px; border-radius: 6px; }
.cm-product { margin-top: 9px; display: flex; flex-direction: column; line-height: 1.45; }
.cm-product strong { font-size: 12.5px; }
.cm-product span { font-size: 11px; color: var(--muted); }
.cm-note { margin-top: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.timeline, .task-list {
  margin: 11px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(79, 70, 229, .16);
  display: grid;
  gap: 10px;
  list-style: none;
}
.timeline li, .task-list li { position: relative; font-size: 11.5px; color: var(--muted); }
.timeline li::before, .task-list li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.timeline li.done, .task-list li.done { color: var(--ink-2); }
.timeline li.done::before, .task-list li.done::before { background: #6366f1; }
.timeline li.now, .task-list li.now { color: #4338ca; font-weight: 600; }
.timeline li.now::before, .task-list li.now::before { background: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .16); }

.cm-actions { display: flex; gap: 8px; margin-top: 12px; }
.cm-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(16, 24, 40, .14);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cm-btn:hover { transform: translateY(-1px); border-color: rgba(79, 70, 229, .4); }
.cm-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.cm-btn:disabled { opacity: .55; transform: none; cursor: default; }

.handoff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .08));
  border-color: rgba(79, 70, 229, .22);
}
.ho-avatar {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.ho-text { display: flex; flex-direction: column; line-height: 1.35; }
.ho-text strong { font-size: 12.5px; }
.ho-text span { font-size: 10.5px; color: var(--muted); }
.ho-badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(34, 197, 94, .16);
  color: #15803d;
}

.rating-card .cm-head strong { font-size: 12.5px; }
.stars { display: flex; gap: 4px; margin: 10px 0 6px; }
.stars button {
  font-size: 23px;
  line-height: 1;
  padding: 2px;
  border: none;
  background: none;
  color: #d7dbe6;
  transition: color .15s ease, transform .15s ease;
}
.stars button:hover { transform: scale(1.08); }
.stars button.on { color: #f59e0b; }
.stars button:disabled { cursor: default; }

/* trust section */
.section-tight { padding: 66px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .66);
  transition: transform .2s ease, border-color .2s ease;
}
.trust-item:hover { transform: translateY(-2px); border-color: rgba(79, 70, 229, .28); }
.trust-num { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.trust-item h3 { font-size: 15px; margin: 8px 0; }
.trust-item p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* ================= dark theme ================= */
[data-theme="dark"] {
  --ink: #e8edf7;
  --ink-2: #c3ccdd;
  --muted: #8d9ab2;
  --line: rgba(255, 255, 255, .1);
  --bg: #070b16;
  --card: #111827;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .75);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .glow-a { opacity: .32; }
[data-theme="dark"] .glow-b { opacity: .24; }
[data-theme="dark"] .grid-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
}
[data-theme="dark"] .nav { background: rgba(7, 11, 22, .7); }
[data-theme="dark"] .nav.scrolled { background: rgba(7, 11, 22, .94); }
[data-theme="dark"] .nav-links.open { background: #0d1424; }
[data-theme="dark"] .btn-line { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
[data-theme="dark"] .btn-light { background: #0f1524; color: var(--ink); }
[data-theme="dark"] .section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); }
[data-theme="dark"] .card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .faq-list details,
[data-theme="dark"] .console-mock,
[data-theme="dark"] .widget,
[data-theme="dark"] .float-card,
[data-theme="dark"] .mini-dialog,
[data-theme="dark"] .trust-item,
[data-theme="dark"] .mock-list,
[data-theme="dark"] .mp-msg.bot,
[data-theme="dark"] .mp-suggest,
[data-theme="dark"] .card-msg { background: #0f1524; }
[data-theme="dark"] .price-card.featured { background: linear-gradient(180deg, #111a2e, #0c1220); }
[data-theme="dark"] .chat-body {
  background: radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .12), transparent 42%), #0b1120;
}
[data-theme="dark"] .quick-chips,
[data-theme="dark"] .chat-input { background: #0b1120; }
[data-theme="dark"] .msg.bot .bubble { background: #131c2f; border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .chat-input input,
[data-theme="dark"] .attach-btn { background: #0f1727; border-color: rgba(255, 255, 255, .12); color: var(--ink); }
[data-theme="dark"] .mock-top { background: #0b1120; }
[data-theme="dark"] .mock-item.active { background: rgba(99, 102, 241, .16); }
[data-theme="dark"] .md-row.bot { background: #131c2f; }
[data-theme="dark"] .md-row.user,
[data-theme="dark"] .mp-msg.user { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
[data-theme="dark"] .msg.human .bubble { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .26); color: #a7f3d0; }
[data-theme="dark"] .logo-row { color: #9aa7bd; }
[data-theme="dark"] .msg-tools button { color: #8394ad; }
[data-theme="dark"] .msg-tools button:hover,
[data-theme="dark"] .msg-tools button.active { background: rgba(129, 140, 248, .16); color: #a5b4fc; }
[data-theme="dark"] .sources button { color: #a5b4fc; border-color: rgba(129, 140, 248, .3); background: rgba(99, 102, 241, .12); }
[data-theme="dark"] .cm-btn { background: #131c2f; border-color: rgba(255, 255, 255, .14); color: var(--ink-2); }
[data-theme="dark"] .cm-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
[data-theme="dark"] .timeline li::before,
[data-theme="dark"] .task-list li::before { border-color: #0f1524; }
[data-theme="dark"] .chat-toast { background: rgba(226, 232, 240, .95); color: #0b1120; }
[data-theme="dark"] .thinking i { border-color: rgba(129, 140, 248, .25); border-top-color: #818cf8; }
[data-theme="dark"] .attach-chip { background: rgba(255, 255, 255, .14); }

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
  .kb-badge { display: none; }
  .msg.card-row { max-width: 100%; }
  .section-tight { padding: 52px 0; }
}

/* ================= embed mode（被 iframe 嵌入时） ================= */
.embed-close { display: none; }
html.embed-mode .embed-close { display: grid; }

html.embed-mode,
html.embed-mode body { background: #fbfbfe; }
html.embed-mode[data-theme="dark"],
html.embed-mode[data-theme="dark"] body { background: #0b1120; }

html.embed-mode .bg-layer,
html.embed-mode .nav,
html.embed-mode .footer,
html.embed-mode .fab,
html.embed-mode .hero-copy,
html.embed-mode .float-card,
html.embed-mode .logos,
html.embed-mode main > section:not(.hero) { display: none !important; }

html.embed-mode .hero { padding: 0; }
html.embed-mode .container { width: 100%; margin: 0; }
html.embed-mode .hero-inner { display: block; gap: 0; }
html.embed-mode .hero-visual { max-width: none; width: 100%; margin: 0; }
html.embed-mode #demo { height: 100%; }
html.embed-mode .widget {
  height: 100vh;
  height: 100dvh;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
html.embed-mode .chat-body { padding-bottom: 4px; }


