/* ================= 霍邱县项目地图 + 在建项目栏 =================
   仪表盘专用，独立文件（不改 styles.css / app.js 的视觉体系）。
   深色业务场景：沿用青绿玻璃调，强调色用琥珀区分"在建"。 */

.hq-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

/* ---------- 左：地图 ---------- */
.hq-map-col {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(127, 227, 216, .16);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(20, 105, 122, .34), rgba(6, 26, 34, .62) 62%),
    linear-gradient(180deg, rgba(9, 38, 48, .72), rgba(6, 24, 31, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.hq-map-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px 4px;
}
.hq-map-title { font-size: 14px; font-weight: 650; color: rgba(238, 252, 252, .95); letter-spacing: .02em; }
.hq-map-sub { font-size: 11.5px; color: rgba(203, 229, 232, .58); }
.hq-map-stage { padding: 0 6px 2px; }
.hq-map { display: block; width: 100%; height: auto; }

.hq-plane { user-select: none; }
.hq-county-bg { fill: url(#hqCountyFill); }
.hq-town {
  fill: rgba(127, 227, 216, .045);
  stroke: rgba(127, 227, 216, .26);
  stroke-width: .8;
  transition: fill .18s ease;
}
.hq-town:hover { fill: rgba(127, 227, 216, .17); }
.hq-town.is-seat { fill: rgba(255, 196, 107, .22); stroke: rgba(255, 196, 107, .62); }
.hq-county-line {
  fill: none;
  stroke: rgba(127, 231, 223, .85);
  stroke-width: 1.7;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(127, 231, 223, .35));
}
.hq-town-label {
  fill: rgba(203, 229, 232, .62);
  paint-order: stroke;
  stroke: rgba(5, 24, 31, .85);
  stroke-width: 2.4;
  stroke-linejoin: round;
  pointer-events: none;
}
.hq-town-label.is-seat { fill: #ffd894; font-weight: 700; }
.hq-town-label.has-project { fill: rgba(238, 252, 252, .92); font-weight: 600; }

/* 卫星市 */
.hq-city > path {
  fill: rgba(255, 196, 107, .05);
  stroke: rgba(255, 196, 107, .38);
  stroke-width: .9;
}
.hq-city.has-active > path {
  fill: rgba(255, 196, 107, .10);
  stroke: rgba(255, 196, 107, .72);
}
.hq-city > path:hover { fill: rgba(255, 196, 107, .22); }
.hq-city.is-unknown > circle {
  fill: none; stroke: rgba(255, 196, 107, .34); stroke-width: 1; stroke-dasharray: 3 4;
}
.hq-city-label {
  fill: rgba(238, 252, 252, .86);
  font-size: 11.5px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(5, 24, 31, .85);
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.hq-city-count { fill: rgba(255, 196, 107, .88); font-size: 10px; }

/* 项目名（城关镇内多点铺开时标出来） */
.hq-proj-label {
  fill: rgba(238, 252, 252, .92);
  font-size: 9.6px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(3, 22, 30, .9);
  stroke-width: 2.6;
  stroke-linejoin: round;
  pointer-events: none;
}
.hq-proj-label.is-done { fill: rgba(203, 229, 232, .5); }

/* 标记的透明点击热区（点选更容易） */
.hq-mk-hit { fill: transparent; }

/* 连线 */
.hq-line {
  fill: none;
  stroke: rgba(127, 231, 223, .68);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 7 6;
  animation: hqFlow 2.6s linear infinite;
}
.hq-line.is-far { stroke: rgba(255, 196, 107, .58); }
@keyframes hqFlow { to { stroke-dashoffset: -52; } }
@media (prefers-reduced-motion: reduce) { .hq-line { animation: none; } }

/* 标记 */
.hq-hub-core { fill: #5fe7d8; stroke: rgba(4, 26, 32, .8); stroke-width: 1.4; }
.hq-hub-pulse { fill: none; stroke: rgba(95, 231, 216, .55); stroke-width: 1.2; animation: hqPulse 2.4s ease-out infinite; }
@keyframes hqPulse { 0% { r: 6; opacity: .9; } 100% { r: 17; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hq-hub-pulse { animation: none; } }
.hq-hub-label {
  fill: #9ff3ec; font-size: 10.5px; font-weight: 600;
  paint-order: stroke; stroke: rgba(5, 24, 31, .9); stroke-width: 3;
}
.hq-mk-core { fill: #ffc46b; stroke: rgba(6, 24, 31, .85); stroke-width: 1.2; }
.hq-mk-ring { fill: none; stroke: rgba(255, 196, 107, .8); stroke-width: 1.4; }
.hq-mk.is-done .hq-mk-core { fill: rgba(203, 229, 232, .45); }
.hq-mk.is-done .hq-mk-ring { stroke: rgba(203, 229, 232, .38); }

/* 图例 */
.hq-legend {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 4px 18px 12px; font-size: 11px; color: rgba(203, 229, 232, .62);
}
.hq-lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.hq-lg-hub { background: #5fe7d8; }
.hq-lg-active { background: #ffc46b; }
.hq-lg-done { background: rgba(203, 229, 232, .45); }
.hq-lg-line { width: 16px; height: 0; border-top: 2px dashed rgba(127, 231, 223, .7); border-radius: 0; vertical-align: 3px; }

/* ---------- 右：正在施工 ---------- */
.hq-side {
  display: flex; flex-direction: column;
  border: 1px solid rgba(127, 227, 216, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 38, 48, .72), rgba(6, 24, 31, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .22);
  overflow: hidden;
  min-height: 0;
}
.hq-side-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px 11px;
  font-size: 13px; font-weight: 650; color: rgba(238, 252, 252, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.hq-count {
  margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-align: center;
  background: rgba(255, 196, 107, .16); color: #ffd894;
}
.hq-side-body { flex: 1; overflow-y: auto; padding: 8px; max-height: 660px; }
.hq-side-empty { padding: 18px 16px; font-size: 12.5px; line-height: 1.8; color: rgba(203, 229, 232, .66); }

.hq-proj-card {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px; margin-bottom: 8px; overflow: hidden;
  background: rgba(255, 255, 255, .025);
}
.hq-proj-card.is-open { border-color: rgba(127, 227, 216, .24); background: rgba(127, 227, 216, .05); }
.hq-proj-head {
  display: flex; align-items: flex-start; gap: 9px; width: 100%;
  padding: 10px 12px; border: 0; background: none; text-align: left; cursor: pointer;
  color: inherit;
}
.hq-proj-head:hover { background: rgba(255, 255, 255, .04); }
.hq-proj-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px;
  background: #ffc46b; box-shadow: 0 0 0 3px rgba(255, 196, 107, .16);
}
.hq-proj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hq-proj-name {
  font-size: 13px; font-weight: 600; color: rgba(238, 252, 252, .94);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hq-proj-loc { font-size: 11px; color: rgba(203, 229, 232, .58); }
.hq-proj-badge {
  flex: none; min-width: 18px; padding: 0 5px; border-radius: 999px; text-align: center;
  font-size: 10.5px; font-weight: 700; line-height: 17px;
  background: rgba(255, 196, 107, .18); color: #ffd894;
}
.hq-proj-caret { flex: none; font-size: 11px; opacity: .55; margin-top: 2px; }

.hq-tasks { padding: 0 12px 10px 28px; }
.hq-task {
  display: flex; align-items: flex-start; gap: 7px; padding: 4px 0;
  font-size: 12px; line-height: 1.5; color: rgba(226, 246, 247, .84);
}
.hq-task-mark {
  flex: none; width: 5px; height: 5px; border-radius: 50%; margin-top: 6px;
  background: rgba(255, 196, 107, .8);
}
.hq-task.is-done { color: rgba(203, 229, 232, .45); text-decoration: line-through; }
.hq-task.is-done .hq-task-mark { background: rgba(203, 229, 232, .35); }
.hq-task-title { min-width: 0; word-break: break-word; }
.hq-task-empty { font-size: 11.5px; color: rgba(203, 229, 232, .45); padding: 2px 0 4px; }
.hq-task-edit {
  margin-top: 6px; padding: 3px 9px; border-radius: 7px;
  border: 1px solid rgba(127, 227, 216, .3); background: rgba(127, 227, 216, .1);
  color: #9ff3ec; font-size: 11.5px; cursor: pointer;
}
.hq-task-edit:hover { background: rgba(127, 227, 216, .2); }

/* ---------- 任务编辑弹窗 ---------- */
.hq-edit-add { display: flex; gap: 8px; margin-bottom: 12px; }
.hq-edit-add input { flex: 1; min-width: 0; }
.hq-edit-list { max-height: 320px; overflow-y: auto; }
.hq-edit-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
}
.hq-edit-check {
  flex: none; width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(127, 227, 216, .4); background: rgba(127, 227, 216, .08);
  color: #9ff3ec; font-size: 12px; line-height: 1;
}
.hq-edit-row.is-done .hq-edit-check { background: rgba(127, 227, 216, .3); }
.hq-edit-title { flex: 1; min-width: 0; word-break: break-word; }
.hq-edit-row.is-done .hq-edit-title { color: rgba(203, 229, 232, .45); text-decoration: line-through; }
.hq-edit-del {
  flex: none; width: 22px; height: 22px; border-radius: 6px; cursor: pointer;
  border: 0; background: none; color: rgba(255, 138, 142, .8); font-size: 15px; line-height: 1;
}
.hq-edit-del:hover { background: rgba(255, 138, 142, .12); }
.hq-edit-empty { font-size: 12.5px; color: rgba(203, 229, 232, .5); padding: 10px 2px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .hq-panel { grid-template-columns: minmax(0, 1fr); }
  .hq-side-body { max-height: 320px; }
}
