/* ======================================================================
 * 11 · 腹痛位置对照 —— 「九宫格分诊台」
 * 配色：医疗青 × 信号红；字体：等宽分诊编号 + 高对比无衬线
 * 布局：首屏九宫格 + 急诊警示横条 + 双栏记录台
 * ====================================================================== */
.hc13.bpm {
    --hc-ink: #123033; --hc-muted: #5f7e80; --hc-paper: #ffffff;
    --hc-soft: #eff8f7; --hc-line: #d5e8e6; --hc-accent: #0d7377;
    --hc-red: #c33c2e; --hc-warn: #b3271c; --hc-shadow: 0 14px 36px rgba(11, 74, 77, .10);
    background: #f5faf9;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}
:root[data-theme="dark"] .hc13.bpm {
    --hc-ink: #e2f4f2; --hc-muted: #9bc2c1; --hc-paper: #101e20;
    --hc-soft: #17292b; --hc-line: #294344; --hc-accent: #72d5cf;
    --hc-red: #ff9b8f; --hc-warn: #ff9b8f; --hc-shadow: 0 14px 36px rgba(0, 0, 0, .44);
    background: #0b1516;
}
.bpm .hc-wrap { padding-bottom: 56px; }
.bpm .hc-crumb { padding: 16px 0 10px; }
.bpm strong, .bpm b { color: var(--hc-accent); }
.bpm .hc-kw, .bpm .bpm-grid-label, .bpm .bpm-sec-head em, .bpm .bpm-console-head em,
.bpm .bpm-ai-head em, .bpm .bpm-stats b { font-family: "SFMono-Regular", Consolas, monospace; }

/* ---- 首屏 ---- */
.bpm-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .9fr); gap: 36px; align-items: start; padding: 30px 0 24px; }
.bpm-hero .hc-kw { color: var(--hc-accent); font-size: 11px; letter-spacing: 2.6px; }
.bpm-hero h1 { margin: 14px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.24; font-weight: 850; }
.bpm-hero h1 i { font-style: normal; display: block; font-size: .46em; font-weight: 600; color: var(--hc-red); margin-top: 12px; letter-spacing: 1px; }
.bpm-lede { margin: 0; max-width: 58ch; font-size: 15.5px; line-height: 1.94; }
.bpm-hero-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.bpm-cta { padding: 11px 24px; border-radius: 5px; background: var(--hc-accent); color: #fff; font-size: 14.5px; font-weight: 800; }
.bpm-cta--ghost { background: transparent; color: var(--hc-accent); border: 1.5px solid var(--hc-accent); }
.bpm-hero-note { margin: 0; font-size: 12px; color: var(--hc-muted); }
.bpm-hero-grid { padding: 18px 20px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-top: 5px solid var(--hc-red); border-radius: 8px; box-shadow: var(--hc-shadow); }
.bpm-grid-label { display: block; font-size: 10px; letter-spacing: 2.2px; color: var(--hc-muted); margin-bottom: 12px; }
.bpm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bpm-cell { padding: 12px 6px; border: 1px solid var(--hc-line); border-radius: 6px; background: var(--hc-soft); color: var(--hc-ink); text-align: center; transition: all .16s ease; }
.bpm-cell span { display: block; font-size: 13.5px; font-weight: 700; }
.bpm-cell small { display: block; font-size: 10px; color: var(--hc-muted); margin-top: 3px; line-height: 1.4; }
.bpm-cell:hover { border-color: var(--hc-accent); }
.bpm-cell.is-on { background: var(--hc-red); border-color: var(--hc-red); color: #fff; }
.bpm-cell.is-on small { color: rgba(255, 255, 255, .85); }
.bpm-grid-note { margin: 12px 0 0; font-size: 11.5px; color: var(--hc-muted); }
.bpm-alertbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 18px; margin-bottom: 28px; border-radius: 5px; background: color-mix(in srgb, var(--hc-red) 9%, var(--hc-paper)); border-left: 5px solid var(--hc-red); font-size: 13px; line-height: 1.7; }
.bpm-alertbar b { color: var(--hc-red); font-size: 12px; letter-spacing: 1px; }

/* ---- 控制台 ---- */
.bpm-console { background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 10px; overflow: hidden; }
.bpm-console-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; padding: 18px 24px; border-bottom: 1px solid var(--hc-line); }
.bpm-console-head h2 { margin: 0; font-size: 20px; }
.bpm-console-head em { font-style: normal; color: var(--hc-accent); font-size: 12px; margin-right: 8px; }
.bpm-console-head p { margin: 0; font-size: 12.5px; color: var(--hc-muted); }
.bpm-grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.bpm-left, .bpm-right { padding: 22px 24px; }
.bpm-left { border-right: 1px solid var(--hc-line); background: var(--hc-soft); }
.bpm-fieldset { border: 0; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--hc-line); display: flex; flex-wrap: wrap; gap: 7px; }
.bpm-fieldset legend { width: 100%; padding-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.bpm-fieldset legend small { font-weight: 400; color: var(--hc-muted); }
.bpm-fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bpm-fieldset label span { display: inline-block; padding: 7px 12px; border: 1px solid var(--hc-line); border-radius: 5px; font-size: 12.5px; cursor: pointer; }
.bpm-fieldset input:checked + span { background: var(--hc-accent); border-color: var(--hc-accent); color: #fff; font-weight: 650; }
.bpm-fieldset input:focus-visible + span { outline: 3px solid var(--hc-red); outline-offset: 2px; }
.bpm-fieldset--alert { padding: 12px; border: 1px dashed color-mix(in srgb, var(--hc-warn) 48%, var(--hc-line)); border-radius: 8px; background: color-mix(in srgb, var(--hc-warn) 4%, transparent); }
.bpm-fieldset--alert input:checked + span { background: var(--hc-warn); border-color: var(--hc-warn); }
.bpm-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bpm-nums label { font-size: 13px; font-weight: 700; }
.bpm-nums label small { font-weight: 400; color: var(--hc-muted); }
.bpm-nums .hc-input { margin-top: 6px; }
.bpm-zone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bpm-batch { border-top: 1px solid var(--hc-line); }
.bpm-batch summary { padding: 14px 24px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hc-accent); }
.bpm-batch summary span { font-size: 12px; font-weight: 400; color: var(--hc-muted); margin-left: 8px; }
.bpm-batch-in { padding: 0 24px 22px; }
.bpm-batch-in > label { display: block; font-size: 12.5px; color: var(--hc-muted); margin-bottom: 8px; }
.bpm-batch-in .hc-actions { margin: 12px 0; }

/* ---- 结果 ---- */
.bpm-result { margin-top: 42px; }
.bpm-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--hc-accent); }
.bpm-sec-head em { font-style: normal; color: var(--hc-red); font-size: 12px; }
.bpm-sec-head h2 { margin: 0; font-size: 22px; }
.bpm-sec-head small { margin-left: auto; color: var(--hc-muted); font-size: 12px; }
.bpm-empty { padding: 24px; border: 1px dashed var(--hc-line); border-radius: 8px; color: var(--hc-muted); background: var(--hc-paper); }
.bpm-verdict { padding: 16px 20px; margin-bottom: 16px; border-radius: 8px; background: var(--hc-soft); border-left: 5px solid var(--hc-accent); font-size: 14.5px; line-height: 1.88; }
.bpm-verdict.is-urgent { background: color-mix(in srgb, var(--hc-warn) 10%, var(--hc-paper)); border-left-color: var(--hc-warn); color: var(--hc-warn); }
.bpm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.bpm-stats > div { padding: 14px; border: 1px solid var(--hc-line); border-radius: 8px; background: var(--hc-paper); }
.bpm-stats span { display: block; font-size: 11.5px; color: var(--hc-muted); }
.bpm-stats b { font-size: 22px; color: var(--hc-accent); }
.bpm-stats em { font-size: 11px; font-style: normal; color: var(--hc-muted); margin-left: 4px; }
.bpm-zoneinfo { padding: 16px 20px; margin-bottom: 16px; border-radius: 8px; background: var(--hc-soft); border-left: 4px solid var(--hc-red); font-size: 14px; line-height: 1.9; }
.bpm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bpm-card { padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 8px; background: var(--hc-paper); }
.bpm-card h3 { margin: 0 0 10px; font-size: 16px; }
.bpm-card ol, .bpm-card ul { margin: 0; padding-left: 20px; }
.bpm-card li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.85; }
.bpm-disclaim { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--hc-line); color: var(--hc-muted); font-size: 13px; line-height: 1.88; }
.bpm-result .hc-actions { margin-top: 14px; }

