:root {
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-deep: #1d4ed8;
  --ink: #0b1220;
  --text: #1a2438;
  --muted: #5c6b84;
  --line: #e6ebf4;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(15, 35, 80, .22);
  --shadow-soft: 0 8px 24px -12px rgba(15, 35, 80, .16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .65);
}
.brand-text { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; line-height: 1.2; }
.brand-text small { font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .8);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .9); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-ghost { color: var(--text); background: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c9d6ea; box-shadow: var(--shadow-soft); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .2s ease, background .2s ease;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(15, 35, 80, .35); background: rgba(255, 255, 255, .9); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 4px 0; transition: color .18s; }
.nav a:hover { color: var(--brand-deep); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 18px; gap: 4px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 10px 0; color: var(--muted); font-size: 15px; }
.mobile-nav.open { display: flex; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #17356b 0%, transparent 60%), linear-gradient(180deg, #0b1220 0%, #0e1930 100%);
  color: #eaf1ff;
  padding: 72px 0 92px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.hero-glow-a { width: 460px; height: 460px; left: -140px; top: -120px; background: #1d4ed8; }
.hero-glow-b { width: 520px; height: 520px; right: -160px; bottom: -220px; background: #0891b2; opacity: .38; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: #a5e8ff; background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .35);
  padding: 7px 14px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); display: inline-block; }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); margin-top: 22px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(92deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; max-width: 540px; font-size: 16.5px; color: #b6c5dd; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #eaf1ff; }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; color: #fff; }
.hero-stats span { font-size: 12.5px; color: #8fa3c4; }

/* hero chat preview */
.hero-visual { position: relative; }
.chat-preview {
  width: 100%; max-width: 390px; margin-left: auto;
  background: #fff; border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(2, 12, 40, .75), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden; color: var(--text);
  transform: rotate(.6deg);
}
.cp-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8fbff, #fff); }
.cp-avatar, .chat-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cp-head strong { display: block; font-size: 14px; }
.cp-head em, .chat-id em { font-style: normal; font-size: 11.5px; color: #16a34a; display: flex; align-items: center; gap: 6px; }
.cp-head em .dot, .chat-id em .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); }
.cp-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f8fafd; min-height: 280px; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.bubble-user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-bottom-right-radius: 4px; }
.bubble-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; align-items: center; width: 64px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9c7dc; animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .18s; }
.bubble.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.cp-input { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; color: #9aa9bf; }
.cp-input b { font-size: 12.5px; color: #fff; background: var(--brand); padding: 5px 12px; border-radius: 8px; font-weight: 600; }
.float-card {
  position: absolute; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); font-size: 12.5px; color: #d6e4ff;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  animation: floaty 5s ease-in-out infinite;
}
.float-a { top: 14%; left: -34px; }
.float-b { bottom: 12%; right: -18px; animation-delay: -2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--brand); }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 12px 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d5e2f7; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #eef4ff, #e8fbff); font-size: 22px; }
.card h3 { margin: 18px 0 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; }
.card-list { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: 13px; color: #4a5b76; }
.card-list li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.card-hot { border-color: #bcd3ff; box-shadow: 0 20px 46px -24px rgba(37, 99, 235, .5); }
.tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 3px 10px; border-radius: 999px; }

/* advantages */
.adv-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.adv-copy h2 { font-size: clamp(26px, 3vw, 38px); margin: 12px 0 16px; font-weight: 800; }
.adv-copy > p { color: var(--muted); }
.adv-points { margin-top: 34px; display: grid; gap: 20px; }
.adv-point { display: flex; gap: 16px; }
.adv-point b { font-size: 13px; color: var(--brand); background: #eef4ff; border-radius: 10px; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; font-weight: 800; }
.adv-point h4 { font-size: 15.5px; margin-bottom: 3px; }
.adv-point p { font-size: 13.5px; color: var(--muted); }
.adv-visual { display: grid; gap: 18px; }
.metric-card { background: linear-gradient(135deg, #f4f8ff, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-soft); }
.metric-card span { font-size: 13px; color: var(--muted); }
.metric-card b { display: block; font-size: 40px; line-height: 1.1; color: var(--brand-deep); letter-spacing: -.03em; margin: 6px 0 2px; }
.metric-card b span { font-size: 16px; color: var(--muted); margin-left: 3px; }
.metric-card em { font-style: normal; font-size: 12.5px; color: #8b9ab0; }
.metric-alt { background: linear-gradient(135deg, #ecfeff, #fff); }
.metric-alt b { color: #0891b2; }
.metric-soft { background: #fff; margin-right: 34px; }

/* faq */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 14.5px; border-top: 1px dashed var(--line); padding-top: 14px; }

/* cta band */
.cta-band { background: linear-gradient(120deg, #1d4ed8, #0891b2); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta-inner p { margin-top: 8px; color: #d6e9ff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* footer */
.footer { background: #0b1220; color: #8ea3c4; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand-text { color: #fff; }
.footer .brand-text small { color: #6b7f9e; }
.footer-brand p { margin-top: 16px; font-size: 13.5px; }
.footer-col h5 { color: #dfe8fa; font-size: 14px; margin-bottom: 14px; }
.footer-col p, .footer-col a { display: block; font-size: 13.5px; margin-bottom: 8px; color: #8ea3c4; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 12.5px; color: #6b7f9e; flex-wrap: wrap; }

/* floating launcher */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .85), 0 0 0 0 rgba(37, 99, 235, .35);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pulse 2.8s infinite;
}
.chat-launcher:hover { transform: translateY(-2px) scale(1.03); }
@keyframes pulse {
  0% { box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .85), 0 0 0 0 rgba(37, 99, 235, .4); }
  70% { box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .85), 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .85), 0 0 0 0 rgba(37, 99, 235, 0); }
}
.chat-launcher.hidden { transform: scale(.6); opacity: 0; pointer-events: none; }
.chat-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; border: 2px solid #fff;
}

/* chat panel */
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 95;
  width: 384px; height: 590px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(6, 20, 50, .45), 0 0 0 1px rgba(15, 35, 80, .06);
  transform: translateY(14px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), opacity .22s ease;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0891b2); }
.chat-id { display: flex; align-items: center; gap: 11px; }
.chat-avatar { width: 38px; height: 38px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; }
.chat-id strong { display: block; font-size: 14.5px; }
.chat-id em { color: #c9f3ff; font-size: 11.5px; }
.chat-id em .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.chat-head-actions { display: flex; gap: 6px; }
.chat-head-actions button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; opacity: .8; transition: background .15s, opacity .15s; }
.chat-head-actions button:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9fd; display: flex; flex-direction: column; gap: 12px; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: #d6dfec; border-radius: 6px; }
.chat-date { text-align: center; font-size: 11px; color: #9aa9bf; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; animation: msgIn .2s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg .avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.bubble-wrap { max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.chat-msg .bubble { max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-top-left-radius: 4px; padding: 10px 13px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg.user .avatar { display: none; }
.chat-msg.user .bubble-wrap { align-items: flex-end; }
.chat-msg.user .bubble { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border: 0; border-radius: 14px; border-top-right-radius: 4px; }
.chat-msg time { font-size: 10.5px; color: #a3b0c4; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.chat-quick button { font-size: 12px; color: var(--brand-deep); background: #eef4ff; border: 1px solid #d9e6ff; padding: 6px 11px; border-radius: 999px; transition: background .15s; }
.chat-quick button:hover { background: #e0ecff; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9c7dc; animation: blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
.chat-msg-error .bubble { background: #fff5f5; border-color: #fecaca; color: #b91c1c; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; color: var(--text); background: #f8fafd;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.chat-form input:focus { border-color: #9dbcf5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); background: #fff; }
.chat-form button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: opacity .15s, transform .15s; }
.chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.chat-foot { text-align: center; font-size: 10.5px; color: #a3b0c4; padding: 4px 0 10px; background: #fff; }

/* responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .chat-preview { margin: 0 auto; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .adv-inner { grid-template-columns: 1fr; gap: 44px; }
  .adv-visual { grid-template-columns: repeat(3, 1fr); }
  .metric-soft { margin-right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .topbar-inner { height: 64px; }
  .hero { padding: 52px 0 72px; }
  .hero-stats { gap: 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .adv-visual { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .float-a { left: -8px; }
  .float-b { right: 0; }
  .chat-panel {
    right: 0; bottom: 0; width: 100%; height: 100%; max-height: none;
    border-radius: 0;
  }
  .chat-launcher { right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}