/* ==========================================================================
   ERM System · 按条线自评（当前已开放：投资到资产）
   ========================================================================== */

.erm-wrap {
  max-width: 880px;
  margin: 0 auto;
}

/* 页首引言：不换行（窄屏允许换行防溢出） */
#heroTagline { white-space: nowrap; }
@media (max-width: 720px) {
  #heroTagline { white-space: normal; }
}

.erm-panel { padding: 36px 34px 40px; }

/* 修复：.btn 的 display 会覆盖 [hidden] 的 UA 默认隐藏，强制兜底 */
[hidden] { display: none !important; }

.erm-h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 8px 0 10px;
}
.erm-h2 .en, .erm-h3 .en {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.erm-h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.erm-lead { font-size: 0.95rem; line-height: 1.7; margin: 0 0 18px; }
.erm-muted { font-size: 0.8rem; opacity: 0.65; margin: 0 0 16px; }

/* ---- 首页 facts ---- */
.erm-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.erm-facts .fact {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.erm-facts .fact-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}
.erm-facts .fact-num small { font-size: 0.75rem; opacity: 0.6; }
.erm-facts .fact-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.75;
}
.erm-facts .fact-label .en { opacity: 0.6; font-size: 0.65rem; }

.erm-model {
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.erm-model h3 { font-size: 0.95rem; margin: 0 0 8px; }
.erm-model p { font-size: 0.83rem; line-height: 1.75; margin: 0 0 6px; }
.erm-model .model-formula {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.card-soft { background: var(--soft, #f6f6f4); }

.erm-notes {
  margin: 0 0 24px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.9;
  opacity: 0.85;
}
.erm-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- 进度头 ---- */
.erm-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.erm-progress-num { font-size: 0.85rem; white-space: nowrap; opacity: 0.85; }
.erm-progress-num b { font-size: 1.15rem; }

.erm-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  margin: 14px 0 18px;
  overflow: hidden;
}
.erm-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--biz, #2d6a4f);
  transition: width 0.35s ease;
}

/* ---- 步骤 chips ---- */
.erm-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  /* 全体系 41 章：标签行会长到 5~6 排，给个高度上限让它自己滚，
     否则整页被标签挤到几千像素，正文看不到 */
  max-height: 156px;
  overflow-y: auto;
  padding-right: 4px;
}
.erm-steps .step-chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.2s ease;
}
.erm-steps .step-chip .chip-count { opacity: 0.6; margin-left: 4px; font-size: 0.7rem; }
.erm-steps .step-chip.active {
  background: var(--biz, #2d6a4f);
  border-color: var(--biz, #2d6a4f);
  color: #fff;
}
.erm-steps .step-chip.active .chip-count { opacity: 0.8; }
.erm-steps .step-chip.done:not(.active) { border-color: var(--biz, #2d6a4f); color: var(--biz, #2d6a4f); }

.erm-step-tip { font-size: 0.8rem; opacity: 0.7; margin: 0 0 10px; }

/* 答满自动跳页开关 */
.erm-auto-adv { font-size: 0.76rem; opacity: 0.75; margin: 0 0 16px; }
.erm-auto-adv label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.erm-auto-adv input { accent-color: var(--biz, #2d6a4f); cursor: pointer; }

/* 末页未完成项跳转 */
.erm-todo { margin-top: 16px; font-size: 0.8rem; line-height: 1.6; }
.erm-todo .todo-t { display: block; opacity: 0.7; margin-bottom: 8px; }
.erm-todo .todo-chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.74rem;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  margin: 0 8px 8px 0;
  transition: all 0.15s ease;
}
.erm-todo .todo-chip:hover { border-color: var(--biz, #2d6a4f); color: var(--biz, #2d6a4f); }

/* ---- 控制点卡片 ---- */
.erm-points { display: flex; flex-direction: column; gap: 18px; }

.point-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  scroll-margin-top: 96px;   /* 答完一题自动滚到下一题时，给粘性页头留出高度 */
}
.point-card.answered { border-color: rgba(45, 106, 79, 0.45); }

.point-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.point-id {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  opacity: 0.65;
}
.point-kp {
  font-size: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  opacity: 0.8;
}
.tag {
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 500;
}
.tag-fin   { background: rgba(146, 64, 14, 0.1);  color: #92400e; }
.tag-ops   { background: rgba(29, 78, 116, 0.1);  color: #1d4e74; }
.tag-comp  { background: rgba(45, 106, 79, 0.1);  color: #2d6a4f; }
.tag-fraud { background: rgba(127, 29, 29, 0.1);  color: #7f1d1d; }
.tag-suggested { background: rgba(180, 130, 20, 0.12); color: #8a6d1a; }
.factor-badge { font-size: 0.7rem; opacity: 0.6; margin-left: auto; }

.point-risk {
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.05);
}
.point-risk b { font-weight: 600; }

.point-ctrl {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 12px;
}

.point-bench { margin: 0 0 14px; font-size: 0.8rem; }
.point-bench summary {
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.78rem;
  user-select: none;
}
.point-bench summary:hover { opacity: 1; }
.point-bench .bench-body {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft, #f6f6f4);
  line-height: 1.7;
  white-space: pre-line;
}
.point-bench .bench-metrics { margin-top: 8px; font-size: 0.75rem; opacity: 0.8; }

/* ---- 两道评估题 ---- */
.point-q .q-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.point-q .q-label .q-no {
  display: inline-block;
  font-family: var(--serif);
  margin-right: 6px;
  color: var(--biz, #2d6a4f);
}
.point-q .q-row2 { margin-top: 14px; }

.point-q .seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.point-q .seg-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.point-q .seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.point-q .seg-item span { display: block; }
.point-q .seg-item .opt-title { font-size: 0.82rem; font-weight: 600; }
.point-q .seg-item .opt-desc { font-size: 0.7rem; line-height: 1.5; opacity: 0.65; margin-top: 3px; }
.point-q .seg-item:hover { border-color: rgba(45, 106, 79, 0.5); }
.point-q .seg-item.checked {
  border-color: var(--biz, #2d6a4f);
  background: rgba(45, 106, 79, 0.07);
}
.point-q .seg-item.disabled { opacity: 0.45; cursor: not-allowed; }

.lock-hint {
  font-size: 0.72rem;
  color: #7f1d1d;
  margin: 8px 0 0;
}
/* 控制形式提示：两种形式统一样式，仅文案不同 */
.point-q .form-hint {
  font-size: 0.72rem;
  opacity: 0.65;
  margin: 8px 0 0;
}

/* 「不适用」勾选 */
.point-head .na-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0.7;
  user-select: none;
  white-space: nowrap;
}
.point-head .na-toggle input { accent-color: #7f1d1d; cursor: pointer; }
.point-head .na-toggle.on { color: #7f1d1d; opacity: 1; font-weight: 600; }
.point-card.na {
  opacity: 0.62;
  background: var(--soft, #f6f6f4);
  border-style: dashed;
}
.point-card.na .rating-inline,
.point-card.na .point-bench,
.point-card.na .point-q { display: none; }
.na-hint {
  font-size: 0.78rem;
  color: #7f1d1d;
  background: rgba(127, 29, 29, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 4px;
}

/* 报告按钮：有未评项时置灰 */
.erm-navbtns .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- 底部按钮 ---- */
.erm-navbtns {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.erm-navbtns .page-ind {
  margin-left: auto;
  font-size: 0.8rem;
  font-family: var(--serif);
  opacity: 0.7;
  white-space: nowrap;
}

/* ---- 报告 ---- */
.erm-report-head { margin-bottom: 22px; }

.erm-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.erm-overview .ov {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.erm-overview .ov-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}
.erm-overview .ov-num.grade-robust { color: #2d6a4f; }
.erm-overview .ov-num.grade-watch  { color: #92400e; }
.erm-overview .ov-num.grade-weak   { color: #b45309; }
.erm-overview .ov-num.grade-alert  { color: #7f1d1d; }
.erm-overview .ov-label {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  opacity: 0.7;
  line-height: 1.5;
}

.erm-warn {
  font-size: 0.8rem;
  color: #92400e;
  background: rgba(146, 64, 14, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
}

/* 子流程条形图 */
.erm-bars { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 20px; }
.erm-bars .bar-row { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; }
.erm-bars .bar-name { font-size: 0.82rem; text-align: right; }
.erm-bars .bar-track { height: 14px; border-radius: 999px; background: rgba(0,0,0,0.06); overflow: hidden; }
.erm-bars .bar-fill { height: 100%; border-radius: 999px; background: var(--biz, #2d6a4f); }
.erm-bars .bar-fill.lvl-high { background: #7f1d1d; }
.erm-bars .bar-fill.lvl-mid  { background: #b45309; }
.erm-bars .bar-fill.lvl-low  { background: #2d6a4f; }
.erm-bars .bar-val { font-size: 0.75rem; opacity: 0.7; font-family: var(--serif); }

/* 矩阵表 */
.erm-matrix-wrap { margin-top: 6px; }
.erm-matrix { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.erm-matrix th, .erm-matrix td { border: 1px solid var(--line); padding: 8px 12px; text-align: center; }
.erm-matrix th { font-weight: 600; background: var(--soft, #f6f6f4); }
.erm-matrix td:first-child, .erm-matrix th:first-child { text-align: left; }
.erm-matrix .mcell { font-family: var(--serif); }
.erm-matrix .mcell.heat-5 { background: rgba(214, 40, 29, 0.16);  color: #a31d12; font-weight: 600; }
.erm-matrix .mcell.heat-4 { background: rgba(240, 138, 0, 0.16);  color: #a35500; font-weight: 600; }
.erm-matrix .mcell.heat-3 { background: rgba(224, 202, 20, 0.22); color: #7a6a00; font-weight: 600; }
.erm-matrix .mcell.heat-2 { background: rgba(146, 208, 80, 0.22); color: #3f6b1d; }
.erm-matrix .mcell.heat-1 { background: rgba(0, 176, 80, 0.16);   color: #1d6b38; }
.erm-legend { font-size: 0.72rem; opacity: 0.6; margin: 8px 0 0; }

/* 风险热力图例（五级标尺） */
.heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.heat-legend .hl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-size: 0.72rem;
  background: var(--soft, #f6f6f4);
}
.heat-legend .hl i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.heat-legend .hl b { font-weight: 600; }
.heat-legend .hl em {
  font-style: normal;
  font-family: var(--serif);
  opacity: 0.65;
}
.heat-legend .hl.heat-5 i { background: #d6281d; }
.heat-legend .hl.heat-4 i { background: #f08a00; }
.heat-legend .hl.heat-3 i { background: #e5cb14; }
.heat-legend .hl.heat-2 i { background: #92d050; }
.heat-legend .hl.heat-1 i { background: #00b050; }

/* 类别构成 */
.erm-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.erm-cats .cat-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
}
.erm-cats .cat-chip b { font-family: var(--serif); margin-left: 4px; }
.erm-cats .cat-none { font-size: 0.85rem; opacity: 0.7; }

/* Top 10 */
.erm-toplist { display: flex; flex-direction: column; gap: 16px; }
.top-card {
  border: 1px solid var(--line);
  border-left: 4px solid #7f1d1d;
  border-radius: 10px;
  padding: 18px 20px;
}
.top-card.lvl-mid { border-left-color: #b45309; }
.top-card .top-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.top-card .top-rank {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #7f1d1d;
  font-weight: 600;
}
.top-card .top-riskval { font-size: 0.75rem; opacity: 0.65; margin-left: auto; font-family: var(--serif); }
.top-card .top-ctrl { font-size: 0.92rem; font-weight: 600; line-height: 1.6; margin: 0 0 10px; }
.top-card .top-block { font-size: 0.82rem; line-height: 1.7; margin: 0 0 8px; }
.top-card .top-block .blk-t { font-weight: 600; display: block; margin-bottom: 2px; font-size: 0.78rem; opacity: 0.8; }
.top-card .top-block .blk-body { white-space: pre-line; }
.top-card details { font-size: 0.8rem; }
.top-card details summary { cursor: pointer; opacity: 0.7; font-size: 0.76rem; }
.top-card details .bench-body {
  margin-top: 6px; padding: 10px 12px; border-radius: 8px;
  background: var(--soft, #f6f6f4); line-height: 1.7; white-space: pre-line;
}

/* 风险热力图（子流程 → 关键环节，实色热力块，仅数值不露原文） */
.erm-map { display: flex; flex-direction: column; gap: 16px; }
.erm-map .map-sub-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.erm-map .map-items { display: flex; flex-wrap: wrap; gap: 8px; }
.erm-map .map-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 84px;
  border-radius: 9px;
  padding: 8px 12px 7px;
  font-size: 0.8rem;
  border: 1px solid transparent;
}
.erm-map .map-kp { white-space: nowrap; font-weight: 600; }
/* 参评企业视图：不显示分值，仅环节名 + 热力色 */
/* 管理员明细接口：分值存于 data-val；?admin=1 / #admin 时经 ::after 显示 */
.admin-mode .erm-map .map-item::after {
  content: attr(data-val);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.1;
}
.admin-mode .erm-map .map-item { min-width: 96px; }

/* 管理员专用区块：默认隐藏，?admin=1 / #admin 时显示 */
.admin-only { display: none; }
.admin-mode .admin-only { display: block; }
.erm-admin {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(214, 40, 29, 0.45);
  border-radius: 10px;
  background: rgba(214, 40, 29, 0.04);
}
.erm-admin .admin-note {
  font-size: 0.76rem;
  color: #a31d12;
  margin: 0 0 10px;
  line-height: 1.6;
}
.erm-admin .btn { margin-right: 10px; }
/* 五级热力配色（对应风险标尺图例） */
.erm-map .map-item.heat-5 { background: #d6281d; color: #fff; }
.erm-map .map-item.heat-4 { background: #f08a00; color: #fff; }
.erm-map .map-item.heat-3 { background: #e9d423; color: #5c4d00; }
.erm-map .map-item.heat-2 { background: #b5db7a; color: #33500f; }
.erm-map .map-item.heat-1 { background: #7ac98f; color: #123d20; }
/* Top 10 左边条与等级名随热力分级 */
.top-card.heat-5 { border-left-color: #d6281d; }
.top-card.heat-4 { border-left-color: #f08a00; }
.top-card.heat-3 { border-left-color: #e0c414; }
.top-card.heat-2, .top-card.heat-1 { border-left-color: #00b050; }
.top-lvl.heat-5 { color: #d6281d; }
.top-lvl.heat-4 { color: #c26a00; }
.top-lvl.heat-3 { color: #8a7600; }
.top-lvl.heat-2, .top-lvl.heat-1 { color: #1d6b38; }

/* 「推荐评级」标记 */
.point-q .opt-rec {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.12);
  color: #2d6a4f;
  font-size: 0.62rem;
  font-weight: 600;
  vertical-align: 1px;
}
/* 系统控制提示已并入 form-hint（统一样式，不做颜色区分） */

/* ④⑤ 重要性/概率：控制点标题下方横条（与典型基准控制持平） */
.rating-inline {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--soft, #f6f6f4);
  margin: 0 0 14px;
}
.rating-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rating-lab { font-size: 0.74rem; font-weight: 600; opacity: 0.85; }
.rating-sel {
  font-family: inherit;
  font-size: 0.76rem;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.rating-sel:hover { border-color: rgba(45, 106, 79, 0.5); }
.rating-sel:focus { outline: none; border-color: var(--biz, #2d6a4f); }
.rating-flag { font-size: 0.62rem; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.rating-flag.flag-rec { background: rgba(45, 106, 79, 0.1); color: #2d6a4f; }
.rating-flag.flag-adj { background: rgba(180, 130, 20, 0.14); color: #8a6d1a; }
.rating-note {
  margin-left: auto;
  font-size: 0.66rem;
  line-height: 1.5;
  opacity: 0.6;
  text-align: right;
}
@media (max-width: 720px) {
  .rating-note { margin-left: 0; flex-basis: 100%; text-align: left; }
}

.erm-sub-h3 { margin-top: 30px; }

/* IP 提示 */
.erm-ipnote { font-size: 0.72rem; opacity: 0.55; margin: -6px 0 12px; }

/* CTA */
.erm-cta { background: var(--biz, #2d6a4f); color: #fff; margin-top: 22px; }
.erm-cta h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: 0 0 8px; }
.erm-cta p { font-size: 0.88rem; opacity: 0.9; margin: 0 0 16px; line-height: 1.7; }
.erm-cta .btn.ghost { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ---- 企业画像表单 ---- */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 22px;
  margin: 18px 0 6px;
}
.pf { display: flex; flex-direction: column; gap: 8px; }
.pf-label { font-size: 0.84rem; font-weight: 600; }
.pf-label .pf-hint { display: block; font-style: normal; font-weight: 400; font-size: 0.72rem; opacity: 0.6; margin-top: 2px; }
.pf-sel {
  font-family: inherit;
  font-size: 0.84rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 100%;
}
.pf-sel:hover { border-color: rgba(45, 106, 79, 0.5); }
.pf-sel:focus { outline: none; border-color: var(--biz, #2d6a4f); }
.pf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-opt {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.pf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pf-opt:hover { border-color: rgba(45, 106, 79, 0.5); }
.pf-opt.on { border-color: var(--biz, #2d6a4f); background: rgba(45, 106, 79, 0.08); font-weight: 600; }

.prof-self-wrap { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.prof-h3 { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.prof-note { font-size: 0.78rem; opacity: 0.7; margin: 0 0 14px; line-height: 1.65; }
.pf .pf-hint, .prof-priv { font-size: 0.74rem; }
.prof-priv { margin: 20px 0 0; }
.prof-preview {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--soft, #f6f6f4);
  opacity: 0.85;
}
.prof-preview.on {
  background: rgba(45, 106, 79, 0.08);
  color: #2d6a4f;
  opacity: 1;
}
.prof-preview b { font-family: var(--serif); }
.prof-self { display: flex; flex-direction: column; gap: 14px; }
.ps { display: flex; flex-direction: column; gap: 8px; }
.ps-q { font-size: 0.84rem; font-weight: 600; }
.ps-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-opt {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.ps-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ps-opt:hover { border-color: rgba(45, 106, 79, 0.5); }
.ps-opt.on { border-color: var(--biz, #2d6a4f); background: rgba(45, 106, 79, 0.08); font-weight: 600; }
.ps-hit { font-size: 0.74rem; color: #92400e; background: rgba(146, 64, 14, 0.07); border-radius: 7px; padding: 7px 11px; margin: 0; line-height: 1.6; }

/* 文字按钮（展开 / 修改企业信息） */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: var(--biz, #2d6a4f);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.erm-auto-adv .link-btn { margin-left: auto; }

/* ---- 折叠条（不适用项整组折叠） ---- */
.fold-box {
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft, #f6f6f4);
}
.fold-box .fold-inner {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.fold-box .fold-t { font-size: 0.8rem; font-weight: 600; }
.fold-box .fold-t b { font-family: var(--serif); }
.fold-box .fold-reasons { font-size: 0.74rem; opacity: 0.62; flex: 1; min-width: 180px; }
.fold-reason {
  font-size: 0.76rem;
  line-height: 1.65;
  color: #92400e;
  background: rgba(146, 64, 14, 0.07);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 12px;
}

/* ---- 分级标签 / 加锁区 ---- */
.tier-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.12);
  color: #2d6a4f;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--serif);
  vertical-align: 2px;
}
.locked { position: relative; margin-top: 14px; }
.locked > .lr { filter: blur(3.5px); opacity: 0.42; pointer-events: none; user-select: none; }
.lock-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.lock-mask .lk { font-size: 24px; line-height: 1; }
.lock-mask .t { font-family: var(--serif); font-size: 1.05rem; }
.lock-mask .d { font-size: 0.8rem; opacity: 0.72; max-width: 560px; line-height: 1.75; }
.lock-mask .btn { margin-top: 4px; }

/* 加锁区内的骨架条（不含真实数值） */
.sk-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.sk-bar { height: 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: 999px; background: rgba(45, 106, 79, 0.35); }
.sk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.sk-grid span { height: 34px; border-radius: 7px; background: rgba(0, 0, 0, 0.05); }
.sk-lines, .sk-rows { display: flex; flex-direction: column; gap: 12px; }
.sk-line { height: 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); }
.sk-tags { display: flex; gap: 8px; margin-top: 16px; }
.sk-tags span { width: 92px; height: 24px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); }

/* ---- Top3 ---- */
.top3-list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 14px; }
.top3-card {
  border: 1px solid var(--line);
  border-left: 4px solid #b45309;
  border-radius: 10px;
  padding: 14px 18px;
}
.top3-card .t3-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.top3-card .top-rank { font-family: var(--serif); font-size: 1rem; color: #7f1d1d; font-weight: 600; }
.top3-card .t3-lvl { font-size: 0.72rem; padding: 1px 9px; border-radius: 999px; background: rgba(214, 40, 29, 0.1); color: #a31d12; font-weight: 600; }
.top3-card .t3-sub { margin-left: auto; font-size: 0.74rem; opacity: 0.6; }
.top3-card .t3-ctrl { font-size: 0.92rem; font-weight: 600; line-height: 1.65; margin: 8px 0 0; }
.top3-foot { margin-top: 4px; }

/* Top3 门禁 */
.gate3 {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft, #f6f6f4);
  padding: 22px 22px 20px;
}
.g3-thumb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.g3-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0.75;
}
.g3-lock { font-size: 16px; line-height: 1; }
.g3-line { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); }
.gate-t { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.gate-d { font-size: 0.78rem; opacity: 0.7; line-height: 1.7; margin: 0 0 16px; }
.gate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; }
.gf { display: flex; flex-direction: column; gap: 6px; }
.gf > span { font-size: 0.76rem; font-weight: 600; }
.gf > span i { color: #a31d12; font-style: normal; }
.gf input, .gf textarea {
  font-family: inherit;
  font-size: 0.84rem;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  width: 100%;
  resize: vertical;
}
.gf input:focus, .gf textarea:focus { outline: none; border-color: var(--biz, #2d6a4f); }
.gate-intent { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.gate-intent label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; cursor: pointer; }
.gate-intent input { accent-color: var(--biz, #2d6a4f); }
.gate-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gate-msg { font-size: 0.78rem; color: var(--biz, #2d6a4f); }
.gate-msg.err { color: #a31d12; }
.gate-priv { font-size: 0.72rem; opacity: 0.6; margin: 14px 0 0; line-height: 1.65; }

/* ---- 折叠 / 自报明细 ---- */
.fd-wrap { margin-top: 16px; font-size: 0.82rem; }
.fd-wrap > summary { cursor: pointer; font-size: 0.78rem; opacity: 0.7; }
.fd-block { margin-top: 14px; }
.fd-block h4 { font-size: 0.84rem; margin: 0 0 4px; }
.fd-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.12);
  color: #92400e;
  font-size: 0.66rem;
  font-weight: 600;
  vertical-align: 1px;
}
.fd-note { font-size: 0.74rem; opacity: 0.66; margin: 0 0 8px; line-height: 1.65; }
.fd-block ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fd-block li { font-size: 0.78rem; line-height: 1.6; }
.fd-block .fd-id { font-family: var(--serif); margin-right: 8px; opacity: 0.75; }
.fd-block .fd-reason { display: block; font-size: 0.72rem; opacity: 0.58; margin-top: 2px; }

/* ---- ¥199 自动标准报告（未开通 / 已开通两态） ---- */
.sr-lock { margin-top: 14px; }
.sr-blocks { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 9px; }
.sr-blocks li { position: relative; padding-left: 20px; font-size: 0.86rem; line-height: 1.65; opacity: 0.82; }
.sr-blocks li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #2d6a4f; opacity: 0.5;
}
.sr-blocks b { display: block; font-weight: 600; opacity: 1; }
.sr-unlock {
  border: 1px solid var(--line, #e6e6e3); border-radius: 10px;
  padding: 16px 18px; background: var(--soft, #f8f8f6);
}
.sr-unlock-t { font-size: 0.9rem; font-weight: 600; margin: 0 0 10px; }
.sr-unlock-form { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-unlock-form input {
  flex: 1 1 200px; min-width: 0; padding: 9px 12px;
  border: 1px solid #d8d8d2; border-radius: 8px; font-size: 0.86rem;
}
.sr-unlock-form .btn { flex: 0 0 auto; }
.sr-msg { margin: 10px 0 0; font-size: 0.8rem; color: #2d6a4f; }
.sr-msg.err { color: #a31d12; }
.sr-buy { margin: 14px 0 0; }
.sr-buy-btn { width: 100%; }
.sr-buy-note { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--ink-soft, #8a8f96); text-align: center; }

.sr-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0 0 14px; font-size: 0.82rem; opacity: 0.85;
}
.sr-badge {
  padding: 2px 10px; border-radius: 999px;
  background: rgba(45, 106, 79, 0.12); color: #2d6a4f;
  font-size: 0.72rem; font-weight: 600;
}
.sr-time { margin-left: auto; opacity: 0.7; font-family: var(--serif); }
.sr-miss {
  font-size: 0.8rem; color: #a35500; background: rgba(240, 138, 0, 0.08);
  border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; line-height: 1.7;
}
.sr-line { border-top: 1px solid var(--line, #e6e6e3); }
.sr-line > summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 14px 2px; cursor: pointer;
}
.sr-line-name { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.sr-line-meta { font-size: 0.78rem; opacity: 0.66; }
.sr-line.is-empty { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 2px; opacity: 0.6; }
.sr-body { padding: 4px 0 20px; }
.sr-block { margin: 0 0 26px; }
.sr-block h5 {
  font-size: 0.86rem; font-weight: 600; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line, #eee);
}
.sr-block h5 .en { font-weight: 400; font-size: 0.7rem; opacity: 0.5; margin-left: 6px; letter-spacing: 0.04em; }
.sr-kpis { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 12px; }
.sr-kpis div b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.sr-kpis div i { font-style: normal; font-size: 0.74rem; opacity: 0.6; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sr-chips span { font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.04); }
.sr-chips .heat-5 { background: rgba(214, 40, 29, 0.12); color: #a31d12; }
.sr-chips .heat-4 { background: rgba(240, 138, 0, 0.14); color: #a35500; }
.sr-chips .heat-3 { background: rgba(224, 202, 20, 0.2); color: #7a6a00; }
.sr-bars { margin-top: 4px; }
.sr-matrix { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.78rem; }
.sr-matrix th, .sr-matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line, #eee); text-align: right; }
.sr-matrix th:first-child, .sr-matrix td:first-child { text-align: left; }
.sr-matrix thead th { font-weight: 600; opacity: 0.7; }
.sr-heat { display: flex; flex-direction: column; gap: 9px; }
.sr-heat-row { display: grid; grid-template-columns: 82px 1fr 108px; align-items: center; gap: 10px; }
.sr-heat-name { font-size: 0.78rem; }
.sr-heat-track { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); overflow: hidden; }
.sr-heat-track i { display: block; height: 100%; border-radius: 999px; }
.sr-heat-track i.heat-5 { background: #d6281d; }
.sr-heat-track i.heat-4 { background: #f08a00; }
.sr-heat-track i.heat-3 { background: #e5cb14; }
.sr-heat-track i.heat-2 { background: #9bc79f; }
.sr-heat-track i.heat-1 { background: #7ac98f; }
.sr-heat-val { font-size: 0.74rem; opacity: 0.65; text-align: right; }
.sr-none { font-size: 0.82rem; opacity: 0.6; }
.sr-foot { font-size: 0.74rem; opacity: 0.55; margin: 18px 0 0; line-height: 1.7; }
.top-card .top-kp { font-size: 0.78rem; opacity: 0.7; }
.top-card .top-level {
  margin-left: auto; font-size: 0.72rem; padding: 2px 8px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.05);
}
@media (max-width: 720px) {
  .sr-kpis { gap: 18px; }
  .sr-kpis div b { font-size: 1.25rem; }
  .sr-heat-row { grid-template-columns: 66px 1fr 92px; }
  .sr-matrix { font-size: 0.72rem; }
  .sr-matrix th, .sr-matrix td { padding: 6px 4px; }
}

/* ---- 打印 ---- */
@media print {
  .nav, .footer, .print-hide, .erm-steps, .erm-navbtns, .page-hero { display: none !important; }
  .locked, .gate3 { display: none !important; }
  body { background: #fff; }
  .card, .point-card, .top-card { border-color: #ccc; box-shadow: none; }
  .erm-section { break-inside: avoid; }
}

/* ---- 响应式 ---- */
@media (max-width: 720px) {
  .erm-panel { padding: 24px 18px 28px; }
  .erm-facts, .erm-overview { grid-template-columns: repeat(2, 1fr); }
  .point-q .seg { grid-template-columns: 1fr; }
  .erm-bars .bar-row { grid-template-columns: 78px 1fr 52px; }
  .erm-bars .bar-name { font-size: 0.72rem; }
  .prof-grid { grid-template-columns: 1fr; }
  .gate-form { grid-template-columns: 1fr; }
  .g3-thumb { grid-template-columns: 1fr; }
  .gate-intent { flex-direction: column; gap: 10px; }
  .erm-auto-adv { flex-wrap: wrap; }
  .erm-auto-adv .link-btn { margin-left: 0; }
  .sk-grid { grid-template-columns: repeat(3, 1fr); }
  .top3-card .t3-sub { margin-left: 0; flex-basis: 100%; }
}

/* ==========================================================================
   测评范围选择（选中心 → 选条线 → 选深度）
   ========================================================================== */
.scope-centers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.scope-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.scope-center:hover { border-color: var(--line-strong); background: #fbfbf9; }
.scope-center.on { border-color: #2d6a4f; background: rgba(45, 106, 79, .06); }
.scope-center .sc-prefix {
  font-size: 0.68rem; letter-spacing: .08em; font-weight: 600; color: #2d6a4f;
}
.scope-center.off .sc-prefix { color: var(--ink-soft); }
.scope-center .sc-name { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.scope-center .sc-meta { font-size: 0.72rem; color: var(--ink-soft); }

.scope-note {
  font-size: 0.85rem; line-height: 1.6; color: var(--ink-mid);
  background: var(--bg-soft); border-left: 3px solid var(--line-strong);
  padding: 9px 12px; border-radius: 0 8px 8px 0; margin: 0 0 12px;
}
/* 中心范围下的免费档：保留可见但不可选（免费仅限独立业务线） */
.scope-tier.off {
  opacity: .55; cursor: not-allowed; background: var(--bg-soft);
}
.scope-tier.off:hover { border-color: var(--line); background: var(--bg-soft); box-shadow: none; }

/* 全体系③的年度顾问卡：可选项之外的咨询出口，样式与档位卡同族但明确是链接 */
.scope-tier-link {
  display: block; text-decoration: none;
}
.scope-tier-link:hover { border-color: var(--biz); }
.scope-tier-link .st-head i { font-style: normal; }

/* ③ 深度位的一句话提示：无底色、不与档位卡抢视觉 */
.scope-hint {
  font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft);
  margin: -6px 0 10px;
}
/* 从企业页等外部入口带参进来时的定位提示 */
.scope-note.scope-entry {
  background: #e9f5ef; border-left-color: #2d6a4f; color: var(--ink);
}
.scope-lines {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin: 0 0 22px;
}
.scope-line {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.scope-line:hover:not(.off) { border-color: var(--line-strong); background: #fbfbf9; }
.scope-line.on { border-color: #2d6a4f; background: rgba(45, 106, 79, .06); }
.scope-line.off { opacity: .55; cursor: not-allowed; }
.scope-line .sl-code {
  font-size: 0.68rem; font-weight: 600; letter-spacing: .06em;
  color: #2d6a4f; min-width: 30px;
}
.scope-line.off .sl-code { color: var(--ink-soft); }
.scope-line .sl-name { flex: 1; font-size: 0.92rem; color: var(--ink); }
.scope-line .sl-meta { font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }

.scope-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 0 0 22px;
}
.scope-tier {
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.scope-tier:hover { border-color: var(--line-strong); background: #fbfbf9; }
.scope-tier.on { border-color: #2d6a4f; background: rgba(45, 106, 79, .06); }
.scope-tier .st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.scope-tier .st-head b { font-family: var(--serif); font-size: 0.98rem; font-weight: 500; color: var(--ink); }
.scope-tier .st-head i { font-style: normal; font-size: 0.9rem; color: #2d6a4f; }
.scope-tier .st-note { font-size: 0.78rem; line-height: 1.55; color: var(--ink-mid); }

.scope-summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
}
.scope-summary .ss-sub { font-size: 0.8rem; color: var(--ink-soft); }
.scope-summary .ss-hint { font-size: 0.85rem; color: var(--ink-soft); }

/* 全体系卡：横跨整行，和 7 个中心卡区分开，避免被当成「第 8 个中心」 */
.scope-centers .scope-system {
  grid-column: 1 / -1;
  border-color: #2d6a4f;
  background: rgba(45, 106, 79, .05);
}
.scope-centers .scope-system:hover { background: rgba(45, 106, 79, .1); }
.scope-centers .scope-system .sc-prefix { background: #2d6a4f; color: #fff; }
.scope-centers .scope-system .sc-name { font-size: 1.05rem; }
.scope-centers .scope-system .sc-meta { color: #2d6a4f; opacity: .85; }

/* 「该中心全部 N 条线」：条线列表的首项，代表整个中心 */
.scope-lines .scope-all { border-style: dashed; }
.scope-lines .scope-all .sl-code { background: #2d6a4f; color: #fff; }
.scope-lines .scope-all .sl-name { font-weight: 500; }

/* 分步标签：条线一多（全体系 41 条）标签行会很长，
   按条线分组——每条线的第一个标签带线名，并加一条竖分隔 */
.erm-steps .step-chip.group-start { margin-left: 10px; }
.erm-steps .step-chip.group-start::before {
  content: ''; position: absolute; left: -6px; top: 15%; height: 70%;
  width: 1px; background: var(--line, #e6e4dd);
}
.erm-steps .step-chip .chip-line {
  display: block; font-size: 0.66rem; letter-spacing: .04em;
  color: var(--ink-soft); margin-bottom: 2px;
}
.erm-steps .step-chip { position: relative; }

.erm-step-line { font-size: 0.8rem; color: var(--ink-soft); margin: 2px 0 0; }

.erm-todo .todo-more { font-size: 0.78rem; color: var(--ink-soft); align-self: center; }

@media (max-width: 720px) {
  .scope-centers { grid-template-columns: repeat(2, 1fr); }
  .scope-lines { grid-template-columns: 1fr; }
  .scope-tiers { grid-template-columns: 1fr; }
  .erm-steps { max-height: 132px; }
}

/* 防复制：题干内容属受控知识资产，测评过程中禁止选中复制（输入框除外） */
.erm-wrap {
  -webkit-user-select: none;
  user-select: none;
}
.erm-wrap input,
.erm-wrap textarea,
.erm-wrap select {
  -webkit-user-select: text;
  user-select: text;
}
/* 打印 / 另存为 PDF 同样能带走内容，一并屏蔽 */
@media print {
  /* 隐藏全部子内容，只留一行提示（display:none 会让 ::after 一起消失） */
  .erm-wrap > * { display: none !important; }
  .erm-wrap::after {
    content: '测评内容不支持打印或导出 PDF，如需报告请使用页内导出功能。';
    display: block;
    padding: 24px 0;
    color: #666;
  }
}

/* 已购买的报告是客户自己的交付物：允许选中复制与打印（答题过程中的题干仍然防复制） */
body.has-paid-report .erm-wrap {
  -webkit-user-select: text;
  user-select: text;
}
@media print {
  body.has-paid-report .erm-wrap > * { display: block !important; }
  body.has-paid-report .erm-wrap::after { content: none !important; }
  body.has-paid-report .print-hide { display: none !important; }
}

/* ==========================================================================
   扫码购买弹层（自动标准报告）
   ========================================================================== */
body.buy-open { overflow: hidden; }
.buy-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 24, 40, 0.46);
  backdrop-filter: blur(2px);
}
.buy-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 36px 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(6, 26, 48, 0.28);
}
.buy-dialog h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.buy-sub { font-size: 0.88rem; line-height: 1.65; color: var(--ink-mid); margin: 0 0 22px; }
.buy-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.buy-x:hover { background: var(--bg-soft); color: var(--ink); }
.buy-field { margin-bottom: 18px; }
.buy-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.buy-dialog input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.buy-dialog input[type="email"]:focus { outline: none; border-color: var(--biz); }
.buy-hint { font-size: 0.76rem; color: var(--ink-soft); margin: 7px 0 0; }
.buy-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-tabs button {
  flex: 1;
  min-width: 120px;
  padding: 10px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-mid);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s;
}
.buy-tabs button:hover { border-color: var(--biz); color: var(--biz); }
.buy-tabs button.on { background: var(--biz); border-color: var(--biz); color: #fff; }
.buy-dialog select {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--ink);
}
.buy-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--biz-soft);
}
.buy-summary b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--biz);
}
.buy-summary span { font-size: 0.82rem; color: var(--ink-mid); text-align: right; }
.buy-create { width: 100%; }
.buy-msg { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-mid); }
.buy-msg.err { color: #B3261E; }
.buy-amount { font-family: var(--serif); font-size: 1.35rem; color: var(--biz); margin-left: 8px; }
.buy-pay { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 20px; }
.buy-qr {
  flex: 0 0 196px;
  width: 196px;
  height: 196px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.buy-qr img { width: 100%; height: 100%; object-fit: contain; }
.buy-qr-miss { padding: 18px; text-align: center; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; }
.buy-qr-miss b { display: block; margin-bottom: 6px; color: var(--ink-mid); }
.buy-qr-miss .buy-contact { display: inline-block; margin-top: 10px; font-size: 0.78rem; color: var(--biz); text-decoration: none; border-bottom: 1px solid rgba(12,68,124,.28); padding-bottom: 1px; }
.buy-qr-miss .buy-contact:hover { border-bottom-color: var(--biz); }
.buy-pay-info { flex: 1; min-width: 0; }
/* 无收款码时的付款指引（对公/线下转账）：替代二维码区块，同高同宽不跳版 */
.buy-info {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-mid);
}
.buy-info-line { margin: 0 0 8px; }
.buy-info-line:last-child { margin-bottom: 0; }
.buy-info-line:first-child { color: var(--ink); }
/* 指引模式：上下布局，信息卡占满整行，订单栏不再被挤窄 */
.buy-pay-info-mode { display: block; }
.buy-pay-info-mode .buy-info { margin-bottom: 16px; }
.buy-kv { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 3px; }
.buy-no, .buy-money {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  word-break: break-all;
}
.buy-money { color: var(--biz); font-size: 1.1rem; }
.buy-tip { font-size: 0.78rem; line-height: 1.6; color: var(--ink-mid); margin: 0; }
.buy-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 0.84rem;
  color: var(--ink-mid);
}
.buy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E7D4F;
  animation: buyPulse 1.6s ease-in-out infinite;
}
@keyframes buyPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.buy-clock { margin-left: auto; font-size: 0.74rem; color: var(--ink-soft); }
.buy-claim { width: 100%; margin-top: 12px; }
.buy-link {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}
/* ---------- ¥999 专家报告 ---------- */
.ex-blocks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ex-blocks li { position: relative; padding-left: 20px; font-size: 0.84rem; line-height: 1.7; color: var(--ink-soft); }
.ex-blocks li b { color: var(--ink); margin-right: 6px; }
.ex-blocks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--biz); opacity: 0.5; }
.ex-range { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 12px; }
.ex-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: #F7F9FC; border: 1px solid #E6ECF4; border-radius: 6px; }
.ex-note { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.6; }
.ex-unlock { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EDF1F6; }
.ex-unlock > p { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 8px; }
.ex-code { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-code input { flex: 1; min-width: 170px; padding: 9px 11px; border: 1px solid #DCE3EC; border-radius: 4px; font-size: 0.84rem; font-family: var(--sans); }
.ex-msg { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.6; color: var(--ink-soft); }
.ex-msg.err { color: #B42318; }

.ex-lead { font-size: 0.86rem; color: var(--ink-mid); margin: 0 0 16px; line-height: 1.75; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ex-grid label, .ex-full { display: block; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.ex-grid label i { color: #B42318; font-style: normal; }
.ex-grid input, .ex-full textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid #DCE3EC; border-radius: 4px; font-size: 0.85rem;
  font-family: var(--sans); color: var(--ink); box-sizing: border-box;
}
.ex-grid input[readonly] { background: #F4F6F9; color: var(--ink-soft); }
.ex-full { margin-top: 14px; }
.ex-full textarea { resize: vertical; line-height: 1.7; }
.ex-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ex-case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ex-k { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-right: 8px; }
.ex-no { font-size: 1rem; letter-spacing: 0.02em; }
.ex-badge { font-size: 0.72rem; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.ex-badge.wait { background: #FFF4E5; color: #B25E09; }
.ex-badge.ok { background: #E8F3EA; color: #1B7A3D; }
.ex-badge.off { background: #F1F3F6; color: var(--ink-soft); }
.ex-case-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 12px; }
.ex-wait, .ex-ok, .ex-closed { font-size: 0.84rem; line-height: 1.75; color: var(--ink-mid); margin: 0; }
.ex-ok { color: #1B7A3D; }

/* 紧凑切换模式：已选定中心时，范围选择收成一行，当前中心的条线成为主角 */
.scope-centers.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.scope-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.scope-switch .ss-lab {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.scope-switch select {
  max-width: 380px;
  padding: 9px 34px 9px 13px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.scope-switch select:focus { outline: 2px solid rgba(45, 106, 79, .25); outline-offset: 1px; }
.ss-switch-hint { font-size: 0.76rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .buy-dialog { padding: 26px 20px 24px; }
  .buy-pay { flex-direction: column; align-items: stretch; }
  .buy-qr { width: 100%; flex-basis: auto; height: 220px; }
  .ex-grid { grid-template-columns: 1fr; }
}
