/* ==========================================================================
   项目测算 · 四步向导（v10 / 2026-10-08）
   仅本页引用，与全站 style.css 配合使用
   类名统一 wz- 前缀，避免与首页已有的 .steps / .step（流程组件）冲突
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 兜底：本页任何情况下不出现横向滚动条（根因已由明细表换行规则修复，此为双保险） */
body { overflow-x: hidden; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* ---------------- 表单分组（第 1 步） ---------------- */
.calc-card .grid-2, .calc-card .grid-3 { gap: 12px; }
.calc-card .grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 节标题：色条 + 分隔线，强化 ①—⑨ 节奏 */
.calc-card h4 {
  display: flex; align-items: center; gap: 9px;
  margin: 26px 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--c-border);
}
.calc-card h4::before {
  content: ''; flex: none; width: 4px; height: 15px;
  border-radius: 2px; background: var(--c-primary);
}
.calc-card h4:first-of-type { margin-top: 2px; }

/* 卡片头部行：标题 + 「恢复默认值」（三个输入卡统一位置：第一行右侧） */
.card-hd { display: flex; align-items: flex-start; gap: 12px; }
.card-hd h4 { flex: 1; min-width: 0; }
.btn-reset {
  display: inline-flex; align-items: center; gap: 5px;
  flex: none; margin-top: -3px;
  background: #fff; color: var(--c-text-2);
  font-size: 12.5px; font-weight: 500; font-family: inherit; line-height: 1;
  border: 1px solid var(--c-border-strong); border-radius: 7px;
  padding: 7px 11px; cursor: pointer; transition: .15s;
}
.btn-reset:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-reset svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 800px) {
  .btn-reset { padding: 6px 9px; font-size: 12px; }
}

/* 分组小标题（固体/气体/液体燃料）→ 高对比子节标题 */
.fg-t {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 10px; padding: 6px 12px 6px 10px;
  border-radius: 6px; background: var(--c-primary-50);
  border-left: 3px solid var(--c-primary);
  font-size: 13.5px; font-weight: 700; color: var(--c-primary-dark);
  letter-spacing: .5px;
}
.calc-card h4 + .fg-t { margin-top: 4px; }

/* 依据与口径折叠区（v10-187）：说明分三层——字段下方只留 L1（填什么，≤30 字）；
   条款号、标准号、公式出处等 L2 信息一律收进本折叠区，默认收起，避免首屏被注释占满 */
/* v10-189 C 批：全站只用一套折叠组件——`.src-fold`（依据与口径，蓝底）与
   `.fold-sec`（低频输入区块，中性底）共用同一套 summary 箭头与开合行为；
   摘要行右侧带「当前值」摘要，收起时也知道里面填的是什么。 */
.src-fold, .fold-sec {
  margin: 10px 0 6px; border: 1px solid #D8E6F4; border-radius: var(--radius);
  background: #F8FBFE;
}
.src-fold > summary, .fold-sec > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; font-size: 12.5px; font-weight: 600; color: var(--c-text-2);
}
.src-fold > summary::-webkit-details-marker, .fold-sec > summary::-webkit-details-marker { display: none; }
.src-fold > summary::before, .fold-sec > summary::before {
  content: ''; flex: none; width: 0; height: 0; opacity: .55;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s;
}
.src-fold[open] > summary::before, .fold-sec[open] > summary::before { transform: rotate(90deg); }
.src-fold > summary:hover, .fold-sec > summary:hover { color: var(--c-primary); }
.src-fold .sf-body { padding: 2px 14px 11px; }
.src-fold .sf-grp {
  margin: 9px 0 3px; font-size: 12px; font-weight: 700; color: var(--c-primary-dark);
}
.src-fold .sf-body > .sf-grp:first-child { margin-top: 0; }
.src-fold ol, .src-fold ul { margin: 0; padding-left: 18px; }
.src-fold li { font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; margin: 2px 0; }
.src-fold p { margin: 0; font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; }
.src-fold b { color: var(--c-text); }

/* 低频输入区块（第 1 步 ⑦⑧⑨、第 5 步 ③）：summary 当小节标题用，
   左侧蓝色短杠与 h4 对齐，右侧灰字是当前值摘要，收起也不丢信息 */
.fold-sec { background: #FBFCFE; border-color: var(--c-border); }
.fold-sec > summary {
  padding: 10px 13px; font-size: 14px; font-weight: 700; color: var(--c-text);
  gap: 9px;
}
.fold-sec > summary::before { order: -2; }
.fs-h { display: flex; align-items: center; gap: 9px; flex: none; }
.fs-h::before {
  content: ''; flex: none; width: 4px; height: 15px;
  border-radius: 2px; background: var(--c-primary);
}
.fs-h .opt { font-weight: 500; }
.fs-dig {
  margin-left: auto; min-width: 0; text-align: right;
  font-size: 12.5px; font-weight: 500; color: var(--c-text-3, #8A94A6); line-height: 1.5;
  overflow-wrap: anywhere;
}
/* 摘要太长时整块换到第二行（不再挤在标题旁边撑破卡片） */
.fold-sec > summary { flex-wrap: wrap; row-gap: 3px; }
.fs-body { padding: 0 14px 12px; }
.fs-body > .sub-t:first-child, .fs-body > .grid-2:first-child, .fs-body > .grid-3:first-child { margin-top: 0; }
@media (max-width: 800px) {
  .src-fold > summary, .fold-sec > summary { padding: 8px 11px; font-size: 12px; }
  .src-fold .sf-body { padding: 0 11px 9px; }
  .fold-sec > summary { font-size: 13.5px; }
  .fs-dig { font-size: 11.5px; }
  .fs-body { padding: 0 11px 10px; }
}

/* 每节要点框：口径解释集中在此，字段下方只留短提示 */
.sec-note {
  margin: 12px 0 4px; padding: 10px 14px 11px;
  background: #F3F8FD; border: 1px solid #D8E6F4; border-radius: var(--radius);
}
.sec-note .sn-t {
  margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--c-primary-dark);
}
.sec-note ol, .sec-note ul { margin: 0; padding-left: 18px; }
.sec-note li {
  font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; margin: 2px 0;
}
.sec-note b { color: var(--c-text); }

/* 并列字段的标签锁定单行高度：标签里混排 m³、CO₂ 等上下标字符时，
   回退字体会撑高行盒，导致同一行左右输入框错位——固定高度从根上解决 */
.calc-card .grid-2 > .field > label,
.calc-card .grid-3 > .field > label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 20px; line-height: 20px; flex: none;
}
/* 并列字段提示压紧，减少参差感 */
.calc-card .grid-2 > .field .field-tip,
.calc-card .grid-3 > .field .field-tip { font-size: 11.5px; line-height: 1.5; }

