/* ============================================================================
   CRM · 产品介绍 / 演示页  ·  demo.css
   ----------------------------------------------------------------------------
   与 crm-theme.css 同一套「墨色 · 纸白」令牌（这里用 cx- 前缀独立一份，
   演示页不加载产品样式表，也不受 layui 影响）。
   业务窗口是静态 HTML 造的「截图」，所有元素只做展示，不带业务逻辑。
   ==========================================================================*/

:root {
    --cx-ink: #1b1b1f;
    --cx-ink-2: #3d3d44;
    --cx-muted: #6b6b74;
    --cx-faint: #9a9aa3;

    --cx-bg: #f8f8f7;
    --cx-card: #ffffff;
    --cx-sink: #fbfbfa;

    --cx-line: #e8e8e5;
    --cx-line-2: #f0f0ed;

    --cx-brand: #2f4a75;
    --cx-brand-2: #24395c;
    --cx-brand-soft: #eef1f7;
    --cx-brand-line: #d3dcec;

    --cx-ok: #2c6b45;
    --cx-ok-soft: #ecf5ef;
    --cx-amber: #96631a;
    --cx-amber-soft: #fbf3e4;
    --cx-danger: #a63a2b;
    --cx-danger-soft: #fbeeeb;
    --cx-violet: #5a4680;
    --cx-violet-soft: #f2eef8;
    --cx-info: #2c4a63;
    --cx-info-soft: #edf1f5;

    --cx-r-sm: 8px;
    --cx-r: 12px;
    --cx-r-lg: 16px;

    --cx-shadow-1: 0 1px 2px rgba(24, 24, 27, .04);
    --cx-shadow-2: 0 8px 24px -14px rgba(24, 24, 27, .18), 0 2px 6px rgba(24, 24, 27, .04);
    --cx-shadow-3: 0 40px 80px -40px rgba(24, 24, 27, .38), 0 6px 18px rgba(24, 24, 27, .05);

    --cx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               "Helvetica Neue", Arial, sans-serif;
    --cx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --cx-side-w: 214px;
    --cx-top-h: 52px;
    --cx-window-h: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cx-body {
    margin: 0; background: var(--cx-bg); color: var(--cx-ink);
    font-family: var(--cx-font); font-size: 14px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.cx-body h1, body.cx-body h2, body.cx-body h3, body.cx-body p, body.cx-body ul, body.cx-body ol { margin: 0; }
body.cx-body ul, body.cx-body ol { padding: 0; list-style: none; }
body.cx-body a { color: inherit; text-decoration: none; }
body.cx-body button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.cx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cx-ico {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

.cx-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------*/
.cx-nav {
    position: sticky; top: 0; z-index: 90;
    background: rgba(248, 248, 247, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--cx-line);
}
.cx-nav-in { height: 62px; display: flex; align-items: center; gap: 22px; }
.cx-brand { display: flex; align-items: center; gap: 10px; }
.cx-brand-mark {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    background: var(--cx-brand); color: #fff; display: grid; place-items: center;
}
.cx-brand-mark svg { width: 17px; height: 17px; }
.cx-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.cx-brand-text strong { font-size: 14.5px; letter-spacing: -.01em; }
.cx-brand-text small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-faint); margin-top: 3px; }
.cx-nav-links { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.cx-nav-links a { font-size: 13px; color: var(--cx-muted); padding: 6px 11px; border-radius: 8px; transition: background .16s, color .16s; }
.cx-nav-links a:hover { background: #efefec; color: var(--cx-ink); }
.cx-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cx-nav-cta .cx-btn { height: 34px; padding: 0 14px; font-size: 12.8px; }

/* ---------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------*/
.cx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px; border-radius: 10px;
    border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink);
    font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
    transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}
.cx-btn:hover { border-color: #d6d6d1; box-shadow: var(--cx-shadow-1); }
.cx-btn-primary { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }
.cx-btn-primary:hover { background: var(--cx-brand-2); border-color: var(--cx-brand-2); box-shadow: var(--cx-shadow-2); }
.cx-btn-ghost { background: transparent; }
.cx-btn .cx-ico { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------*/
.cx-hero { padding: 64px 0 34px; position: relative; overflow: hidden; }
.cx-hero::after {
    content: ""; position: absolute; right: -160px; top: -120px; width: 520px; height: 520px;
    background: radial-gradient(circle at center, rgba(47, 74, 117, .10), transparent 62%);
    pointer-events: none;
}
.cx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cx-faint);
}
.cx-eyebrow::before { content: ""; width: 22px; height: 1px; background: #cfcfca; }
.cx-hero h1 {
    margin-top: 18px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.16;
    letter-spacing: -.035em; font-weight: 600; max-width: 860px;
}
.cx-hero h1 em { font-style: normal; color: var(--cx-brand); }
.cx-hero .cx-lede { margin-top: 18px; max-width: 680px; font-size: 14.5px; line-height: 1.85; color: var(--cx-muted); }
.cx-hero-actions { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip {
    font-size: 11.8px; color: var(--cx-muted); background: #fff;
    border: 1px solid var(--cx-line); border-radius: 999px; padding: 4px 11px;
}
.cx-chip.is-ai { color: var(--cx-brand); border-color: var(--cx-brand-line); background: var(--cx-brand-soft); }
.cx-hero-stats {
    margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--cx-line);
}
.cx-hstat { padding: 18px 0 4px; border-right: 1px solid var(--cx-line); }
.cx-hstat:last-child { border-right: 0; }
.cx-hstat strong { display: block; font-size: 27px; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-hstat strong small { font-size: 14px; font-weight: 500; margin-left: 2px; color: var(--cx-muted); }
.cx-hstat span { display: block; margin-top: 3px; font-size: 12px; color: var(--cx-faint); }

/* ---------------------------------------------------------------------------
   应用窗口外壳
   -------------------------------------------------------------------------*/
.cx-window-wrap { padding: 8px 0 18px; }
.cx-window {
    border-radius: 18px; border: 1px solid #e0e0db; background: #fff;
    box-shadow: var(--cx-shadow-3); overflow: hidden;
}
.cx-chrome {
    height: 38px; display: flex; align-items: center; gap: 8px;
    padding: 0 14px; background: #fbfbfa; border-bottom: 1px solid var(--cx-line);
}
.cx-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3e3de; }
.cx-dot:nth-child(2) { background: #e9e5dc; }
.cx-dot:nth-child(3) { background: #e0e7e2; }
.cx-url {
    margin-left: 10px; flex: 1; max-width: 460px; height: 24px; border-radius: 6px;
    background: #f2f2ef; display: flex; align-items: center; gap: 6px; padding: 0 10px;
    font-size: 11px; color: var(--cx-faint);
}
.cx-url .cx-ico { width: 12px; height: 12px; }
.cx-chrome-tag {
    margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--cx-faint);
}

.cx-app { position: relative; height: var(--cx-window-h); overflow: hidden; display: flex; background: var(--cx-bg); }

/* 侧栏 */
.cx-side {
    width: var(--cx-side-w); flex: none; height: 100%;
    background: #fff; border-right: 1px solid var(--cx-line);
    display: flex; flex-direction: column;
}
.cx-side-brand { height: var(--cx-top-h); display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--cx-line); }
.cx-side-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--cx-brand); color: #fff; display: grid; place-items: center; flex: none; }
.cx-side-mark .cx-ico { width: 14px; height: 14px; }
.cx-side-brand b { font-size: 13px; letter-spacing: -.01em; }
.cx-side-brand small { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-faint); }
.cx-nav-list { flex: 1; overflow: hidden; padding: 9px 8px; }
.cx-nav-group + .cx-nav-group { margin-top: 10px; }
.cx-nav-label { font-size: 10px; letter-spacing: .1em; color: var(--cx-faint); padding: 0 8px 5px; }
.cx-nav-item {
    display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px;
    border-radius: 7px; font-size: 12.6px; color: var(--cx-ink-2); cursor: default;
}
.cx-nav-item .cx-ico { width: 15px; height: 15px; color: var(--cx-faint); }
.cx-nav-item.is-active { background: var(--cx-brand-soft); color: var(--cx-brand); font-weight: 500; }
.cx-nav-item.is-active .cx-ico { color: var(--cx-brand); }
.cx-nav-item em {
    margin-left: auto; font-style: normal; font-size: 10.5px; line-height: 1;
    padding: 3px 5px; border-radius: 5px; background: var(--cx-line-2); color: var(--cx-muted);
}
.cx-nav-item em.is-ai { background: var(--cx-violet-soft); color: var(--cx-violet); }
.cx-nav-item em.is-hot { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-side-foot { border-top: 1px solid var(--cx-line); padding: 10px 12px; }
.cx-who { display: flex; align-items: center; gap: 9px; }
.cx-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--cx-brand-soft); color: var(--cx-brand); font-size: 11.5px; font-weight: 600;
}
.cx-who b { display: block; font-size: 12px; font-weight: 500; }
.cx-who small { display: block; font-size: 10.5px; color: var(--cx-faint); }

