/* 简聊官网：与 Windows 客户端、控制台、管理后台同一套视觉语言（ui/v2/设计方向-定稿.md）。
   首屏是可点选的真实处理演示；中文标题正常字距；动效只解释访客的操作（选客户、消息出现）；尊重减少动态效果。 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/Inter-latin.woff2") format("woff2"); unicode-range: U+0000-017F, U+2000-206F, U+20AC, U+2122, U+2190-2193; }
@font-face { font-family: "Noto Sans SC"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/NotoSansSC-subset.woff2") format("woff2"); }
:root {
  --canvas: #f5f6f8; --paper: #fff; --rail: #f0f2f5; --ink: #25272c; --secondary: #626875; --muted: #7a818d;
  --line: #e7e9ee; --line-strong: #dfe3ea; --blue: #2869dc; --blue-deep: #1f58c0; --blue-wash: #edf3ff;
  --green: #258361; --amber: #a97220; --ease: cubic-bezier(.2, .75, .25, 1);
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3, b { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a9c5f5; outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 6px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.brand-mark { position: relative; display: inline-block; width: 36px; height: 33px; overflow: hidden; flex: none; mix-blend-mode: multiply; vertical-align: middle; }
.brand-mark img { position: absolute; width: 83px; max-width: none; left: -23px; top: -13px; }
.brand-mark.sm { width: 24px; height: 22px; }
.brand-mark.sm img { width: 55px; left: -15px; top: -9px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: background-color .18s ease, box-shadow .22s ease, transform .22s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(31, 88, 192, .25); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.soft { background: #fff; border: 1px solid var(--line-strong); color: #3a404b; }
.btn.soft:hover { background: #f8f9fb; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 550; background: #eef1f5; color: var(--secondary); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.pill.ok { background: #e7f4ee; color: var(--green); }
.pill.warn { background: #fbf1e3; color: var(--amber); }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 248, .92); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(245, 246, 248, .82); backdrop-filter: saturate(1.4) blur(14px); } }
.nav-in { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--secondary); }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav nav .btn { color: #fff; }

/* 首屏 */
.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 52px; align-items: center; padding: 64px 0 80px; }
.eyebrow { font-size: 13px; color: var(--blue); font-weight: 550; margin-bottom: 14px; }
.hero h1 { font-size: 38px; line-height: 1.38; }
.lead { margin-top: 18px; font-size: 16px; color: var(--secondary); line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.hero-meta { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* 演示 */
.demo { background: var(--paper); border: 1px solid #e2e6ec; border-radius: 18px; box-shadow: 0 30px 70px -48px rgba(41, 58, 92, .45); overflow: hidden; min-width: 0; }
.demo-top { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--secondary); }
.demo-top b { color: var(--ink); }
.demo-top .sep { width: 1px; height: 14px; background: var(--line-strong); margin: 0 6px; }
.demo-tag { margin-left: auto; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.demo-body { display: grid; grid-template-columns: 178px minmax(0, 1fr) 184px; height: 372px; }
.demo-list { background: var(--rail); border-right: 1px solid var(--line); padding: 10px 8px; display: grid; align-content: start; gap: 2px; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; font-size: 12.5px; width: 100%; transition: background-color .18s ease; }
.person:hover { background: #e8ecf2; }
.person.on { background: #e2eaf8; }
.person i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; flex: none; }
.person > span { display: grid; min-width: 0; line-height: 1.5; }
.person small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; min-height: 55px; }
.chat-head > span:nth-child(2) { display: grid; flex: 1; line-height: 1.4; min-width: 0; }
.chat-head small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; }
.chat-flow { padding: 14px 16px; display: grid; gap: 8px; align-content: start; font-size: 13px; line-height: 1.65; overflow-y: auto; flex: 1; }
.msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; animation: msg-in .3s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.msg.in { background: #eef1f5; border-top-left-radius: 4px; justify-self: start; }
.msg.out { background: var(--blue-wash); color: #2f5690; border-top-right-radius: 4px; justify-self: end; }
.msg.out.human { background: #eaf5ef; color: #22654b; }
.msg.out.human em { font-style: normal; font-size: 11px; font-weight: 600; margin-right: 6px; opacity: .8; }
.msg.img { display: grid; gap: 4px; padding: 6px; }
.msg.img .shot { display: block; width: 150px; height: 84px; border-radius: 8px; background: linear-gradient(#e5e9ef 0 18px, #fff 18px) no-repeat, #fff; border: 1px solid var(--line-strong); }
.msg.img small { font-size: 11px; color: var(--muted); padding: 0 4px; }
.msg.note { justify-self: center; max-width: 100%; background: none; color: var(--muted); font-size: 12px; padding: 2px 0; }
.msg.typing { display: flex; gap: 4px; padding: 11px 12px; background: var(--blue-wash); border-top-right-radius: 4px; justify-self: end; }
.msg.typing.human { background: #eaf5ef; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa9d8; animation: dot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.demo-facts { border-left: 1px solid var(--line); padding: 14px; font-size: 12.5px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo-facts .label { font-size: 12px; color: var(--muted); }
.demo-facts dl { display: grid; gap: 10px; }
.fact { animation: msg-in .3s var(--ease) both; }
.demo-facts dt { color: var(--muted); font-size: 11.5px; }
.demo-facts dd { font-weight: 550; overflow-wrap: anywhere; }
.demo-facts .ok { color: var(--green); }
.demo-facts .warn { color: var(--amber); }
.demo-facts .fine { margin-top: auto; font-size: 11.5px; color: var(--muted); }
.demo figcaption { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: #fafbfc; }

/* 区块 */
.sec-head { margin-bottom: 28px; max-width: 640px; }
.sec-head h2 { font-size: 26px; line-height: 1.45; }
.sec-head p { margin-top: 10px; color: var(--secondary); }

.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 76px 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid4 > div { padding: 0 26px; border-left: 1px solid var(--line); }
.grid4 > div:first-child { padding-left: 0; border-left: 0; }
.grid4 h3 { font-size: 16px; }
.grid4 p { margin-top: 8px; font-size: 14px; color: var(--secondary); line-height: 1.8; }
.channels { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--canvas); border-radius: 14px; }
.channels > div { padding: 18px 22px; display: grid; gap: 4px; }
.channels > div + div { border-left: 1px solid var(--line-strong); }
.channels b { font-size: 14px; }
.channels span { font-size: 13px; color: var(--secondary); }

.pains { padding: 76px 0 60px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
.pain-grid > div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.pain-grid h3 { font-size: 16px; line-height: 1.55; }
.pain-grid p { margin-top: 8px; font-size: 14px; color: var(--secondary); line-height: 1.8; }

.price { padding: 76px 0 30px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid #e2e6ec; border-radius: 18px; box-shadow: 0 20px 50px -44px rgba(41, 58, 92, .4); }
.plan { padding: 28px 30px 30px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.amount { font-size: 32px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.amount small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.ticks { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--secondary); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 1.8px solid var(--blue); border-bottom: 1.8px solid var(--blue); transform: rotate(-45deg); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 52em; }

.faq { padding: 60px 0 20px; }
.faq-list { background: var(--paper); border: 1px solid #e2e6ec; border-radius: 18px; }
.faq details { padding: 0 26px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 550; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin-top: 6px; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 0 18px; color: var(--secondary); font-size: 14px; max-width: 48em; }

.closing { text-align: center; padding: 72px 0 90px; display: grid; justify-items: center; gap: 6px; }
.closing h2 { font-size: 24px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot .brand { font-size: 14px; color: var(--ink); }
.foot a:hover { color: var(--ink); }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 60px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .pain-grid { grid-template-columns: 1fr; gap: 24px; }
  .pains { padding: 56px 0 40px; }
  .nav nav { gap: 14px; }
  .nav nav a[href="#features"], .nav nav a[href="#price"], .nav nav a[href="/docs/"] { display: none; }
  .hero h1 { font-size: 29px; }
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .person { width: auto; flex: none; }
  .person small { display: none; }
  .chat-flow { height: 300px; }
  .demo-facts { border-left: 0; border-top: 1px solid var(--line); }
  .grid4, .channels { grid-template-columns: 1fr; }
  .grid4 > div { padding: 0; border-left: 0; }
  .channels > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .sec-head h2 { font-size: 22px; }
  .features { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 服务协议 / 隐私政策 / 联系我们（2026-11-12） */
.doc { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 88px; }
.doc-head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.01em; }
.doc-head p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.doc-tabs { display: flex; gap: 6px; margin-bottom: 26px; }
.doc-tabs a { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 16px; font-size: 13px; color: var(--secondary); background: #eceef2; }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.doc-lead { font-size: 15px; color: var(--secondary); line-height: 1.9; margin-bottom: 8px; }
.doc-lead strong, .doc strong { color: var(--ink); font-weight: 600; }
.doc-toc { margin: 26px 0 8px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; font-size: 13.5px; }
.doc-toc a { color: var(--secondary); padding: 3px 0; }
.doc-toc a:hover { color: var(--blue); }
.doc h2 { font-size: 18px; line-height: 1.5; margin: 40px 0 12px; scroll-margin-top: 80px; }
.doc h3 { font-size: 15px; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.95; color: #3d424c; }
.doc p + p { margin-top: 10px; }
.doc ul.dots { margin: 8px 0; display: grid; gap: 6px; }
.doc ul.dots > li { position: relative; padding-left: 16px; }
.doc ul.dots > li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: #b8bec8; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 13.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); line-height: 1.75; }
.doc thead th { border-top: 0; background: #f7f8fa; color: var(--secondary); font-weight: 600; font-size: 12.5px; }
.doc a.inline { color: var(--blue); }
.doc-note { margin-top: 36px; padding: 18px 22px; border-radius: 12px; background: var(--blue-wash); font-size: 13.5px; color: #2c4f8f; line-height: 1.85; }
.foot .sep { flex: 1; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 550; color: #3a404b; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; padding: 0 12px; height: 42px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form textarea { height: 168px; padding: 10px 12px; line-height: 1.75; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #9dbbea; box-shadow: 0 0 0 3px #eaf1fc; }
.contact-form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.contact-form .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-form .msg { font-size: 13px; color: var(--secondary); }
.contact-form .msg.err { color: #c0392b; }
.contact-done { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 36px 28px; text-align: center; }
.contact-done h2 { margin: 0 0 8px; font-size: 20px; }
.contact-side { display: grid; gap: 18px; font-size: 13.5px; color: var(--secondary); line-height: 1.85; }
.contact-side h3 { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 720px) {
  .doc { width: calc(100% - 32px); padding: 36px 0 64px; }
  .doc-head h1 { font-size: 25px; }
  .doc-toc { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .doc table { display: block; overflow-x: auto; }
}
.plan { display: flex; flex-direction: column; }
.plan .ticks { flex: 1; }
.plan-buy { margin-top: 18px; align-self: flex-start; }