/* 数值输入去浏览器默认上下箭头：避免误触；数值靠键盘输入，滚轮已由 JS 禁用改值 */
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 用能人数分项构成：命中标准口径时展示分项输入，总人数自动求和（只读） */
.pp-row {
  margin-top: 2px; padding: 10px 12px 8px;
  border: 1px dashed var(--bd, #cfd8e3); border-radius: 10px;
  background: rgba(59, 130, 246, 0.04);
}
.pp-cap { font-size: 12.5px; font-weight: 600; color: #1d4ed8; margin: 0 0 8px; }
/* 固定两列：每格结构一致（label 单行，人数 + ×φ 同行），不再错位参差 */
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pp-grid .field { margin: 0; }
.pp-grid .field > label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 20px; line-height: 20px; flex: none;
}
.pp-grid .field-tip { margin: 6px 0 0; }
/* 计日系数行：人数输入 + 小号系数输入 */
.pp-coef-row { display: flex; gap: 6px; align-items: stretch; }
.pp-coef-row input:first-child { flex: 1; min-width: 0; }
.pp-coef { display: inline-flex; align-items: center; gap: 4px; }
.pp-coef input { width: 58px; padding: 7px 6px; }
.pp-coef em { font-style: normal; font-size: 10.5px; color: var(--c-text-3, #94a3b8); white-space: nowrap; }
.pp-row > .field-tip { margin: 8px 0 0; }
.auto-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  font-size: 10.5px; font-weight: 600; line-height: 16px; vertical-align: 1px;
  color: #1d4ed8; background: rgba(59, 130, 246, 0.12); border-radius: 4px;
}
input[readonly] { color: #475569; background: rgba(148, 163, 184, 0.08); }

/* 气候分区锁定行：地市选定后只读展示，不再让用户在类别里猜 A 区 / B 区 */
[hidden] { display: none !important; }   /* .field 等容器有 display:flex，会盖掉 hidden 属性 */
.zone-lock {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 0 12px; padding: 7px 11px;
  background: #EDF4FC; border: 1px dashed #B9D3ED; border-radius: 8px;
  font-size: 12.5px; line-height: 1.5;
}
.zone-lock .zl-k { color: var(--c-text-3); flex: none; }
.zone-lock .zl-v { font-weight: 700; color: var(--c-primary-dark); }
.zone-lock .zl-t { color: var(--c-text-3); font-size: 11.5px; }

/* 数据中心：独立对标面板 */
.dc-card { border: 1px solid var(--c-border); border-radius: 10px; padding: 13px 14px; margin-top: 4px; }
.dc-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.dc-head b { font-size: 14px; color: var(--c-text); }
.dc-head span { font-size: 12px; color: var(--c-text-3); line-height: 1.6; }
.dc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc-tier {
  border: 1px solid var(--c-border); border-radius: 8px; padding: 8px 10px;
  background: var(--c-bg-2); display: flex; flex-direction: column; gap: 2px;
}
.dc-tier span { font-size: 11.5px; color: var(--c-text-3); }
.dc-tier b { font-size: 20px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; }
.dc-tier.is-on { border-color: var(--c-primary); background: #EDF4FC; }
.dc-tier.is-on b { color: var(--c-primary-dark); }
.dc-src { margin: 9px 0 0; font-size: 11.5px; color: var(--c-text-3); line-height: 1.6; }
.dc-none {
  margin: 10px 0 0; padding: 9px 11px; border-radius: 8px;
  background: #FFF6E8; border: 1px solid #F0D2A0; border-left: 4px solid #E8890C;
  font-size: 12.5px; color: #8A5300; line-height: 1.6;
}
.dc-metrics { margin-top: 12px; }
#f2-sub option.opt-dc { font-weight: 700; }

/* 化石燃料区警示条（纯提示，不可折叠、无箭头） */
.adv-note {
  margin: 4px 0 14px; padding: 9px 13px;
  background: #FFF6E8; border: 1px solid #F0D2A0; border-left: 4px solid #E8890C;
  border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #8A5300; line-height: 1.6;
}
.adv-note + .fg-t { margin-top: 2px; }

/* ⑦ 节内小标题：核算边界勾选 / 数据来源申报 */
.sub-t {
  display: flex; align-items: baseline; gap: 8px;
  margin: 10px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--c-text);
}
.sub-t span { font-size: 12px; font-weight: 400; color: var(--c-text-3); }

/* 卡片式勾选块：可点击卡片，选中蓝底描边 */
.chk-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px;
}
.chk-card {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 11px; min-height: 40px;
  border: 1px solid var(--c-border-strong); border-radius: 8px;
  background: #fff; cursor: pointer;
  font-size: 13.5px; color: var(--c-text-2); line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
}
.chk-card:hover { border-color: var(--c-primary); }
.chk-card input { width: 15px; height: 15px; margin: 0; accent-color: var(--c-primary); flex: none; }
.chk-card input:checked + span { color: var(--c-primary); font-weight: 600; }
.chk-card:has(input:checked) {
  border-color: var(--c-primary); background: #EDF4FC; color: var(--c-primary);
}

/* 必填星号 */
.calc-card .req { color: #D64541; font-weight: 700; margin-left: 3px; }

/* 字段校验失败：红框（is-bad）+ 输入框下方红字原因 */
.err-msg {
  font-size: 12px; color: #C23B2E; margin: 0; line-height: 1.5;
}
.err-msg::before { content: '⚠ '; }
/* 兼容：旧 chk-row 裸 label（若有） */
.chk-row label:not(.chk-card) {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--c-text-2); cursor: pointer;
}
.chk-row input { width: 16px; height: 16px; accent-color: var(--c-primary); }

/* 结果区附加说明（未纳入核算项等） */
.res-extra {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--c-bg-2); border: 1px dashed var(--c-border-strong);
  font-size: 12.5px; color: var(--c-text-2); line-height: 1.7;
}
.res-extra:empty { display: none; }
.res-extra b { color: var(--c-text); }
.res-extra .x-note p { margin: 0 0 4px; }
.res-extra .x-note p:last-child { margin-bottom: 0; }

/* 结果卡子标题 */
.res-sub {
  display: flex; align-items: baseline; gap: 8px;
  margin: 18px 0 8px; padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.res-sub h5 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.res-sub span { font-size: 11.5px; color: var(--c-text-3); }

/* 节能率 / 降碳率 徽标：考核通常按比例口径（空间 ÷ 现状能耗/排放） */
/* 四项核心指标卡：节能量 / 节能率 / 降碳量 / 降碳率 */
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 12px; }
.metric { border-radius: 10px; padding: 10px 13px 9px; }
.metric.m-b { background: #E9F2FB; }
.metric.m-g { background: #E4F4ED; }
.mt-k { font-size: 12px; font-weight: 600; }
.metric.m-b .mt-k { color: var(--c-primary-dark); }
.metric.m-g .mt-k { color: var(--c-green); }
.mt-v { margin-top: 2px; line-height: 1.2; }
.mt-v b { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.metric.m-b .mt-v b { color: var(--c-primary-dark); }
.metric.m-g .mt-v b { color: var(--c-green); }
.mt-v em { font-style: normal; font-size: 12px; font-weight: 500; margin-left: 4px; color: var(--c-text-2); }
.mt-s { margin-top: 3px; font-size: 10.5px; color: var(--c-text-3); }
.equiv-one { grid-template-columns: 1fr 1fr; margin-top: 14px; }

/* 分项明细：财务报表式逐行推导（项目 | 计算式 | 排放量） */
.res-detail { border-top: 1px solid var(--c-border); }
/* 分项明细：财务报表式逐行推导（项目 | 计算式 | 排放量）
   固定列宽：金额 112px、名称与计算式按比例分，避免
   「3,000,000 kWh × 0.1229」这类算式被挤成一字一行 */
.rd-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.55; table-layout: fixed; }
.rd-tb td { padding: 6px 6px; border-bottom: 1px solid var(--c-border); vertical-align: baseline; }
.rd-tb td:first-child { color: var(--c-text); width: 32%; overflow-wrap: break-word; }
.rd-f { color: var(--c-text-3); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.rd-am {
  width: 112px; text-align: right; white-space: nowrap;
  font-weight: 700; color: var(--c-primary-dark); font-variant-numeric: tabular-nums;
}
/* 减项：转供电量 / 转供热量 */
.rd-ded td:first-child { color: var(--c-text-2); }
.rd-ded .rd-am { color: var(--c-text-2); }
/* 分组标题行：一、间接排放 / 二、直接排放 */
.rd-grp td {
  background: var(--c-bg-2); font-weight: 700; color: var(--c-text);
  border-bottom: 1px solid var(--c-border-strong); padding-top: 8px; padding-bottom: 6px;
}
/* 小计行：单线在上；大类合计：双份加重 */
.rd-sub td { border-top: 1px solid var(--c-border-strong); font-weight: 700; color: var(--c-text); }
.rd-sub .rd-f { color: var(--c-text-3); font-weight: 400; }
.rd-sub .rd-am { color: var(--c-text); }
.rd-sub2 td { border-top: 2px solid var(--c-border-strong); }
/* 总计行：上下粗线 + 底色，财务报表“合计”样式 */
.rd-grand td {
  border-top: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  background: var(--c-bg-2); font-weight: 700; color: var(--c-text);
}
.rd-grand .rd-f { color: var(--c-text-3); font-weight: 400; }
.rd-grand .rd-am { font-size: 15px; color: var(--c-primary-dark); }
/* 分项行（「其中：XXX」）：财务三线表的做法——子项缩进、号色压浅、金额不加粗。
   改前母项和子项的金额都是同号同重，加减关系与主分关系全靠读者自己猜 */
.rd-tb tr.is-subit > td:first-child {
  position: relative; padding-left: 21px; color: var(--c-text-2);
}
.rd-tb tr.is-subit > td:first-child::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 1px; background: var(--c-border-strong);
}
.rd-tb tr.is-subit .rd-am { font-weight: 600; color: var(--c-text-2); }
/* 减项（可抵进项这类从含税额里扣掉的数）：金额压浅，符号本身写在数值前面，
   不再让读者靠「总投资 − 可抵进项」这行文字反推 */
.rd-tb tr.is-ded .rd-am { font-weight: 600; color: var(--c-text-2); }
.res-detail:empty::after {
  content: '暂无已填写的能源品种'; display: block;
  padding: 8px 0; font-size: 12px; color: var(--c-text-3);
}

/* 核算口径速览 */
.res-scope { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.rs-k { font-size: 12.5px; color: var(--c-text-3); white-space: nowrap; }
.rs-v { font-size: 12.5px; color: var(--c-text); text-align: right; overflow-wrap: anywhere; }
.res-scope:empty { display: none; }

/* ---------------- 步骤条 ---------------- */
/* 吸顶：长页面滚动时随时可跳步（顶栏 sticky 高 68px，留 8px 呼吸） */
.wz-steps {
  position: sticky; top: 76px; z-index: 40;
  display: flex; margin: 22px 0 0;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
  box-shadow: 0 4px 14px rgba(26, 29, 33, .07);
}
.wz-step {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; background: #fff; cursor: pointer; text-align: left;
  border: none; border-right: 1px solid var(--c-border);
  font-family: inherit; transition: background .15s; min-width: 0;
}
.wz-step:last-child { border-right: none; }
/* 步骤之间画一个指向右的细箭头：五个格子本是并列的抽屉，加了箭头才读成一条流水线。
   只画两条边线、不填底色——填了白底会盖住相邻的深色格，反而像缺了个口。
   z-index 压在分隔线之上，箭头跨在两格交界处。 */
.wz-step { position: relative; }
.wz-step:not(:last-child)::after {
  content: ''; position: absolute; right: -4.5px; top: 50%; z-index: 2;
  width: 8px; height: 8px; margin-top: -4px; pointer-events: none;
  border-top: 1.6px solid var(--c-border-strong);
  border-right: 1.6px solid var(--c-border-strong);
  transform: rotate(45deg);
}
/* 只有当前步的箭头点亮成蓝色，其余一律浅灰。
   试过让完成态跟着绿走，结果绿勾 + 绿箭头 + 蓝框三色相邻，太吵；
   箭头是「往哪走」的符号，不是「走过哪」的标记——走过哪已经由绿勾说了。 */
.wz-step.active:not(:last-child)::after { border-color: var(--c-primary); }
.wz-step:hover { background: var(--c-bg-2); }
.wz-no {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--c-bg-3); color: var(--c-text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; transition: .15s;
}
.wz-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.wz-t {
  font-size: 13.5px; font-weight: 500; color: var(--c-text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 副标题是时间（「今天 17:23」／「10-28 15:40」），1100px 一带每格只剩八十来像素，
   超了宁可省略号也不许顶到邻格 */
.wz-s {
  font-size: 11.5px; color: var(--c-text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* 当前步：蓝底 + 2px 蓝描边 + 序号徽章反白，进页面一眼可见
   首步/末步补容器内沿圆角，避免方形蓝框与容器圆弧相截（inset 描边跟随自身圆角） */
.wz-step.active {
  background: var(--c-primary-50);
  box-shadow: inset 0 0 0 2px var(--c-primary);
}
.wz-step.active:first-child {
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
}
.wz-step.active:last-child {
  border-top-right-radius: calc(var(--radius-lg) - 1px);
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}
.wz-step.active .wz-no { background: var(--c-primary); color: #fff; }
.wz-step.active .wz-t { color: var(--c-primary-dark); font-weight: 700; }
.wz-step.active .wz-s { color: var(--c-primary); font-weight: 600; }
/* v10-185：三态（已完成 / 还差 N 项 / 待填）连同 done·part·pending 三套配色一起撤掉。
   副标题只报时间，不判完成，绿勾与浅绿圈都没有对象了；当前步仍是唯一的强调色。 */

/* ---------------- 跳步提示条 ---------------- */
.wz-hint {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--c-accent-50); color: #8A3410;
  border-left: 3px solid var(--c-accent);
  font-size: 13.5px; line-height: 1.7;
}
.wz-hint[hidden] { display: none; }
.wz-hint-close {
  margin-left: auto; flex: none; background: none; border: none;
  color: inherit; font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px;
}

/* ---------------- 面板 ---------------- */
.wz-panel { margin-top: 22px; }
/* 桌面端：左表单长、右结果卡短 → 结果卡吸顶跟随滚动，填满视觉（top 需避开吸顶步骤条 76+62px） */
@media (min-width: 801px) {
  .calc-grid > .calc-result { position: sticky; top: 148px; }
}
.wz-panel[hidden] { display: none; }
.wz-sec { margin-bottom: 18px; }
.wz-sec h2 { font-size: 17px; margin: 0; color: var(--c-text); }
.wz-sec p {
  font-size: 13.5px; color: var(--c-text-2);
  margin: 5px 0 0; line-height: 1.75;
}
.wz-carry {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 4px 11px; border-radius: 99px;
  font-size: 12px; background: var(--c-primary-50); color: var(--c-primary-dark);
}
/* 第 3 步（水）：带入信息行（省份/机构/人数等自动带显） */
.carry-line {
  margin: 0 0 4px; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  background: var(--c-primary-50); color: var(--c-primary-dark);
}
/* 第 3 步：继承信息条 —— 替代原「① 对标对象」空卡，回显与重置并作一行（v10-188） */
.carry-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 6px;
}
.carry-bar .carry-line { flex: 1 1 240px; margin: 0; }
.carry-bar .btn-reset { margin-top: 0; }

/* ---------------- 底部导航 ----------------
   三列：1fr auto 1fr。两侧等宽，中间那列就在容器正中——
   用 flex 的 space-between 做不到「位置文字永远居中」，右侧按钮一换文案
   （「下一步 →」→「下载项目报告」）中间那颗就跟着偏（v10-198）。 */
.wz-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--c-border);
}
.wz-pos { font-size: 13px; color: var(--c-text-3); text-align: center; }
.wz-nav .btn-ghost { padding: 11px 20px; }
.wz-nav > .btn, .wz-nav > .btn-ghost { justify-self: start; }
.wz-nav > :last-child { justify-self: end; }
.wz-nav .btn, .wz-nav .btn-ghost { min-height: 40px; }
.wz-nav .btn[disabled], .wz-nav .btn-ghost[disabled] {
  opacity: .45; cursor: not-allowed;
}

/* ---------------- 轻提示 ---------------- */
.wz-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(26, 29, 33, .92); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 8px; z-index: 200;
  opacity: 0; pointer-events: none; transition: .25s;
  max-width: 80vw;
}
.wz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 带动作的 toast（如「撤销」）：需可点击 */
.wz-toast.has-act.show { pointer-events: auto; }
.toast-x {
  background: none; border: none; padding: 0 0 0 12px; margin-left: 4px;
  color: #7FC0FF; font: inherit; font-weight: 600; cursor: pointer;
}
.toast-x:hover { color: #A8D4FF; }

/* ---------------- 第 2 步：对标档位 / 定额来源 / 对标可视化 ---------------- */

/* ==================== 单选胶囊组（.seg-field）—— 全站唯一形态 ====================
   v10-163 统一。五处是同一个交互（互斥单选、只改口径/档位、不直接输数字）：
     第 2 步「对标档位」／第 3 步「对标档位（节水）」／① 卡「基准数据来源」
     ③ 卡「留抵处理」／④ 卡「开票方式」
   此前却长成三套：46px 实心蓝大按钮（第 2/3 步）、灰字小胶囊（① 卡）、
   带竖线小胶囊（③④ 卡），竖线有无、字号 12.5/13/14、圆角 9/15、选中态实心/描边
   共四种不一致。现收敛为一套：左「竖线标签」＋中「胶囊组」＋右「一句提示」，
   需要展开解释时下方接一行 .seg-field-note。
   胶囊宽度跟内容（列数随选项数自适应），两个选项不再被三列网格拉宽。 */
.seg-field {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 2px 0 0;
}
/* 与上方内容分隔时用（③ 卡财务开关、④ 卡合同条件）：统一虚线，别各写一套 */
.seg-field.is-top { margin-top: 13px; padding-top: 12px; border-top: 1px dashed #C6DCEF; }
/* 同一张卡里连着两条开关（③ 卡「亏损结转」+「留抵处理」）：留出行距，别再拉一条虚线分隔 */
/* 相邻两条胶囊组之间留行距。v10-167 删掉「亏损结转」后页面上已无相邻实例，
   规则保留一行：将来往同一张卡里加第二条时不用再想间距该写多少 */
.seg-field + .seg-field { margin-top: 6px; }
.seg-field-lb {
  flex: none; font-size: 13px; font-weight: 700; color: var(--c-primary-dark);
  padding-left: 9px; border-left: 3px solid var(--c-primary); line-height: 1.45;
}
/* 「自选」这类小角标跟在标签后，不跟标签抢字重 */
.seg-field-lb .opt { font-size: 11px; font-weight: 400; color: var(--c-text-3); margin-left: 4px; }
.seg-field-hint {
  flex: 1 1 160px; min-width: 0;
  font-size: 11.5px; color: var(--c-text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 展开说明：放在 .seg-field 内部并独占一行——容器整体隐藏时说明跟着走，
   不会留一条孤零零的空段（第 3 步切换机构类型会整块隐藏） */
.seg-field-note {
  flex: 1 0 100%; margin: 2px 0 8px;
  font-size: 11.5px; color: var(--c-text-3); line-height: 1.7;
}
.seg-field-note:empty { display: none; }
.seg-field-note b { color: var(--c-text-2); }

/* 胶囊组：列数 = 选项数（2 项就两列，空列不占宽） */
.seg-ctl {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content;
  gap: 4px; margin: 0; flex: none;
}
.seg-ctl label { position: relative; display: block; cursor: pointer; min-width: 0; }
.seg-ctl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-ctl span {
  display: flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 4px 13px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--c-text-2); background: #fff;
  border: 1px solid var(--c-border-strong); border-radius: 15px;
  transition: background .15s, color .15s, border-color .15s;
}
.seg-ctl label:hover span { background: var(--c-primary-50); border-color: var(--c-primary); }
.seg-ctl input:checked + span {
  background: var(--c-primary-50); color: var(--c-primary-dark);
  font-weight: 700; border-color: var(--c-primary);
}
.seg-ctl input:focus-visible + span { outline: 2px solid var(--c-primary-dark); outline-offset: 2px; }

/* 定额来源徽标：三行结构（标签行 / 标准全称 / 原文链接） */
.norm-badge { margin-top: 6px; }
.norm-badge:empty { display: none; }
.nb {
  padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.65;
  background: var(--c-primary-50); color: var(--c-primary-dark);
  border: 1px solid var(--c-primary-100);
}
.nb.is-warn { background: #FEF7E8; color: #8A5A00; border-color: #F2DCB0; }
.nb.is-none { background: var(--c-bg-2); color: var(--c-text-2); border-color: var(--c-border); }
.nb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.nb b { font-weight: 700; font-size: 12.5px; }
.nb-chip {
  display: inline-block; padding: 1.5px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .85); font-size: 11px; line-height: 1.6;
  border: 1px solid var(--c-primary-100); white-space: nowrap;
}
.is-warn .nb-chip { border-color: #F2DCB0; }
.nb-meta { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: inherit; opacity: .92; }
/* 标准原文链接（全国标准信息公共服务平台检索）：胶囊样式，整行独立 */
.nb-links { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 8px; }
.nb-link {
  display: inline-block; padding: 1.5px 9px; border-radius: 99px;
  color: var(--c-primary-dark); font-size: 11px; line-height: 1.6; text-decoration: none;
  background: #fff; border: 1px solid var(--c-primary-100); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nb-link:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.is-warn .nb-link { color: #8A5A00; border-color: #F2DCB0; }
.is-warn .nb-link:hover { background: #8A5A00; border-color: #8A5A00; color: #fff; }
/* 适用定额明细表：三档值列，所选档位高亮（置于对标档位选择之上） */
.nb-table-wrap { margin: 0 0 4px; }
.nb-table-wrap:empty { display: none; }
.nb-tb {
  width: 100%; margin: 0; border-collapse: separate; border-spacing: 0;
  font-size: 12.5px; background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--c-primary-100);
  box-shadow: 0 1px 4px rgba(24, 95, 165, .06);
}
.nb-tb th, .nb-tb td {
  padding: 8px 11px; text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.nb-tb thead th {
  font-size: 11px; font-weight: 600; color: var(--c-text-2);
  background: var(--c-bg-2); white-space: nowrap;
}
.nb-tb thead th:nth-child(n+2), .nb-tb tbody td:nth-child(n+2) { text-align: right; }
.nb-tb tbody tr:last-child td { border-bottom: none; }
.nb-tb tbody tr:hover td { background: rgba(24, 95, 165, .035); }
.nb-tb tbody tr:hover td.nb-v.hl { background: var(--c-primary-50); }
.nb-tb .nb-m { font-weight: 500; color: var(--c-text); }
.nb-tb .nb-h.hl { background: var(--c-primary); color: #fff; font-weight: 700; }
.nb-tb .nb-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-tb .nb-v.hl {
  background: var(--c-primary-50); color: var(--c-primary-dark); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--c-primary);
}
.nb-tb .nb-m { color: var(--c-text); }
.nb-tb .nb-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px;
  font-size: 10px; line-height: 15px; vertical-align: 1px;
  color: var(--c-primary-dark); background: var(--c-primary-50);
  border: 1px solid var(--c-primary-100); border-radius: 4px;
}
.nb-tb .nb-u { display: block; font-style: normal; font-size: 10.5px; color: var(--c-text-3); margin-top: 1px; }
.nb-fall { margin: 6px 0 0; font-size: 11px; color: #8A5A00; }
.nb-none { margin: 0; padding: 9px 12px; font-size: 12px; color: var(--c-text-2);
  background: var(--c-bg-2); border: 1px dashed var(--c-border); border-radius: 10px; }
@media (max-width: 640px) {
  .nb-tb th, .nb-tb td { padding: 6px 7px; }
  .nb-tb thead th:nth-child(n+2), .nb-tb tbody td:nth-child(n+2) { padding-left: 4px; padding-right: 4px; }
}
/* 窄屏定额表（v10-188）：5 列在 360px 下会把「基准值 / 引导值」整列挤出可视区，
   而这两列恰是对标要看的结果。表头允许换行、指标列给四成宽、档位列各两成，四列同时进屏。 */
@media (max-width: 520px) {
  .nb-tb { font-size: 11.5px; }
  .nb-tb th, .nb-tb td { padding: 7px 5px; }
  .nb-tb thead th { font-size: 10.5px; padding: 6px 5px; white-space: normal; }
  .nb-tb thead th:first-child, .nb-tb tbody td:first-child { width: 42%; }
  .nb-tb thead th:nth-child(n+2), .nb-tb tbody td:nth-child(n+2) { width: 19.3%; }
}

/* 对标可视化：定额刻度 + 实际值条形 */
.bench { padding: 2px 0 4px; }
.bench:empty::after {
  content: '缺少建筑面积或用能人数，无法折算对标强度'; display: block;
  padding: 10px 0; font-size: 12px; color: var(--c-text-3);
}
.bn-row { margin-bottom: 18px; }
.bn-row:last-child { margin-bottom: 4px; }
.bn-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12.5px; margin-bottom: 7px;
}
.bn-name { color: var(--c-text-2); }
.bn-name b { color: var(--c-text); font-weight: 700; }
.bn-val { font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: 700; white-space: nowrap; }
.bn-unit { font-weight: 400; color: var(--c-text-3); font-size: 11px; }
.bn-track { position: relative; height: 22px; background: var(--c-bg-3); border-radius: 5px; }
.bn-fill {
  position: absolute; left: 0; top: 0; height: 22px; border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, #2E7CC4, #185FA5); transition: width .3s;
}
.bn-fill.is-under { background: linear-gradient(90deg, #17A277, #0F6E56); }
.bn-fill.is-over { background: linear-gradient(90deg, #E0902B, #B45309); }
.bn-mark { position: absolute; top: -3px; height: 28px; border-left: 2px dashed #AEB7C2; }
.bn-mark.is-target { border-left-style: solid; border-left-color: var(--c-primary-dark); }
.bn-scale {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin-top: 7px; font-size: 11px; color: var(--c-text-3);
}
.bn-tiers { display: inline-flex; flex-wrap: wrap; gap: 3px 12px; }
.bn-tiers b { color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.bn-verdict {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.bn-verdict.is-over { background: #FDF0E8; color: #B45309; }
.bn-verdict.is-under { background: var(--c-green-50); color: var(--c-green); }

/* ---------------- 明细表防横向溢出 ----------------
   固定列宽已保证表格不会被内容撑宽；窄屏只压紧内边距 */
@media (max-width: 800px) {
  .rd-tb td { padding-left: 4px; padding-right: 4px; }
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 800px) {
  .wz-step { padding: 11px 10px; gap: 8px; }
}
@media (max-width: 640px) {
  /* 步骤条 2×2 排布，杜绝横向滚动条 */
  .wz-steps { display: grid; grid-template-columns: 1fr 1fr; }
  .wz-step { border-right: none; border-bottom: 1px solid var(--c-border); }
  .wz-step:nth-child(even) { border-left: 1px solid var(--c-border); }
  .wz-step:nth-child(3), .wz-step:nth-child(4) { border-bottom: none; }
  .wz-t { font-size: 13px; }
  .wz-s { font-size: 11px; }
  .calc-card .grid-2, .calc-card .grid-3 { grid-template-columns: 1fr; }
  /* 单列后无对齐问题，允许标签换行 */
  .calc-card .grid-2 > .field > label,
  .calc-card .grid-3 > .field > label { white-space: normal; height: auto; line-height: 1.5; flex: initial; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-grid .field > label { white-space: normal; height: auto; line-height: 1.5; }
  .rd-f { display: none; }
  .rd-tb { font-size: 12px; }
  .rd-tb td:first-child { width: auto; }
  /* 金额列兜底：数值自适应「万/亿」后一般够放，极端值仍允许换行而不是溢出 */
  .rd-am { width: 76px; white-space: normal; overflow-wrap: anywhere; }
  /* 窄屏胶囊组：标签与提示各占一整行，胶囊平分整行宽度（4 档也放得下） */
  .seg-field { gap: 4px 8px; }
  .seg-field-lb { flex: 1 0 100%; }
  .seg-field-hint { flex: 1 0 100%; white-space: normal; overflow: visible; text-overflow: clip; }
  .seg-ctl { width: 100%; grid-auto-columns: minmax(0, 1fr); }
  .seg-ctl span { font-size: 12px; padding: 4px 6px; }
  /* 徽标内长 climate 说明允许断行，避免窄屏被顶出 */
  .nb { overflow-wrap: anywhere; }
  /* 徽标芯片（气候区说明/标准号等）允许换行，防止 nowrap 长标签撑破卡片 */
  .nb-chip { white-space: normal; overflow-wrap: anywhere; }
  /* 定额明细表：nowrap 单元格的最小宽度会顶破 1fr 网格列，改为容器内横向滚动 */
  .nb-table-wrap { overflow-x: auto; }
  /* 窄屏三格一行放不下：「← 上一步」＋「第 5 / 5 步」＋「下载项目报告」
     加起来就顶到 390 的边，位置文字提到上面独占一行，两按钮仍分两端（v10-198） */
  .wz-nav { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .wz-pos { order: -1; width: 100%; text-align: center; }
  /* 两按钮按内容宽：宁可两端留白，也不把按钮文字切开（v10-193）。
     width:auto 必须写——style.css 窄屏那条 `.btn-ghost{width:100%}`
     会把「← 上一步」撑满整行，导航从两行变三行（v10-198 踩过） */
  .wz-nav .btn, .wz-nav .btn-ghost { flex: 0 1 auto; width: auto; }
}

/* ---------------- 动效降级 ---------------- */
@media (prefers-reduced-motion: reduce) {
  .wz-step, .wz-no, .wz-toast { transition: none; }
}

/* ==========================================================================
   第 4 步：技改投资额估算
   ========================================================================== */
.m4-lede { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--c-text-2); }
.m4-lede b { color: var(--c-text); }

/* 系统现状台账：三列网格，列用 minmax(0,1fr) 防长文本撑破 */
.m4-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.m4-ledger .field { margin: 0; min-width: 0; }

.m4-chip {
  flex: none; margin-top: -1px; white-space: nowrap;
  font-size: 12px; font-weight: 500;
  color: var(--c-primary-dark); background: var(--c-primary-50);
  border-radius: 20px; padding: 4px 10px;
}

/* 措施清单：外层横向可滚动，内层给足最小宽度。
   min-width 从 .m4-tb 挪到表头与行上（v10-199）——折叠后分组 summary 若也被撑到
   688px，窄屏一进来就是横向滚动条，组名还看不全；现在只有行需要滚。
   v10-200：不再用 margin:-2px + padding:2px 互相抵消，直接对齐卡片内容框——
   否则清单比上面设备台账那组折叠条左右各宽 2px，两张卡并排看得出。 */
.m4-listwrap { overflow-x: auto; overflow-y: hidden; }
.m4-hd, .m4-row {
  display: grid;
  grid-template-columns: minmax(178px, 1.5fr) repeat(5, minmax(90px, 1fr));
  gap: 8px; align-items: center;
  min-width: 688px;
}
.m4-hd {
  padding: 0 0 7px; font-size: 11.5px; font-weight: 600; color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border-strong);
}
.m4-hd span:not(:first-child) { text-align: right; }
/* ---------------- 折叠行统一（v10-200）----------------
   第 4 步两处折叠：设备台账 7 个能源系统、改造措施清单 11 个分组。
   收起时都是一颗「浅灰底 + 细边框 + 8px 圆角」的条，右侧报摘要；
   展开内容接在条下方。v10-199 时两处各写一套（设备是卡片+灰底标题，
   措施是深蓝组名+虚线分隔），同一页两种长相，这里收成一组选择器。 */
.m4-grp { margin-top: 8px; }
.m4d-card, .m4-grp { background: transparent; }

.m4d-card > summary.m4d-hd,
.m4-grp > summary.m4-grp-h {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; row-gap: 4px;
  list-style: none; cursor: pointer; user-select: none;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 12.5px; font-weight: 600; color: var(--c-text);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border); border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.m4d-card > summary.m4d-hd::-webkit-details-marker,
.m4-grp > summary.m4-grp-h::-webkit-details-marker { display: none; }
.m4d-card > summary.m4d-hd::before,
.m4-grp > summary.m4-grp-h::before {
  content: ''; flex: none; width: 0; height: 0; opacity: .5;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s;
}
.m4d-card[open] > summary.m4d-hd::before,
.m4-grp[open] > summary.m4-grp-h::before { transform: rotate(90deg); }
.m4d-card > summary.m4d-hd:hover,
.m4-grp > summary.m4-grp-h:hover { background: var(--c-primary-50); border-color: #CFE0F2; }
/* 展开时条与内容之间留 6px；收起时不留，否则每个折叠多出一截空白 */
.m4d-card[open] > summary.m4d-hd,
.m4-grp[open] > summary.m4-grp-h { margin-bottom: 6px; }

.m4-grp-t { flex: none; }
/* 右侧摘要：两处同一字号、同一色阶，数字深一档 */
.m4-grp-n, .m4d-sum {
  font-size: 11.5px; font-weight: 500; color: var(--c-text-3);
  font-variant-numeric: tabular-nums; min-width: 0;
}
.m4-grp-n { margin-left: auto; text-align: right; }
.m4d-sum { flex: 1 1 auto; }
.m4-grp-n b, .m4d-sum b { font-weight: 600; color: var(--c-text-2); }
.m4-row { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.m4-row:last-child { border-bottom: none; }
.m4-row.is-off { opacity: .5; }

.m4-ck { display: flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; }
.m4-ck input { flex: none; width: 15px; height: 15px; accent-color: var(--c-primary); cursor: pointer; }
.m4-nm { font-size: 12.5px; line-height: 1.45; color: var(--c-text); }
.m4-rec {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--c-primary-dark); background: var(--c-primary-50);
  border-radius: 4px; padding: 1px 5px;
}

.m4-cell { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.m4-cell input {
  width: 100%; min-width: 0; box-sizing: border-box;
  font: inherit; font-size: 12px; font-variant-numeric: tabular-nums;
  text-align: right; padding: 5px 7px; background: #fff;
  border: 1px solid var(--c-border-strong); border-radius: 6px;
}
.m4-cell input:focus { outline: none; border-color: var(--c-primary); }
.m4-cell input:disabled { background: var(--c-bg-2); color: var(--c-text-3); }
.m4-u { flex: none; font-size: 11px; color: var(--c-text-3); white-space: nowrap; }
.m4-money { flex-direction: column; align-items: flex-end; gap: 0; }
.m4-money b { font-size: 13px; font-weight: 700; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.m4-money .m4-u { font-size: 10px; }

/* 来源等级徽标 */
.m4-lv {
  display: inline-block; margin-left: 3px; padding: 0 4px;
  font-size: 9.5px; font-weight: 700; line-height: 14px;
  border-radius: 3px; vertical-align: 1px; cursor: help;
}
.m4-lv.lv-A { background: #E4F4ED; color: #2E7D5B; }
.m4-lv.lv-B { background: #FBF3E2; color: #9A6A11; }
.m4-lv.lv-C { background: #FBE9E7; color: #B23C2E; }

/* 推荐理由 / 单价依据（小字，挂在行下方） */
.m4-meta { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1px; margin: -3px 0 3px; padding-left: 22px; }
.m4-meta i { font-style: normal; font-size: 10.5px; line-height: 1.5; color: var(--c-text-3); }
.m4-meta .m4-why { color: var(--c-primary-dark); }

.m4-none { margin: 6px 0; font-size: 12.5px; line-height: 1.65; color: var(--c-text-2); }

/* 与第 2 步定额空间互校 */
.m4-cmp { margin: 4px 0 14px; padding: 11px 13px; border-radius: 10px; background: var(--c-bg-2); }
.m4-cmp.is-good { background: #E4F4ED; }
.m4-cmp.is-warn { background: #FBF3E2; }
.m4-cmp.is-over { background: #E9F2FB; }
.m4-cmp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.m4-cmp-h b { font-size: 12.5px; color: var(--c-text); }
.m4-cmp-h span { font-size: 12px; font-weight: 600; color: var(--c-text-2); }
.m4-bar { margin: 8px 0 7px; height: 7px; border-radius: 4px; background: #fff; overflow: hidden; }
.m4-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c-primary); }
.m4-cmp.is-good .m4-bar i { background: #2E7D5B; }
.m4-cmp.is-warn .m4-bar i { background: #C08A18; }
.m4-cmp-t { margin: 0; font-size: 12px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.m4-cmp-n { margin: 5px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--c-text-2); }

/* 投资构成（按系统） */
.m4-groups { margin: 2px 0 12px; }
.m4-groups-h { margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.m4-gline {
  display: grid; grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 84px;
  align-items: center; gap: 9px; margin-bottom: 6px;
}
.m4-gn { font-size: 12px; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m4-gn em { font-style: normal; font-size: 10.5px; color: var(--c-text-3); margin-left: 4px; }
.m4-gbar { height: 8px; border-radius: 4px; background: var(--c-bg-2); overflow: hidden; }
.m4-gbar i { display: block; height: 100%; border-radius: 4px; background: var(--c-primary); }
.m4-gv { font-size: 12px; font-weight: 600; text-align: right; color: var(--c-text); font-variant-numeric: tabular-nums; }

.m4-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--c-border); font-size: 11px; line-height: 1.75; color: var(--c-text-3); }

/* 第 4 步汇总三卡横排（宽屏 3 列，窄屏降级） */
#r4-main .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .m4-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #r4-main .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .m4-ledger { grid-template-columns: minmax(0, 1fr); }
  #r4-main .metric-grid { grid-template-columns: minmax(0, 1fr); }
  .m4-gline { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 76px; gap: 7px; }
}

/* ==========================================================================
   空间身份色体系（6 色循环）
   每个空间拥有固定识别色，跨「标签条 / 当前空间面板 / ②设备卡 / ③措施卡 /
   能流图 / 投资构成」一致呈现，避免多空间下混淆。主色配浅底，均满足正文对比度。
   ========================================================================== */
:root {
  --sp-1: #185FA5; --sp-1-bg: #E6F1FB;
  --sp-2: #0F766E; --sp-2-bg: #E0F2F1;
  --sp-3: #6D4BA8; --sp-3-bg: #F1EBFB;
  --sp-4: #A96A0F; --sp-4-bg: #FBF1DF;
  --sp-5: #A8385F; --sp-5-bg: #FBE9F0;
  --sp-6: #2F6B3C; --sp-6-bg: #E9F4EC;
}
[data-sp="1"] { --sp: var(--sp-1); --sp-bg: var(--sp-1-bg); }
[data-sp="2"] { --sp: var(--sp-2); --sp-bg: var(--sp-2-bg); }
[data-sp="3"] { --sp: var(--sp-3); --sp-bg: var(--sp-3-bg); }
[data-sp="4"] { --sp: var(--sp-4); --sp-bg: var(--sp-4-bg); }
[data-sp="5"] { --sp: var(--sp-5); --sp-bg: var(--sp-5-bg); }
[data-sp="6"] { --sp: var(--sp-6); --sp-bg: var(--sp-6-bg); }
/* 空间名色签（②③卡标题、当前空间面板标题） */
.m4-spchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px 2px; border-radius: 999px;
  background: var(--sp-bg); color: var(--sp);
  font-size: 12.5px; font-weight: 600; vertical-align: 1px;
}
.m4-spchip::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp); flex: none;
}

/* ==========================================================================
   第 4 步 · 多空间（空间清单 / 用能基数 / 能流图）
   ========================================================================== */
/* ==========================================================================
   增删类按钮标准体系（全页统一视觉语言，圆角统一 7px）
   · 添加类＝白底虚线蓝描边 + 深蓝字，hover 转实线浅蓝底：.btn-add（区块级·新增空间）
     / .btn-mini（行内级·添加设备）
   · 主操作＝蓝底白字实心：.btn-space（复制此空间）
   · 删除类＝红描边，hover 红底：.btn-space.is-danger（删除空间）/ .m4d-del（条目×）
   ========================================================================== */
:root {
  --c-danger: #B23C2E;
  --c-danger-50: #FBEEEC;
  --c-danger-bd: #D9614E;
}
.btn-add, .btn-mini {
  font: inherit; font-weight: 500; color: var(--c-primary-dark);
  background: #fff; border: 1px dashed rgba(24, 95, 165, .45);
  border-radius: 7px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-add:hover, .btn-mini:hover {
  background: var(--c-primary-50); border-color: var(--c-primary); border-style: solid;
}
.btn-add { font-size: 12.5px; padding: 6px 12px; }
.btn-mini { font-size: 12px; padding: 4px 10px; }
.btn-add:active, .btn-mini:active { background: var(--c-primary-100); }

.m4-units { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.m4-utab {
  flex: 0 1 auto; min-width: 134px; max-width: 226px; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  font: inherit; padding: 9px 12px; cursor: pointer;
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-left: 3px solid var(--sp, var(--c-border-strong)); border-radius: 9px;
  transition: border-color .15s, background .15s;
}
.m4-utab:hover { border-color: var(--sp, var(--c-primary)); }
.m4-utab.is-on {
  background: var(--sp-bg, var(--c-primary-50));
  border-color: var(--sp, var(--c-primary)); border-left-color: var(--sp, var(--c-primary));
}
.m4-utab b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m4-utab b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sp, var(--c-border-strong)); flex: none; }
.m4-utab span { font-size: 11px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m4-utab em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--sp, var(--c-primary-dark)); }
.m4-utab:not(.is-on) em { color: var(--c-text-3); }

/* 当前空间融合面板：基本信息 + 用能数据同属一块（复制/新增整块带走） */
.m4-space {
  margin-top: 14px; padding: 13px 14px 14px;
  background: #fff; border: 1px solid var(--c-border-strong);
  border-left: 3px solid var(--sp, var(--c-border-strong));
  border-radius: 10px;
}
.m4-space-hd {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px;
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--c-border);
}
.m4-space-hd b { font-size: 13px; color: var(--sp, var(--c-primary-dark)); }
.m4-space-hd b::before { content: '▍'; margin-right: 2px; color: var(--sp, var(--c-primary)); }
.m4-space-hd span { font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.m4-space-act { margin-left: auto; display: flex; gap: 8px; }
/* 主操作：蓝底白字实心（复制此空间）；删除：红描边空心，hover 红底白字 */
.btn-space {
  font: inherit; font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--c-primary); border: 1px solid var(--c-primary);
  border-radius: 7px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.btn-space:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn-space.is-danger { background: #fff; color: var(--c-danger); border-color: var(--c-danger); box-shadow: none; }
.btn-space.is-danger:hover { background: var(--c-danger); color: #fff; }
.btn-space:disabled { opacity: .45; cursor: not-allowed; }
.btn-space:disabled:hover { background: #fff; color: var(--c-danger); }
.m4-editbox { border-top: 0; padding-top: 0; }
/* 折叠组件自带边框与底色，外层不再画虚线分隔，否则「框套框」 */
.m4-basebox { margin-top: 13px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.m4-basefold { margin: 0; }
.m4-ed { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.m4-ed.is-outdoor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.m4-ed .field { margin: 0; min-width: 0; }
.m4-ed-hint { margin: 9px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--c-text-3); }
.m4-ed-hint b { color: var(--c-text-2); }
.m4-ed-hint .m4-ed-note { display: block; margin-top: 2px; }
.m4-curname { color: var(--sp, var(--c-primary-dark)); }
/* ②③卡色签 = 空间标签选择器：外观与原色签一致，点击弹出空间标签面板 */
.m4-spwrap { position: relative; padding: 0 6px 0 9px; gap: 4px; cursor: pointer; }
.m4-spwrap .m4-curbtn {
  appearance: none; border: 0; margin: 0; padding: 0; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  color: var(--sp, var(--c-primary-dark));
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; max-width: 150px;
}
.m4-curb-nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m4-curbtn em { font-style: normal; font-size: 9px; opacity: .7; line-height: 1; }
.m4-spwrap:hover { box-shadow: inset 0 0 0 1px var(--sp, var(--c-primary)); }
.m4-sppanel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 140px;
  background: #fff; border: 1px solid var(--c-border-strong); border-radius: 9px;
  padding: 6px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 8px 22px rgba(15, 40, 80, .13);
}
.m4-sppanel[hidden] { display: none; }
.m4-sptag {
  display: flex; align-items: center; gap: 7px; font: inherit; font-size: 12px; line-height: 1.4;
  padding: 5px 9px; border: 0; border-radius: 7px; background: transparent;
  color: var(--c-text); cursor: pointer; text-align: left; white-space: nowrap;
}
.m4-sptag i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp, var(--c-primary)); flex: none; }
.m4-sptag:hover { background: var(--sp-bg, var(--c-bg-2)); color: var(--sp, var(--c-primary-dark)); }
.m4-sptag.is-cur { background: var(--sp-bg, var(--c-bg-2)); color: var(--sp, var(--c-primary-dark)); font-weight: 600; }
/* 投资构成（按空间）：色点 + 空间色进度条 */
.m4-gdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* 项目用能总量条（醒目提示） */
.m4-proj {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  margin: 10px 0 12px; padding: 9px 13px;
  background: #EDF4FC; border: 1px solid #C9DDF2; border-left: 3px solid var(--c-primary);
  border-radius: 8px; font-size: 12px; color: var(--c-text-2);
}
.m4-proj b { font-size: 12.5px; font-weight: 600; color: var(--c-primary-dark); margin-right: 2px; }
.m4-proj span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.m4-proj span i { font-style: normal; color: var(--c-text-3); }
.m4-proj span em { font-style: normal; font-size: 10.5px; color: var(--c-text-3); }
/* 总量条数值可点击跳转到来源步骤 */
.m4-proj .m4-pjump { cursor: pointer; border-radius: 5px; padding: 1px 4px; margin: -1px -4px; }
.m4-proj .m4-pjump:hover { background: #DCEAF9; }
.m4-proj .m4-pjump:hover em { color: var(--c-primary-dark); text-decoration: underline; }
.m4-proj .m4-pjump.is-na em { color: #B45309; font-weight: 600; }
.m4-proj .m4-pjump.is-na:hover { background: #FDF0E8; }

/* 用能基数折叠（v10-192）：这块是「覆盖项」，默认收起；
   收起时 summary 右侧一行报四项最终值。综合能耗行也在折叠区内（v10-194）。 */
.m4-base-n { margin: 2px 0 9px; font-size: 11.5px; line-height: 1.6; color: var(--c-text-3); }
.m4-bs-lead { font-style: normal; }
.m4-bs-lead::after { content: '·'; margin: 0 6px; color: var(--c-border-2, #C7D2DE); }
/* 每段单独 nowrap：窄屏只在项与项之间折行，不把「电力」和数字拆两行 */
.m4-bs-it { display: inline-block; white-space: nowrap; }
.m4-bs-it + .m4-bs-it::before { content: '·'; margin: 0 6px; color: var(--c-border-2, #C7D2DE); }
.m4-bs-it.is-man { color: var(--c-primary-dark); font-weight: 600; }
/* 窄屏摘要会折行，行首那个「·」很难看——只留间距（与第 5 步 .m5-fs-cmp 同一处理） */
@media (max-width: 640px) {
  .m4-bs-lead::after, .m4-bs-it + .m4-bs-it::before { content: ''; margin: 0 7px; }
}
/* 综合能耗行收进折叠区后作收尾（v10-194）：与四格之间留一点呼吸，其余沿用 .is-sum */
#f4-basetce { margin-top: 5px; }
#f4-basetce:empty { display: none; }
/* 三个能源科目 + 用水 横排卡片 */
.m4-bgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* 自动分摊 = 浅灰底；手动覆盖 = 鲜亮浅蓝底，一眼区分数据来源 */
.m4-bcol {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  padding: 8px 10px 7px; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: 8px;
}
.m4-bcol.is-man { border-color: var(--c-primary); background: var(--c-primary-50); }
.m4-bcol.is-over { border-color: #D9614E; background: #FDF3F1; }
.m4-bt { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m4-bt > span { font-size: 12px; font-weight: 600; color: var(--c-text-2); }
.m4-bcol.is-man .m4-bt > span { color: var(--c-primary-dark); }
.m4-bi { display: flex; align-items: center; gap: 6px; }
.m4-bline { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.m4-bn { font-size: 12px; color: var(--c-text-2); }
.m4-bin {
  width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 12.5px;
  font-variant-numeric: tabular-nums; text-align: right;
  padding: 5px 7px; background: #fff; border: 1px solid var(--c-border-strong); border-radius: 6px;
}
.m4-bin:focus { outline: none; border-color: var(--c-primary); }
.m4-bcol.is-man .m4-bin { border-color: var(--c-primary); background: #fff; }
.m4-bin.is-over, .m4-bcol.is-over .m4-bin { border-color: #D9614E; background: #FDF3F1; color: #B23C2E; }
.m4-bu { font-size: 11px; color: var(--c-text-3); white-space: nowrap; }
.m4-bs { font-size: 11px; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.m4-bcol.is-over .m4-bs { color: #B23C2E; font-weight: 600; }
.m4-bline.is-sum { border-top: 1px solid var(--c-border-strong); margin-top: 3px; padding-top: 8px; }
.m4-bline.is-sum b { font-size: 14px; font-weight: 700; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.m4-bx {
  font: inherit; font-size: 11px; color: var(--c-primary-dark);
  background: #fff; border: 1px solid var(--c-border-strong);
  border-radius: 6px; padding: 2px 7px; cursor: pointer; white-space: nowrap;
}
.m4-bx:hover { border-color: var(--c-primary); }
/* 科目卡来源步骤标注（可点击跳转） */
.m4-bs .m4-bgo { color: var(--c-primary-dark); }
/* 第 3 步未填年用水量时的禁用态 */
.m4-bcol.is-na { background: var(--c-bg-2); }
.m4-bcol.is-na .m4-bin { background: var(--c-bg-2); color: var(--c-text-3); cursor: not-allowed; }
/* 面积编辑行超限警示 */
.m4-ed-hint .m4-overwarn { color: #B23C2E; font-weight: 600; }
.m4-ed-hint .m4-overwarn::before { content: '⚠ '; }
#f4-u-area.is-over { border-color: #D9614E !important; background: #FDF3F1; color: #B23C2E; }

.m4-unitsum { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--c-border); font-size: 12.5px; line-height: 1.7; color: var(--c-text-2); }
.m4-unitsum b { color: var(--c-text); }
.m4-unitsum[data-sp] b:first-child { color: var(--sp); }
.m4-em { color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }

.m4-gl {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: #6B5B8C; background: #EFEBF7; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
}
.m4-warn { margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; background: #FBE9E7; }
.m4-warn p { margin: 0; font-size: 12px; line-height: 1.7; color: #8C3A2E; }
.m4-warn p + p { margin-top: 6px; }
.m4-warn b { color: #6E2A20; }

.m4-flow { margin: 4px 0 16px; padding: 13px 14px 9px; border-radius: 10px; background: var(--c-bg-2); }
.m4-flow-h { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.m4-flow-h em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--c-text-3); margin-left: 7px; }
.m4-flow svg { display: block; width: 100%; height: auto; }
.m4-lgds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.m4-lgd { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--c-text-2); }
.m4-lgd i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.m4-flow-note { margin: 6px 0 0; padding: 6px 10px; font-size: 11.5px; line-height: 1.6; color: var(--c-text-2); background: var(--c-bg-2); border-radius: 8px; border-left: 2px solid #888780; }

@media (max-width: 900px) {
  .m4-ed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m4-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .m4-ed { grid-template-columns: minmax(0, 1fr); }
  .m4-bgrid { grid-template-columns: minmax(0, 1fr); }
  .m4-utab { min-width: 116px; }
  .m4-flow { padding: 11px 9px 7px; }
  .m4-unitsum { font-size: 12px; }
  .m4-proj { gap: 4px 12px; }
}

/* ==========================================================================
   第 4 步 · 设备级台账（照明 / 空调 / 采暖 / 水泵风机）
   ========================================================================== */
.m4-sub {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  margin: 16px 0 9px; padding-bottom: 6px; border-bottom: 1px solid var(--c-border);
}
.m4-sub h5 { margin: 0; font-size: 13px; font-weight: 600; color: var(--c-text); }
.m4-sub-n { margin: 0; font-size: 11.5px; color: var(--c-text-3); }

.m4-devwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* 一个系统一颗条（v10-199 起折叠，v10-200 起与措施清单同一套外观）：
   summary 的样式统一在「折叠行统一」那组选择器里，这里只放本卡独有的部分 */
.m4d-body { padding: 0; }
.m4d-sum .m4d-lv { margin-left: 6px; vertical-align: 1px; }
.m4-non { color: var(--c-text-3); }
/* 按钮收窄才和措施条的 44px 齐平（原来一行比措施条厚 9px，两条并排看得出） */
.m4d-add { flex: none; margin-left: auto; padding: 3px 9px; font-size: 11.5px; }
/* 窄屏：系统名 + 摘要 + 按钮要挤在一行（七行各多一行就是七十多像素），
   先把「占本空间」四个字收掉、按钮与摘要一起收窄，实在不行才换行 */
@media (max-width: 640px) {
  .m4d-card > summary.m4d-hd,
  .m4-grp > summary.m4-grp-h { gap: 7px; padding: 8px 10px; }
  .m4d-sum { font-size: 11px; }
  .m4-grp-n { font-size: 11px; }
  .m4d-sum .m4d-lv { margin-left: 4px; }
  .m4d-sum-k { display: none; }
  .m4d-add { padding: 4px 8px; font-size: 11px; }
}

/* 卡面指标条：预估年能耗 + 占本空间比例 + 水平条 + 来源等级 */
.m4d-mrow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 9px 12px 0; }
.m4d-mk { font-size: 10.5px; color: var(--c-text-3); }
.m4d-mv { font-size: 13px; font-weight: 600; color: var(--c-text); font-variant-numeric: tabular-nums; }
.m4d-mp { font-size: 11.5px; color: var(--c-text-2); }
.m4d-mp b { color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.m4d-mbar { flex: 1 1 70px; min-width: 54px; height: 5px; border-radius: 3px; background: var(--c-bg-2); overflow: hidden; }
.m4d-mbar i { display: block; height: 100%; border-radius: 3px; background: var(--c-primary); }
.m4d-mrow.is-over .m4d-mbar i { background: var(--c-danger); }
.m4d-mrow.is-over .m4d-mp b { color: var(--c-danger); }
.m4d-mrow.is-bad .m4d-mv { font-weight: 500; color: var(--c-text-3); }
.m4d-warn {
  margin: 7px 12px 0; padding: 6px 9px; font-size: 11.5px; line-height: 1.6;
  color: var(--c-danger); background: var(--c-danger-50); border-radius: 7px;
}
.m4d-lv {
  flex: none; font-size: 10px; font-weight: 600; line-height: 15px; padding: 0 5px;
  border-radius: 4px; color: #0E6E52; background: #E1F5EE;
}
.m4d-lv.lv-C { color: #8C6A2E; background: #FBF3E2; }

/* 空态：常见设备标签（点一下生成带典型参数的设备行） */
.m4d-emptybox { padding-bottom: 2px; }
.m4d-qn { margin: 0 12px; font-size: 11px; color: var(--c-text-3); }
.m4d-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 12px 12px; }
.m4d-tag {
  font: inherit; font-size: 11.5px; line-height: 1; padding: 6px 10px; cursor: pointer;
  color: var(--c-primary-dark); background: #fff; border: 1px dashed rgba(24, 95, 165, .45);
  border-radius: 999px;
}
.m4d-tag:hover { background: var(--c-primary-50); border-style: solid; border-color: var(--c-primary); }
.m4d-tag:active { transform: scale(.97); }

/* 资源条件：轻量一行（只影响推荐，不参与计算） */
.m4-cond {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 12px 0 2px; padding: 9px 12px;
  border: 1px dashed var(--c-border-strong); border-radius: 9px; background: var(--c-bg-2);
}
.m4-cond-t { font-size: 11.5px; font-weight: 600; color: var(--c-text-2); }
.m4-cond-f { display: flex; align-items: center; gap: 6px; }
.m4-cond-f > span { font-size: 11.5px; color: var(--c-text-3); white-space: nowrap; }
.m4-cond-f > select {
  height: 28px; padding: 0 8px; font: inherit; font-size: 12px; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: 6px;
}
.m4-cond-f > select:focus { outline: none; border-color: var(--c-primary); }
.m4-cond-n { margin-left: auto; font-size: 11px; color: var(--c-text-3); }
.m4d-lede { margin: 9px 12px 0; font-size: 11.5px; line-height: 1.6; color: var(--c-text-3); }
.m4d-empty {
  margin: 9px 12px 12px; padding: 10px 11px; font-size: 11.5px; line-height: 1.7;
  color: var(--c-text-3); background: var(--c-bg-2); border-radius: 8px;
}
.m4d-empty b { color: var(--c-primary-dark); }
.m4d-list { padding: 9px 12px 2px; }
.m4d-row { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 30px 0 10px; }
.m4d-row + .m4d-row { border-top: 1px dashed var(--c-border); }
.m4d-f { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m4d-f > span { font-size: 10.5px; line-height: 14px; color: var(--c-text-3); white-space: nowrap; }
.m4d-f > select, .m4d-f > input {
  width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 12px;
  height: 28px; padding: 0 7px; background: #fff; border: 1px solid var(--c-border-strong);
  border-radius: 6px; font-variant-numeric: tabular-nums;
}
.m4d-f > input { text-align: right; }
.m4d-f > select:focus, .m4d-f > input:focus { outline: none; border-color: var(--c-primary); }
.m4d-f > em { position: absolute; top: 0; right: 0; font-style: normal; font-size: 10px; line-height: 14px; color: #98A2B3; }
.m4d-act { position: absolute; top: 4px; right: 0; display: flex; align-items: center; gap: 6px; }
.m4d-bad {
  font-style: normal; font-size: 10.5px; color: #8C6A2E;
  background: #FBF3E2; border-radius: 4px; padding: 1px 6px;
}
.m4d-del {
  font: inherit; font-size: 14px; line-height: 1; color: var(--c-danger); padding: 0;
  background: #fff; border: 1px solid rgba(217, 97, 78, .55); border-radius: 6px;
  width: 22px; height: 22px; cursor: pointer;
}
.m4d-del:hover { background: var(--c-danger-50); border-color: var(--c-danger); }
.m4d-hint { margin: 4px 12px 12px; font-size: 11.5px; color: var(--c-text-3); }
.m4d-hint b { color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }

.m4-dvt {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: #0E6E52; background: #E1F5EE; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
}
.m4-meta .m4-dev { display: block; color: #0E6E52; }
.m4-tgt {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 5px;
  padding: 4px 8px; background: var(--c-primary-50); border-radius: 7px;
}
.m4-tgt label { font-size: 11px; color: var(--c-text-2); }
.m4-tgt input, .m4-tgt select {
  font: inherit; font-size: 12px; padding: 3px 6px; width: 84px;
  background: #fff; border: 1px solid var(--c-border-strong); border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.m4-tgt input:focus, .m4-tgt select:focus { outline: none; border-color: var(--c-primary); }
.m4-tgt em { font-style: normal; font-size: 10.5px; color: var(--c-text-3); }

.m4-recon .m4-on { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--c-text-3); }
.m4-recon .m4-groups-h .m4-on { margin: 0 0 0 8px; display: inline; font-weight: 400; }
.m4-recon .m4-on b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.m4-gline.is-other .m4-gn { color: var(--c-text-3); }
.m4-gline.is-other .m4-gbar i { background: #C9C4B4; }
/* 采暖热源对账：电驱动热源单列（不计入热力/燃料口径），第三列放宽以容纳 GJ 值 */
.m4-recon-h .m4-gline { grid-template-columns: minmax(0, 156px) minmax(0, 1fr) minmax(0, 132px); }
.m4-gline.is-elec .m4-gn { color: var(--c-text-3); }
.m4-gbar.is-na i { background: #D8D3C4; }
@media (max-width: 560px) {
  .m4-recon-h .m4-gline { grid-template-columns: minmax(0, 92px) minmax(0, 1fr) minmax(0, 104px); }
}

/* 投资构成（按空间）：项目级单独一行 */
.m4-gline.is-proj .m4-gn { color: var(--c-text-2); }
.m4-gline.is-proj .m4-gn em { color: var(--c-text-3); }

/* 冷热源卡：字段随「功能」增减，宽屏一行放得下 */
.m4d-row[data-sys="src"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1080px) {
  .m4d-row[data-sys="src"] { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .m4d-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m4d-row[data-sys="src"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .m4d-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m4d-row[data-sys="src"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m4-tgt { flex-wrap: wrap; }
}

/* ==================== ⑤ 全项目汇总：结果报告版式（v10-83，宽松留白） ==================== */
#r4-main { display: flex; flex-direction: column; gap: 22px; }
#r4-main .metric-grid { gap: 14px; margin: 0; }
#r4-main .metric { padding: 16px 18px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(24, 95, 165, .10); }
#r4-main .mt-k { font-size: 12.5px; }
#r4-main .mt-v { margin-top: 5px; }
#r4-main .mt-v b { font-size: 30px; }
#r4-main .mt-s { margin-top: 5px; font-size: 11.5px; }
#r4-main .m4-warn { margin: 0; padding: 12px 15px; border-radius: 10px; }
#r4-main .m4-warn p { margin: 3px 0; font-size: 12px; line-height: 1.7; }
#r4-main .m4-cmp { margin: 0; padding: 15px 18px; border-radius: 12px; }
#r4-main .m4-cmp .m4-bar { margin-top: 10px; height: 8px; }
#r4-main .m4-cmp-t { margin-top: 9px; font-size: 12.5px; line-height: 1.7; }
#r4-main .m4-cmp-n { margin-top: 5px; font-size: 11.5px; line-height: 1.7; }
#r4-main .m4-groups { margin: 0; }
#r4-main .m4-groups-h { margin-bottom: 9px; font-size: 13px; }
#r4-main .m4-gline { padding: 7px 0; }
#r4-main .m4-gn { font-size: 12.5px; }
#r4-main .m4-gn em { font-size: 11px; }
#r4-main .m4-gv { font-size: 12.5px; }
#r4-main .m4-bar { height: 8px; }
#r4-main .m4-recon .m4-on { font-size: 12px; }
#r4-main .m4-foot { margin: 0; padding: 14px 2px 0; font-size: 11.5px; line-height: 1.85; }

/* ==================== ⑤ 全项目汇总：结果报告版式 v10-84 ====================
   分三层：结论（KPI 带）→ 构成（双环形图）→ 核验（堆叠条 + 对照条）
   全部纯内联 SVG / CSS 绘制，不引外部图表库------------------------------ */
#r4-main { display: flex; flex-direction: column; gap: 20px; }

/* ① KPI 指标带 */
.r4-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.r4-kpi { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 15px 17px 13px; }
.r4-kpi.is-key { background: #E9F2FB; border-color: #C6DCEF; }
.r4-kpi.is-green { background: #E4F4ED; border-color: #C8E6D7; }
.r4-kpi-k { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.r4-kpi.is-key .r4-kpi-k { color: var(--c-primary-dark); }
.r4-kpi.is-green .r4-kpi-k { color: var(--c-green); }
.r4-kpi-v { margin-top: 7px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.r4-kpi-v b { font-size: 29px; font-weight: 700; color: var(--c-text); }
.r4-kpi.is-key .r4-kpi-v b { color: var(--c-primary-dark); }
.r4-kpi.is-green .r4-kpi-v b { color: var(--c-green); }
.r4-kpi-v em { font-style: normal; margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--c-text-2); }
.r4-kpi-s { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--c-text-3); }

/* ② 区块卡片 */
.r4-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 18px 20px; }
.r4-chd { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 15px; }
.r4-chd h5 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--c-text); display: flex; align-items: center; }
.r4-chd h5::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--c-primary); margin-right: 9px; }
.r4-chd > span { font-size: 11.5px; color: var(--c-text-3); line-height: 1.5; }
.r4-warn { margin: 0; }

/* ③ 环形图 + 图例 */
.r4-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.r4-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.r4-donutsvg { flex: 0 0 auto; }
.r4-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 168px; min-width: 0; }
.r4-legend li.m4-lrow {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px dashed var(--c-border);
}
.r4-legend li.m4-lrow:last-child { border-bottom: none; }
.r4-ldot { width: 10px; height: 10px; border-radius: 2px; display: block; }
.r4-lnm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--c-text); }
.r4-lnm em { font-style: normal; color: var(--c-text-3); font-size: 11px; margin-left: 5px; }
.r4-lpv { font-size: 12px; color: var(--c-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ④ 100% 堆叠条（分项对账） */
.r4-stack { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--c-bg-2); }
.r4-stack i {
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 600; color: #fff;
  min-width: 0; overflow: hidden; white-space: nowrap;
}

/* ⑤ 对照条（两根等基准横条） */
.r4-cmprows { margin: 2px 0 4px; }
.r4-cmprow { display: grid; grid-template-columns: 160px minmax(0, 1fr) 100px; align-items: center; gap: 12px; padding: 8px 0; }
.r4-cmprow .lb { font-size: 12.5px; color: var(--c-text-2); }
.r4-cmprow .tr { height: 18px; border-radius: 5px; background: var(--c-bg-2); overflow: hidden; }
.r4-cmprow .tr i { display: block; height: 100%; border-radius: 5px; }
.r4-cmprow .vl { text-align: right; font-size: 12.5px; font-weight: 600; color: var(--c-text); font-variant-numeric: tabular-nums; }

/* ⑥ 徽标与脚注 */
.r4-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 11px; font-size: 11.5px; font-weight: 600; }
.r4-badge.is-good { background: #E4F4ED; color: #2E7D5B; }
.r4-badge.is-warn { background: #FBF3E2; color: #8C6A2E; }
.r4-badge.is-over { background: #E9F2FB; color: #185FA5; }
.r4-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--c-text-3); }
.r4-note b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.r4-note.r4-elec { padding: 9px 12px; border-radius: 8px; background: var(--c-bg-2); }
.r4-card.m4-cmp { border-width: 1px; }
.r4-card.m4-cmp.is-warn { background: #FDFAF3; border-color: #EBDCB7; }
.r4-card.m4-cmp.is-good { background: #F7FCF9; border-color: #CBE8DA; }
.r4-card.m4-cmp.is-over { background: #F7FBFE; border-color: #CADFF2; }
.r4-card.m4-cmp .m4-cmp-n { margin: 8px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--c-text-2); }

/* ⑦ 卡片底部操作条已整条删除（v10-197）：.calc-result .rep-actions 那条 margin-top 补偿也随之作废 */

@media (max-width: 900px) {
  .r4-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r4-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .r4-kpis { grid-template-columns: minmax(0, 1fr); }
  .r4-card { padding: 15px 15px; }
  .r4-kpi-v b { font-size: 25px; }
  .r4-cmprow { grid-template-columns: 100px minmax(0, 1fr) 80px; gap: 8px; }
  .r4-cmprow .lb { font-size: 11.5px; }
  .r4-legend li.m4-lrow { grid-template-columns: 10px minmax(0, 1fr); }
  .r4-lpv { grid-column: 2; color: var(--c-text-3); }
}

/* ==================== 移动端步骤导航（v10-85） ====================
   小屏（≤800px）不再用「多行吸顶步骤条」：顶部只留 40px 纤条报位置，
   跳转交给底部悬浮步进舱 + 底部抽屉；桌面（>800px）保持原吸顶步骤条不变。
   ------------------------------------------------------------------ */
.wz-strip, .wz-dock, .wz-sheet, .wz-sheet-mask { display: none; }
.wz-sheet[hidden], .wz-sheet-mask[hidden] { display: none !important; }

@media (max-width: 800px) {
  /* 原 2×3 吸顶网格退役，把它腾出来的高度还给表单 */
  .wz-steps { display: none; }
  .wz-panel { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  /* ① 顶部纤条：只报位置（点击也能开抽屉） */
  .wz-strip {
    display: flex; align-items: center; gap: 10px; width: 100%;
    position: sticky; top: var(--wz-top, 76px); z-index: 44;
    margin: 16px 0 0; padding: 8px 12px;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border: 1px solid var(--c-border); border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 29, 33, .08);
    font-family: inherit; text-align: left; cursor: pointer;
  }
  .wz-strip:active { background: var(--c-primary-50); }
  .wz-strip-no {
    flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
  }
  .wz-strip-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .wz-strip-txt b {
    font-size: 13px; font-weight: 600; color: var(--c-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wz-strip-txt i { font-style: normal; font-size: 10.5px; color: var(--c-text-3); }
  .wz-strip-seg { margin-left: auto; display: flex; gap: 4px; flex: 0 0 auto; }
  .wz-strip-seg i { display: block; width: 14px; height: 5px; border-radius: 3px; background: #DDE3EA; }
  /* 「填过的步」用淡蓝，不再用绿色：绿在这里会被读成「这步做完了」，
     v10-185 起步骤条不判完成，只报时间 */
  .wz-strip-seg i.done { background: #A7C6E4; }
  .wz-strip-seg i.on { background: var(--c-primary); }

  /* ② 底部步进舱：海军蓝渐变胶囊 + 进度环，拇指可达 */
  .wz-dock {
    display: inline-flex; align-items: center; gap: 9px;
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); z-index: 80;
    padding: 8px 16px 8px 8px; border: none; border-radius: 99px;
    background: linear-gradient(135deg, #2273BE 0%, #0C447C 100%);
    color: #fff; font-family: inherit; cursor: pointer;
    box-shadow: 0 10px 28px rgba(12, 68, 124, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: padding .2s ease, gap .2s ease, width .2s ease, height .2s ease;
  }
  .wz-dock:active { transform: translateX(-50%) scale(.96); }
  .wz-dock:focus-visible { outline: 2px solid #7EC2FF; outline-offset: 3px; }
  .wz-dock-ring { position: relative; width: 30px; height: 30px; flex: 0 0 auto; }
  .wz-dock-ring svg { display: block; width: 30px; height: 30px; }
  .wz-dock-ring b {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  }
  .wz-dock-t { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
  .wz-dock-t i {
    display: block; margin-top: 2px; font-style: normal;
    font-size: 10.5px; font-weight: 400; color: #A9C9E9;
  }
  .wz-dock-caret { display: flex; color: #A9C9E9; transition: transform .2s ease; }
  .wz-dock-caret svg { width: 11px; height: 8px; }
  .wz-dock[aria-expanded="true"] .wz-dock-caret { transform: rotate(180deg); }
  /* 输入聚焦时缩成圆钮并挪到右下角，绝不挡正在填的字段 */
  .wz-dock.is-mini {
    padding: 0; width: 46px; height: 46px; gap: 0; justify-content: center;
    left: auto; right: calc(14px + env(safe-area-inset-bottom, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
  .wz-dock.is-mini .wz-dock-t, .wz-dock.is-mini .wz-dock-caret { display: none; }

  /* ③ 抽屉：5 步一行一卡，状态双编码（图标 + 文字） */
  .wz-sheet-mask {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(9, 24, 40, .46); animation: wzFade .18s ease-out;
  }
  .wz-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
    background: #fff; border-radius: 18px 18px 0 0;
    padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 34px rgba(12, 68, 124, .22);
    max-height: 80vh; overflow-y: auto;
    animation: wzUp .22s cubic-bezier(.22, .9, .3, 1);
  }
  .wz-sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: #D8E0EA; margin: 2px auto 10px; }
  .wz-sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .wz-sheet-h b { font-size: 14px; font-weight: 700; color: var(--c-text); }
  .wz-sheet-h span { font-size: 11px; color: var(--c-text-3); }
  .wz-sheet-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 11px; margin-bottom: 7px;
    border: 1px solid var(--c-border); border-radius: 12px; background: #fff;
    text-align: left; font-family: inherit; cursor: pointer;
    transition: background .15s, border-color .15s;
  }
  .wz-sheet-row:last-child { margin-bottom: 0; }
  .wz-sheet-row:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
  .wz-sheet-row.is-cur {
    border-color: var(--c-primary); background: var(--c-primary-50);
    box-shadow: inset 0 0 0 1px var(--c-primary);
  }
  .wz-sheet-no {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-bg-3); color: var(--c-text-2);
    font-size: 12.5px; font-weight: 600;
  }
  /* 序号一律是数字：v10-185 起不再用绿勾（勾代表「做完」，这一版不判做完） */
  .wz-sheet-row.is-cur .wz-sheet-no { background: var(--c-primary); color: #fff; }
  .wz-sheet-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .wz-sheet-txt b { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
  .wz-sheet-row.is-cur .wz-sheet-txt b { color: var(--c-primary-dark); }
  .wz-sheet-txt i { font-style: normal; font-size: 11px; color: var(--c-text-3); margin-top: 1px; }
  .wz-sheet-go { margin-left: auto; color: var(--c-border-strong); font-size: 17px; line-height: 1; }
  .wz-sheet-row.is-cur .wz-sheet-go { color: var(--c-primary); }
}

@keyframes wzUp { from { transform: translateY(18px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes wzFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wz-sheet, .wz-sheet-mask { animation: none; }
  .wz-dock, .wz-dock-caret { transition: none; }
}

/* ==================== 第 5 步：托管可行性测算（v10-87） ==================== */
.m5-tbwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 窄屏表格横向可滑的提示：只在 ② 卡 ≤640px 出现（宽屏没有滚动，提示是噪音） */
.m5-swhint { display: none; margin: 6px 0 0; font-size: 11.5px; color: var(--c-text-3); }
/* ①② 两卡改上下单列：表格要放四列（项目/口径/参数/金额），两列并排会挤成两行 */
.m5-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }

/* 基准数据来源二选一：分品种测算 / 审计报告（v10-163 起改用统一的 .seg-field） */

/* 填报式三线表：项目 | 计算口径 | 参数（可填） | 年金额
   复用 .rd-tb 的细线/分组/小计/总计语法，只补表头、参数格与选中行 */
.m5-reptb { table-layout: fixed; }
.m5-reptb th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--c-text-3);
  padding: 0 6px 6px; border-bottom: 1px solid var(--c-border-strong);
}
.m5-reptb th.m5-num { text-align: right; }
/* table-layout:fixed 只认第一行（thead）的宽度，所以列宽必须写在 th 上，写在 td 上无效 */
/* 单价挪进「计算口径」列后，口径列要宽（算得上「3,000 × [0.72] 元/kWh」一整行），
   进项税率独占一个窄列，金额列定宽 */
.m5-reptb th:first-child { width: 22%; }
.m5-reptb th.m5-ch { width: auto; }
.m5-reptb th.m5-rtc { width: 88px; }
/* ② 卡第三列要放「70 %」「15 年」「6 %」这些参数框，比 ① 卡的进项列宽 */
.m5-reptb th.m5-prm, .m5-reptb .m5-prm { width: 116px; }
.m5-reptb th:last-child { width: 96px; }
.m5-reptb td { padding: 5px 6px; vertical-align: middle; }
.m5-reptb td:first-child { width: 22%; }
.m5-reptb .m5-rtc { width: 88px; }
.m5-reptb .rd-f { font-size: 11.5px; text-align: left; line-height: 1.5; }
.m5-reptb .rd-am { width: 100px; font-size: 12px; }
.m5-reptb .m5-pn { line-height: 1.5; }
/* 口径列的第二行说明（算式代入、折旧年限怎么取）：桌面也独占一行，
   否则会和主算式挤在同一行，读者分不清哪句是公式、哪句是注解 */
.m5-reptb .m5-fnote { font-size: 10.5px; color: var(--c-text-3); line-height: 1.45; }
.m5-reptb .m5-fnote-blk { flex: 0 0 100%; display: block; }
.m5-reptb .m5-fnote-blk .m5-pin { width: 44px; margin: 0 2px; }
/* 纯文字注解默认跟在主算式同一行（v10-160）：原来长注解在口径列里折成两三行，
   整张表行高忽高忽低。这里用 flex:0 0 auto —— 行内放得下就紧跟算式末尾（省一行高度），
   放不下才整个换到下一行；换行后仍超宽就省略号收尾，全文挂 title 悬停看。
   min-width:0 是省略号的开关，不加的话 flex 子项永远撑到内容宽度，省略号不出现。
   含输入框的注解不加这个类（nowrap 会把输入框裁掉）。 */
.m5-reptb .m5-fnote-1l {
  flex: 0 0 auto; display: block; min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* 与主算式之间必须有可见分界：只靠字号和灰度区分，同行时会读成一句连续的话 */
  margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--c-border-strong);
}
.m5-reptb .m5-fnote-1l[title] { cursor: help; }
/* 开票表小计行：主句与加权说明压成一句（v10-160）。td 不能用 .m5-fnote-1l
   （那条规则会把它设成 display:block，表格布局会塌），这里只借 overflow 裁剪 */
.m5-reptb td.rd-f.m5-f1 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m5-reptb td.rd-f.m5-f1[title] { cursor: help; }
.m5-reptb .m5-u { display: inline-block; margin-left: 5px; font-size: 10.5px; color: var(--c-text-3); font-style: normal; }
/* 单位跟用量同处一块：靠 .m5-fxm 的 gap 分隔，不再额外留 margin */
.m5-fxm .m5-u { margin-left: 0; font-size: 10.5px; }
.m5-reptb .m5-pcell { text-align: right; white-space: nowrap; }
.m5-reptb .rd-grp td { font-size: 11.5px; padding-top: 7px; padding-bottom: 5px; }
.m5-reptb .m5-grp2 td { font-size: 11px; font-weight: 400; color: var(--c-text-3); padding-top: 5px; padding-bottom: 4px; }
.m5-reptb .rd-sub td, .m5-reptb .rd-grand td { white-space: nowrap; }
.m5-reptb .rd-grand .rd-am { white-space: nowrap; }
/* 表内的跳转按钮：白底细边小胶囊，别用浏览器默认的黑框按钮 */
.m5-reptb .m5-jump {
  padding: 3px 9px; font-size: 11px; font-family: inherit; cursor: pointer;
  border: 1px solid var(--c-primary); border-radius: 5px;
  background: #fff; color: var(--c-primary); white-space: nowrap; line-height: 1.4;
}
.m5-reptb .m5-jump:hover { background: var(--c-primary-50, #EAF2FA); }
.m5-reptb .m5-jump:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }

.m5-pin {
  width: 64px; padding: 3px 5px; text-align: right; font-size: 12px;
  border: 1px solid var(--c-border-strong); border-radius: 5px;
  background: #fff; font-family: inherit; font-variant-numeric: tabular-nums;
}
.m5-pin:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24,95,165,.12); }
.m5-pin.m5-rt, .m5-rt { width: 38px; }
.m5-pu { margin-left: 3px; font-size: 10.5px; color: var(--c-text-3); font-style: normal; }
.m5-rtw { display: inline-flex; align-items: center; gap: 2px; margin-left: 7px; font-size: 10.5px; color: var(--c-text-3); }
.m5-dim { color: var(--c-text-3); font-style: normal; }

/* 口径列的算式：用量是可点的按钮（跳回第 1 步那个输入框），单价直接嵌在算式中 */
.m5-reptb .m5-fx { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
/* 「用量 × 单价 单位」整块不断行：拆开后在窄屏会变成一列一个元素，完全没法读 */
/* 分两组：「用量 单位」+「× 单价 单位」，各自 nowrap 但两组之间可整体换行。
   桌面两组同一行；窄屏放不下时第二组整块落到下一行，不会出现半个算式 */
.m5-fxm { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 5px; min-width: 0; }
.m5-fxq, .m5-fxp { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; min-width: 0; }
.m5-fxm-veh { gap: 4px; }
/* 可抵进项算式的两类小块：「名称+金额」「÷（1＋税率）× 税率」。
   各自不拆行、整块换行——窄屏口径列只有 146px，连成一块会横溢出格 */
.m5-vatx { display: inline-flex; align-items: center; flex: 0 0 auto; white-space: nowrap; }
.m5-fxo { color: var(--c-text-3); font-size: 11px; }
.m5-qbtn {
  padding: 0; border: none; background: none; font: inherit; cursor: pointer;
  color: var(--c-primary-dark); font-weight: 600; font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--c-primary); line-height: 1.35;
}
.m5-qbtn:hover { background: var(--c-primary-50); }
.m5-qbtn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.m5-reptb .m5-pf { width: 62px; }
/* ② 卡各品种节能率：三位数就够（0～100），再宽会把算式挤到下一行 */
.m5-reptb .m5-rsin { width: 46px; }
/* 单价做成来源链接：数字本身可点，跳到 ① 卡那个输入框 */
.m5-pbtn { font-weight: 600; }
/* 缺单价：不算进基准，行内轻提示（不用红色报警，避免吓人） */
.m5-need:empty { display: none; }
.m5-need {
  margin-left: 5px; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 600;
  color: #8A5A00; background: #FFF6E0; border: 1px solid #F0D79A; white-space: nowrap;
}
/* 「直接填金额」未填时的口径提示：告诉用户基准里确实没有运维费，不是算错 */
.m5-needtxt { color: #B54708; font-weight: 600; }
/* 车用燃料：列出但不进基准，整行压灰 */
.m5-reptb tr.m5-vrow td:first-child { color: var(--c-text-2); }
.m5-reptb tr.m5-vrow { background: var(--c-bg-2); }
.m5-veh {
  padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
  color: var(--c-text-3); background: #fff; border: 1px solid var(--c-border-strong); white-space: nowrap;
}
.m5-reptb .m5-jump-sm { padding: 2px 7px; font-size: 10.5px; }
/* 表尾引导行：还有其他品种没列出来 / 补水耗（水填在第 3 步，单独给入口） */
.m5-more td { padding: 7px 6px 2px; }
.m5-more .m5-jump { border-style: dashed; }
.m5-more .m5-jump + .m5-jump { margin-left: 8px; }
.m5-empty td { padding: 12px 6px; font-size: 12px; color: var(--c-text-3); text-align: center; }

/* 基准数据来源用统一的 .seg-field 胶囊组（v10-163），此处不再单写一套 id 覆盖 */

/* 计量口径三行：选中行浅蓝高亮；未选中行的金额一律给「—」（见 m5PaintBase 注释） */
.m5-reptb tr.m5-crow td:first-child { color: var(--c-text-2); }
.m5-reptb tr.m5-crow.is-cur { background: var(--c-primary-50); }
.m5-reptb tr.m5-crow.is-cur td:first-child { color: var(--c-primary-dark); font-weight: 600; }
.m5-reptb tr.m5-crow.is-cur .rd-am { color: var(--c-primary-dark); }
.m5-pick { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.m5-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.m5-pick i {
  flex: 0 0 auto; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--c-border-strong); background: #fff;
}
.m5-pick input:checked + i { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 3px #fff; }
.m5-pick input:focus-visible + i { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.m5-reportref { font-size: 11.5px; color: var(--c-text-3); line-height: 1.8; margin: 10px 0 0; }
.m5-reportref b { color: var(--c-text-2); }
.m5-reportref .m5-jump { margin-left: 8px; }

.m5-chip {
  font-size: 11.5px; font-weight: 600; color: var(--c-primary);
  background: var(--c-primary-50); border-radius: 99px; padding: 3px 10px; white-space: nowrap;
}

/* 指标表与现金流表 */
.m5-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.m5-tb th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--c-text-3);
  padding: 0 8px 7px; border-bottom: 1px solid var(--c-border-strong); white-space: nowrap;
}
.m5-tb td { padding: 7px 8px; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.m5-tb tbody tr:hover { background: var(--c-bg-2); }
.m5-tb tfoot td { font-weight: 700; color: var(--c-text); border-top: 1px solid var(--c-border-strong); border-bottom: none; }
.m5-num { text-align: right; }
/* 数字列的表头必须跟着数字右对齐（v10-178）。
   `.m5-tb th` 是 (0,1,1)、`.m5-num` 只有 (0,1,0)，特异性压不过，带 m5-num 的表头
   仍被摁成左对齐：表头靠左、下面的数值靠右，窄列（附加及印花 / 垫资利息 / 所得税）
   看着像整列错位。补一条同权重规则，「年份 / 项目 / 合计」这类没有 m5-num 的首列继续靠左。
   `.m5-kdtb thead th` 早就是「右对齐 + 首列回左」，两处保持一致 */
.m5-tb th.m5-num { text-align: right; }
.m5-idxtb td:first-child { white-space: normal; }
.m5-idxtb .m5-unit { width: 46px; padding-left: 10px; text-align: left; font-size: 12px; color: var(--c-text-2); }
.m5-cf { font-weight: 700; color: var(--c-text); }
.m5-cum { color: var(--c-primary-dark); }
.m5-tb .is-neg { color: var(--c-accent); }
.m5-turn td { background: var(--c-green-50); }
.m5-turn:hover td { background: var(--c-green-50); }

.m5-ul { list-style: none; display: grid; gap: 7px; font-size: 12.5px; color: var(--c-text-2); line-height: 1.65; }
.m5-ul li { padding-left: 12px; position: relative; }
.m5-ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--c-border-strong); }
.m5-ul b { color: var(--c-text); }
.m5-ul i { font-style: normal; color: var(--c-text-3); }

.m5-foot { font-size: 11.5px; color: var(--c-text-3); line-height: 1.7; margin-top: 12px; }

.m5-vatnote { font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; margin-top: 12px;
  padding: 10px 13px; border-radius: 7px; background: var(--c-bg-2);
  border-left: 3px solid var(--c-primary); }
.m5-vatnote:empty { display: none; }
.m5-vatnote b { color: var(--c-text); }

.m5-tipcard { font-size: 13px; color: var(--c-text-2); line-height: 1.75; margin-bottom: 14px;
  padding: 12px 15px; border-radius: 8px; background: #FFF8E8;
  border: 1px solid #F0D9A8; border-left: 3px solid #D89B1C; }
.m5-tipcard b { color: #8A5D00; }

/* 测算口径与数据来源：项目 / 取值 / 出处 / 跳转 */
/* 整块默认折叠（v10-165）：它是「核对用」的，14 行常年占掉一屏，把 9 项指标顶得太远。
   折叠态只留一行标题 + 右侧「展开 14 项」，想看的人自己点开 */
.m5-metahd { margin-bottom: 0; }
.m5-metahd .m5-metahint { margin-right: auto; }
.m5-meta.is-open .m5-metahd { margin-bottom: 15px; }
.m5-metabody[hidden] { display: none; }
.m5-foldbtn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--c-primary); background: transparent; cursor: pointer;
  border: 1px solid var(--c-border-strong); border-radius: 6px;
  padding: 4px 10px; line-height: 1.4; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.m5-foldbtn:hover { background: var(--c-primary-50, #EEF5FC); border-color: var(--c-primary); }
.m5-foldbtn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.m5-foldar {
  width: 0; height: 0; font-size: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s;
}
.m5-foldbtn[aria-expanded="true"] .m5-foldar { transform: rotate(180deg); }

.m5-srctb { font-size: 12.5px; }
.m5-srctb th { white-space: nowrap; }
.m5-srctb th:nth-child(2), .m5-srctb td:nth-child(2) { width: 170px; }
.m5-srctb td { padding-top: 9px; padding-bottom: 9px; }
.m5-srctb .m5-srclb { font-weight: 600; color: var(--c-text); white-space: nowrap; }
.m5-srctb .m5-srcv { font-weight: 700; color: var(--c-text); white-space: nowrap;
  font-variant-numeric: tabular-nums; padding-right: 22px; }
.m5-srctb .m5-srcfm { color: var(--c-text-2); font-size: 12px; line-height: 1.65; white-space: normal; }
.m5-srctb .m5-srcact { text-align: right; white-space: nowrap; width: 96px; }
.m5-srctb tr.is-bad .m5-srcv { color: var(--c-accent); }
.m5-srctb tr.is-bad .m5-srclb::after { content: '\5F85\8865'; font-size: 10.5px; font-weight: 600; color: var(--c-accent);
  border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 5px; vertical-align: 1px; }

/* 溯源跳转按钮（也用于节能量缺失引导卡） */
.m5-jump { border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-primary-dark);
  font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s; }
.m5-jump:hover { border-color: var(--c-primary); background: var(--c-primary-50, #EAF2FA); }
.m5-jump:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(24, 95, 165, .22); }
.m5-jump.is-main { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.m5-jump.is-main:hover { background: var(--c-primary-dark); color: #fff; }
.m5-tipact { display: inline-flex; gap: 8px; margin-left: 8px; flex-wrap: wrap; vertical-align: 1px; }
/* 定位到本步某张卡时闪一下，帮用户找到落点 */
@keyframes m5-flash { 0%, 100% { background: transparent; } 25%, 70% { background: rgba(216, 155, 28, .18); } }
.m5-flash { animation: m5-flash 1.05s ease-in-out; border-radius: 5px; }
input.m5-flash, select.m5-flash { animation: m5-flash 1.05s ease-in-out; border-radius: 7px; }
@media (prefers-reduced-motion: reduce) { .m5-flash { animation: none; } }

/* ④ 卡开头的合同条件块：上面三块基准已固定，这里才是可谈的商务条款。
   用浅蓝底与下方白底结果区区分，避免整张卡被当成只读结果。 */
.m5-contract { background: var(--c-primary-50, #EAF2FA); border: 1px solid #C6DCEF;
  border-radius: 12px; padding: 14px 16px 12px; margin-bottom: 16px; }
.m5-cthd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.m5-cthd b { font-size: 13.5px; color: var(--c-primary-dark); letter-spacing: .2px; }
.m5-cthd span { font-size: 11.5px; line-height: 1.65; color: var(--c-text-2); max-width: 720px; }
.m5-cthd span b { font-size: inherit; color: var(--c-primary-dark); }
.m5-contract .field-tip { color: var(--c-text-3); }
/* ② 卡折旧口径回显：托管期已迁到 ④ 卡，这里只交代取值来源 */
.m5-xref { margin: 9px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--c-text-2); }
.m5-xref b { color: var(--c-text); }
.m5-xref .m5-jump { margin-left: 8px; vertical-align: 1px; }

/* 现金流 11 列在窄屏需横向滚动，给一句可发现性提示（桌面不显示） */
.m5-swipe { display: none; }

.m5-vtext { font-size: 11.5px; color: var(--c-text-3); line-height: 1.7; margin-top: 6px; }
.m5-vtext b { color: var(--c-text-2); }

/* 服务商成本三块总览（能源资源使用费 / 运行管理维护费 / 技改投资摊销） */
.m5-costlead { font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; margin: 2px 0 10px; }
.m5-costlead b { color: var(--c-text); }
/* 服务商成本三块总览：与「指标计算过程」同一套三线表（项目 / 计算口径 / 年金额），
   分组行区分现金口径与会计口径，小计与合计沿用 .rd-sub / .rd-grand */
.m5-costnote { font-size: 11.5px; color: var(--c-text-3); line-height: 1.7; margin: 8px 0 18px; }
.m5-costnote b { color: var(--c-text-2); }

/* 开票方式 / 留抵处理两个开关：v10-163 起并入统一的 .seg-field 胶囊组，
   此前这里的 id 覆盖一并删除（同一交互不再有第二套尺寸/选中态） */

/* ==================== d–IRR 曲线（v10-168） ====================
   折扣率是 ④ 卡里唯一真正要谈的条款，但输入框看不出「还能让到哪」。
   图上：横轴 d（−5%～10%）、纵轴 IRR，绿底＝可成交区间，两条虚线＝基准收益率与资金成本，
   红点＝当前方案。曲线本身是 SVG 手绘（与第 4 步能流图同一套做法），不引图表库。
   宽度由 JS 按容器像素定 viewBox（1:1 映射），窄屏不缩字号，只减元素与折行图例。 */
.m5-curve { margin: 0 0 16px; padding: 13px 15px 9px; border: 1px solid var(--c-border);
  border-radius: 12px; background: #fff; }
/* 第 5 步 ⑤ 情景分析（v10-188）：曲线与敏感性已独立成卡，内部面板不再自带外框 */
.m5-scen .m5-curve, .m5-scen .m5-sens {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.m5-scen .m5-sens { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--c-border); }
.m5-cvhd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.m5-cvhd b { font-size: 13.5px; color: var(--c-primary-dark); letter-spacing: .2px; }
.m5-cvhd span { font-size: 11.5px; line-height: 1.6; color: var(--c-text-3); }
.m5-cvwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m5-cvwrap svg { display: block; width: 100%; height: auto; }
.m5-cvempty { margin: 14px 2px; font-size: 12.5px; color: var(--c-text-3); }
.m5-cvfoot { margin: 6px 0 0; font-size: 12px; line-height: 1.75; color: var(--c-text-2); }
.m5-cvfoot:empty { display: none; }
.m5-cvfoot b { color: var(--c-text); }
.m5-cvfoot .m5-cv-em { color: var(--c-primary-dark); font-weight: 700; }
.m5-cvfoot.is-warn { color: #8A5A00; }
.m5-cvfoot.is-warn b { color: #6B4400; }
.m5-cvfoot.is-warn .m5-cv-em { color: #6B4400; }

/* ==================== 敏感性分析（v10-170） ====================
   与曲线同一套外壳：标题行 + 图容器 + 一句话结论。图仍是 SVG 手绘，
   宽度由 JS 按容器像素定 viewBox（1:1 映射），不做横向滚动。
   和曲线不同，这里不设 min-width——龙卷风图的条形本身是可伸缩的，
   缩到 276px 也不会丢信息（窄屏改成「标签一行 + 杠一行」）。 */
.m5-sens { margin: 0 0 16px; padding: 13px 15px 9px; border: 1px solid var(--c-border);
  border-radius: 12px; background: #fff; }
/* 820 与 JS 里 W 的上限同值：只有五行，按 1050 铺满会被拉成一条横幅，
   条形离右端数值隔着一大片空白。
   宽屏停在 820 并左右居中（v10-177）：左对齐时整幅图贴卡片左边、
   右侧空出一大片，看着像没画完；居中后左右留白对称，图是「一张图」而不是「半张表」。
   窄屏（容器 < 820）max-width 不起作用，居中自然归零 */
.m5-snwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 820px; margin: 0 auto; }
.m5-snwrap svg { display: block; width: 100%; height: auto; }

/* 成本表尾部的指引行：告诉用户「税负开关不在这张卡上」 */
.m5-vat-hintrow td { padding: 4px 8px 8px; }
.m5-vat-hintrow-t {
  display: inline-block; font-size: 11.5px; color: var(--c-primary-dark);
  background: var(--c-primary-50); border-radius: 6px; padding: 3px 9px;
}

/* 两口径对照：四列「项目 / 全额服务费 / 能源转开＋差额 / 差在哪」。
   差在哪一列带符号与颜色——涨绿跌红按中国市场习惯，差值本身不做好坏判断，
   因为留抵高不代表更好（不产生现金），所以差值只用中性色 + 箭头说明方向 */
.m5-vatcmp { margin: 4px 0 2px; }
.m5-vatcmp-tb { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.m5-vatcmp-tb th {
  padding: 6px 8px; text-align: right; font-weight: 600; font-size: 11.5px;
  color: var(--c-text-2); background: #fff; border-bottom: 1px solid var(--c-border-strong);
}
.m5-vatcmp-tb th:first-child { text-align: left; }
.m5-vatcmp-tb th.is-on { color: var(--c-primary-dark); background: var(--c-primary-50); }
.m5-vatcmp-tb td {
  padding: 6px 8px; text-align: right; white-space: nowrap;
  border-bottom: 1px solid var(--c-border); color: var(--c-text);
}
.m5-vatcmp-tb td:first-child { text-align: left; color: var(--c-text-2); white-space: normal; }
.m5-vatcmp-tb td.is-on { font-weight: 700; color: var(--c-primary-dark); background: rgba(24, 95, 165, .05); }
.m5-vatcmp-tb td.is-diff { color: var(--c-text-2); font-size: 11.5px; }
.m5-vatcmp-note { font-size: 11.5px; color: var(--c-text-3); line-height: 1.7; margin: 7px 0 0; }
.m5-vatcmp-note b { color: var(--c-text-2); }

/* 2×2 交叉表（留抵口径 × 开票方式）：每格上面 NPV、下面 IRR。
   这张表回答的是「先定承接主体性质，再定开票方式」，比主对照表更前置，
   所以放在主对照表之后、读法说明之前 */
.m5-vatgrid-tb {
  width: 100%; border-collapse: collapse; font-size: 12px;
  font-variant-numeric: tabular-nums; margin-top: 10px;
}
.m5-vatgrid-tb th {
  padding: 6px 8px; text-align: right; font-weight: 600; font-size: 11.5px;
  color: var(--c-text-2); background: #fff; border-bottom: 1px solid var(--c-border-strong);
}
.m5-vatgrid-tb th:first-child { text-align: left; width: 34%; }
.m5-vatgrid-tb th.is-on { color: var(--c-primary-dark); background: var(--c-primary-50); }
.m5-vatgrid-tb td {
  padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--c-border);
  color: var(--c-text); line-height: 1.45;
}
.m5-vatgrid-tb td:first-child { text-align: left; color: var(--c-text-2); }
.m5-vatgrid-tb td.is-on { background: rgba(24, 95, 165, .07); box-shadow: inset 0 0 0 1px var(--c-primary-50); }
.m5-vatgrid-tb td b { font-size: 13px; }
.m5-vatgrid-tb td b.is-pos { color: var(--c-green); }
.m5-vatgrid-tb td b.is-neg { color: var(--c-accent); }
.m5-vg-irr { display: block; font-style: normal; font-size: 11px; color: var(--c-text-3); margin-top: 1px; }

/* 开票与税负拆分表：五列「构成 / 口径 / 税率 / 含税金额 / 销项税」，
   table-layout:fixed 只认 thead 的宽度，所以列宽全部写在 th 上 */
.m5-reptb-inv th:first-child { width: 26%; }
.m5-reptb-inv th.m5-ch { width: 30%; }
.m5-reptb-inv th.m5-rtc { width: 12%; }
.m5-reptb-inv th:nth-child(4) { width: 16%; }
.m5-reptb-inv th:nth-child(5) { width: 16%; }
.m5-reptb-inv .rd-sub td { font-weight: 600; }
.m5-reptb-inv .rd-sub td:first-child { color: var(--c-text); }
/* 逐品种明细行（v10-159）：缩进 + 小圆点 + 略小字号，
   与上方分组行、下方小计行区分开；不改行高节奏，明细多了也不会把表撑散 */
.m5-reptb-inv .m5-inv-d td { font-size: 11.5px; }
.m5-reptb-inv .m5-inv-d td:first-child { padding-left: 22px; color: var(--c-text-2); position: relative; }
.m5-reptb-inv .m5-inv-d td:first-child::before {
  content: ''; position: absolute; left: 10px; top: 50%; margin-top: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--c-primary); opacity: .45;
}
.m5-reptb-inv .m5-inv-d .rd-am { font-size: 11.5px; color: var(--c-text-2); }

/* 核心指标 9 张卡：点开看该项计算过程 */
.m5-kpic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.m5-kc { cursor: pointer; position: relative; padding-right: 30px; transition: border-color .15s, background .15s, box-shadow .15s; }
.m5-kc:hover { border-color: var(--c-primary); box-shadow: 0 2px 10px rgba(24, 95, 165, .1); }
.m5-kc:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(24, 95, 165, .22); }
.m5-kc .r4-kpi-k { font-size: 12px; }
.m5-kc .r4-kpi-v b { font-size: 23px; }
.m5-kc .r4-kpi-s { min-height: 2.6em; }
/* v10-171：IRR 无解时补一行口径说明（按期初投资口径的参考值）。
   橙色只用于「这格为什么是空的」，与主副标题的灰字分开 */
.m5-kc .r4-kpi-s2 { margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.m5-kc::after { content: '\25BE'; position: absolute; right: 13px; top: 13px; font-size: 11px; line-height: 1; color: var(--c-text-3); }
.m5-kc.is-open { border-color: var(--c-primary); background: var(--c-primary-50, #EAF2FA); }
.m5-kc.is-open::after { content: '\25B4'; color: var(--c-primary); }
.m5-kc.is-open .r4-kpi-v b { color: var(--c-primary-dark); }

/* 变化角标：相对「全额托管 d＝0」的增减。箭头表示数值方向，颜色表示好坏 */
.m5-dv { display: inline-block; margin-left: 7px; padding: 1px 5px; border-radius: 5px;
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0;
  vertical-align: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m5-dv.is-good { background: #E4F4ED; color: #2E7D5B; }
.m5-dv.is-bad { background: #FDECEA; color: var(--c-accent); }

/* 展开的计算过程 */
.m5-kcd { margin-top: 12px; padding: 15px 17px; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: 12px;
  animation: m5-kcd-in .18s ease-out; }
@keyframes m5-kcd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .m5-kcd { animation: none; } }
.m5-kcd[hidden] { display: none; }
.m5-kcd-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.m5-kcd-hd b { font-size: 13px; color: var(--c-text); }
.m5-kcd-hd span { font-size: 11.5px; color: var(--c-text-3); }
.m5-kcd-x { margin-left: auto; border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-text-2);
  font-size: 11.5px; padding: 3px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.m5-kcd-x:hover { border-color: var(--c-primary); color: var(--c-primary); }
.m5-kdfm { max-width: 760px; font-size: 12.5px; line-height: 1.7; color: var(--c-text); background: #fff;
  border: 1px dashed var(--c-border-strong); border-radius: 8px; padding: 9px 12px; margin-bottom: 11px;
  font-variant-numeric: tabular-nums; }
.m5-kdlist { display: grid; gap: 6px; max-width: 760px; }
.m5-kdlist-2 { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--c-border-strong); }
.m5-kdrow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 12.5px; color: var(--c-text-2); }
.m5-kdrow b { color: var(--c-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m5-kdrow.is-sum { margin-top: 3px; padding-top: 8px; border-top: 1px dashed var(--c-border-strong); font-weight: 700; }
.m5-kdrow.is-sum b { color: var(--c-primary-dark); font-size: 14px; }
/* 收入拆分两行：缩进 + 小一号，表示是上一条的组成部分而非并列项 */
.m5-kdrow.is-sub { padding-left: 16px; font-size: 11.5px; color: var(--c-text-3); }
.m5-kdrow.is-sub b { font-size: 11.5px; font-weight: 600; color: var(--c-text-2); }
.m5-kdrow.is-bad b { color: var(--c-accent); }
/* 详情面板插在卡片网格内部，占满整行并紧贴上一行 */
.m5-kpic .m5-kcd { grid-column: 1 / -1; margin-top: 0; }
.m5-kdnote { max-width: 760px; font-size: 11.5px; line-height: 1.75; color: var(--c-text-3); margin-top: 11px; }
.m5-cdtb { max-width: 720px; font-size: 12px; }
.m5-cdtb td, .m5-cdtb th { padding-top: 5px; padding-bottom: 5px; }
/* 指标计算过程＝财务核算表：直接复用第 1/2 步的 .rd-tb 三线表，这里只补表头与正负色 */
.m5-kdtb { max-width: 980px; }
/* 计算式列要放得下「B ×（1 − d）÷ 1.06 ＝ 723.6 ×（1 − 10%）÷ 1.06」这类整式，
   所以首列收窄、金额列定宽，把余量留给计算式，避免算式折成两行 */
.m5-kdtb td:first-child, .m5-kdtb thead th:first-child { width: 27%; }
.m5-kdtb .rd-am { width: 104px; }
/* 行高比第 1 步略紧：首年现金流那张表 14 行，收紧后正好一屏放得下 */
.m5-kdtb td { padding-top: 5px; padding-bottom: 5px; }
.m5-kdtb thead th {
  font-size: 11px; font-weight: 600; color: var(--c-text-3); text-align: right;
  padding: 2px 6px 7px; border-bottom: 1px solid var(--c-border-strong); white-space: nowrap;
}
.m5-kdtb thead th:first-child { text-align: left; }
.m5-kdtb .rd-am.is-neg { color: var(--c-accent); }
/* 正数沿用默认的深蓝：国内报表用红色标负数，绿色反而会被读成「跌/差」 */
.m5-kdtb .rd-sub .rd-am.is-neg { color: var(--c-accent); }
.m5-kdtb .rd-grand .rd-am.is-neg { color: var(--c-accent); }

/* 641~800（平板 / 小笔记本）：口径列还够宽，但首列 22% 只落 147px，
   「其中：设备维修与材料」10 个字在 12.5px 下要 125px，加内边距正好差半字，
   末尾那个「料」被甩到第二行。给到 24% 才留得住。 */
@media (min-width: 641px) and (max-width: 800px) {
  .m5-reptb th:first-child, .m5-reptb td:first-child { width: 24%; }
}

@media (max-width: 640px) {
  /* 窄屏：「计算口径」列不能藏——单价、节能率、运维三档都填在这一列里。
     thead 必须留着——table-layout:fixed 靠第一行定列宽，整块 display:none 会退化成 auto 布局。 */
  /* ② 卡窄屏（v10-189）：原来是藏掉「进项税率」整列，等于手机上改不了税率，
     还只在脚注里说「请去电脑端」。现在给表格一个最小宽度、让容器横向滚动，
     四列都留在表里，税率照常可填（`.m5-tbwrap` 本来就是 overflow-x:auto）。 */
  .m5-reptb-cost { min-width: 448px; }
  .m5-reptb-cost th:first-child, .m5-reptb-cost td:first-child { width: 29%; }
  .m5-reptb-cost th.m5-ch { width: auto; }
  .m5-reptb-cost th.m5-rtc, .m5-reptb-cost .m5-rtc { width: 74px; }
  .m5-reptb-cost th:last-child, .m5-reptb-cost .rd-am { width: 84px; }
  .m5-swhint { display: block; }
  /* ① 卡（v10-152 起三列）：本来就只剩三列，不用藏任何列。
     这里绝不能沿用旧写法 :not(.m5-reptb-inv)——那会把 ① 卡的第 3 列（年金额）当税率列藏掉，
     页面上只剩项目名和算式、一分钱都看不到。 */
  .m5-reptb-base th:first-child, .m5-reptb-base td:first-child { width: 34%; }
  .m5-reptb-base th.m5-ch { width: 46%; }
  .m5-reptb-base th:last-child, .m5-reptb-base .rd-am { width: 20%; }
  /* 首列名称在 110px 里放下 8 个字：字号收到 12.5px，避免「其/中：设备及材/料」那种一字一行 */
  .m5-reptb .m5-pn, .m5-reptb .rd-sub td:first-child, .m5-reptb th:first-child { font-size: 12.5px; }
  /* 分项行缩进在窄屏收窄：21px 会从 110px 的首列里再挖走一块，「其中：设备及材料」被挤成两行 */
  .rd-tb tr.is-subit > td:first-child { padding-left: 13px; }
  .rd-tb tr.is-subit > td:first-child::before { left: 5px; }
  /* ② 卡开票拆分表窄屏：藏「计算口径」（纯说明），税率/含税/销项三列 + 项目名 40/20/20/20 */
  .m5-reptb-inv th.m5-ch, .m5-reptb-inv td:nth-child(2) { display: none; }
  /* v10-159：明细行出现后第一列要放「能源资源费转开合计」这类长名，
     40% 会把最后两字挤到第二行，放宽到 44%；数值列留 20% 才放得下「含税金额」四个表头字 */
  .m5-reptb-inv th:first-child { width: 44%; }
  .m5-reptb-inv th.m5-rtc { width: 16%; }
  .m5-reptb-inv th:nth-child(4) { width: 20%; }
  .m5-reptb-inv th:nth-child(5) { width: 20%; }
  .m5-reptb-inv td:first-child { width: 44%; }
  .m5-reptb-inv .m5-inv-d td:first-child { padding-left: 16px; }
  .m5-reptb-inv .m5-inv-d td:first-child::before { left: 6px; }
  /* ② 卡窄屏：开票方式已归位到 ④ 卡（v10-161），这里只管对照表与 2×2 交叉表 */
  .card-hd { flex-wrap: wrap; }
  /* 开票方式已归位到 ④ 卡（v10-161）、与留抵处理共用 .seg-field（v10-163），
     窄屏拆行规则收在通用规则里，这里只管对照表与 2×2 交叉表 */
  /* 2×2 交叉表窄屏：行名压到 32%，两列各 34%，NPV 与 IRR 仍在一格内竖排。
     表头「能源转开＋差额」在 92px 列宽里会被拆成三行，靠缩字号 + 收内边距压成两行 */
  .m5-vatgrid-tb th:first-child { width: 32%; }
  .m5-vatgrid-tb td:first-child { width: 32%; }
  .m5-vatgrid-tb th:nth-child(2), .m5-vatgrid-tb th:nth-child(3) { width: 34%; }
  .m5-vatgrid-tb th { padding: 5px 3px; font-size: 10.5px; line-height: 1.35; }
  .m5-vatgrid-tb td { padding: 6px 5px; font-size: 11.5px; }
  .m5-vatgrid-tb td b { font-size: 12px; }
  /* 主对照表同样收一收表头内边距，否则「能源转开＋差额」也容易顶成三行 */
  .m5-vatcmp-tb th { padding: 5px 5px; font-size: 11px; }
  .m5-vatcmp-tb th:nth-child(4), .m5-vatcmp-tb td:nth-child(4) { display: none; }
  /* 窄屏：单位后缀藏掉（表头下方已交代单位是万元），行名才不会被折成两行 */
  .m5-vatcmp-tb .m5-vcmp-u { display: none; }
  .m5-vatcmp-tb th:first-child { width: 40%; }
  /* 表格没设 table-layout:fixed，第一列会被后两列的 nowrap 挤成最窄，
     「其中：留抵变现收益」会被拆成三行——窄屏只有 3 列，直接切成 fixed 布局，
     40/30/30 才真的按比例落下去 */
  .m5-vatcmp-tb, .m5-vatgrid-tb { table-layout: fixed; }
  .m5-vatcmp-tb th:first-child { width: 42%; }
  /* 「其中：留抵变现收益」9 个字在 11.5px 下刚好 103.5px，比 40% 列宽多出半字，
     末尾那个「益」会被甩到第三行——列宽给到 42%、字号降到 11px 才留得住 */
  .m5-vatcmp-tb td:first-child { width: 42%; }
  .m5-vatcmp-tb th:nth-child(2), .m5-vatcmp-tb th:nth-child(3) { width: 29%; }
  .m5-vatcmp-tb td { padding: 6px 5px; font-size: 11px; }
  .m5-reptb .m5-pf { width: 44px; }
  .m5-reptb .m5-pu { font-size: 9.5px; margin-left: 1px; }
  .m5-reptb .m5-fxm { gap: 1px 4px; }
  .m5-fxo { font-size: 10px; }
  /* 金额列不许折行：11 位数字在 55px 里会断成「2,160.0 / 0」 */
  .m5-reptb .rd-am { font-size: 10.5px; white-space: nowrap; padding-left: 2px; padding-right: 3px; }
  /* ② 卡窄屏：与 ① 卡同一条规则（藏第三列），已在上方统一处理，这里不再另写 */
  .m5-reptb .m5-rsin { width: 38px; }
  .m5-reptb .m5-fx { gap: 2px; }
  .m5-pin { width: 54px; padding: 3px 4px; font-size: 11.5px; }
  /* 单位已并入「用量 单位 × 单价」整块，不能再 display:block（会把它挤到独立一行） */
  .m5-reptb .m5-u { display: inline; margin-left: 0; font-size: 9.5px; line-height: 1.3; }
  /* 口径列里的尾巴说明换到下一行，别把算式挤断 */
  .m5-reptb .m5-fnote { flex: 0 0 100%; font-size: 10px; color: var(--c-text-3); line-height: 1.35; }
  .m5-reptb .m5-need, .m5-reptb .m5-veh { display: inline-block; margin-top: 2px; }
  .m5-reptb .rd-sub td, .m5-reptb .rd-grand td { white-space: normal; }
  .m5-reptb .m5-jump { padding: 2px 6px; font-size: 10.5px; }
  .m5-tb { font-size: 12px; }
  .m5-tb th, .m5-tb td { padding-left: 6px; padding-right: 6px; }
  .m5-swipe { display: block; text-align: right; font-size: 11.5px; color: var(--c-text-3); margin-top: 8px; }
  /* 溯源表在窄屏改卡片式：一行一块，值加粗、出处换行、按钮独占一行 */
  .m5-srctb thead { display: none; }
  .m5-srctb, .m5-srctb tbody, .m5-srctb tr, .m5-srctb td { display: block; width: 100%; }
  .m5-srctb tr { border: 1px solid var(--c-border); border-radius: 8px; background: #fff;
    padding: 9px 11px; margin-bottom: 8px; }
  .m5-srctb td { border: none !important; padding: 1px 0 !important; text-align: left; white-space: normal; }
  .m5-srctb .m5-srcv { font-size: 14px; padding-right: 0; }
  .m5-srctb .m5-srcfm { font-size: 11.5px; }
  .m5-srctb .m5-srcact { text-align: left; padding-top: 7px !important; width: auto; }
  .m5-srctb tr.is-bad { border-color: var(--c-accent); }
  .m5-tipact { display: flex; margin: 9px 0 0; }
  /* 9 张指标卡：中等宽度两列，卡片等高、副标题最多两行 */
  .m5-kpic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .m5-kc { padding: 12px 24px 11px 13px; min-height: 104px; }
  .m5-kc .r4-kpi-v b { font-size: 21px; }
  .m5-kc .r4-kpi-s { min-height: 0; font-size: 11px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m5-kc .r4-kpi-s2 { font-size: 10.5px; line-height: 1.4; }
  .m5-kdrow { font-size: 12px; gap: 10px; }
  .m5-kcd { padding: 13px 14px; }
}

@media (max-width: 430px) {
  /* 手机竖屏：指标卡单列，标签与数值一行摆开 */
  .m5-kpic { grid-template-columns: 1fr; }
  .m5-kc { min-height: 0; }
}


/* ③ 财务基础数据：默认折起，一行摘要 + 右侧「展开调整」 */
.m5-fintoggle {
  flex: none; font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--c-primary); background: transparent; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px;
  padding: 4px 10px; line-height: 1.4; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.m5-fintoggle:hover { background: var(--c-primary-50, #EEF5FC); border-color: rgba(23, 92, 160, .25); }
.m5-fintoggle:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
/* v10-189：③ 卡改用 details.fold-sec，摘要行＝summary 右侧灰字（.fs-dig），
   原来那层底色与左侧竖条随折叠组件统一，不再单独铺 */
.m5-finsum {
  font-size: 12.5px; color: var(--c-text-2); line-height: 1.9;
  margin: 0; padding: 0; background: none; border: 0;
}
.m5-finsum b { color: var(--c-text); font-weight: 600; }
.m5-finsum .m5-fs-formula { color: var(--c-text-3); margin-left: 4px; }
/* 每一项整体不换行，窄屏只会在项与项之间断行 */
.m5-fs-it { display: inline-block; white-space: nowrap; }
.m5-fs-it + .m5-fs-it::before { content: '·'; margin: 0 7px; color: var(--c-border-2, #C7D2DE); }
/* 宽屏列全 7 项；窄屏只留折现率 / 资金占用 / 留抵（JS 同时输出两版） */
.m5-fs-cmp { display: none; }
/* 窄屏三件套会折行，行首那个「·」很难看——窄屏不画点，只留间距 */
.m5-fs-cmp .m5-fs-it + .m5-fs-it::before { content: ''; margin: 0 8px; }
@media (max-width: 640px) {
  .m5-fs-full { display: none; }
  .m5-fs-cmp { display: inline; }
}
.m5-finbody { margin-top: 14px; }

@media (max-width: 640px) {
  .m5-finsum { font-size: 12px; line-height: 1.8; text-align: left; }
  .m5-fintoggle { font-size: 12px; padding: 3px 6px; }
  /* 窄屏把副标题让位给按钮，标题 + 「展开 14 项」一行放得下 */
  .m5-metahd .m5-metahint { display: none; }
  .m5-foldbtn { font-size: 12px; padding: 3px 8px; }
  /* 曲线：图本身按容器像素重排（JS 侧处理断点），副标题让位给图；
     图内的「业主无让利」保留——灰区没有标注读者就不知道那段是什么 */
  .m5-cvhd span { display: none; }
}

/* 指标计算过程在窄屏也保留「计算式」：改成「项目 + 金额」一行、「计算式」下一行的两列堆叠，
   比硬塞三列可读得多（第 1 步那份 .rd-f{display:none} 的窄屏规则在这里不适用） */
@media (max-width: 640px) {
  .m5-kdtb { font-size: 12px; }
  .m5-kdtb thead { display: none; }
  .m5-kdtb, .m5-kdtb tbody { display: block; }
  .m5-kdtb tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px; row-gap: 2px; padding: 6px 3px; border-bottom: 1px solid var(--c-border);
  }
  .m5-kdtb td { display: block; border: none !important; padding: 0 !important; }
  .m5-kdtb td:first-child { grid-column: 1; grid-row: 1; width: auto; }
  .m5-kdtb .rd-am { grid-column: 2; grid-row: 1; width: auto; text-align: right; }
  .m5-kdtb .rd-f {
    grid-column: 1 / -1; grid-row: 2; text-align: left;
    color: var(--c-text-3); font-size: 10.5px; line-height: 1.5;
  }
  /* 分组标题行整行灰底 */
  .m5-kdtb .rd-grp { display: block; border-bottom: none; padding: 0; }
  .m5-kdtb .rd-grp td {
    display: block; grid-column: 1 / -1; background: var(--c-bg-2);
    padding: 6px 9px !important; font-weight: 700; border-radius: 4px;
  }
  .m5-kdtb .rd-sub { border-bottom: none; border-top: 1px solid var(--c-border-strong); padding-top: 8px; }
  .m5-kdtb .rd-sub td { font-weight: 700; }
  .m5-kdtb .rd-grand {
    border-top: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
    background: var(--c-bg-2); padding: 8px 7px;
  }
  .m5-kdtb .rd-grand td { font-weight: 700; }
  .m5-kdtb .rd-grand .rd-am { font-size: 14px; }
}

/* ==========================================================================
   项目档案库（v10-182）：多项目切换 / 新建 / 重命名 / 复制 / 删除 / 导入导出
   原先全站只有一个存档，转去测另一个项目就把上一个覆盖了。入口挂在页面标题
   右侧，面板居中；≤720px 改贴底抽屉，与步骤抽屉同一手感。
   ========================================================================== */

.part-head-proj { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; }
.part-head-proj > div:first-child { min-width: 0; }

.proj-cur {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  max-width: 336px; padding: 8px 11px 8px 9px;
  background: #fff; border: 1px solid var(--c-border-strong); border-radius: 12px;
  font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.proj-cur:hover { border-color: var(--c-primary); box-shadow: 0 3px 14px rgba(24,95,165,.13); }
.proj-cur:active { transform: translateY(1px); }
.proj-cur:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.proj-cur-ic {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--c-primary-50); color: var(--c-primary);
}
.proj-cur-ic svg { width: 17px; height: 17px; }

.proj-cur-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.proj-cur-lb { font-size: 10.5px; color: var(--c-text-3); letter-spacing: .4px; line-height: 1.2; }
.proj-cur-t b {
  font-size: 13.5px; font-weight: 600; color: var(--c-text); line-height: 1.35;
  max-width: 214px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-cur-t i { font-size: 11px; font-style: normal; color: var(--c-text-3); line-height: 1.2; }
.proj-cur-ar { flex: none; display: grid; place-items: center; color: var(--c-text-3); }
.proj-cur-ar svg { width: 11px; height: 7px; }

/* ---------------- 面板 ---------------- */
.proj-mask { position: fixed; inset: 0; z-index: 92; background: rgba(16,28,44,.44); }

.proj-pop {
  position: fixed; z-index: 93; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; outline: none;
  width: min(580px, calc(100vw - 32px)); max-height: min(78vh, 640px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(10,25,45,.3);
}
.proj-pop[hidden], .proj-mask[hidden] { display: none !important; }

.proj-pop-h {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 14px 14px 20px; border-bottom: 1px solid var(--c-border);
}
.proj-pop-h > div { flex: 1; min-width: 0; }
.proj-pop-h b { display: block; font-size: 15.5px; color: var(--c-text); }
.proj-pop-h span { display: block; margin-top: 4px; font-size: 11.8px; line-height: 1.55; color: var(--c-text-3); }
.proj-x {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--c-text-3); cursor: pointer;
}
.proj-x svg { width: 16px; height: 16px; }
.proj-x:hover { background: var(--c-bg-2); color: var(--c-text); }

.proj-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.proj-empty { padding: 30px 16px; text-align: center; font-size: 12.5px; color: var(--c-text-3); }

.proj-row { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.proj-row + .proj-row { margin-top: 1px; }
.proj-row:hover { background: var(--c-bg-2); }
.proj-row.is-cur { background: var(--c-primary-50); }

.proj-pick {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px; background: none; border: 0; border-radius: 9px;
  font-family: inherit; text-align: left; cursor: pointer;
}
.proj-pick b {
  font-size: 13.5px; font-weight: 600; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-pick i { font-size: 11.5px; font-style: normal; color: var(--c-text-3); }
.proj-row.is-cur .proj-pick b { color: var(--c-primary-dark); }
.proj-row.is-cur .proj-pick i { color: var(--c-primary); }

.proj-ops { flex: none; display: flex; gap: 1px; padding-right: 6px; }
.proj-op {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 7px; color: var(--c-text-3); cursor: pointer;
}
.proj-op svg { width: 15px; height: 15px; }
.proj-op:hover { background: #fff; color: var(--c-primary); box-shadow: 0 1px 4px rgba(15,35,60,.13); }
.proj-op.is-del:hover { color: #C0392B; }
.proj-op:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
/* 报告入口：展开时按钮保持「按下」态，否则点完看不出这三颗是哪来的（v10-193） */
.proj-op.is-rep.is-on { background: #fff; color: var(--c-primary); box-shadow: 0 1px 4px rgba(15,35,60,.13); }

/* 当前项目行下面的三联报告。底色沿用 is-cur 的浅蓝、上边不贴圆角，
   读起来是「这一行的子项」而不是列表里的又一个项目 */
.proj-reps {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: -1px 0 6px; padding: 7px 8px 9px;
  background: var(--c-primary-50); border-radius: 0 0 10px 10px;
}
.proj-rep {
  flex: 1 1 auto; min-width: 0; padding: 6px 10px;
  background: #fff; border: 1px solid #C6DCEF; border-radius: 7px;
  font-family: inherit; font-size: 11.8px; line-height: 1.35; color: var(--c-primary-dark);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-rep:hover { border-color: var(--c-primary); background: #F2F8FD; }
.proj-rep:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.proj-rep.is-off {
  background: #F7F9FB; border-color: var(--c-border); color: var(--c-text-3);
  cursor: not-allowed;
}

/* 删除二次确认：项目数据删掉就找不回来，不做「点一下就没」 */
.proj-del {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding-right: 8px; font-size: 11.5px; color: #C0392B; white-space: nowrap;
}
.proj-del span { color: var(--c-text-3); }
.proj-del button {
  padding: 5px 9px; font-family: inherit; font-size: 11.5px;
  border-radius: 7px; cursor: pointer;
}
.proj-del .yes { background: #C0392B; color: #fff; border: 0; }
.proj-del .yes:hover { background: #A5301F; }
.proj-del .no { background: #fff; color: var(--c-text-2); border: 1px solid var(--c-border-strong); }
.proj-del .no:hover { border-color: var(--c-text-3); }

/* 重命名：行内编辑，不弹 prompt（原生弹窗会挡住整页，也难看） */
.proj-ren { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-width: 0; }
.proj-ren input {
  flex: 1; min-width: 0; padding: 6px 9px; font-family: inherit; font-size: 13px;
  color: var(--c-text); border: 1px solid var(--c-primary); border-radius: 8px;
  outline: none; box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.proj-ren button {
  flex: none; padding: 6px 10px; font-family: inherit; font-size: 12px;
  border-radius: 7px; cursor: pointer;
}
.proj-ren .ok { background: var(--c-primary); color: #fff; border: 0; }
.proj-ren .ok:hover { background: var(--c-primary-dark); }
.proj-ren .no { background: #fff; color: var(--c-text-2); border: 1px solid var(--c-border-strong); }

.proj-pop-f {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--c-border); background: var(--c-bg-2);
}
.proj-new {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; background: var(--c-primary); color: #fff;
  border: 0; border-radius: 9px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.proj-new:hover { background: var(--c-primary-dark); }
.proj-new svg { width: 14px; height: 14px; }
.proj-mini {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 11px; background: #fff; color: var(--c-text-2);
  border: 1px solid var(--c-border-strong); border-radius: 8px;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.proj-mini:hover { border-color: var(--c-primary); color: var(--c-primary); }
.proj-mini svg { width: 14px; height: 14px; }
#proj-exp { margin-left: auto; }

@media (max-width: 720px) {
  .part-head-proj { flex-direction: column; gap: 14px; }
  .proj-cur { width: 100%; max-width: none; }
  .proj-cur-t b { max-width: none; }
  /* 贴底抽屉：拇指够得着，也不跟顶栏打架 */
  .proj-pop {
    left: 0; right: 0; bottom: 0; top: auto; transform: none;
    width: 100%; max-height: 86vh; border-radius: 16px 16px 0 0;
  }
  .proj-pop-h { padding: 16px 12px 12px 16px; }
  .proj-pop-f { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .proj-mini { padding: 8px 9px; }
}

/* 三颗报告按钮在窄屏折成两行时会「两颗半宽 + 一颗整宽」，看着像漏了一个；
   干脆各占一行，读起来是三条菜单（v10-193） */
@media (max-width: 480px) {
  .proj-rep { flex: 1 0 100%; }
}
