:root {
  --bg: #0b1020;
  --bg-soft: #111a33;
  --card: #16203f;
  --line: #28324f;
  --text: #eef1f9;
  --muted: #b0b9d6;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --ok: #35d07f;
  --warn: #ffb020;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.28; margin: 0; }
strong { color: #fff; }
::selection { background: rgba(124,92,255,.4); color: #fff; }

/* 滚动渐入:让整站滑动更流畅、更有层次 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,16,32,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-badge { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 13px; color: #fff; }
.nav-links { margin-left: auto; display: flex; gap: 22px; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: none; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 14px; font-weight: 600; }
.status { font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-wait { color: var(--muted); background: rgba(255,255,255,.05); }
.status-ok { color: var(--ok); background: rgba(53,208,127,.12); }
.status-ok::first-letter { animation: breathe 1.6s ease-in-out infinite; }
.status-off { color: #ff8a8a; background: rgba(255,107,107,.12); cursor: pointer; }
@keyframes breathe { 50% { opacity: .35; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 4px 14px rgba(91,140,255,.35); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,92,255,.45); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; margin-top: 14px; }
.btn:focus-visible, .tab:focus-visible, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(91,140,255,.3); border-color: var(--accent); }

/* Hero */
.hero { padding: 82px 20px 60px; background: radial-gradient(900px 400px at 82% -10%, rgba(124,92,255,.28), transparent), radial-gradient(820px 380px at 0% 0%, rgba(91,140,255,.24), transparent); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow { color: var(--accent); font-size: 14px; letter-spacing: .5px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: .5px; }
.hero .sub { max-width: 720px; color: #cfd6ee; font-size: 18px; margin: 18px 0 22px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.trust-item::before { content: '✓'; color: var(--ok); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); max-width: 640px; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.section-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner, .demo-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.section-title { position: relative; padding-top: 16px; font-size: 28px; font-weight: 800; }
.section-title::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section-desc { color: var(--muted); margin: 10px 0 28px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.cap-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .18s; }
.cap-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cap-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(124,92,255,.18)); border: 1px solid var(--line); }
.cap-card h3 { font-size: 18px; margin-bottom: 6px; }
.cap-card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.cap-tag { display: inline-block; font-size: 12px; color: var(--accent); background: rgba(91,140,255,.1); border-radius: 6px; padding: 3px 9px; }

/* Proof */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.proof-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.proof-num { font-size: 26px; font-weight: 800; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.proof-card p { color: var(--muted); font-size: 14px; margin: 0; }
.proof-id { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* Demo */
.section-demo { position: relative; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.section-demo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 70% 0%, rgba(124,92,255,.08), transparent); pointer-events: none; }
.demo-inner { position: relative; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 7px; box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(53,208,127,0); } 100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; font-weight: 600; }
.tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(1px); }
.panel { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.panel.is-active { display: block; }
.panel-cta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.panel-cta a { color: var(--accent); font-weight: 600; }

/* Chat */
.chat-window { height: 380px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #0f1730; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.typing::after { content: "▋"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: #fff; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 120px; }
textarea, select, input[type=text] { width: 100%; background: #0f1730; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none; }

/* OCR + Image */
.ocr-grid, .img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label { display: block; color: var(--muted); font-size: 14px; margin: 12px 0 6px; }
.uploader { display: grid; place-items: center; min-height: 220px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; background: #0f1730; overflow: hidden; padding: 10px; }
.uploader:hover { border-color: var(--accent); }
.uploader-hint { text-align: center; color: var(--muted); }
.up-ico { font-size: 30px; }
.uploader img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.samples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.samples-label { font-size: 13px; color: var(--muted); }
.out-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.out-title { color: var(--muted); font-size: 14px; }
.mini-btn { font-size: 12px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.mini-btn:hover { border-color: var(--accent); color: #fff; }
.out-box { min-height: 220px; max-height: 420px; overflow: auto; background: #0f1730; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv .k { color: var(--muted); flex: 0 0 38%; }
.kv .v { color: var(--text); font-weight: 600; }
.img-out { min-height: 300px; display: grid; place-items: center; background: #0f1730; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.img-out img { max-width: 100%; max-height: 440px; border-radius: 8px; cursor: zoom-in; }
.img-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: 80%; max-width: 260px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px auto 0; }
.progress > i { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s linear; }
.hint-sm { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.muted { color: var(--muted); }
.toast-err { color: #ff9a9a; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step b { display: block; }
.step p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 12px; color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }

/* Contact */
.section-contact { text-align: center; }
.contact-card { max-width: 640px; margin: 0 auto; display: flex; gap: 24px; align-items: center; background: var(--card); border: 1px solid rgba(91,140,255,.4); border-radius: var(--radius); padding: 22px; text-align: left; box-shadow: 0 8px 30px rgba(91,140,255,.12); }
.qr-box { flex: 0 0 150px; }
.qr-box img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; object-fit: contain; }
.qr-ph { width: 150px; height: 150px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.qr-cap { font-size: 12px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.contact-lead { margin: 0 0 14px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* Footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 60px; font-size: 13px; border-top: 1px solid var(--line); text-align: center; }
.foot-main { color: var(--muted); }
.footer .dim { opacity: .55; margin-top: 8px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,16,32,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96%; max-height: 92%; border-radius: 8px; }

/* 人机验证弹窗 */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-box h3 { font-size: 20px; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.cap-q { font-size: 30px; font-weight: 800; letter-spacing: 3px; margin: 6px 0 14px; }
#capA { text-align: center; font-size: 18px; }
.cap-err { color: #ff9a9a; font-size: 13px; margin: 10px 0 0; }
.cap-actions { display: flex; gap: 10px; margin-top: 16px; }
.cap-actions .btn { flex: 1; }

/* Scrollbars */
.chat-window, .out-box { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chat-window::-webkit-scrollbar, .out-box::-webkit-scrollbar { width: 8px; }
.chat-window::-webkit-scrollbar-thumb, .out-box::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* Responsive */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: inline-block; margin-left: auto; }
  .section, .band-inner, .demo-inner { padding: 44px 16px; }
  .section-title { font-size: 24px; }
  .hero { padding: 54px 16px 40px; }
  .hero .sub { font-size: 16px; }
  .cap-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cap-card { padding: 16px; }
  .chat-window { height: auto; min-height: 260px; max-height: 52vh; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; }
  .ocr-grid, .img-grid { grid-template-columns: 1fr; }
  .out-box { min-height: 140px; } .img-out { min-height: 200px; } .uploader { min-height: 170px; }
  .chip { padding: 10px 15px; font-size: 14px; } .chips { gap: 10px; }
  .msg { font-size: 16px; max-width: 88%; }
  textarea, select, input[type=text] { font-size: 16px; }
  .contact-card { flex-direction: column; text-align: center; }
  .contact-actions { justify-content: center; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}
@media (max-width: 400px) {
  .section, .band-inner, .demo-inner { padding: 34px 14px; }
  .cap-card { padding: 14px; } .tab { padding: 9px 13px; font-size: 14px; }
}

/* 记忆条 + 修图上传 */
.chat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.mem-badge { font-size: 12px; color: var(--accent); background: rgba(91,140,255,.1); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.doc-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 8px 12px; background: rgba(91,140,255,.1); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.doc-x { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 4px; }
.doc-x:hover { color: #fff; }

/* 真实案例:前后对比滑块 + 输入输出 */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case { margin: 0; }
.case figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.cmp { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); cursor: ew-resize; user-select: none; touch-action: none; background: #0f1730; max-width: 280px; margin: 0 auto; }
.cmp > img { display: block; width: 100%; height: auto; }
.cmp-over { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.cmp-over img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); transform: translateX(-1px); pointer-events: none; }
.cmp-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.45); display: grid; place-items: center; }
.cmp-grip::before { content: '⟷'; color: #222; font-size: 16px; font-weight: 700; }
.cmp-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); pointer-events: none; }
.cmp-tag.cmp-l { left: 10px; } .cmp-tag.cmp-r { right: 10px; }
.case-wide { grid-column: 1 / -1; }
.io { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 540px; margin: 0 auto; }
.io-item { flex: 1; text-align: center; }
.io-item img { max-width: 100%; max-height: 280px; width: auto; border-radius: 12px; border: 1px solid var(--line); display: inline-block; }
.io-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.io-arrow { color: var(--accent); font-size: 26px; font-weight: 700; flex: 0 0 auto; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* 案例分类:小标题(带色条)+ 客服/OCR 示例 */
.case-cat { font-size: 18px; font-weight: 700; margin: 36px 0 16px; display: flex; align-items: center; gap: 10px; }
.case-cat::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.case-chat { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-width: 620px; }
.doc-chip-demo { font-size: 13px; color: var(--accent); background: rgba(91,140,255,.1); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.case-chat .msg { max-width: 90%; }
.case-ocr { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-width: 680px; }
.case-ocr > img { width: 190px; border-radius: 10px; border: 1px solid var(--line); }
.ocr-fields { flex: 1; min-width: 220px; }

/* 免费方案生成器 */
.planner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.planner-form, .planner-out { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.plan-box { min-height: 300px; max-height: 460px; overflow: auto; background: #0f1730; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.7; }
.plan-h { color: var(--accent); font-weight: 700; margin: 14px 0 6px; }
.plan-h:first-child { margin-top: 0; }
.plan-p { color: var(--text); margin: 4px 0; word-break: break-word; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 760px) { .planner { grid-template-columns: 1fr; } }
.uploader-sm { min-height: 116px; margin-bottom: 4px; }
.uploader-sm img { max-height: 150px; }
.edit-chip { border-color: rgba(91,140,255,.45); color: var(--text); }