/* ---- AI ---- */
.bpm-ai { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-paper); }
.bpm-ai-head h2 { margin: 0 0 8px; font-size: 19px; }
.bpm-ai-head em { font-style: normal; color: var(--hc-red); font-size: 12px; margin-right: 8px; }
.bpm-ai-head h2 small { font-size: 11.5px; font-weight: 400; color: var(--hc-muted); }
.bpm-ai-head p { margin: 0 0 16px; font-size: 13px; line-height: 1.8; color: var(--hc-muted); }
.bpm-ai-status { margin: 14px 0 0; font: 12.5px "SFMono-Regular", Consolas, monospace; color: var(--hc-muted); }
.bpm-ai-out { margin-top: 12px; padding: 16px 18px; white-space: pre-wrap; font-size: 14px; line-height: 1.9; background: var(--hc-soft); border-radius: 8px; }

/* ---- 阅读 ---- */
.bpm-reading { margin-top: 46px; }
.bpm-subh { margin: 22px 0 10px; font-size: 17px; }
.bpm-faq details { padding: 12px 0; border-bottom: 1px solid var(--hc-line); }
.bpm-faq summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.bpm-faq details > div { padding: 10px 0 4px; font-size: 14px; line-height: 1.9; }
.bpm-related { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--hc-line); font-size: 13px; }
.bpm-related > span { color: var(--hc-muted); }
.bpm-related a { padding: 6px 14px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-accent); }

@media (max-width: 900px) {
    .bpm-hero, .bpm-grid2, .bpm-cols { grid-template-columns: 1fr; }
    .bpm-left { border-right: 0; border-bottom: 1px solid var(--hc-line); }
}
@media (max-width: 640px) {
    .bpm-nums, .bpm-stats { grid-template-columns: repeat(2, 1fr); }
    .bpm-console-head, .bpm-left, .bpm-right, .bpm-batch-in, .bpm-ai { padding-inline: 16px; }
    .bpm-cell small { display: none; }
}
