﻿/* ==========================================================================
   设备管理 EMS · 产品演示页
   沿用 ems-theme.css 的纸白 / 墨黑 / 1px 细边语言，只补充营销页外壳。
   窗口内的界面直接复用真实的 ems-* 壳层类，保证「所见即所得」。
   ========================================================================== */

.em-body {
    background: var(--ems-bg);
    color: var(--ems-ink);
    font-family: var(--ems-font);
    -webkit-font-smoothing: antialiased;
}

.em-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.em-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(--ems-line);
}
.em-nav-in { height: 62px; display: flex; align-items: center; gap: 22px; }
.em-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.em-brand-mark {
    width: 30px; height: 30px; border-radius: 9px; background: var(--ems-ink); color: #fff;
    display: grid; place-items: center; flex: none;
}
.em-brand-mark svg { width: 17px; height: 17px; }
.em-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.em-brand-text strong { font-size: 14.5px; color: var(--ems-ink); }
.em-brand-text small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ems-faint); margin-top: 2px; }
.em-nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.em-nav-links a {
    font-size: 13px; color: var(--ems-muted); padding: 6px 11px; border-radius: 8px;
    text-decoration: none; transition: background .16s, color .16s;
}
.em-nav-links a:hover { background: #efefec; color: var(--ems-ink); }
.em-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.em-nav-cta .em-btn { height: 34px; }

/* ---------- 按钮 ---------- */
.em-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px; border-radius: 10px;
    border: 1px solid var(--ems-line); background: #fff; color: var(--ems-ink);
    font-size: 13.5px; font-weight: 500; font-family: inherit;
    text-decoration: none; cursor: pointer;
    transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}