/* 主区 */
.cx-main { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.cx-topbar {
    height: var(--cx-top-h); flex: none; display: flex; align-items: center; gap: 12px;
    padding: 0 18px; background: #fff; border-bottom: 1px solid var(--cx-line);
}
.cx-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.4px; color: var(--cx-muted); }
.cx-crumbs .cx-ico { width: 12px; height: 12px; color: #c9c9c4; }
.cx-crumbs b { color: var(--cx-ink); font-weight: 500; }
.cx-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cx-search {
    display: flex; align-items: center; gap: 7px; width: 220px; height: 28px; padding: 0 9px;
    border: 1px solid var(--cx-line); border-radius: 7px; background: var(--cx-sink);
    font-size: 11.5px; color: var(--cx-faint);
}
.cx-search .cx-ico { width: 13px; height: 13px; }
.cx-search kbd {
    margin-left: auto; font-family: var(--cx-font); font-size: 9.5px; color: var(--cx-faint);
    border: 1px solid var(--cx-line); border-radius: 4px; padding: 1px 4px; background: #fff;
}
.cx-tbtn {
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
    border: 1px solid var(--cx-line); border-radius: 7px; font-size: 11.8px; color: var(--cx-ink-2);
    background: #fff;
}
.cx-tbtn.is-primary { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }
.cx-tbtn .cx-ico { width: 13px; height: 13px; }

.cx-view {
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
    padding: 18px 20px 26px;
}
.cx-view::-webkit-scrollbar { width: 6px; }
.cx-view::-webkit-scrollbar-thumb { background: #dcdcd8; border-radius: 3px; }

/* 屏幕切换 */
.cx-screen { display: none; }
.cx-screen.is-on { display: block; }

.cx-page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cx-page-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.cx-page-sub { margin-top: 5px; font-size: 12.2px; color: var(--cx-muted); }
.cx-page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* KPI */
.cx-kpi-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-kpi {
    background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r);
    padding: 10px 13px; display: flex; align-items: flex-start; gap: 10px;
}
.cx-kpi-ico {
    width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
    background: var(--cx-brand-soft); color: var(--cx-brand);
}
.cx-kpi-ico.is-violet { background: var(--cx-violet-soft); color: var(--cx-violet); }
.cx-kpi-ico.is-amber { background: var(--cx-amber-soft); color: var(--cx-amber); }
.cx-kpi-ico.is-danger { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-kpi-ico .cx-ico { width: 15px; height: 15px; }
.cx-kpi-v { font-size: 21px; letter-spacing: -.03em; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cx-kpi-l { font-size: 11.5px; color: var(--cx-muted); margin-top: 1px; }
.cx-kpi-f { font-size: 10.5px; color: var(--cx-faint); margin-top: 4px; }

/* 打单主线 */
.cx-track {
    margin-top: 12px; display: flex; align-items: stretch; gap: 0;
    border: 1px solid var(--cx-line); border-radius: var(--cx-r); background: #fff; overflow: hidden;
}
.cx-track-step {
    flex: 1; padding: 8px 10px; border-right: 1px solid var(--cx-line);
    display: flex; flex-direction: column; gap: 1px; position: relative;
}
.cx-track-step:last-child { border-right: 0; }
.cx-track-step b { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cx-track-step small { font-size: 10.5px; color: var(--cx-muted); }
.cx-track-step.is-ai { background: var(--cx-brand-soft); }
.cx-track-step.is-ai small { color: var(--cx-brand); }

/* 面板 */
.cx-grid { display: grid; gap: 12px; margin-top: 12px; }
.cx-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; margin-top: 10px; align-items: start; }
.cx-panel { background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r); overflow: hidden; }
.cx-panel-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 13px;
    border-bottom: 1px solid var(--cx-line);
}
.cx-panel-head h4 { font-size: 12.8px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cx-panel-head h4 .cx-ico { width: 14px; height: 14px; color: var(--cx-muted); }
.cx-panel-head em {
    font-style: normal; font-size: 10px; letter-spacing: .04em; color: var(--cx-faint);
    border: 1px solid var(--cx-line); border-radius: 5px; padding: 1px 5px;
}
.cx-panel-head .cx-more { margin-left: auto; font-size: 11.2px; color: var(--cx-faint); display: inline-flex; align-items: center; gap: 3px; }
.cx-panel-head .cx-more .cx-ico { width: 12px; height: 12px; }
.cx-panel-body { padding: 12px 13px; }
.cx-panel-body.is-flush { padding: 0; }
.cx-panel-sub { font-size: 10.8px; color: var(--cx-faint); margin-top: 2px; }

/* 列表行 */
.cx-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 13px;
    border-bottom: 1px solid var(--cx-line-2); font-size: 12.3px;
}
.cx-row:last-child { border-bottom: 0; }
.cx-row-ico {
    width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
    background: var(--cx-line-2); color: var(--cx-muted);
}
.cx-row-ico .cx-ico { width: 13px; height: 13px; }
.cx-row-ico.is-amber { background: var(--cx-amber-soft); color: var(--cx-amber); }
.cx-row-ico.is-danger { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-row-main { flex: 1; min-width: 0; }
.cx-row-main b { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-main small { display: block; margin-top: 2px; font-size: 10.8px; color: var(--cx-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-side { display: flex; align-items: center; gap: 8px; flex: none; }

/* 徽标 / 标签 */
.cx-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1;
    padding: 4px 7px; border-radius: 999px; background: var(--cx-line-2); color: var(--cx-muted); white-space: nowrap;
}
.cx-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cx-badge.is-brand { background: var(--cx-brand-soft); color: var(--cx-brand); }
.cx-badge.is-ok { background: var(--cx-ok-soft); color: var(--cx-ok); }
.cx-badge.is-amber { background: var(--cx-amber-soft); color: var(--cx-amber); }
.cx-badge.is-danger { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-badge.is-violet { background: var(--cx-violet-soft); color: var(--cx-violet); }
.cx-tag {
    display: inline-block; font-size: 10.8px; padding: 2px 7px; border-radius: 5px;
    background: var(--cx-line-2); color: var(--cx-muted); white-space: nowrap;
}
.cx-code { font-family: var(--cx-mono); font-size: 10.5px; color: var(--cx-faint); }

.cx-dot { width: 4px; height: 4px; border-radius: 50%; background: #d4d4ce; flex: none; }

/* 表格 */
.cx-table { width: 100%; border-collapse: collapse; }
.cx-table th {
    text-align: left; font-size: 10.8px; font-weight: 500; color: var(--cx-faint);
    padding: 8px 13px; background: var(--cx-sink); border-bottom: 1px solid var(--cx-line);
}
.cx-table td { padding: 9px 13px; border-bottom: 1px solid var(--cx-line-2); font-size: 12.2px; vertical-align: middle; }
.cx-table tr:last-child td { border-bottom: 0; }
.cx-table td b { font-weight: 500; }
.cx-table .num { font-variant-numeric: tabular-nums; }

.cx-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cx-fchip {
    display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
    border: 1px solid var(--cx-line); border-radius: 999px; background: #fff;
    font-size: 11.4px; color: var(--cx-muted);
}
.cx-fchip b { font-weight: 500; color: var(--cx-faint); font-variant-numeric: tabular-nums; }
.cx-fchip.is-on { background: var(--cx-ink); border-color: var(--cx-ink); color: #fff; }
.cx-fchip.is-on b { color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------------------
   AI 卡片（与产品里 crm-ai.js 渲染出来的结构对齐）
   -------------------------------------------------------------------------*/
.cx-ai {
    background: #fff; border: 1px solid var(--cx-brand-line); border-radius: var(--cx-r);
    overflow: hidden; position: relative;
}
.cx-ai::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, var(--cx-brand), #6d86ad 55%, transparent);
}
.cx-ai-head { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px 8px; }
.cx-ai-mark {
    width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
    background: var(--cx-brand); color: #fff;
}
.cx-ai-mark .cx-ico { width: 14px; height: 14px; }
.cx-ai-head-main { flex: 1; min-width: 0; }
.cx-ai-head-main b { display: block; font-size: 12.8px; font-weight: 600; }
.cx-ai-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.cx-ai-body { padding: 0 13px 4px; }
.cx-ai-sec + .cx-ai-sec { margin-top: 9px; }
.cx-ai-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-faint); margin-bottom: 4px; }
.cx-ai-text { font-size: 12.1px; line-height: 1.7; color: var(--cx-ink-2); }
.cx-ai-list { display: flex; flex-direction: column; gap: 5px; }
.cx-ai-list li { display: flex; gap: 7px; font-size: 12.1px; line-height: 1.65; color: var(--cx-ink-2); }
.cx-ai-list li::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
    background: var(--cx-brand); margin-top: 7px;
}
.cx-ai-list li.is-rose::before { background: var(--cx-danger); }
.cx-ai-list li.is-amber::before { background: var(--cx-amber); }
.cx-ai-steps { display: flex; flex-direction: column; gap: 5px; counter-reset: s; }
.cx-ai-steps li {
    display: flex; gap: 7px; font-size: 12.1px; line-height: 1.65; color: var(--cx-ink-2);
    counter-increment: s;
}
.cx-ai-steps li::before {
    content: counter(s); flex: none; width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 9.5px; margin-top: 2px;
    background: var(--cx-brand-soft); color: var(--cx-brand);
}
.cx-ai-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cx-ai-chip { font-size: 10.8px; padding: 2px 8px; border-radius: 999px; background: var(--cx-line-2); color: var(--cx-muted); }
.cx-ai-warn {
    font-size: 11.8px; line-height: 1.65; color: var(--cx-amber);
    background: var(--cx-amber-soft); border-radius: 7px; padding: 7px 9px;
}
.cx-ai-hl {
    font-size: 12.6px; line-height: 1.65; font-weight: 500; color: var(--cx-ink);
    padding: 9px 11px; border-radius: 7px; background: var(--cx-brand-soft);
    border-left: 2px solid var(--cx-brand);
}
.cx-ai-foot {
    display: flex; align-items: center; gap: 8px; padding: 9px 13px 11px;
    border-top: 1px solid var(--cx-line-2); margin-top: 8px;
}
.cx-ai-meta { font-size: 10.5px; color: var(--cx-faint); }
.cx-ai-actions { margin-left: auto; display: flex; gap: 6px; }
.cx-ai-act {
    height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--cx-line);
    font-size: 11.4px; color: var(--cx-ink-2); background: #fff;
}
.cx-ai-act.is-primary { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }

/* AI 生成中的占位（demo.js 会加/去） */
.cx-ai.is-thinking .cx-ai-body { opacity: .28; filter: blur(1.4px); }
.cx-think {
    display: none; align-items: center; gap: 7px; font-size: 11px; color: var(--cx-brand);
    padding: 10px 13px;
}
.cx-ai.is-thinking .cx-think { display: flex; }
.cx-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--cx-brand); animation: cxdot 1s infinite ease-in-out; }
.cx-think i:nth-child(2) { animation-delay: .16s; }
.cx-think i:nth-child(3) { animation-delay: .32s; }
@keyframes cxdot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.cx-ai-reveal { animation: cxrise .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes cxrise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 决策链 */
.cx-people { display: flex; flex-direction: column; gap: 7px; }
.cx-people.is-dense { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.cx-person {
    display: flex; gap: 9px; padding: 8px 9px; border: 1px solid var(--cx-line);
    border-radius: 9px; background: var(--cx-sink); align-items: flex-start;
}
.cx-person.is-main { background: #fff; border-color: var(--cx-brand-line); }
.cx-ava {
    width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: 10.5px; font-weight: 600; background: var(--cx-brand-soft); color: var(--cx-brand);
}
.cx-ava.is-amber { background: var(--cx-amber-soft); color: var(--cx-amber); }
.cx-ava.is-danger { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-person-main { flex: 1; min-width: 0; }
.cx-person-main b { font-size: 12.3px; font-weight: 500; }
.cx-person-main small { display: block; font-size: 10.5px; color: var(--cx-faint); margin-top: 1px; }
.cx-person-main p { margin-top: 4px; font-size: 11.3px; color: var(--cx-muted); line-height: 1.55; }

/* 对话 */
.cx-chat { display: flex; flex-direction: column; gap: 9px; padding: 11px 13px 13px; }
.cx-msg { display: flex; gap: 8px; align-items: flex-start; }
.cx-msg-me { flex-direction: row-reverse; }
.cx-bubble {
    max-width: 88%; padding: 8px 10px; border-radius: 9px; font-size: 11.8px; line-height: 1.65;
    background: var(--cx-line-2); color: var(--cx-ink-2);
}
.cx-msg-me .cx-bubble { background: var(--cx-brand); color: #fff; }
.cx-msg-ai .cx-bubble { background: var(--cx-brand-soft); border: 1px solid var(--cx-brand-line); }
.cx-bubble b { font-weight: 600; }
.cx-bubble ul { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.cx-bubble li { display: flex; gap: 6px; }
.cx-bubble li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cx-brand); margin-top: 7px; flex: none; }
.cx-bubble em { font-style: normal; background: rgba(47, 74, 117, .1); border-radius: 3px; padding: 0 3px; }

/* 时间线 */
.cx-timeline { padding: 4px 13px 12px; display: flex; flex-direction: column; }
.cx-tl { display: flex; gap: 10px; padding: 7px 0; }
.cx-tl-mark {
    width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px;
    background: #d4d4ce; position: relative;
}
.cx-tl-mark::after {
    content: ""; position: absolute; left: 50%; top: 9px; width: 1px; height: calc(100% + 12px);
    background: var(--cx-line); transform: translateX(-50%);
}
.cx-tl:last-child .cx-tl-mark::after { display: none; }
.cx-tl-mark.is-brand { background: var(--cx-brand); }
.cx-tl-mark.is-ok { background: var(--cx-ok); }
.cx-tl-body { flex: 1; min-width: 0; }
.cx-tl-body b { font-size: 12.2px; font-weight: 500; }
.cx-tl-body small { display: block; font-size: 10.6px; color: var(--cx-faint); margin-top: 1px; }

/* 移动端窗口内的分组 */
.cx-mini { display: flex; flex-direction: column; gap: 6px; }
.cx-mini-row { display: flex; align-items: center; gap: 7px; font-size: 11.8px; color: var(--cx-ink-2); }
.cx-mini-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-mini-row b { font-variant-numeric: tabular-nums; }

/* 预览切换器 */
.cx-tabs { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; flex-wrap: wrap; }
.cx-tab {
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cx-line);
    background: #fff; color: var(--cx-muted); font-size: 12.8px;
    display: inline-flex; align-items: center; gap: 7px; transition: all .16s;
}
.cx-tab .cx-ico { width: 14px; height: 14px; }
.cx-tab:hover { border-color: #d6d6d1; color: var(--cx-ink); }
.cx-tab.is-on { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }
.cx-tab.is-on .cx-ico { color: #fff; }

/* ---------------------------------------------------------------------------
   页面区块
   -------------------------------------------------------------------------*/
.cx-section { padding: 74px 0 8px; }
.cx-section-head { max-width: 740px; margin-bottom: 28px; }
.cx-section-head h2 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.03em; margin-top: 12px; }
.cx-section-head p { margin-top: 12px; font-size: 13.6px; line-height: 1.85; color: var(--cx-muted); }

.cx-cards { display: grid; gap: 14px; }
.cx-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-card {
    background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg);
    padding: 18px 18px 16px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.cx-card:hover { box-shadow: var(--cx-shadow-2); border-color: #dcdcd7; transform: translateY(-1px); }
.cx-card-ico {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--cx-brand-soft); color: var(--cx-brand); border: 1px solid var(--cx-brand-line);
}
.cx-card-ico.is-violet { background: var(--cx-violet-soft); color: var(--cx-violet); border-color: transparent; }
.cx-card-ico.is-amber { background: var(--cx-amber-soft); color: var(--cx-amber); border-color: transparent; }
.cx-card-ico.is-ok { background: var(--cx-ok-soft); color: var(--cx-ok); border-color: transparent; }
.cx-card-ico.is-muted { background: var(--cx-line-2); color: var(--cx-muted); border-color: var(--cx-line); }
.cx-card-ico .cx-ico { width: 16px; height: 16px; }
.cx-card h3 { margin-top: 13px; font-size: 14.2px; display: flex; align-items: center; gap: 7px; }
.cx-card h3 em {
    font-style: normal; font-size: 9.5px; letter-spacing: .04em; color: var(--cx-violet);
    background: var(--cx-violet-soft); border-radius: 4px; padding: 1px 5px;
}
.cx-card p { margin-top: 7px; font-size: 12.4px; line-height: 1.75; color: var(--cx-muted); }
.cx-card ul { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.cx-card li { font-size: 11.8px; color: var(--cx-muted); display: flex; gap: 7px; align-items: flex-start; }
.cx-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cfcfca; margin-top: 6px; flex: none; }

/* 示例对话（让 AI 能力看得见） */
.cx-sample {
    margin-top: 12px; border: 1px solid var(--cx-line); border-radius: 9px;
    background: var(--cx-sink); overflow: hidden;
}
.cx-sample-q {
    display: flex; gap: 7px; padding: 7px 9px; border-bottom: 1px dashed var(--cx-line);
    font-size: 11.2px; color: var(--cx-muted); line-height: 1.6;
}
.cx-sample-q::before { content: "问"; flex: none; font-size: 9.5px; color: var(--cx-faint); margin-top: 2px; }
.cx-sample-a {
    display: flex; gap: 7px; padding: 8px 9px; font-size: 11.2px; color: var(--cx-ink-2); line-height: 1.7;
    background: #fff;
}
.cx-sample-a::before { content: "答"; flex: none; font-size: 9.5px; color: var(--cx-brand); margin-top: 2px; }

/* 流程条 */
.cx-flow {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); overflow: hidden; background: #fff;
}
.cx-flow-step { padding: 20px 18px; border-right: 1px solid var(--cx-line); }
.cx-flow-step:last-child { border-right: 0; }
.cx-flow-step em { font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--cx-faint); }
.cx-flow-step strong { display: block; margin-top: 8px; font-size: 13.6px; }
.cx-flow-step p { margin-top: 6px; font-size: 11.8px; line-height: 1.7; color: var(--cx-muted); }

/* 主线（对外页，比窗口里的大一档） */
.cx-line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); overflow: hidden; background: #fff; }
.cx-line-step { padding: 16px 12px; border-right: 1px solid var(--cx-line); }
.cx-line-step:last-child { border-right: 0; }
.cx-line-step em { font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: var(--cx-faint); }
.cx-line-step strong { display: block; margin-top: 6px; font-size: 12.8px; }
.cx-line-step p { margin-top: 4px; font-size: 10.8px; line-height: 1.6; color: var(--cx-muted); }
.cx-line-step.is-ai { background: var(--cx-brand-soft); }
.cx-line-step.is-ai strong { color: var(--cx-brand); }

/* 手机 */
.cx-mobile { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 46px; align-items: center; }
.cx-phone {
    width: 300px; height: 612px; border-radius: 40px; background: #fff;
    border: 1px solid #dcdcd7; box-shadow: 0 40px 70px -40px rgba(24, 24, 27, .4);
    padding: 10px; margin: 0 auto; position: relative;
}
.cx-phone-screen { height: 100%; border-radius: 32px; background: var(--cx-bg); overflow: hidden; border: 1px solid var(--cx-line); position: relative; }
.cx-notch {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 88px; height: 22px; border-radius: 0 0 14px 14px; background: #fff; z-index: 2;
}
.cx-phone-top { padding: 30px 15px 0; display: flex; align-items: center; justify-content: space-between; }
.cx-phone-top strong { font-size: 12.5px; }
.cx-phone-top .cx-ico { width: 15px; height: 15px; color: var(--cx-faint); }
.cx-phone-ai {
    margin: 12px 13px 0; padding: 10px 11px; border-radius: 10px;
    background: linear-gradient(160deg, #2f4a75, #3d5f90); color: #fff;
}
.cx-phone-ai small { display: flex; align-items: center; gap: 5px; font-size: 9.8px; letter-spacing: .08em; opacity: .72; }
.cx-phone-ai small .cx-ico { width: 11px; height: 11px; color: #fff; }
.cx-phone-ai b { display: block; margin-top: 6px; font-size: 12.4px; line-height: 1.55; font-weight: 500; }
.cx-phone-ai p { margin-top: 5px; font-size: 10.4px; line-height: 1.6; opacity: .8; }
.cx-phone-list { padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.cx-phone-item { background: #fff; border: 1px solid var(--cx-line); border-radius: 10px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; }
.cx-phone-item b { font-size: 11.8px; font-weight: 500; display: block; }
.cx-phone-item small { font-size: 10.2px; color: var(--cx-faint); display: block; margin-top: 2px; }
.cx-phone-item em { margin-left: auto; font-style: normal; font-size: 10.2px; color: var(--cx-brand); border: 1px solid var(--cx-brand-line); background: var(--cx-brand-soft); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.cx-phone-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 54px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--cx-line); border-radius: 0 0 32px 32px; display: flex; }
.cx-phone-nav span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9.4px; color: var(--cx-faint); }
.cx-phone-nav span.is-on { color: var(--cx-brand); }
.cx-phone-nav .cx-ico { width: 15px; height: 15px; }

/* 模块清单 */
.cx-modules { border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); background: #fff; overflow: hidden; }
.cx-module-row {
    display: grid; grid-template-columns: 200px minmax(0, 1fr) 140px; gap: 18px;
    padding: 13px 18px; border-bottom: 1px solid var(--cx-line); align-items: baseline;
}
.cx-module-row:last-child { border-bottom: 0; }
.cx-module-row strong { font-size: 13.2px; display: flex; align-items: center; gap: 7px; }
.cx-module-row strong em {
    font-style: normal; font-size: 9.5px; color: var(--cx-violet);
    background: var(--cx-violet-soft); border-radius: 4px; padding: 1px 5px;
}
.cx-module-row p { font-size: 12.1px; color: var(--cx-muted); line-height: 1.7; }
.cx-module-row span { font-size: 11.2px; color: var(--cx-faint); text-align: right; }

/* CTA + 页脚 */
.cx-cta {
    margin: 72px 0 0; border-radius: 18px; background: var(--cx-brand); color: #fff;
    padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cx-cta h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.03em; }
.cx-cta p { margin-top: 9px; font-size: 13px; color: rgba(255, 255, 255, .62); max-width: 580px; line-height: 1.8; }
.cx-cta .cx-btn { background: #fff; border-color: #fff; color: var(--cx-brand); }
.cx-cta .cx-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.cx-cta .cx-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.cx-foot { padding: 30px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx-foot p { font-size: 11.8px; color: var(--cx-faint); }
.cx-foot a { color: var(--cx-muted); }

/* 小提示：示例数据 */
.cx-note {
    margin-top: 12px; display: flex; align-items: flex-start; gap: 7px;
    font-size: 11.4px; color: var(--cx-faint); line-height: 1.7;
}
.cx-note .cx-ico { width: 13px; height: 13px; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------*/
@media (max-width: 1180px) {
    /* 演示窗口信息密度高，窄屏下直接不展示（与知识库演示页同处理） */
    .cx-window-wrap { display: none; }
}
@media (max-width: 1080px) {
    .cx-c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-flow-step { border-bottom: 1px solid var(--cx-line); }
    .cx-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cx-line-step { border-bottom: 1px solid var(--cx-line); }
    .cx-mobile { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
    .cx-wrap { padding: 0 16px; }
    .cx-nav-links { display: none; }
    .cx-nav-cta .cx-btn-ghost { display: none; }
    .cx-hero { padding: 40px 0 24px; }
    .cx-hero-stats { grid-template-columns: 1fr 1fr; }
    .cx-hstat:nth-child(2) { border-right: 0; }
    .cx-hstat { border-bottom: 1px solid var(--cx-line); padding-bottom: 14px; }
    .cx-section { padding: 50px 0 6px; }
    .cx-c2, .cx-c3 { grid-template-columns: 1fr; }
    .cx-flow { grid-template-columns: 1fr; }
    .cx-flow-step { border-right: 0; }
    .cx-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-module-row { grid-template-columns: 1fr; gap: 4px; }
    .cx-module-row span { text-align: left; }
    .cx-cta { padding: 28px 22px; }
    .cx-phone { width: 280px; height: 574px; }
}

@media (prefers-reduced-motion: reduce) {
    .cx-card, .cx-btn, .cx-tab { transition: none; }
    .cx-ai-reveal { animation: none; }
    .cx-think i { animation: none; }
}
