/* 登封市生态治理与资源保护一张图 —— 大屏样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #020a18; color: #cfe8ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
}
:root {
  --cyan: #00e5ff;
  --cyan-soft: #7fdcff;
  --line: rgba(0, 190, 255, .28);
  --panel-bg: linear-gradient(180deg, rgba(6, 46, 84, .55), rgba(4, 24, 46, .42));
  --text-dim: #6ea6cf;
}
body { display: flex; flex-direction: column; position: relative; }
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(rgba(0, 140, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 140, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 50% 26%, rgba(0, 80, 160, .20), transparent 70%),
    radial-gradient(900px 500px at 82% 92%, rgba(0, 60, 120, .14), transparent 70%),
    radial-gradient(700px 400px at 8% 90%, rgba(0, 120, 180, .10), transparent 70%);
}

/* ============ 顶部 ============ */
.header { position: relative; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; z-index: 5; }
.header .side {
  position: absolute; top: 22px; font-size: 12px; letter-spacing: 2px; color: var(--text-dim);
}
.header .side.left { left: 28px; font-family: Consolas, monospace; color: #7fdcff; letter-spacing: 1px; }
.header .side.left::before { content: "▍"; color: var(--cyan); }
.header .side.right {
  right: 28px; color: #ffb020; border: 1px solid rgba(255, 176, 32, .35);
  padding: 5px 12px; border-radius: 3px; letter-spacing: 1px; font-size: 12px;
}
.title-banner {
  position: relative; padding: 10px 78px 14px;
  background: linear-gradient(180deg, rgba(0, 90, 180, .55), rgba(0, 40, 90, .12));
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  border-bottom: 2px solid rgba(0, 229, 255, .55);
  box-shadow: 0 8px 28px rgba(0, 150, 255, .22);
  text-align: center;
}
.title-banner h1 {
  font-size: 26px; letter-spacing: 6px; font-weight: 700;
  background: linear-gradient(180deg, #eaf7ff 20%, #5fc8ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(0, 180, 255, .35);
}
.title-banner .sub { margin-top: 4px; font-size: 11px; letter-spacing: 3px; color: #5f9ecf; }

/* ============ 工具栏 ============ */
.toolbar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 22px 6px; z-index: 4; gap: 16px;
}
.seg { display: flex; gap: 6px; background: rgba(4, 32, 60, .6); padding: 4px; border-radius: 4px; border: 1px solid var(--line); }
.seg button {
  border: 1px solid transparent; background: transparent; color: #79b7dd;
  font-size: 12px; letter-spacing: 1px; padding: 6px 14px; cursor: pointer; border-radius: 2px;
  font-family: inherit; transition: .18s;
}
.seg button:hover { color: #cdefff; border-color: rgba(0, 229, 255, .35); }
.seg button.active {
  color: #04121f; font-weight: 700;
  background: linear-gradient(180deg, #7fe9ff, #00b8e6);
  box-shadow: 0 0 14px rgba(0, 200, 255, .5);
}
.toolbar .meta-line { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--text-dim); }
.toolbar .meta-line b { color: #9fe6ff; font-weight: 500; }
/* 顶部治理评级统计 */
.rating-strip { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #7fb4d3; }
.rating-strip .rs-title { color: #9fe6ff; letter-spacing: 1px; }
.rating-strip .rs-item { display: inline-flex; align-items: center; white-space: nowrap; }
.rating-strip .rs-item i {
  width: 9px; height: 9px; border-radius: 2px; margin-right: 6px;
  box-shadow: 0 0 8px rgba(0, 220, 255, .5);
}
.rating-strip .rs-item b { color: #ffcf7f; font-weight: 600; margin: 0 2px; }
.toolbar a.admin-link {
  color: #7fdcff; text-decoration: none; border: 1px solid rgba(0, 229, 255, .35);
  padding: 5px 12px; border-radius: 2px; letter-spacing: 1px; font-size: 12px;
}
.toolbar a.admin-link:hover { background: rgba(0, 229, 255, .12); color: #fff; }

/* ============ 主体三栏 ============ */
.layout {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 12px; padding: 4px 16px 12px; z-index: 3;
}
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.col::-webkit-scrollbar { width: 4px; }
.col::-webkit-scrollbar-thumb { background: rgba(0,180,255,.3); border-radius: 2px; }
.panel {
  position: relative; min-height: 0;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px 10px;
  box-shadow: inset 0 0 26px rgba(0, 110, 200, .10);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--cyan); border-style: solid; opacity: .8;
}
.panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.panel h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; letter-spacing: 2px; color: #d6f2ff; margin-bottom: 8px;
}
.panel h3::before {
  content: ""; width: 3px; height: 13px;
  background: linear-gradient(180deg, #00e5ff, #0066cc);
  box-shadow: 0 0 10px rgba(0, 229, 255, .8);
}
.panel h3 .extra { margin-left: auto; font-size: 12px; color: var(--text-dim); letter-spacing: 0; font-weight: 400; }
.panel .hint { font-size: 12px; color: #5d8fb5; letter-spacing: .5px; }

/* ============ KPI ============ */
.kpi-panel { flex: none; }
.kpi-rows { display: flex; flex-direction: column; gap: 7px; }
.kpi-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid rgba(0, 170, 255, .22); border-radius: 2px;
  background: linear-gradient(135deg, rgba(0, 120, 190, .16), rgba(0, 40, 90, .05));
}
.kpi-row .k-label { font-size: 14px; color: #a8d4ee; letter-spacing: .5px; }
.kpi-row .k-val {
  font-size: 24px; font-weight: 700; font-family: Consolas, "Microsoft YaHei", monospace;
  color: #7fe9ff; text-shadow: 0 0 14px rgba(0, 200, 255, .45); line-height: 1;
}
.kpi-row .k-val small { font-size: 13px; margin-left: 3px; color: #6fb6d8; font-weight: 400; }

/* ============ 图表 ============ */
.chart-panel { flex: 1; display: flex; flex-direction: column; }
.chart-panel .chart { flex: 1; min-height: 90px; width: 100%; }

/* ============ 使用说明 ============ */
.tips-panel { flex: none; }
.tips-list { margin: 0; padding: 0 2px 2px 0; list-style: none; }
.tips-list li {
  position: relative; padding: 3px 0 3px 12px; font-size: 12px; line-height: 1.55; color: #7fb4d3;
}
.tips-list li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: #00d4ff; box-shadow: 0 0 6px rgba(0, 212, 255, .8);
}

/* ============ 罪名类型列表 ============ */
.crime-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.crime-list::-webkit-scrollbar { width: 4px; }
.crime-list::-webkit-scrollbar-thumb { background: rgba(0, 200, 255, .3); border-radius: 2px; }
.crime-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 6px;
  border-bottom: 1px dashed rgba(0, 140, 220, .14); cursor: pointer; transition: background .16s;
}
.crime-item:hover { background: rgba(0, 190, 255, .10); }
.crime-item.all { position: sticky; top: 0; z-index: 2; background: rgba(5, 28, 48, .97); border-bottom: 1px solid rgba(0, 190, 255, .25); }
.crime-item.all.active { background: rgba(0, 130, 190, .28); }
.crime-item.active { background: rgba(0, 190, 255, .16); box-shadow: inset 2px 0 0 #7fe9ff; }
.crime-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.crime-item .all-dot {
  width: 11px; height: 11px;
  background: conic-gradient(#ff5c5c, #ffb020, #00dcd4, #0e6f95, #ff5c5c);
  box-shadow: 0 0 10px rgba(0, 220, 255, .65);
}
.crime-item .name { flex: 1; font-size: 13px; color: #c6e6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crime-item .val { font-family: Consolas, monospace; font-size: 14px; color: #ffcf7f; }
.crime-item .val small { font-size: 11px; color: #6fb6d8; margin-left: 2px; }

/* ============ 案件密度热力图例 ============ */
.legend-panel { flex: none; }
.heat-legend { padding: 2px 2px 0; }
.hl-bar {
  height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, #0d2a44 0%, #fff3a8 18%, #ffd75e 42%, #ffa63f 66%, #ef3f1c 86%, #c91515 100%);
  box-shadow: 0 0 12px rgba(255, 140, 40, .35);
}
.hl-labels { display: flex; justify-content: space-between; font-size: 11px; color: #7fb4d3; margin-top: 5px; }

/* ============ 排名 ============ */
.rank-panel { flex: 1; min-height: 0; }
.rank-list { height: calc(100% - 26px); overflow-y: auto; padding-right: 4px; }
.rank-list::-webkit-scrollbar { width: 4px; }
.rank-list::-webkit-scrollbar-thumb { background: rgba(0, 200, 255, .3); border-radius: 2px; }
.rank-item {
  display: grid; grid-template-columns: 24px 62px 1fr 34px; align-items: center; gap: 8px;
  padding: 5px 4px; border-bottom: 1px dashed rgba(0, 140, 220, .14); cursor: pointer;
  transition: background .16s;
}
.rank-item:hover { background: rgba(0, 190, 255, .10); }
.rank-item .no {
  width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
  font-family: Consolas, monospace; font-size: 12px; color: #8fc4e2;
  border: 1px solid rgba(0, 170, 255, .3); border-radius: 2px;
}
.rank-item:nth-child(1) .no { color: #041019; background: #ffb020; border-color: #ffb020; font-weight: 700; }
.rank-item:nth-child(2) .no { color: #041019; background: #7fe9ff; border-color: #7fe9ff; font-weight: 700; }
.rank-item:nth-child(3) .no { color: #041019; background: #ff8f6b; border-color: #ff8f6b; font-weight: 700; }
.rank-item .town { font-size: 14px; color: #c6e6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .bar { height: 6px; background: rgba(0, 120, 200, .16); border-radius: 3px; overflow: hidden; }
.rank-item .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0a6ea0, #00d4ff); }
.rank-item .cnt { font-family: Consolas, monospace; font-size: 15px; color: #ffcf7f; text-align: right; }

/* ============ 中间地图 ============ */
.center { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.view-tabs {
  flex: none; display: flex; gap: 8px; justify-content: center; padding: 2px 0;
}
.view-tabs button {
  position: relative; cursor: pointer; font-family: inherit; font-size: 13px; letter-spacing: 1px;
  color: #86bada; background: rgba(4, 36, 66, .66); border: 1px solid rgba(0, 170, 255, .28);
  padding: 8px 20px; border-radius: 2px; transition: .18s;
}
.view-tabs button:hover { color: #d8f4ff; border-color: rgba(0, 229, 255, .6); }
.view-tabs button.active {
  color: #eafcff; background: linear-gradient(180deg, rgba(0, 190, 255, .5), rgba(0, 90, 170, .35));
  border-color: #00e5ff; box-shadow: 0 0 18px rgba(0, 200, 255, .4), inset 0 0 18px rgba(0, 220, 255, .18);
}
.map-wrap {
  position: relative; flex: 1; min-height: 0; border: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 50% 45%, rgba(0, 90, 160, .22), transparent 70%),
    rgba(2, 18, 36, .45);
  border-radius: 3px; overflow: hidden;
}
.map-wrap::before, .map-wrap::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 2; pointer-events: none;
  border-color: rgba(0, 229, 255, .8); border-style: solid;
}
.map-wrap::before { left: 10px; top: 10px; border-width: 2px 0 0 2px; }
.map-wrap::after { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; }
#map { width: 100%; height: 100%; }
.map-legend {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 70%;
  padding: 8px 12px; background: rgba(2, 20, 38, .72);
  border: 1px solid rgba(0, 170, 255, .25); border-radius: 2px; font-size: 13px;
  backdrop-filter: blur(3px);
}
.map-legend .item { display: flex; align-items: center; gap: 5px; color: #a9d3ea; }
.map-legend .sw { width: 12px; height: 12px; border-radius: 2px; }
.map-legend .grad { width: 100px; height: 12px; border-radius: 2px; background: linear-gradient(90deg, #12314d, #0e6f95, #00bcd4, #ffb020, #ff5c5c); }
.map-legend .cap { color: #7fb4d3; }
.map-tip {
  position: absolute; top: 14px; right: 16px; z-index: 3; text-align: right;
  font-size: 13px; color: #8fbdd9; pointer-events: none; letter-spacing: .5px;
  display: none;
}
.map-tip b { color: #9fe6ff; font-weight: 500; }

/* 左下动态图表面板 */
.dynamic-panel { flex: 1.1; }
.dynamic-panel .chart { min-height: 200px; }

/* 案件列表面板 */
.crime-type-panel { flex: 0.6; display: flex; flex-direction: column; min-height: 0; }

/* 点击矿点弹出的单点信息卡 */
.mineral-card {
  display: none; position: absolute; z-index: 12; min-width: 190px; max-width: 300px;
  padding: 10px 30px 11px 12px; border-radius: 4px;
  background: rgba(4, 22, 40, .96); border: 1px solid rgba(0, 170, 255, .55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .55), 0 0 16px rgba(0, 140, 220, .25);
  font-size: 13px; color: #cfe9fb; line-height: 1.65;
}
.mineral-card.open { display: block; }
.mineral-card .mc-title { font-size: 15px; font-weight: 700; color: #9fe6ff; margin-bottom: 5px; }
.mineral-card .mc-row { color: #9fbdd2; }
.mineral-card .mc-row b { color: #cfe9fb; font-weight: 500; }
.mineral-card .mc-close {
  position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; line-height: 16px;
  text-align: center; cursor: pointer; color: #7fb3d1; border: 1px solid rgba(0, 170, 255, .35);
  border-radius: 3px; font-size: 13px; background: transparent;
}
.mineral-card .mc-close:hover { color: #9fe6ff; border-color: rgba(0, 200, 255, .8); }

/* 右栏顶部：案件密度热力图例（案件总量 / 罪名类型） */
.heat-legend-panel {
  flex: none; padding: 12px 14px 13px; background: rgba(3, 22, 42, .88);
  border: 1px solid rgba(0, 170, 255, .38); border-radius: 2px;
  box-shadow: 0 0 18px rgba(0, 140, 220, .18);
}
.heat-legend-panel .hl-title {
  position: relative; padding-left: 10px; margin-bottom: 10px;
  font-size: 16px; font-weight: 700; color: #8fe6ff; letter-spacing: .5px;
}
.heat-legend-panel .hl-title::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 3px; height: 15px;
  background: #24c8ff; box-shadow: 0 0 8px rgba(36, 200, 255, .8);
}
.heat-legend-panel .hl-zero { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #cfe6f7; margin-bottom: 7px; }
.heat-legend-panel .hl-zero .sw { width: 17px; height: 17px; border-radius: 2px; background: #16436b; border: 1px solid rgba(120, 190, 235, .45); }
.heat-legend-panel .hl-bar {
  height: 13px; border-radius: 2px;
  background: linear-gradient(90deg, #fff3a8 0%, #ffd75e 30%, #ffa63f 55%, #ef3f1c 78%, #c91515 100%);
  box-shadow: 0 0 12px rgba(255, 140, 40, .4);
}
.heat-legend-panel .hl-labels { display: flex; justify-content: space-between; font-size: 14px; color: #cfe6f7; margin-top: 6px; }
.heat-legend-panel .hl-tip,
.heat-legend-panel .hl-line { font-size: 13px; color: #a9d3ea; line-height: 1.65; }
.heat-legend-panel .hl-tip { margin-top: 10px; }
.heat-legend-panel .hl-line b { color: #ffcf7f; font-weight: 600; }
.heat-legend-panel .hl-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cfe6f7; margin-top: 6px; }
.heat-legend-panel .hl-item .sw { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.heat-legend-panel .hl-item b { color: #ffcf7f; font-weight: 600; margin-left: auto; }
.heat-legend-panel .hl-stack { display: flex; height: 10px; margin: 10px 0 8px; border-radius: 2px; overflow: hidden; background: rgba(0, 60, 100, .5); }
.heat-legend-panel .hl-stack span { display: block; height: 100%; }
.heat-legend-panel .hl-date { margin-top: 10px; font-size: 13px; color: #8fbdd9; letter-spacing: .3px; }

/* ============ 侧滑详情 ============ */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(1, 10, 20, .55); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer {
  position: fixed; top: 50%; left: 50%; width: 620px; max-width: 92vw; height: auto; max-height: 82vh;
  background: linear-gradient(180deg, #061d35, #04101f); border: 1px solid rgba(0, 229, 255, .45);
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .65); z-index: 41;
  transform: translate(-50%, -50%) scale(.95); opacity: 0; pointer-events: none;
  transition: transform .24s ease, opacity .2s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 16px 18px 12px; border-bottom: 1px solid rgba(0, 170, 255, .25); }
.drawer-head .t { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 22px; letter-spacing: 2px; color: #e6f9ff; }
.drawer-head .close { cursor: pointer; color: #7fb4d3; font-size: 26px; line-height: 1; padding: 0 4px; }
.drawer-head .close:hover { color: #fff; }
.drawer-head .chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 4px 11px; border: 1px solid rgba(0, 190, 255, .3); border-radius: 10px; color: #9fd6f0; }
.chip.rating-优秀 { color: #6ff0b0; border-color: rgba(60, 220, 140, .5); }
.chip.rating-良好 { color: #7fe9ff; border-color: rgba(0, 200, 255, .5); }
.chip.rating-一般 { color: #ffc46b; border-color: rgba(255, 176, 32, .5); }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 22px; }
.drawer-body::-webkit-scrollbar { width: 5px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(0, 200, 255, .3); border-radius: 3px; }
.drawer-body h4 { font-size: 15px; color: #9fe6ff; letter-spacing: 1px; margin: 16px 0 10px; display: flex; align-items: center; gap: 8px; }
.drawer-body h4::before { content: ""; width: 3px; height: 11px; background: #00c8ff; }
.case-row {
  padding: 9px 10px; margin-bottom: 7px; background: rgba(0, 70, 130, .18);
  border: 1px solid rgba(0, 150, 220, .18); border-left: 2px solid rgba(0, 200, 255, .55);
  border-radius: 2px;
}
.case-row .l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #d6efff; }
.case-row .l1 .date { color: #7fb4d3; font-family: Consolas, monospace; flex: none; }
.case-row .l2 { margin-top: 6px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: #86a9c4; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 2px; background: rgba(0, 160, 255, .16); color: #8fd6f5; border: 1px solid rgba(0, 170, 255, .25); }
.badge.st-已办结 { color: #6ff0b0; border-color: rgba(60, 220, 140, .4); background: rgba(30, 160, 100, .14); }
.badge.st-审查起诉 { color: #ffc46b; border-color: rgba(255, 176, 32, .4); background: rgba(200, 140, 20, .14); }
.badge.st-在办 { color: #ff9f9f; border-color: rgba(255, 100, 100, .4); background: rgba(180, 60, 60, .14); }
.empty { text-align: center; color: #5d8fb5; font-size: 13px; padding: 18px 0; }
.res-line { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 2px; border-bottom: 1px dashed rgba(0, 140, 220, .15); color: #b5d9ee; }
.res-line .r { color: #ffcf7f; font-family: Consolas, monospace; }
.rating-note { font-size: 13px; line-height: 1.8; color: #8fb4cf; background: rgba(0, 70, 130, .16); padding: 8px 10px; border-left: 2px solid rgba(255, 176, 32, .6); }

/* 加载态 */
.loading-mask { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; background: rgba(1, 10, 20, .5); }
.loading-mask.show { display: flex; }
.loading-mask .box { padding: 16px 26px; border: 1px solid rgba(0, 229, 255, .4); background: rgba(2, 24, 44, .9); font-size: 13px; letter-spacing: 2px; color: #9fe6ff; }

.footer-note { flex: none; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #3d6b8c; letter-spacing: 2px; z-index: 3; }

/* ============ disabled tab / lock ============ */
.view-tabs button.disabled {
  color: #4c6a82; background: rgba(20, 30, 44, .55);
  border-color: rgba(80, 100, 120, .35); cursor: not-allowed;
  box-shadow: none !important;
}
.view-tabs button.disabled:hover { color: #4c6a82; border-color: rgba(80, 100, 120, .35); }
.view-tabs button .lock { margin-left: 6px; font-size: 11px; opacity: .75; }

/* ============ 生态环境联络员 ============ */
.contact-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.contact-tree {
  flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-tree::-webkit-scrollbar { width: 4px; }
.contact-tree::-webkit-scrollbar-thumb { background: rgba(0, 200, 255, .3); border-radius: 2px; }
.contact-town {
  border: 1px solid rgba(0, 170, 255, .22); border-radius: 2px;
  background: linear-gradient(135deg, rgba(0, 120, 190, .14), rgba(0, 40, 90, .04));
  overflow: hidden;
}
.contact-town > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: #c6e6ff;
  padding: 7px 10px; letter-spacing: 1px; user-select: none;
  list-style: none;
  background: linear-gradient(90deg, rgba(0, 180, 255, .18), transparent);
  display: flex; align-items: center; gap: 6px;
}
.contact-town > summary::-webkit-details-marker { display: none; }
.contact-town > summary::before {
  content: "▶"; display: inline-block; font-size: 9px; color: #7fe9ff;
  transition: transform .18s;
}
.contact-town[open] > summary::before { transform: rotate(90deg); }
.contact-town > summary:hover { color: #eafcff; background: linear-gradient(90deg, rgba(0, 220, 255, .28), transparent); }
.contact-dept { padding: 4px 10px 8px 16px; border-top: 1px dashed rgba(0, 140, 220, .15); }
.dept-name { font-size: 12px; color: #8fbdd9; margin: 4px 0 3px; }
.persons { display: flex; flex-direction: column; gap: 3px; }
.contact-person {
  display: grid; grid-template-columns: 68px 1fr 132px; gap: 6px;
  align-items: center; font-size: 12px; padding: 4px 8px;
  border-radius: 2px;
  background: rgba(0, 70, 130, .14);
  border-left: 2px solid rgba(0, 200, 255, .35);
}
.contact-person .name { color: #d6f2ff; font-weight: 500; }
.contact-person .role { color: #ffcf7f; font-size: 11px; }
.contact-person .phone { color: #7fe9ff; font-family: Consolas, monospace; text-align: right; font-size: 11px; }

/* ============ 办案效果量化 ============ */
.decrease-panel { flex: none; }
.dec-total {
  padding: 10px 14px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(61, 220, 132, .14), rgba(0, 120, 190, .12));
  border: 1px solid rgba(61, 220, 132, .35);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.dec-total::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px;
  background: radial-gradient(circle, rgba(61, 220, 132, .28), transparent 70%);
}
.dec-total-box { position: relative; z-index: 1; }
.dec-pct {
  font-size: 13px; color: #3ddc84; letter-spacing: 1px;
  display: flex; align-items: baseline; gap: 6px;
}
.dec-pct b {
  font-size: 34px; font-weight: 700; color: #6ff0b0;
  font-family: Consolas, "Microsoft YaHei", monospace;
  text-shadow: 0 0 18px rgba(61, 220, 132, .6);
  line-height: 1;
}
.dec-pct small { font-size: 16px; }
.dec-num { margin-top: 4px; font-size: 12px; color: #9ecbe5; display: flex; gap: 8px; align-items: center; }
.dec-num .arr { color: #3ddc84; font-weight: 600; }
.dec-num .y2024 { color: #7fc1ea; }
.dec-num .y2025 { color: #6ff0b0; font-weight: 500; }

.dec-list { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 4px; }
.dec-row {
  display: grid; grid-template-columns: 148px 1fr 70px; gap: 8px;
  align-items: center; font-size: 12px;
  padding: 6px 8px;
  background: rgba(0, 70, 130, .14);
  border: 1px solid rgba(0, 150, 220, .16);
  border-radius: 2px;
}
.dec-name { color: #c6e6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dec-bar { height: 10px; position: relative; border-radius: 3px; overflow: hidden; }
.dec-bar .bar-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(127, 225, 255, .28), rgba(0, 150, 220, .18));
}
.dec-bar .bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #3ddc84, #2dd4bf);
  border-radius: 3px;
}
.dec-pct-cell { font-family: Consolas, monospace; font-weight: 600; text-align: right; }

@media (max-width: 1440px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr) 270px; }
  .title-banner h1 { font-size: 22px; }
  .kpi .k-val { font-size: 22px; }
}
@media (max-width: 1180px) {
  html, body { overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .col { flex-direction: row; flex-wrap: wrap; }
  .col > .panel { flex: 1 1 300px; }
  .center { height: 560px; }
  .header .side { display: none; }
}
