/* 赛道九 · 普查智能应用大屏专用样式（复用 screen.css 的设计 token） */

/* 普查家底 KPI 行 */
.census-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.ckpi { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--panel-br);
  border-radius: 8px; padding: 10px 14px; position: relative; backdrop-filter: blur(4px); }
.ckpi::before { content: ''; position: absolute; top: 0; left: 14px; width: 28px; height: 2px; background: var(--cyan); }
.ckpi.hot::before { background: var(--orange); }
.ck-ic { font-size: 26px; flex: none; }
.ck-num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: #eaf4ff; }
.ckpi.hot .ck-num { color: var(--orange); }
.ck-lbl { font-size: 12px; color: var(--txt); margin-top: 1px; }
.ck-sub { font-size: 10.5px; color: var(--txt-dim); margin-top: 2px; }

/* 三栏布局微调（左右更宽，容纳排行/清单） */
.census-main { grid-template-columns: 380px 1fr 380px; }

.mini-note { font-size: 10.5px; color: var(--txt-dim); line-height: 1.6; margin-top: 8px;
  padding: 6px 8px; background: rgba(37,216,232,.06); border-left: 2px solid var(--cyan); border-radius: 3px; }
.empty-hint { color: var(--txt-dim); font-size: 12px; padding: 14px 6px; text-align: center; }

/* ① 孕灾环境危险性评价 */
.hazeval { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.hz-row { display: grid; grid-template-columns: 24px 1fr 90px 36px auto; align-items: center; gap: 8px;
  font-size: 13px; padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.hz-rank { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); }
.hz-rank.top { background: var(--red); }
.hz-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-nm small { color: var(--txt-dim); font-size: 10px; margin-left: 5px; }
.hz-track { height: 10px; background: rgba(255,255,255,.06); border-radius: 5px; overflow: hidden; }
.hz-fill { height: 100%; border-radius: 5px; transition: width .6s; }
.hz-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ④ 减灾成效 */
.miti-sum { display: flex; gap: 8px; margin-bottom: 8px; }
.ms-box { flex: 1; text-align: center; padding: 7px 4px; background: rgba(10,22,48,.5); border: 1px solid var(--panel-br); border-radius: 5px; }
.ms-num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: #eaf4ff; }
.ms-lbl { font-size: 10.5px; color: var(--txt-dim); margin-top: 1px; }
.miti-list { max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.mt-row { display: grid; grid-template-columns: 64px 1fr 42px; grid-template-areas: "nm bar pct" "sb sb sb";
  gap: 2px 8px; font-size: 12px; padding: 4px; border-bottom: 1px solid rgba(255,255,255,.04); }
.mt-nm { grid-area: nm; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-bar { grid-area: bar; align-self: center; height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.mt-fill { height: 100%; background: linear-gradient(90deg, #16a085, #27ae60); border-radius: 4px; }
.mt-pct { grid-area: pct; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green); }
.mt-sb { grid-area: sb; font-size: 10.5px; color: var(--txt-dim); }
.mt-sb.weak { color: var(--orange); }

/* ③ 防灾资源调配 */
.alloc-bands { display: flex; gap: 7px; margin-bottom: 6px; }
.ab { flex: 1; text-align: center; padding: 5px 3px; background: rgba(10,22,48,.5); border: 1px solid var(--panel-br); border-radius: 5px; }
.ab-num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-lbl { font-size: 10px; color: var(--txt-dim); }
.alloc-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.al-row { font-size: 11.5px; padding: 5px 6px; background: rgba(255,255,255,.03); border-left: 2px solid var(--orange); border-radius: 3px; }
.al-nm { font-weight: 600; color: #eaf4ff; }
.al-pop { color: var(--orange); font-weight: 400; font-size: 11px; margin-left: 4px; }
.al-rec { color: var(--txt-dim); margin-top: 2px; line-height: 1.5; }

/* ② 重点防护对象识别 */
.targets { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.tg-row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer; transition: background .12s; }
.tg-row:hover { background: rgba(37,216,232,.06); }
.tg-row.sel { background: rgba(37,216,232,.12); outline: 1px solid var(--cyan); border-radius: 4px; }
.tg-rank { width: 24px; height: 24px; flex: none; border-radius: 5px; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tg-main { flex: 1; min-width: 0; }
.tg-nm { font-size: 13px; color: #eaf4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-cat { font-size: 11px; margin-left: 4px; }
.tg-sub { font-size: 10.5px; color: var(--txt-dim); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-kpi { flex: none; text-align: right; }
.tg-num { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.tg-kpi .lvtag { display: inline-block; margin-top: 2px; }

/* 详情弹窗行 */
.dt-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.dt-line span { color: var(--txt-dim); }
.dt-line b { color: #eaf4ff; text-align: right; }

/* 窄屏适配 */
@media (max-width: 1024px) {
  .census-kpis { grid-template-columns: repeat(2, 1fr); }
  .census-main { grid-template-columns: minmax(0, 1fr); }
  #cmap { flex: none; height: 54vh; min-height: 300px; }
  .hazeval, .targets { max-height: 360px; }
}
