:root {
  --brand: #16B5A0;
  --brand-dark: #0F8C7C;
  --brand-soft: #E6F7F4;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --text: #1F2A33;
  --text-2: #6B7785;
  --line: #EAEFF2;
  --gray: #9AA0A6;
  --orange: #F5A623;
  --blue: #4A90E2;
  --purple: #9B59B6;
  --red: #D9534F;
  --shadow: 0 2px 12px rgba(31, 42, 51, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 64px; /* 底部导航占位 */
}

/* 顶部品牌栏 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(22, 181, 160, 0.25);
}
.app-header .brand { display: flex; align-items: center; gap: 8px; }
.app-header .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.app-header .title { font-size: 16px; font-weight: 700; }
.app-header .subtitle { font-size: 11px; opacity: 0.85; }
.app-header .top-right { display: flex; align-items: center; gap: 6px; }
.app-header .icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); color: #fff;
  border: none; font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.app-header .icon-btn:hover { background: rgba(255, 255, 255, 0.28); }

/* 内容区 */
.page { padding: 14px 14px 20px; }
.page-title { font-size: 17px; font-weight: 700; margin: 4px 2px 12px; }
.page-desc { color: var(--text-2); font-size: 12px; margin: -8px 2px 12px; }

/* 后台弹框：居中 + 渐入（覆盖 mobile H5 的底部抽屉） */
.admin-body .modal-overlay,
.admin-body .pcp-overlay {
  align-items: center;
}
.admin-body .modal,
.admin-body .pcp-modal {
  border-radius: 18px;
  max-height: 88vh;
  animation: modalIn .15s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* 顶部 Tab 切换（区域页：行政区域 / 自建区域） */
.tabs { display: flex; gap: 0; margin: 4px 2px 12px; border-bottom: 1px solid var(--border, #E5E9ED); }
.tab {
  flex: 1 1 0; text-align: center; justify-content: center;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-2);
  border-radius: 10px 10px 0 0; cursor: pointer; user-select: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-dark, #0F8C7C); border-bottom-color: var(--brand, #16B5A0); }
.tab-count {
  background: #EEF1F3; color: var(--gray, #6B7785);
  border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700;
}
.tab.active .tab-count { background: var(--brand, #16B5A0); color: #fff; }

/* 卡片 */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.card-row { display: flex; align-items: center; gap: 10px; }
.card-clickable { cursor: pointer; transition: transform .08s ease; }
.card-clickable:active { transform: scale(0.985); }

/* 统计网格：PC 后台宽屏 3 列 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

/* select 统一美化：高级感、圆滑；.raw 可还原原生 */
select:not(.raw) {
  height: 38px; padding: 0 40px 0 14px; font-size: 13px; font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316B5A0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,46,42,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:not(.raw):hover { border-color: #B5E5DC; box-shadow: 0 2px 8px rgba(22,181,160,.10); }
select:not(.raw):focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,181,160,.14), 0 4px 12px rgba(22,181,160,.10); outline: none; }

/* 自定义下拉（高级感）：替代原生 select，圆角 12 + 阴影 + 动效 + 选中 ✓ */
.dropdown { position: relative; }
.dd-trigger {
  width: 100%; height: 38px; padding: 0 40px 0 14px; font-size: 13px; font-weight: 500;
  color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15,46,42,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dd-trigger:hover { border-color: #B5E5DC; box-shadow: 0 2px 8px rgba(22,181,160,.10); }
.dd-trigger .dd-arrow { color: var(--brand); transition: transform .25s ease; flex-shrink: 0; }
.dropdown.open .dd-trigger { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,181,160,.14), 0 4px 12px rgba(22,181,160,.10); }
.dropdown.open .dd-trigger .dd-arrow { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,46,42,.14), 0 2px 6px rgba(15,46,42,.06);
  border: 1px solid #EEF2F2;
  max-height: 280px; overflow-y: auto; z-index: 100; padding: 5px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown.open .dd-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dd-item {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; font-size: 13px; border-radius: 8px;
  cursor: pointer; color: var(--text);
  transition: background .12s ease, color .12s ease;
}
.dd-item:hover { background: rgba(22,181,160,.10); color: var(--brand-dark, #0F8C7C); }
.dd-item.active { background: var(--brand); color: #fff; font-weight: 600; }
.dd-item .dd-check { width: 14px; height: 14px; opacity: 0; color: #fff; margin-left: auto; flex-shrink: 0; }
.dd-item.active .dd-check { opacity: 1; }
.dd-item .dd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; opacity: 0; }
.dd-item.active .dd-dot { background: #fff; opacity: 1; }
/* 4 列变体（前台首页用）：宽屏 4 列均分，窄屏回落 2 列 */
.stat-grid--cols4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .stat-grid--cols4 { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand); border-radius: 14px 14px 0 0; }
.stat .num { font-size: 24px; font-weight: 800; color: var(--brand); }
/* 4 块 stat 主题色：顶部彩条 + 数字同色 */
.stat--blue::before { background: #4A90E2; }    .stat--blue .num { color: #4A90E2; }
.stat--orange::before { background: #F5A623; } .stat--orange .num { color: #F5A623; }
.stat--red::before { background: #E25C5C; }    .stat--red .num { color: #E25C5C; }
.stat .label { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* 徽章 / 状态 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.badge.gray { background: #EEF1F3; color: var(--gray); }
.badge.orange { background: #FFF3E0; color: #C77800; }
.badge.blue { background: #E8F1FC; color: var(--blue); }
.badge.purple { background: #F3E9F8; color: var(--purple); }
.badge.red { background: #FCEAEA; color: var(--red); }
.badge-success { background: #E6F7F2; color: var(--brand-dark); }
.badge-empty { background: #FFF3E0; color: #C77800; }
.badge-failed { background: #FCEAEA; color: var(--red); }
.badge-default { background: #EEF1F3; color: var(--gray); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 文本辅助类 */
.err-tip { color: var(--red); font-size: 12px; margin: 4px 0; }
.t-green { color: var(--brand-dark); }
.t-muted { color: var(--text-2); }

/* 拉取日志页 */
.log-table .log-msg { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-caret { color: var(--text-2); font-size: 10px; }
.log-detail-row td { background: #F7FAFA; padding: 0 !important; }
.log-detail { padding: 12px 18px; font-size: 12px; color: var(--text-2); }
.log-detail-title { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.log-detail ul { margin: 0 0 6px; padding-left: 18px; }
.log-detail li { margin-bottom: 3px; }
.log-step-name { font-family: monospace; background: #EEF1F3; padding: 1px 5px; border-radius: 4px; color: var(--text); }
.log-districts, .log-stats { margin-top: 4px; }
.log-stats { color: var(--brand-dark); }

/* 按钮 */
.btn {
  border: none; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: #EEF1F3; color: var(--text); transition: opacity .1s;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-danger { background: #FCEAEA; color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 过滤条 */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

select, input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--text); background: #fff;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 60px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 600; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 弹窗 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 25, 35, 0.5);
  z-index: 100; display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head .m-title { font-size: 16px; font-weight: 700; }
.modal-close { font-size: 22px; color: var(--text-2); background: none; border: none; cursor: pointer; line-height: 1; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; text-align: center; padding: 8px 0 6px; cursor: pointer;
  color: var(--text-2); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.nav-item .ico { font-size: 19px; line-height: 1; }
.nav-item.active { color: var(--brand); font-weight: 700; }

/* 进度条 */
.bar { height: 8px; border-radius: 999px; background: #EEF1F3; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* 列表项 */
.item { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item-name { font-weight: 700; font-size: 15px; }
.item-meta { color: var(--text-2); font-size: 12px; margin-top: 4px; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.kv .k { color: var(--text-2); }

/* 地图 */
.map-wrap { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.svg-map { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; color: var(--text-2); }
.map-legend .li { display: flex; align-items: center; gap: 5px; }
/* 高德地图容器与状态 */
#amapContainer { width: 100%; height: 56vh; }
.map-loading, .map-error {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.92); padding: 10px 16px; border-radius: 10px;
  font-size: 13px; color: var(--text-2); box-shadow: var(--shadow); z-index: 10; text-align: center;
}
.map-error { color: var(--red); max-width: 80%; }
.amap-central {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
/* 地图容器与浮动控件 */
.amap-wrap { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.map-tools { position: absolute; top: 10px; right: 10px; z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.map-tool-btn {
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; color: var(--text-1); box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer;
}
.map-tool-btn:active { background: #eef; }
.route-info {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 30;
  background: rgba(31,42,51,.92); color: #fff; font-size: 12px; padding: 7px 12px; border-radius: 20px;
  max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.map-pop {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 76px; width: calc(100% - 28px); max-width: 452px;
  background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  padding: 14px; z-index: 50;
}

.empty { text-align: center; color: var(--text-2); padding: 40px 20px; font-size: 13px; }
.muted { color: var(--text-2); }
.right { text-align: right; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex { display: flex; align-items: center; gap: 8px; }
.nowrap { white-space: nowrap; }

/* 顶部城市切换 */
.top-right { display: flex; align-items: center; }
.top-sub {
  background: #fff; color: var(--text-2); font-size: 12px;
  padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.city-select {
  width: auto; min-width: 96px; padding: 6px 10px; font-size: 13px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.92); color: var(--text); font-weight: 600;
}
.flex-center { display: flex; align-items: center; gap: 6px; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #EEF1F3; color: var(--text-2); margin-left: 6px; vertical-align: middle; }
.tag-brand { background: var(--brand-soft); color: var(--brand-dark); }
.city-list { margin-top: 4px; }
.city-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.city-row:last-child { border-bottom: none; }
.city-row.active { background: var(--brand-soft); margin: 0 -14px; padding: 12px 14px; border-radius: 10px; }
.city-main { min-width: 0; }
.city-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; }
.city-meta { color: var(--text-2); font-size: 12px; margin-top: 3px; }
.city-ops { display: flex; gap: 6px; flex-shrink: 0; }
.ok-tip { color: var(--brand-dark); font-size: 12px; font-weight: 600; text-align: center; margin-top: 8px; }
.hist-list { margin-top: 8px; }
.hist-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hist-time { color: var(--text-2); white-space: nowrap; }
.hist-desc { color: var(--text); text-align: right; }

/* 前台顶栏「后台」入口 */
.admin-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--brand-dark); text-decoration: none;
}

/* ---------- 独立后台管理网址（admin.html） ---------- */
body.admin-body { background: #F4F6F8; }
body.admin-body #app { max-width: none; width: 100%; margin: 0; padding-bottom: 0; min-height: 100vh; }
body.admin-body .admin-layout { min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0; background: #0f2e2a; color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-brand .logo {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.admin-brand .title { font-weight: 800; font-size: 15px; }
.admin-brand .subtitle { font-size: 11px; opacity: .7; }
.admin-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.admin-nav .nav-item {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 10px 14px 10px 11px; border-radius: 8px; cursor: pointer;
  margin-bottom: 2px; font-size: 14px; line-height: 1.2;
  color: rgba(255,255,255,.78);
  position: relative; transition: background .15s ease, color .15s ease;
}
.admin-nav .nav-item .ico {
  width: 18px; height: 18px; flex-shrink: 0; color: inherit; display: block;
}
.admin-nav .nav-item .lbl { flex: 1; min-width: 0; }
.admin-nav .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
/* 选中态：克制版 —— 左侧 3px 品牌色竖条 + 弱底色 + 文字/图标亮起来 */
.admin-nav .nav-item.active {
  background: rgba(22,181,160,.14); color: #fff; font-weight: 600;
}
.admin-nav .nav-item.active::before {
  content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.admin-nav .nav-item.active .ico { color: var(--brand); }
.admin-side-foot {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.1);
}
.admin-side-foot .admin-user {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7); font-size: 12px;
  padding: 4px 2px 10px; word-break: break-all;
}
.admin-side-foot .admin-user .ico {
  width: 16px; height: 16px; flex-shrink: 0; color: inherit; display: block;
}
.admin-side-foot .admin-user .lbl { line-height: 1.3; }
.admin-side-foot .btn { width: 100%; }
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 20;
}
.admin-topbar .admin-menu-btn { display: none; font-size: 20px; background: none; border: none; cursor: pointer; }
.admin-top-title { font-weight: 800; font-size: 16px; flex: 1; }
.admin-city-pick select { padding: 6px 10px; border-radius: 8px; border: 1px solid #ddd; background: #fff; }
.admin-content { padding: 20px 24px; overflow-y: auto; flex: 1; min-width: 0; }
.admin-content .page { max-width: 1600px; width: 100%; margin: 0 auto; }
@media (max-width: 760px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%); transition: transform .2s;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-menu-btn { display: block; }
}

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, #16B5A0 0%, #0F8C7C 100%); }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-brand .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.login-brand .t { font-weight: 800; font-size: 17px; }
.login-brand .s { font-size: 12px; color: var(--text-2); }
.login-card .form-group { margin-bottom: 14px; }
.captcha-input-row { display: flex; gap: 8px; align-items: center; }
.captcha-svg { width: 110px; height: 40px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; overflow: hidden; flex-shrink: 0; background: #F2F6F5; }
.captcha-svg svg { display: block; width: 110px; height: 40px; }
.login-error { background: #fff3f3; color: #c00; font-size: 12px; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; }
.login-hint { font-size: 12px; color: var(--text-2); text-align: center; margin-top: 14px; }
.login-hint a { color: var(--brand-dark); margin-left: 6px; cursor: pointer; }

/* ---------- 顶栏用户态 ---------- */
.user-chip { font-size: 12px; background: rgba(255,255,255,.92); color: var(--brand-dark); padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.city-select-static, .admin-city-static { font-size: 13px; color: var(--brand-dark); font-weight: 600; padding: 6px 10px; background: rgba(255,255,255,.92); border-radius: 8px; }
.admin-user { font-size: 12px; color: #cfe; margin-bottom: 8px; padding: 0 4px; }

/* ---------- 账号管理 ---------- */
.user-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; }
.user-name { font-weight: 700; font-size: 14px; }
.user-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.user-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-gray { background: #eef0f2; color: #667; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- 运营后台：数据表格 / 工具栏 / 角色标签 ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .muted { margin-left: auto; }
.city-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.city-switch select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; }
.card-head { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.table-wrap .data-table { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { background: #F7FAFA; color: var(--text-2); font-weight: 700; font-size: 12px; position: sticky; top: 0; }
.data-table tbody tr:hover { background: #F7FAFA; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .strong { font-weight: 700; }
.data-table .check-col { width: 36px; text-align: center; }
.data-table .col-actions { text-align: right; white-space: nowrap; }
.data-table .col-actions .btn { margin-left: 4px; }
.status-pill { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.role-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.role-admin { background: #E8F1FC; color: var(--blue); }
.role-city { background: var(--brand-soft); color: var(--brand-dark); }


/* ===== 社区挑选器（地图圈选/点选/新增 共享组件） ===== */
.modal-xl { max-width: 860px; border-radius: 18px; }
.pcp-modal { max-width: 860px; padding: 18px 16px; display: flex; flex-direction: column; }
.pcp-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pcp-toolbar .btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pcp-hint { font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.pcp-count { margin-left: auto; font-size: 13px; color: var(--text); }
.pcp-count b { color: var(--brand); font-size: 16px; }
.pcp-confirm {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--brand-soft); border: 1px solid var(--brand);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
}
.pcp-confirm-text b { color: var(--brand-dark); font-size: 15px; }
.pcp-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 340px; }
.pcp-map-col { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f4f7f8; min-height: 340px; }
.pcp-map { width: 100%; height: 340px; }
.pcp-map-loading, .pcp-map-error {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.92); padding: 8px 14px; border-radius: 8px;
  font-size: 12px; color: var(--text-2); z-index: 20; text-align: center;
}
.pcp-map-error { color: var(--red); }
.pcp-legend {
  position: absolute; left: 8px; bottom: 8px; z-index: 20;
  display: flex; gap: 10px; background: rgba(255,255,255,.9);
  border-radius: 8px; padding: 4px 10px; font-size: 11px; color: var(--text-2);
}
.pcp-legend span { display: flex; align-items: center; gap: 4px; }
.pcp-legend .d { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pcp-list-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; max-height: 540px; padding-right: 2px; }
.pcp-search { display: flex; gap: 8px; }
.pcp-search input { flex: 1; }
.pcp-search select { width: 110px; flex: 0 0 auto; }
.pcp-list-title {
  font-size: 12px; color: var(--text-2); margin-bottom: 4px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.pcp-list-title .muted { font-weight: 400; color: var(--text-2); opacity: .7; }
.pcp-list { overflow-y: auto; max-height: 200px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pcp-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #f0f3f5; cursor: pointer; font-size: 13px;
}
.pcp-item:hover { background: #f6faf9; }
.pcp-item.anchor { background: #fff5e6; border-left: 3px solid #F5A623; }
.pcp-item.anchor:hover { background: #ffe9c7; }
.pcp-item.selected { background: #f0faf7; color: var(--brand-dark); font-weight: 600; }
.pcp-item .pcp-item-name { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; }
.pcp-item .pcp-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcp-item .muted { flex: 0 0 auto; font-size: 11px; }
.pcp-state { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--brand); }
.pcp-anchor-pill {
  font-style: normal; font-weight: 700; color: #fff; background: #F5A623; padding: 1px 8px; border-radius: 999px; font-size: 11px;
}
.pcp-tag { font-style: normal; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: 10px; }
.pcp-add { color: var(--brand); font-weight: 800; flex: 0 0 auto; }
.pcp-new {
  font-style: normal; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 4px; padding: 0 4px; line-height: 15px;
}
.pcp-list-actions { display: flex; gap: 8px; margin-top: 4px; }
.pcp-list-actions .btn { padding: 4px 8px; }
.pcp-selected { }
.pcp-selected .pcp-list-title { display: flex; align-items: center; }
.pcp-clear-all { margin-left: auto; padding: 2px 8px; font-size: 11px; }
.pcp-sel-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto; padding: 4px; border: 1px solid var(--brand-soft); border-radius: 10px; background: #f0faf7; }
.pcp-sel-tag {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand);
  border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.pcp-footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pcp-footer .pcp-footer-tip { font-size: 12px; color: var(--text-2); }
.pcp-footer .btn { min-width: 96px; }
.pcp-add-overlay { z-index: 120; }
.pcp-add-modal { max-width: 480px; }
.pcp-locate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcp-locate .btn.active { background: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .pcp-body { grid-template-columns: 1fr; }
  .pcp-map-col, .pcp-map, .pcp-list { min-height: 0; }
  .pcp-map { height: 46vh; }
  .pcp-list { max-height: 40vh; }
  .pcp-list-col { max-height: none; }
}
