/* 数智访问员 DEMO v3：商业应用落地页，亮色/暗色双主题。颜色只在这里定义。 */
:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --text: #0f1d33;
  --muted: #5a6a83;
  --line: #e1e7f0;
  --primary: #1d5bd8;
  --primary-ink: #ffffff;
  --primary-soft: #e6eefc;
  --accent: #0aa5bb;
  --ok: #12985f;
  --ok-soft: #e3f5ec;
  --warn: #c77700;
  --warn-soft: #fdf1dc;
  --rec: #e5483b;
  --shadow: 0 1px 2px rgba(15, 29, 51, 0.04), 0 12px 32px rgba(15, 29, 51, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 29, 51, 0.05), 0 30px 70px rgba(15, 29, 51, 0.14);
  --hero-glow: radial-gradient(60% 70% at 78% 40%, rgba(29, 91, 216, 0.12), transparent 70%);
  --phone-frame: #0f1d33;
  --todo: #b45f00;
  --radius: 14px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1322; --bg-alt: #0f192b; --surface: #142036; --surface-2: #1a2841; --text: #e6edf9; --muted: #95a5bf; --line: #24344f;
    --primary: #4d8bff; --primary-ink: #06122a; --primary-soft: #1b2e52; --accent: #3cc8db;
    --ok: #3ccb8b; --ok-soft: #15372a; --warn: #f0a83a; --warn-soft: #3a2c12; --rec: #ff5c4f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.45);
    --hero-glow: radial-gradient(60% 70% at 78% 40%, rgba(77, 139, 255, 0.18), transparent 70%);
    --phone-frame: #02060f; --todo: #f0b35a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1322; --bg-alt: #0f192b; --surface: #142036; --surface-2: #1a2841; --text: #e6edf9; --muted: #95a5bf; --line: #24344f;
  --primary: #4d8bff; --primary-ink: #06122a; --primary-soft: #1b2e52; --accent: #3cc8db;
  --ok: #3ccb8b; --ok-soft: #15372a; --warn: #f0a83a; --warn-soft: #3a2c12; --rec: #ff5c4f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.45);
  --hero-glow: radial-gradient(60% 70% at 78% 40%, rgba(77, 139, 255, 0.18), transparent 70%);
  --phone-frame: #02060f; --todo: #f0b35a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--sans); transition: background-color 0.25s, color 0.25s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sprite { display: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--primary); color: var(--primary-ink); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.todo { color: var(--todo) !important; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); font-weight: 600; text-decoration: none;
  transition: filter 0.2s, background-color 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); filter: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.ic-sun { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: block; }
  :root:not([data-theme="light"]) .ic-moon { display: none; }
}

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.is-solid { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--primary); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* 首屏 */
.hero { background: var(--hero-glow); padding: 56px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { margin-top: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1.1; letter-spacing: 0.02em; font-weight: 800; }
.hero-sub { margin-top: 12px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--primary); }
.hero-text { margin-top: 18px; max-width: 30em; color: var(--muted); font-size: 17px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scenes { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.hero-scenes li { display: flex; align-items: center; gap: 8px; }
.hero-scenes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 首屏演示：手机 + 两张浮动卡片 */
.demo { position: relative; height: 600px; }
.phone {
  position: absolute; left: 35%; top: 50%; transform: translate(-50%, -50%);
  width: 290px; height: 590px; padding: 12px; border-radius: 46px; background: var(--phone-frame);
  box-shadow: var(--shadow-lg);
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; border-radius: 0 0 16px 16px; background: var(--phone-frame); z-index: 2; }
.app {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #eef4ff, #ffffff 40%); color: #0f1d33; padding: 46px 18px 20px;
}
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.app-name { font-weight: 700; color: #1d5bd8; }
.app-rec { display: inline-flex; align-items: center; gap: 5px; color: #5a6a83; }
.app-rec i { width: 7px; height: 7px; border-radius: 50%; background: #e5483b; animation: blink 1.2s steps(2) infinite; }
.app-progress { margin-top: 14px; font-size: 12px; color: #5a6a83; }
.app-progress i { display: block; margin-top: 6px; height: 4px; border-radius: 4px; background: #e1e7f0; overflow: hidden; }
.app-progress i b { display: block; height: 100%; width: 14%; background: #1d5bd8; border-radius: 4px; transition: width 0.6s; }
.app-progress span b { color: #0f1d33; }
.q-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(29, 91, 216, 0.1); }
.q-tag { font-size: 11px; color: #1d5bd8; background: #e6eefc; padding: 2px 8px; border-radius: 6px; }
.q-card p { margin-top: 10px; font-size: 18px; font-weight: 700; line-height: 1.45; }

.stage { position: absolute; left: 18px; right: 18px; bottom: 36px; top: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #5a6a83; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
.demo[data-step="speak"] .stage-speak,
.demo[data-step="listen"] .stage-listen,
.demo[data-step="think"] .stage-listen,
.demo[data-step="confirm"] .stage-confirm,
.demo[data-step="saved"] .stage-saved { opacity: 1; transform: none; }
.wave { display: flex; align-items: center; gap: 5px; height: 56px; }
.wave i { width: 6px; height: 14px; border-radius: 3px; background: #1d5bd8; animation: bar 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.75s; } .wave i:nth-child(3) { animation-delay: -0.6s; } .wave i:nth-child(4) { animation-delay: -0.45s; }
.wave i:nth-child(5) { animation-delay: -0.3s; } .wave i:nth-child(6) { animation-delay: -0.15s; } .wave i:nth-child(7) { animation-delay: -0.5s; }
@keyframes bar { 50% { height: 50px; } }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.bubble-me { align-self: flex-end; background: #1d5bd8; color: #fff; border-bottom-right-radius: 4px; min-width: 40px; min-height: 44px; }
.bubble-me:has(span:empty) { visibility: hidden; }
.bubble-ai { align-self: flex-start; background: #fff; color: #0f1d33; border: 1px solid #e1e7f0; border-bottom-left-radius: 4px; }
.mic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e5483b; color: #fff; }
.mic .ic { width: 26px; height: 26px; }
.mic::before, .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e5483b; animation: ring 1.6s ease-out infinite; }
.mic::after { animation-delay: 0.8s; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.8); opacity: 0; } }
.stage-confirm .mic { width: 52px; height: 52px; }
.stage-confirm .mic .ic { width: 22px; height: 22px; }
.saved-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f5ec; color: #12985f; }
.saved-icon .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.stage-saved p { font-size: 13px; }
.stage-saved b { font-size: 17px; color: #0f1d33; }

.float {
  position: absolute; width: 230px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px;
  transition: opacity 0.4s, transform 0.4s;
}
.float-title { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.float-ai { right: 0; top: 90px; opacity: 0; transform: translateX(10px); }
.demo[data-step="think"] .float-ai, .demo[data-step="confirm"] .float-ai, .demo[data-step="saved"] .float-ai { opacity: 1; transform: none; }
.float-ai p { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.float-ai q { color: var(--muted); }
.float-ai b { font-size: 20px; color: var(--primary); }
.float-ai small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.to { position: relative; width: 34px; height: 2px; background: var(--accent); flex: none; }
.to::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent); border-right: 0; }
.float-admin { right: 0; bottom: 70px; width: 260px; }
.float-admin li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); }
.float-admin li span { font-weight: 600; font-variant-numeric: tabular-nums; }
.float-admin em { font-style: normal; color: var(--muted); font-size: 12px; }
.st { font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.st-run { background: var(--primary-soft); color: var(--primary); }
.st-qc { background: var(--warn-soft); color: var(--warn); }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.upload { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ok); font-size: 12px; opacity: 0; transition: opacity 0.4s; }
.upload .ic { width: 14px; height: 14px; }
.demo[data-step="saved"] .upload { opacity: 1; }
.flash { animation: flash 0.9s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); } }
@keyframes blink { 50% { opacity: 0.25; } }

/* 服务客户 */
.clients { border-block: 1px solid var(--line); background: var(--bg-alt); }
.clients-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 26px 0; }
.clients-title { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.client-list { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.client-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }

/* 通用区块 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: 0.01em; text-wrap: balance; }
.head p, .split-copy p { margin-top: 14px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy { max-width: 30rem; }

/* 流程 */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow::before, .flow::after { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.flow::after { background: var(--primary); transform: scaleX(var(--fill, 1)); transform-origin: left; transition: transform 2.2s ease-in-out; }
.flow li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.flow-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); box-shadow: var(--shadow); margin-bottom: 10px; transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.flow b { font-size: 17px; }
.flow small { font-size: 14px; color: var(--muted); max-width: 13em; }
.flow.is-armed { --fill: 0; }
.flow.is-armed .flow-ic { color: var(--muted); }
.flow.is-run { --fill: 1; }
.flow.is-run li .flow-ic { animation: lit 0.4s forwards; animation-delay: calc(var(--i) * 0.5s); }
.flow li:nth-child(1) { --i: 0; } .flow li:nth-child(2) { --i: 1; } .flow li:nth-child(3) { --i: 2; } .flow li:nth-child(4) { --i: 3; } .flow li:nth-child(5) { --i: 4; }
@keyframes lit { to { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); } }

/* 访问方式 */
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.checks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.4; }
.shots { display: flex; justify-content: center; align-items: center; gap: 16px; }
.shot { width: 31%; border-radius: 22px; border: 6px solid var(--phone-frame); box-shadow: var(--shadow-lg); }
.shot-side { width: 27%; opacity: 0.92; }

/* 面板（AI 理解、质控） */
.panel { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.panel-head small { font-weight: 400; color: var(--muted); font-size: 13px; }
.convert li { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px dashed var(--line); }
.convert li:last-child { border-bottom: 0; }
.convert q { color: var(--muted); font-size: 16px; }
.convert b { font-size: 17px; color: var(--primary); }
.convert small { grid-column: 3; margin-top: -10px; font-size: 12px; color: var(--muted); }
.convert .to { width: 100%; }
.convert.is-armed li > * { opacity: 0.3; }
.convert.is-armed .to { transform: scaleX(0); transform-origin: left; }
.convert.is-armed b, .convert.is-armed small { opacity: 0; }
.convert.is-run q { animation: show 0.4s calc(var(--i) * 1.3s) forwards; }
.convert.is-run .to { animation: grow 0.5s calc(var(--i) * 1.3s + 0.4s) forwards; }
.convert.is-run b, .convert.is-run small { animation: show 0.4s calc(var(--i) * 1.3s + 0.9s) forwards; }
.convert li:nth-child(1) { --i: 0; } .convert li:nth-child(2) { --i: 1; } .convert li:nth-child(3) { --i: 2; }
@keyframes show { to { opacity: 1; } }
@keyframes grow { to { opacity: 1; transform: scaleX(1); } }

.qc-status { display: inline-flex; align-items: center; gap: 6px; }
.qc-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.qc[data-qc-step="4"] .qc-status i { background: var(--ok); }
.qc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px dashed var(--line); opacity: 0.35; transition: opacity 0.4s; }
.qc-row b { display: block; font-size: 16px; }
.qc-row small { display: block; color: var(--muted); font-size: 13px; }
.qc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.qc-res { opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.3s; font-size: 12px; font-weight: 600; }
.qc-res.ok { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.qc-res.ok .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.qc-res.warn { padding: 3px 10px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); }
.qc-audio { display: flex !important; align-items: center; gap: 6px; }
.qc-audio .ic { width: 14px; height: 14px; }
.qc-audio i { flex: 1; max-width: 140px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.qc-audio i b { display: block; height: 100%; width: 0; background: var(--primary); }
.qc-final { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity 0.4s; }
/* 步骤：1 规则校验通过，2 AI 辅助质控提示，3 人工回放录音，4 审核通过 */
.qc[data-qc-step="1"] .qc-rule, .qc[data-qc-step="2"] .qc-rule, .qc[data-qc-step="3"] .qc-rule, .qc[data-qc-step="4"] .qc-rule,
.qc[data-qc-step="2"] .qc-ai, .qc[data-qc-step="3"] .qc-ai, .qc[data-qc-step="4"] .qc-ai,
.qc[data-qc-step="3"] .qc-human, .qc[data-qc-step="4"] .qc-human { opacity: 1; }
.qc[data-qc-step="1"] .qc-rule .qc-res, .qc[data-qc-step="2"] .qc-rule .qc-res, .qc[data-qc-step="3"] .qc-rule .qc-res, .qc[data-qc-step="4"] .qc-rule .qc-res,
.qc[data-qc-step="2"] .qc-ai .qc-res, .qc[data-qc-step="3"] .qc-ai .qc-res, .qc[data-qc-step="4"] .qc-ai .qc-res,
.qc[data-qc-step="4"] .qc-human .qc-res { opacity: 1; transform: none; }
.qc[data-qc-step="1"] .qc-rule .qc-ic { background: var(--ok-soft); color: var(--ok); }
.qc[data-qc-step="2"] .qc-ai .qc-ic, .qc[data-qc-step="3"] .qc-ai .qc-ic, .qc[data-qc-step="4"] .qc-ai .qc-ic { background: var(--warn-soft); color: var(--warn); }
.qc[data-qc-step="3"] .qc-human .qc-ic, .qc[data-qc-step="4"] .qc-human .qc-ic { background: var(--primary-soft); color: var(--primary); }
.qc[data-qc-step="3"] .qc-audio i b { width: 100%; transition: width 2s linear; }
.qc[data-qc-step="4"] .qc-audio i b { width: 100%; }
.qc[data-qc-step="4"] .qc-final { opacity: 1; }

/* 安全 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards li { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cards .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.cards b { display: block; margin-top: 18px; font-size: 18px; }
.cards p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 预约 */
.cta { padding: 88px 0; }
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border-radius: 22px; background: var(--primary); color: var(--primary-ink); }
.cta h2 { color: inherit; }
.cta p { margin-top: 12px; opacity: 0.85; font-size: 17px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-invert { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.cta-mail { color: inherit; opacity: 0.9; font-size: 15px; }

/* 子页页头 */
.page-hero { background: var(--hero-glow); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.crumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--primary); }
.page-hero h1 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.2; font-weight: 800; }
.page-hero .lead { margin-top: 14px; max-width: 40em; color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* 首页核心能力 */
.core { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.core a { display: flex; flex-direction: column; height: 100%; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.core a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.core .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.core b { margin-top: 18px; font-size: 18px; }
.core p { margin-top: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.core .more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* 带图标的要点 */
.points { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.points li { display: flex; gap: 12px; }
.points .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.points b { display: block; font-size: 16px; }
.points p { margin-top: 2px !important; font-size: 14px !important; color: var(--muted); }
.split-copy .points-compact { margin-top: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

/* 智能体 */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agents > li { padding: 28px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.agents > li:first-child { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.agent-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #2f74f5, #1546b3); color: #fff; }
.agent-ic .ic { width: 24px; height: 24px; }
.agents b { display: block; margin-top: 18px; font-size: 20px; }
.agents small { display: block; margin-top: 2px; color: var(--accent); font-size: 13px; font-weight: 600; }
.agents ul { margin-top: 16px; display: grid; gap: 8px; }
.agents ul li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.agents ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* 后台：五个业务环节按顺序排成流程，组织权限作为贯穿全流程的底座 */
.console { padding: 40px 36px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mods { display: grid; grid-template-columns: repeat(5, 1fr); }
.mod { position: relative; padding-right: 24px; }
.mod:last-child { padding-right: 0; }
.mod::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0.35; }
.mod:last-child::before { display: none; }
.mod-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 6px var(--surface); }
.mod-dot .ic { width: 22px; height: 22px; }
.mod-body { margin-top: 20px; }
.mod-body b, .base-head b { display: block; font-size: 18px; line-height: 1.4; }
.mod-body > p { margin-top: 4px; font-size: 15px; font-weight: 500; }
.mod-body ul { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mod-body li, .base li { position: relative; padding-left: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mod-body li::before, .base li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.base { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2); display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.base-head { display: flex; align-items: center; gap: 14px; }
.base-head .mod-dot { box-shadow: none; background: var(--surface); }
.base-head p { color: var(--muted); font-size: 14px; }
.base ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }

/* 质控层级：有先后顺序，用序号 */
.steps { margin-top: 26px; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }

/* 解决方案 */
.scenario { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.scenario-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); margin-bottom: 18px; }
.scenario-ic .ic { width: 26px; height: 26px; }
.scenario-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.scenario .checks { margin-top: 0; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact-card { padding: 30px; }
.contact-card h2, .faq h2 { font-size: 24px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; }
.contact-mail:hover { text-decoration: underline; }
.contact-card > p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.contact-card h3 { margin-top: 26px; font-size: 16px; }
.contact-card .checks { margin-top: 14px; }
.contact-card .checks li { font-size: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 14px; color: var(--muted); background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand .brand { color: var(--text); }
.foot-brand p { margin-top: 10px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding: 20px 0 28px; border-top: 1px solid var(--line); }

/* 平板 */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-scenes { justify-content: center; }
  .demo { max-width: 620px; width: 100%; margin: 0 auto; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-copy { order: 0; }
  .cards, .cards-3, .core { grid-template-columns: repeat(2, 1fr); }
  .agents { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .scenario, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  /* 后台流程改为竖向时间线 */
  .console { padding: 32px 28px 28px; }
  .mods { grid-template-columns: 1fr; }
  .mod { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .mod:last-child { padding-bottom: 0; }
  .mod::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--accent)); }
  .mod-body { margin-top: 10px; display: grid; grid-template-columns: minmax(180px, 0.8fr) 1.2fr; grid-template-rows: auto 1fr; column-gap: 28px; align-content: start; }
  .mod-body ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-top: 0; border-top: 0; }
  .base { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .base ul { grid-template-columns: 1fr; }
}

/* 六个导航项放不下时收进菜单 */
@media (max-width: 1000px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 8px 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 20px; color: var(--text); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--primary-soft); }
  .menu-btn { display: inline-grid; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform 0.2s; }
  .menu-bars::before { position: absolute; top: -6px; }
  .menu-bars::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
}

/* 手机 */
@media (max-width: 760px) {
  .top-actions .btn-sm { display: none; }
  .page-hero { padding: 40px 0 36px; }
  .points { grid-template-columns: 1fr; }
  .core { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .console { padding: 24px 18px; border-radius: 18px; }
  .mod { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .mod::before { left: 19px; }
  .mod-dot { width: 40px; height: 40px; }
  .mod-dot .ic { width: 20px; height: 20px; }
  .mod-body { display: block; margin-top: 6px; }
  .mod-body ul { margin-top: 10px; }
  .base { padding: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .hero { padding: 36px 0 56px; }
  /* 手机上不叠放：手机在上，两张卡片依次排在下面 */
  .demo { height: auto; display: grid; justify-items: center; gap: 12px; }
  .phone { position: relative; left: auto; top: auto; transform: none; width: 280px; height: 570px; }
  .float, .float-admin { position: relative; inset: auto; width: 100%; max-width: 340px; }
  .float-ai { display: none; }
  .section { padding: 64px 0; }
  .head { margin-bottom: 36px; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow::before, .flow::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; transform: scaleY(var(--fill, 1)); transform-origin: top; }
  .flow li { flex-direction: row; text-align: left; align-items: center; gap: 16px; }
  .flow li > div, .flow b { min-width: 0; }
  .flow-ic { margin: 0; }
  .flow small { max-width: none; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; row-gap: 0; }
  .flow b { grid-column: 2; align-self: end; }
  .flow small { grid-column: 2; }
  .flow .flow-ic { grid-row: span 2; }
  .convert li { grid-template-columns: 1fr 32px 1fr; gap: 10px; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .cta-in { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