.em-btn:hover { border-color: #d8d8d3; box-shadow: var(--ems-shadow-1); }
.em-btn-primary { background: var(--ems-ink); border-color: var(--ems-ink); color: #fff; }
.em-btn-primary:hover { background: #2c2c32; border-color: #2c2c32; box-shadow: var(--ems-shadow-2); }
.em-btn-ghost { background: transparent; }
.em-btn .ems-ico { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.em-hero { padding: 66px 0 38px; }
.em-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ems-faint);
}
.em-eyebrow::before { content: ""; width: 22px; height: 1px; background: #cfcfca; }
.em-hero h1 {
    margin: 18px 0 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.18;
    letter-spacing: -.035em; font-weight: 600; max-width: 800px;
}
.em-hero h1 em { font-style: normal; color: var(--ems-muted); }
.em-hero .em-lede {
    margin-top: 18px; max-width: 640px; font-size: 14.5px; line-height: 1.85; color: var(--ems-muted);
}
.em-hero-actions { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.em-chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.em-chip {
    font-size: 11.8px; color: var(--ems-muted); background: #fff;
    border: 1px solid var(--ems-line); border-radius: 999px; padding: 4px 11px;
}
.em-hero-stats {
    margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ems-line);
}
.em-hstat { padding: 18px 0 4px; border-right: 1px solid var(--ems-line-2); }
.em-hstat:last-child { border-right: 0; }
.em-hstat strong { display: block; font-size: 27px; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.em-hstat span { display: block; margin-top: 3px; font-size: 12px; color: var(--ems-faint); }

/* ---------- 应用窗口 ---------- */
.em-window-wrap { padding: 10px 0 20px; }
.em-window {
    border-radius: 18px; border: 1px solid #e2e2dd; background: #fff;
    box-shadow: 0 40px 80px -40px rgba(24, 24, 27, .35), 0 6px 18px rgba(24, 24, 27, .05);
    overflow: hidden;
}
.em-chrome {
    height: 38px; display: flex; align-items: center; gap: 8px;
    padding: 0 14px; background: #fbfbfa; border-bottom: 1px solid var(--ems-line);
}
.em-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3e3de; }
.em-dot:nth-child(2) { background: #e9e5dc; }
.em-dot:nth-child(3) { background: #e0e7e2; }
.em-url {
    margin-left: 10px; flex: 1; max-width: 440px; height: 24px; border-radius: 6px;
    background: #f2f2ef; display: flex; align-items: center; gap: 6px; padding: 0 10px;
    font-size: 11px; color: var(--ems-faint); font-family: var(--ems-mono, ui-monospace, Menlo, Consolas, monospace);
}
.em-url .ems-ico { width: 11px; height: 11px; }
.em-chrome-tag {
    margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ems-faint);
}

/* 窗口内：真实壳层类的定位改写
   .ems-side 在系统里是 position:fixed，这里收进窗口，否则会贴到视口左上角 */
.em-window .ems-app {
    position: relative; height: 700px; min-height: 0; overflow: hidden;
}
.em-window .ems-side {
    position: absolute; inset: 0 auto 0 0; height: auto;
    width: 208px;
}
.em-window .ems-brand { height: 52px; padding: 0 14px; }
.em-window .ems-nav { padding: 8px 8px 6px; }
.em-window .ems-nav-group { margin-bottom: 7px; }
.em-window .ems-nav-label { padding: 4px 9px 5px; font-size: 9.8px; }
.em-window .ems-nav-item { padding: 6px 9px; font-size: 12.4px; }
.em-window .ems-nav-badge { min-width: 17px; height: 17px; font-size: 10px; }
.em-window .ems-side-foot { padding: 7px 8px; }

.em-window .ems-main { height: 700px; min-height: 0; margin-left: 208px; }
.em-window .ems-top { height: 52px; padding: 0 14px; gap: 10px; }
.em-window .ems-top-title h1 { font-size: 14px; }
.em-window .ems-top-sub { font-size: 11px; }

/* 窗口内不需要搜索框与顶部动作，避免挤压标题 */
.em-window .ems-search { display: none; }
.em-window .ems-top-actions .ems-btn { height: 28px; font-size: 12px; padding: 0 10px; }
.em-window .ems-top-actions .ems-icon-btn { width: 28px; height: 28px; }

.em-window .ems-view { height: 648px; overflow-y: auto; background: var(--ems-bg); }
.em-window .ems-view::-webkit-scrollbar { width: 6px; }
.em-window .ems-view::-webkit-scrollbar-thumb { background: #dcdcd8; border-radius: 3px; }

/* 示例页内容 */
.em-screen { display: none; }
.em-screen.is-on { display: block; }
.em-page { padding: 14px 18px 14px; }
.em-page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.em-page-head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; font-weight: 600; }
.em-page-head p { margin: 3px 0 0; font-size: 11.6px; color: var(--ems-faint); }
.em-page-actions { margin-left: auto; display: flex; gap: 6px; }

.em-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.em-kpi {
    background: #fff; border: 1px solid var(--ems-line); border-radius: 10px;
    padding: 10px 12px 9px; position: relative; overflow: hidden;
}
.em-kpi span { display: block; font-size: 11px; color: var(--ems-faint); }
.em-kpi strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.em-kpi em { display: block; margin-top: 2px; font-style: normal; font-size: 10.6px; color: var(--ems-faint); }
.em-kpi em.is-bad { color: var(--ems-danger); }
.em-kpi em.is-warn { color: var(--ems-amber); }
.em-kpi .ems-ico { position: absolute; right: 10px; bottom: 8px; width: 26px; height: 26px; color: #eaeae6; }

.em-grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 11px; align-items: start; }
.em-card { background: #fff; border: 1px solid var(--ems-line); border-radius: 10px; overflow: hidden; }
.em-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 13px; border-bottom: 1px solid var(--ems-line-2);
}
.em-card-head h3 { margin: 0; font-size: 12.6px; font-weight: 600; }
.em-card-head span { font-size: 10.8px; color: var(--ems-faint); }
.em-card-body { padding: 10px 13px; }

.em-todo { list-style: none; margin: 0; padding: 0; }
.em-todo li {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 13px; border-bottom: 1px solid var(--ems-line-3);
}
.em-todo li:last-child { border-bottom: 0; }
.em-todo-ico {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    background: var(--ems-slate-soft); color: var(--ems-slate);
}
.em-todo-ico.is-rose { background: var(--ems-danger-soft); color: var(--ems-danger); }
.em-todo-ico.is-amber { background: var(--ems-amber-soft); color: var(--ems-amber); }
.em-todo-ico.is-ok { background: var(--ems-ok-soft); color: var(--ems-ok); }
.em-todo-ico.is-info { background: var(--ems-info-soft); color: var(--ems-info); }
.em-todo-ico .ems-ico { width: 13px; height: 13px; }
.em-todo-main { min-width: 0; }
.em-todo-main b { display: block; font-size: 12.2px; font-weight: 500; }
.em-todo-main small { display: block; margin-top: 2px; font-size: 10.6px; color: var(--ems-faint); }
.em-todo-tag { margin-left: auto; flex: none; }

.em-rows { list-style: none; margin: 0; padding: 0; }
.em-rows li { display: flex; align-items: center; gap: 8px; padding: 6px 13px; border-bottom: 1px solid var(--ems-line-3); font-size: 11.8px; }
.em-rows li:last-child { border-bottom: 0; }
.em-rows li span:first-child { color: var(--ems-ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-rows li em { margin-left: auto; font-style: normal; color: var(--ems-faint); font-variant-numeric: tabular-nums; }

.em-bar { display: block; height: 5px; border-radius: 3px; background: var(--ems-line-2); overflow: hidden; width: 90px; }
.em-bar i { display: block; height: 100%; background: var(--ems-brand); border-radius: 3px; }
.em-bar i.is-amber { background: var(--ems-amber); }
.em-bar i.is-rose { background: var(--ems-danger); }

/* 徽标 */
.em-badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 20px; padding: 0 8px; border-radius: 6px;
    font-size: 10.8px; font-weight: 500;
    background: var(--ems-slate-soft); color: var(--ems-slate);
    border: 1px solid transparent; white-space: nowrap;
}
.em-badge.is-rose { background: var(--ems-danger-soft); color: var(--ems-danger); border-color: var(--ems-danger-line); }
.em-badge.is-amber { background: var(--ems-amber-soft); color: var(--ems-amber); border-color: var(--ems-amber-line); }
.em-badge.is-ok { background: var(--ems-ok-soft); color: var(--ems-ok); border-color: var(--ems-ok-line); }
.em-badge.is-info { background: var(--ems-info-soft); color: var(--ems-info); border-color: var(--ems-info-line); }
.em-badge.is-brand { background: var(--ems-brand-soft); color: var(--ems-brand); border-color: var(--ems-brand-line); }

/* 表格 */
.em-table-wrap { overflow-x: auto; }
.em-table { width: 100%; border-collapse: collapse; font-size: 11.8px; }
.em-table th {
    text-align: left; font-weight: 500; color: var(--ems-faint);
    font-size: 10.8px; letter-spacing: .04em; text-transform: uppercase;
    padding: 8px 13px; border-bottom: 1px solid var(--ems-line); background: #fcfcfb;
    white-space: nowrap;
}
.em-table td { padding: 9px 13px; border-bottom: 1px solid var(--ems-line-3); vertical-align: middle; }
.em-table tr:last-child td { border-bottom: 0; }
.em-table tbody tr:hover td { background: #fdfdfc; }
.em-table td strong { font-weight: 500; }
.em-mono { font-family: var(--ems-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 11px; color: var(--ems-muted); }
.em-cell-sub { display: block; margin-top: 2px; font-size: 10.6px; color: var(--ems-faint); }
.em-td-act { text-align: right; }

/* 工单状态步骤条 */
.em-steps { display: flex; align-items: center; gap: 0; padding: 12px 13px; }
.em-step { flex: 1; display: flex; flex-direction: column; gap: 5px; position: relative; padding-right: 8px; }
.em-step::after {
    content: ''; position: absolute; top: 9px; left: 22px; right: 8px; height: 1px; background: var(--ems-line);
}
.em-step:last-child::after { display: none; }
.em-step i {
    width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
    font-style: normal; font-size: 10px; font-weight: 600;
    border: 1px solid var(--ems-line); background: #fff; color: var(--ems-faint);
    position: relative; z-index: 1;
}
.em-step.is-done i { background: var(--ems-ok-soft); border-color: var(--ems-ok-line); color: var(--ems-ok); }
.em-step.is-now i { background: var(--ems-ink); border-color: var(--ems-ink); color: #fff; }
.em-step b { font-size: 11.4px; font-weight: 500; color: var(--ems-ink-2); }
.em-step small { font-size: 10.4px; color: var(--ems-faint); }
.em-step.is-now b { color: var(--ems-ink); }

/* 检查项执行行 */
.em-check { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-bottom: 1px solid var(--ems-line-3); font-size: 11.9px; }
.em-check:last-child { border-bottom: 0; }
.em-check-box {
    width: 15px; height: 15px; border-radius: 4px; flex: none;
    border: 1px solid var(--ems-line); background: #fff;
    display: grid; place-items: center; color: #fff;
}
.em-check-box.is-on { background: var(--ems-brand); border-color: var(--ems-brand); }
.em-check-box .ems-ico { width: 10px; height: 10px; }
.em-check-main { min-width: 0; }
.em-check-main b { display: block; font-weight: 400; font-size: 11.9px; }
.em-check-main small { display: block; margin-top: 1px; font-size: 10.4px; color: var(--ems-faint); }
.em-check .em-badge { margin-left: auto; }

/* 屏幕切换器 */
.em-tabs { display: flex; justify-content: center; gap: 6px; margin: 22px 0 0; flex-wrap: wrap; }
.em-tab {
    height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--ems-line);
    background: #fff; color: var(--ems-muted); font-size: 12.8px; font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; transition: all .16s;
}
.em-tab:hover { border-color: #d6d6d1; color: var(--ems-ink); }
.em-tab.is-on { background: var(--ems-ink); border-color: var(--ems-ink); color: #fff; }
.em-tab .ems-ico { width: 14px; height: 14px; }

/* ---------- 通用区块 ---------- */
.em-section { padding: 76px 0 10px; }
.em-section-head { max-width: 700px; margin-bottom: 30px; }
.em-section-head h2 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.03em; margin: 12px 0 0; }
.em-section-head p { margin-top: 12px; font-size: 13.6px; line-height: 1.85; color: var(--ems-muted); }
.em-grid { display: grid; gap: 14px; }
.em-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.em-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.em-card-lite {
    background: #fff; border: 1px solid var(--ems-line); border-radius: var(--ems-r);
    padding: 18px 18px 16px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.em-card-lite:hover { box-shadow: var(--ems-shadow-2); border-color: #e0e0db; }
.em-card-ico {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--ems-sink); border: 1px solid var(--ems-line); color: var(--ems-ink-2);
}
.em-card-ico .ems-ico { width: 16px; height: 16px; }
.em-card-lite h3 { margin-top: 13px; font-size: 14.2px; font-weight: 600; }
.em-card-lite p { margin-top: 7px; font-size: 12.4px; line-height: 1.75; color: var(--ems-muted); }
.em-card-lite ul { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; list-style: none; }
.em-card-lite li { font-size: 11.8px; color: var(--ems-muted); display: flex; gap: 7px; align-items: flex-start; }
.em-card-lite li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cfcfca; margin-top: 6px; flex: none; }

/* 流程条 */
.em-flow {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--ems-line); border-radius: var(--ems-r); overflow: hidden; background: #fff;
}
.em-flow-step { padding: 20px 18px; border-right: 1px solid var(--ems-line-2); }
.em-flow-step:last-child { border-right: 0; }
.em-flow-step em { font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--ems-faint); }
.em-flow-step strong { display: block; margin-top: 8px; font-size: 13.6px; font-weight: 600; }
.em-flow-step p { margin-top: 6px; font-size: 11.8px; line-height: 1.7; color: var(--ems-muted); }

/* 状态链 */
.em-stages {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid var(--ems-line); border-radius: var(--ems-r); overflow: hidden;
    background: #fff; margin-top: 14px;
}
.em-stage { flex: 1; padding: 15px 14px; border-right: 1px solid var(--ems-line-2); }
.em-stage:last-child { border-right: 0; }
.em-stage span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .04em; color: var(--ems-faint); }
.em-stage span i { width: 6px; height: 6px; border-radius: 50%; background: #cfcfca; }
.em-stage strong { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; }
.em-stage p { margin-top: 4px; font-size: 11.5px; color: var(--ems-faint); line-height: 1.65; }

/* AI 区：与正文区分一层底色 */
.em-ai { margin-top: 14px; border: 1px solid var(--ems-line); border-radius: var(--ems-r); background: #fff; overflow: hidden; }
.em-ai-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--ems-line-2);
    background: linear-gradient(120deg, #fbfbfa 0%, #fff 60%);
}
.em-ai-mark {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: grid; place-items: center;
    background: var(--ems-ink); color: #fff;
}
.em-ai-mark .ems-ico { width: 16px; height: 16px; }
.em-ai-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.em-ai-head p { margin: 3px 0 0; font-size: 12px; color: var(--ems-muted); }
.em-ai-body { padding: 16px 18px 18px; }

/* 移动端 */
.em-mobile { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 46px; align-items: center; }
.em-phone {
    width: 300px; height: 612px; border-radius: 40px; background: #fff;
    border: 1px solid #e0e0db; box-shadow: 0 40px 70px -40px rgba(24, 24, 27, .4);
    padding: 10px; margin: 0 auto; position: relative;
}
.em-phone-screen {
    height: 100%; border-radius: 32px; background: var(--ems-bg); overflow: hidden;
    border: 1px solid var(--ems-line-2); position: relative;
}
.em-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;
}
.em-phone-top { padding: 30px 16px 0; display: flex; align-items: center; justify-content: space-between; }
.em-phone-top strong { font-size: 12.5px; }
.em-phone-top .ems-ico { width: 15px; height: 15px; color: var(--ems-faint); }
.em-phone-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 14px 0; }
.em-phone-kpi { background: #fff; border: 1px solid var(--ems-line); border-radius: 10px; padding: 10px 11px; }
.em-phone-kpi span { display: block; font-size: 10.4px; color: var(--ems-faint); }
.em-phone-kpi strong { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.em-phone-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.em-phone-item {
    background: #fff; border: 1px solid var(--ems-line); border-radius: 10px;
    padding: 10px 11px; display: flex; align-items: center; gap: 9px;
}
.em-phone-item b { font-size: 11.8px; font-weight: 500; display: block; }
.em-phone-item small { font-size: 10.4px; color: var(--ems-faint); display: block; margin-top: 2px; }
.em-phone-item em { margin-left: auto; font-style: normal; font-size: 10.4px; color: var(--ems-muted); border: 1px solid var(--ems-line); border-radius: 6px; padding: 2px 7px; }
.em-phone-nav {
    position: absolute; left: 10px; right: 10px; bottom: 10px; height: 54px;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ems-line);
    border-radius: 0 0 32px 32px; display: flex;
}
.em-phone-nav span {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 9.5px; color: var(--ems-faint);
}
.em-phone-nav span.is-on { color: var(--ems-ink); }
.em-phone-nav .ems-ico { width: 15px; height: 15px; }

/* 模块清单 */
.em-modules { border: 1px solid var(--ems-line); border-radius: var(--ems-r); background: #fff; overflow: hidden; }
.em-module-row {
    display: grid; grid-template-columns: 190px minmax(0, 1fr) 130px; gap: 18px;
    padding: 13px 18px; border-bottom: 1px solid var(--ems-line-2); align-items: baseline;
}
.em-module-row:last-child { border-bottom: 0; }
.em-module-row strong { font-size: 13.2px; font-weight: 600; }
.em-module-row p { font-size: 12.1px; color: var(--ems-muted); line-height: 1.7; }
.em-module-row span { font-size: 11.2px; color: var(--ems-faint); text-align: right; }

/* CTA + 页脚 */
.em-cta {
    margin: 74px 0 0; border-radius: var(--ems-r-lg); background: var(--ems-ink); color: #fff;
    padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.em-cta h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.03em; font-weight: 600; }
.em-cta p { margin-top: 9px; font-size: 13px; color: rgba(255, 255, 255, .62); max-width: 560px; line-height: 1.8; }
.em-cta .em-btn { background: #fff; border-color: #fff; color: var(--ems-ink); }
.em-cta .em-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.em-cta .em-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.em-foot { padding: 30px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.em-foot p { font-size: 11.8px; color: var(--ems-faint); }
.em-foot a { color: var(--ems-muted); }

@media (max-width: 1200px) {
    /* 导航链接收窄视口时逐级收敛，避免换行顶到按钮 */
    .em-nav-links a:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
    .em-nav-links { display: none; }
}
@media (max-width: 1024px) {
    .em-window-wrap { display: none; }
    .em-tabs { display: none; }
    .em-nav-links a[href="#em-screens"] { display: none; }
    .em-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-g3 { grid-template-columns: 1fr; }
    .em-flow { grid-template-columns: 1fr; }
    .em-flow-step { border-right: 0; border-bottom: 1px solid var(--ems-line-2); }
    .em-mobile { grid-template-columns: 1fr; gap: 30px; }
    .em-stages { flex-wrap: wrap; }
    .em-stage { flex: 1 1 45%; border-bottom: 1px solid var(--ems-line-2); }
}
@media (max-width: 720px) {
    .em-wrap { padding: 0 16px; }
    .em-nav-links { display: none; }
    .em-hero { padding: 40px 0 26px; }
    .em-hero-stats { grid-template-columns: 1fr 1fr; }
    .em-hstat:nth-child(2) { border-right: 0; }
    .em-hstat { border-bottom: 1px solid var(--ems-line-2); padding-bottom: 14px; }
    .em-section { padding: 52px 0 6px; }
    .em-g4, .em-g2 { grid-template-columns: 1fr; }
    .em-module-row { grid-template-columns: 1fr; gap: 4px; }
    .em-module-row span { text-align: left; }
    .em-cta { padding: 28px 22px; }
    .em-phone { width: 280px; height: 574px; }
}



/* ===========================================================================
 * AI 强化层（演示页专用）
 * 系统里的 AI 是一张「建议卡」，演示页要让人一眼看到它长什么样，
 * 所以这里只做两件事：① 首屏下面压一条 AI 说明带；② 把真实卡片样式搬进展示区。
 * 卡片本体用的是 ems-theme.css 的 .ems-ai-*，保证「演示看到的 = 系统里用的」。
 * ========================================================================*/

/* ---- 首屏：AI 胶囊 ---- */
.em-chip.is-ai {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(120deg, #f4f2fb, #eff3fa);
    border-color: #ded9ef; color: #4f4478;
}
.em-chip.is-ai .ems-ico { width: 12px; height: 12px; color: #6b5c96; }

/* ---- 首屏下：AI 说明带 ---- */
.em-ai-band {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin: 4px 0 6px; padding: 16px 20px;
    border: 1px solid #e2dff0; border-radius: 14px;
    background: linear-gradient(100deg, #f7f5fc 0%, #fff 52%, #f5f7fb 100%);
}
.em-ai-band-lead { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 420px; }
.em-ai-band-mark {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: #fff; border: 1px solid #dcd8ee; color: #5b4d8a;
    box-shadow: 0 1px 2px rgba(80, 68, 130, .06);
}
.em-ai-band-lead b { display: block; font-size: 13.6px; font-weight: 600; letter-spacing: -.01em; }
.em-ai-band-lead span { display: block; margin-top: 4px; font-size: 12.2px; line-height: 1.75; color: var(--ems-muted); }
.em-ai-band-items { display: flex; gap: 6px; flex-wrap: wrap; }
.em-ai-band-item {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 9px 0 6px;
    border-radius: 999px; background: #fff; border: 1px solid #e3e0f0;
    font-size: 11.6px; color: var(--ems-ink-2);
}
.em-ai-band-item i {
    width: 15px; height: 15px; border-radius: 50%;
    display: grid; place-items: center; font-style: normal;
    font-size: 9.5px; font-weight: 600; color: #5b4d8a; background: #f1eefb;
}
.em-ai-band-cta { flex: none; }

/* ---- 预览窗口：AI 标签页 ---- */
.em-tab.is-ai { border-color: #ded9ef; color: #5b4d8a; background: linear-gradient(120deg, #f7f5fc, #f3f6fb); }
.em-tab.is-ai.is-on { background: #2f2b3f; border-color: #2f2b3f; color: #fff; }

/* 预览窗口内的「表单 + 建议卡」 */
.em-ai-input { padding: 10px 13px 0; }
.em-ai-input-label { display: block; font-size: 10.6px; color: var(--ems-faint); margin-bottom: 3px; }
.em-ai-input-value {
    padding: 6px 9px; border-radius: 6px; border: 1px solid var(--ems-line);
    background: var(--ems-sink); font-size: 11.8px; color: var(--ems-ink-2);
}
.em-ai-input-value.is-para { line-height: 1.7; }
.em-ai-input-value + .em-ai-input-label { margin-top: 8px; }

/* 预览窗口里把卡片压小一档，避免在 208px 侧栏 + 900px 主区里显得笨重 */
.em-window .ems-ai-head { padding: 8px 11px 8px 13px; }
.em-window .ems-ai-body { padding: 2px 11px 9px; }
.em-window .ems-ai-sec { padding-top: 8px; }
.em-window .ems-ai-sec-label { margin-bottom: 3px; font-size: 10.4px; }
.em-window .ems-ai-text,
.em-window .ems-ai-steps li,
.em-window .ems-ai-list li { font-size: 11.6px; }
.em-window .ems-ai-case { padding: 5px 8px; }
.em-window .ems-ai-head-main > b { font-size: 12.2px; }
.em-window .ems-ai-foot { padding: 7px 11px; }
.em-window .ems-ai-badge { font-size: 10.2px; height: 17px; }

/* ---- AI 章节：左清单 / 右实卡 ---- */
.em-ai-section { padding-top: 74px; }
.em-ai-live-tag {
    display: inline-flex; align-items: center; height: 18px; margin-left: 6px;
    padding: 0 7px; border-radius: 9px;
    background: #eaf3ed; border: 1px solid #cfe4d8; color: #2c6b45;
    font-size: 10.5px; letter-spacing: .02em; vertical-align: 1px;
}

.em-ai-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    gap: 34px; align-items: start;
}

.em-ai-scenes { display: grid; gap: 2px; }
.em-ai-scene {
    display: flex; gap: 16px; padding: 18px 4px;
    border-top: 1px solid var(--ems-line);
}
.em-ai-scene:first-child { border-top: 0; padding-top: 2px; }
.em-ai-scene-no {
    flex: none; font-size: 11px; color: var(--ems-faint);
    font-variant-numeric: tabular-nums; padding-top: 3px; letter-spacing: .06em;
}
.em-ai-scene h3 {
    margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.015em;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.em-ai-scene h3 em {
    font-style: normal; font-size: 10.8px; font-weight: 500;
    color: #5b4d8a; background: #f4f2fb; border: 1px solid #e3dff3;
    border-radius: 4px; padding: 1px 6px;
}
.em-ai-scene p { margin: 6px 0 0; font-size: 12.8px; line-height: 1.8; color: var(--ems-muted); }

.em-ai-demo { position: sticky; top: 24px; }
.em-ai-demo-head {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; margin-bottom: 0;
    border: 1px solid var(--ems-line); border-bottom: 0;
    border-radius: 10px 10px 0 0; background: #fbfbfa;
    font-size: 11px; color: var(--ems-muted);
}
.em-ai-demo-dot { width: 6px; height: 6px; border-radius: 50%; background: #8f83bd; flex: none; }
.em-ai-demo-url { margin-left: auto; font-family: var(--ems-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 10px; color: var(--ems-faint); }
.em-ai-demo > .ems-ai-card { border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px -28px rgba(24, 24, 27, .35); }
.em-ai-demo .ems-ai-card::before { border-radius: 0 0 0 10px; }

.em-ai-demo-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 12px; padding: 11px 13px;
    border-radius: 8px; background: var(--ems-sink); border: 1px solid var(--ems-line-2);
}
.em-ai-demo-note p { margin: 0; font-size: 11.8px; line-height: 1.75; color: var(--ems-muted); }
.em-ai-demo-badge {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    height: 20px; padding: 0 8px; border-radius: 10px;
    background: #eef1f7; border: 1px solid var(--ems-brand-line); color: var(--ems-brand);
    font-size: 10.6px; white-space: nowrap;
}

@media (max-width: 1024px) {
    .em-ai-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .em-ai-demo { position: static; }
    .em-ai-band { padding: 14px 16px; }
    .em-ai-band-cta { display: none; }
}

@media (max-width: 720px) {
    .em-ai-band-items { width: 100%; }
    .em-ai-band-item { font-size: 11px; }
    .em-ai-scene { padding: 14px 0; gap: 12px; }
    .em-ai-scene h3 { font-size: 14px; }
    .em-ai-scene p { font-size: 12.2px; }
    .em-ai-demo-url { display: none; }
}

/* ===========================================================================
 * 事前预警（AI 风险体检）
 * 这一段是演示页新增的主推章节：左边讲「规则先算 → 历史对标 → AI 补位」，
 * 右边直接摆真实建议卡。来源标签沿用紫色系，和系统里的 AI 卡一致。
 * ========================================================================*/

.em-ai-live-tag.is-new {
    background: linear-gradient(120deg, #f4f2fb, #eff3fa);
    border-color: #ded9ef; color: #5b4d8a;
}

.em-predict { padding-top: 74px; }
.em-predict .em-section-head { max-width: 760px; }

.em-predict-logic { display: flex; flex-direction: column; }

.em-predict-step {
    display: flex; gap: 14px;
    padding: 18px 0; border-top: 1px solid var(--ems-line);
}
.em-predict-step:first-child { border-top: 0; padding-top: 2px; }
.em-predict-no {
    flex: none; width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center;
    font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums;
    color: #5b4d8a; background: #f4f2fb; border: 1px solid #e3dff3;
}
.em-predict-step h3 {
    margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.015em;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.em-predict-step h3 em {
    font-style: normal; font-size: 10.8px; font-weight: 500;
    color: #5b4d8a; background: #f4f2fb; border: 1px solid #e3dff3;
    border-radius: 4px; padding: 1px 6px;
}
.em-predict-step p { margin: 6px 0 0; font-size: 12.8px; line-height: 1.8; color: var(--ems-muted); }

.em-predict-metrics {
    margin-top: auto; padding-top: 18px;
    border-top: 1px solid var(--ems-line);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.em-predict-metrics div { padding-right: 12px; border-right: 1px solid var(--ems-line-2); }
.em-predict-metrics div:last-child { border-right: 0; padding-right: 0; }
.em-predict-metrics strong {
    display: block; font-size: 23px; font-weight: 600;
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.em-predict-metrics span { display: block; margin-top: 3px; font-size: 11.4px; color: var(--ems-faint); }

/* 结论用加重一档，和下面逐条风险区分开 */
.em-predict .ems-ai-text.is-strong {
    font-size: 13.2px; font-weight: 600; color: var(--ems-ink); letter-spacing: -.01em;
}
.em-predict .ems-ai-text + .ems-ai-text { margin-top: 4px; }

/* 风险来源标签：规则 / 历史 / AI 三色，一眼看出结论从哪来 */
.em-src {
    display: inline-flex; align-items: center; height: 16px;
    margin-right: 6px; padding: 0 5px; border-radius: 4px;
    font-style: normal; font-size: 9.8px; letter-spacing: .02em;
    white-space: nowrap; vertical-align: 1px;
}
.em-src.is-rule { background: #eef1f7; border: 1px solid #dbe3ef; color: #3b5578; }
.em-src.is-history { background: #fdf6ea; border: 1px solid #f0e2c6; color: #8a6320; }
.em-src.is-ai { background: linear-gradient(120deg, #f4f2fb, #eff3fa); border: 1px solid #ded9ef; color: #5b4d8a; }

/* AI 场景清单里，把「新上线」的那条提亮一档 */
.em-ai-scene.is-new {
    margin: 2px 0 4px; padding: 16px 14px 16px 12px;
    border: 1px solid #e2dff0; border-radius: 12px;
    background: linear-gradient(100deg, #f8f6fd 0%, #fff 72%);
}
.em-ai-scene.is-new h3 em { color: #5b4d8a; background: #fff; border-color: #ded9ef; }
.em-ai-scene-tag {
    display: inline-flex; align-items: center; height: 17px; padding: 0 6px;
    border-radius: 4px; font-size: 10px; font-weight: 500; font-style: normal;
    color: #fff; background: #5b4d8a;
}

@media (max-width: 1024px) {
    .em-predict { padding-top: 62px; }
    .em-predict-metrics { margin-top: 18px; }
}
@media (max-width: 720px) {
    .em-predict-step { padding: 15px 0; gap: 11px; }
    .em-predict-step h3 { font-size: 14px; }
    .em-predict-step p { font-size: 12.2px; }
    .em-predict-metrics strong { font-size: 20px; }
    .em-predict-metrics span { font-size: 10.8px; }
    .em-src { font-size: 9.2px; }
    .em-ai-scene.is-new { padding: 14px 12px; }
}
