* { box-sizing: border-box; }

/* 全局隐藏滚动条（保留滚动能力） */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

html, body, #app { min-height: 100%; margin: 0; }

body {
  min-width: 1000px;
  background: var(--page-background);
  color: var(--text-main);
  font-family: var(--font-family);
}

.platform-shell { min-height: 100vh; }

.shell-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 44px 0 28px;
  background: linear-gradient(180deg, #6e451f 0%, #a77b4c 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 3px 11px 3px 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(71, 42, 14, 0.2);
  color: var(--brand-brown);
}

.brand-seal {
  display: block;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  margin-right: 8px;
  overflow: hidden;
  border-radius: 5px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 31px;
  max-width: none;
}

.brand-name {
  color: var(--brand-brown);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 12px var(--font-family);
  cursor: pointer;
}

.account-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.account-icon::before {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.account-icon::after {
  position: absolute;
  bottom: 1px;
  left: 3px;
  width: 8px;
  height: 4px;
  border-radius: 6px 6px 3px 3px;
  background: currentColor;
  content: "";
}

.account-arrow { margin-left: 2px; font-size: 10px; }

.account-menu {
  position: absolute;
  z-index: 4;
  top: calc(var(--header-height) - 12px);
  right: 30px;
  min-width: 100px;
  padding: 4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.account-menu button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #404040;
  font: 14px var(--font-family);
  text-align: left;
  cursor: pointer;
}

.account-menu button:hover { background: #f4f6fa; }

.shell-content { display: flex; min-height: calc(100vh - var(--header-height)); }

.shell-sidebar {
  flex: 0 0 var(--sidebar-width);
  margin-right: 8px;
  padding: 16px 0;
  border: 1px solid #fff;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
  box-shadow: var(--sidebar-shadow);
}

.sidebar-nav { padding: 0 6px; }

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-main);
  font: 500 14px var(--font-family);
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover { background: rgba(120, 78, 35, 0.09); }

.nav-parent { position: relative; padding-right: 26px; }
.nav-toggle {
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.nav-parent[aria-expanded="true"] .nav-toggle { transform: rotate(225deg) translate(-1px, -1px); }
.nav-submenu { padding: 2px 0 6px 36px; }
.nav-subitem {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font: 500 13px/18px var(--font-family);
  text-align: left;
  cursor: pointer;
}
.nav-subitem:hover { background: rgba(120, 78, 35, 0.09); }
.nav-subitem.is-active { background: rgba(120, 78, 35, 0.16); color: var(--brand-brown); font-weight: 600; }


.nav-item.is-active {
  background: var(--brand-brown);
  box-shadow: var(--active-shadow);
  color: #fff;
}

.nav-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border-radius: 5px;
  background: #fff;
  color: var(--brand-brown);
  place-items: center;
}

.nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-item.is-active .nav-icon { color: var(--brand-brown); }
.nav-label { display: block; max-width: 96px; }

.workspace {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  background: #f7f4ef;
}

.workspace-portal {
  overflow: hidden;
  background: #f7f4ef;
}

.portal-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
  border: 0;
  background: #f7f4ef;
}

.welcome-message {
  position: relative;
  z-index: 1;
  margin: 140px 0 0 140px;
  color: var(--brand-brown);
}

.welcome-prefix { margin: 0 0 8px; font-size: 50px; font-weight: 400; line-height: 1.16; }
.welcome-title { margin: 0; font-size: 50px; font-weight: 700; line-height: 1.2; }
.status-line { margin: 18px 0 0; color: rgba(0, 0, 0, 0.5); font-size: 16px; }

/* === 县级枢纽平台展示页 === */
.workspace-county-hub {
  overflow-y: auto;
  background: #f7f4ef;
}

.county-hub-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}

/* —— 政务横幅 —— */
.hub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-radius: 10px;
  background: var(--brand-brown);
  margin-bottom: 16px;
}
.hub-banner-text h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
.hub-banner-text p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}
.hub-banner-watermark {
  font-size: 28px;
  font-weight: 500;
  color: rgba(255,255,255,0.12);
  letter-spacing: 4px;
}

/* —— 统计指标条 —— */
.hub-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.hub-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  border: 0.5px solid #ebe4d8;
}
.hub-stat-label { color: rgba(0,0,0,0.42); font-size: 12px; }
.hub-stat-value { font-size: 24px; font-weight: 500; line-height: 1.2; }
.hub-stat-item--brown .hub-stat-value { color: var(--brand-brown); }
.hub-stat-item--blue .hub-stat-value { color: #1e6fb8; }
.hub-stat-unit { font-size: 12px; font-weight: 400; color: rgba(0,0,0,0.42); margin-left: 2px; }

/* —— 通用区块标题 —— */
.hub-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.hub-section-header h3 {
  margin: 0;
  color: var(--brand-brown);
  font-size: 15px;
  font-weight: 500;
}
.hub-section-desc {
  color: rgba(0,0,0,0.42);
  font-size: 13px;
}

/* —— 历史任务页 —— */
.workspace-history-tasks { background: #f5f7fa; }
.history-tasks-content { max-width: none; padding: 28px 20px 48px; }
.history-tasks-title { margin: 0; }
/* 历史任务表格 */
.history-toolbar { margin-bottom: 14px; }
.hist-status-select { width: 140px; }
.history-tasks-table-wrap {
  overflow-x: auto;
  border: 1px solid #ece6db;
  border-radius: 10px;
  background: #fff;
}
.history-tasks-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}
.history-tasks-table th {
  padding: 11px 14px;
  border-bottom: 1px solid #f0e9de;
  background: #faf7f2;
  color: #6f675c;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.history-tasks-table th:last-child { text-align: left; }
.history-tasks-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f4efe7;
  color: #4a4a4a;
  vertical-align: middle;
}
.history-tasks-table tbody tr:last-child td { border-bottom: 0; }
.history-tasks-table tbody tr:hover td { background: #fcfaf6; }
.hist-cell-no { color: var(--brand-brown); font-weight: 600; white-space: nowrap; }
.hist-cell-title {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: #333;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-cell-assign {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: #6f675c;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-cell-time { color: #8a8a8a; white-space: nowrap; }
/* 操作列按内容收缩并贴合表格右缘：表格铺满容器时多余宽度不再摊到操作列，消除右侧空白；
   th:last-child 与 td.hist-cell-op 分别对应表头与单元格（任务/诉求列表共用） */
.history-tasks-table th:last-child,
.history-tasks-table td.hist-cell-op {
  width: 1%;
}
.hist-cell-op { text-align: left; white-space: nowrap; }
.hist-op-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  vertical-align: middle;
  min-height: 32px;
}
.hist-op-btn {
  min-width: 76px;
  padding: 5px 12px;
  border: 1px solid transparent; /* 占位边框：与 ghost 次按钮保持同高 */
  border-radius: 6px;
  background: var(--brand-brown);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.hist-op-btn:hover { opacity: 0.86; }
.hist-op-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 12px;
  border: 1px solid #e6e1d8;
  border-radius: 6px;
  background: #f4f1ea;
  color: #8a857c;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
/* 任务状态徽章（历史表格 + 工作台最近卡片通用） */
.hist-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 11px;
  white-space: nowrap;
}
.dispatch-recent-status { border-radius: 10px; font-size: 11px; }
.hist-status.is-assigned, .dispatch-recent-status.is-assigned { background: #e7f1ff; color: #2563eb; }
.hist-status.is-supervising, .dispatch-recent-status.is-supervising { background: #fdf1e7; color: #c4711f; }
.hist-status.is-feedback, .dispatch-recent-status.is-feedback { background: #f1ecfd; color: #7c5cd6; }
.hist-status.is-evaluate, .dispatch-recent-status.is-evaluate { background: #e3f6f5; color: #0e8c86; }
.hist-status.is-done, .dispatch-recent-status.is-done { background: #e6f4ea; color: #2f855a; }
/* 诉求：不予受理（灰色系，与其他状态区分） */
.hist-status.is-rejected { background: #eceff2; color: #7a828b; }
.history-tasks-empty {
  padding: 40px 16px;
  border: 1px dashed #d8cfbe;
  border-radius: 10px;
  background: #fff;
  color: #9a958b;
  font-size: 13px;
  text-align: center;
}

/* —— 区域一：业务入口 —— */
.hub-action-section { margin-bottom: 28px; }

.hub-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.action-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.action-entry--brown {
  background: var(--brand-brown);
  color: #fff;
}
.action-entry--blue {
  background: #1e6fb8;
  color: #fff;
}

.action-entry:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

.action-entry-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== 分发/汇聚 动态 SVG 图标 ===== */
.icon-anim-svg {
  width: 44px;
  height: 44px;
  display: block;
}

/* 中心节点：呼吸脉冲 */
.hub-center {
  transform-origin: 22px 22px;
  animation: hub-pulse 2s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.75); opacity: 0.7; }
}

/* 外环：扩散涟漪 */
.hub-ring {
  transform-origin: 22px 22px;
  animation: ring-ripple 2s ease-out infinite;
}
@keyframes ring-ripple {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* 射线静态显示 */
.ray-line { }

/* 粒子基础态 */
.particle { transform-box: fill-box; transform-origin: center; }

/* 暖色粒子发光（任务下发） */
.action-entry-icon--dispatch .particle { filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.7)); }
.action-entry-icon--dispatch .hub-center { filter: drop-shadow(0 0 4px rgba(255, 217, 122, 0.6)); }
/* 冷色粒子发光（诉求上报） */
.action-entry-icon--appeal .particle { filter: drop-shadow(0 0 3px rgba(120, 200, 255, 0.7)); }
.action-entry-icon--appeal .hub-center { filter: drop-shadow(0 0 4px rgba(122, 217, 255, 0.6)); }

/* —— 任务下发：粒子从中心向外扩散 —— */
.action-entry-icon--dispatch .p1 {
  animation: scatter-up 1.8s ease-out infinite; animation-delay: 0s;
}
.action-entry-icon--dispatch .p2 {
  animation: scatter-right 1.8s ease-out infinite; animation-delay: 0.6s;
}
.action-entry-icon--dispatch .p3 {
  animation: scatter-left 1.8s ease-out infinite; animation-delay: 1.2s;
}

@keyframes scatter-up {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15%  { opacity: 1; transform: translate(0, -2px) scale(1); }
  80%  { opacity: 0.4; transform: translate(0, -12px) scale(0.7); }
  100% { opacity: 0; transform: translate(0, -16px) scale(0.3); }
}
@keyframes scatter-right {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15%  { opacity: 1; transform: translate(2px, 2px) scale(1); }
  80%  { opacity: 0.4; transform: translate(10px, 7px) scale(0.7); }
  100% { opacity: 0; transform: translate(14px, 8px) scale(0.3); }
}
@keyframes scatter-left {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15%  { opacity: 1; transform: translate(-2px, 2px) scale(1); }
  80%  { opacity: 0.4; transform: translate(-10px, 7px) scale(0.7); }
  100% { opacity: 0; transform: translate(-14px, 8px) scale(0.3); }
}

/* —— 诉求上报：粒子从外围向中心汇聚 —— */
.action-entry-icon--appeal .p1 {
  animation: gather-from-up 1.8s ease-in infinite; animation-delay: 0s;
}
.action-entry-icon--appeal .p2 {
  animation: gather-from-right 1.8s ease-in infinite; animation-delay: 0.6s;
}
.action-entry-icon--appeal .p3 {
  animation: gather-from-left 1.8s ease-in infinite; animation-delay: 1.2s;
}

@keyframes gather-from-up {
  0%   { opacity: 0; transform: translate(0, -16px) scale(0.3); }
  20%  { opacity: 0.8; transform: translate(0, -12px) scale(0.7); }
  85%  { opacity: 1; transform: translate(0, -2px) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.5); }
}
@keyframes gather-from-right {
  0%   { opacity: 0; transform: translate(14px, 8px) scale(0.3); }
  20%  { opacity: 0.8; transform: translate(10px, 7px) scale(0.7); }
  85%  { opacity: 1; transform: translate(2px, 2px) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.5); }
}
@keyframes gather-from-left {
  0%   { opacity: 0; transform: translate(-14px, 8px) scale(0.3); }
  20%  { opacity: 0.8; transform: translate(-10px, 7px) scale(0.7); }
  85%  { opacity: 1; transform: translate(-2px, 2px) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.5); }
}

/* hover 时加速 */
.action-entry:hover .hub-center { animation-duration: 1s; }
.action-entry:hover .hub-ring { animation-duration: 1s; }
.action-entry:hover .particle { animation-duration: 0.9s !important; }

.action-entry-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.action-entry-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.action-entry-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); }

.action-entry-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: transform 200ms ease;
}
.action-entry:hover .action-entry-arrow { transform: translateX(4px); }

/* —— 区域二：接入平台 —— */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 0.5px solid #ebe4d8;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.platform-card:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 4px 16px rgba(120, 78, 35, 0.14);
  transform: translateY(-2px);
}

.platform-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-card-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.platform-card-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.platform-card-name {
  flex: 1;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-card-type {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(120, 78, 35, 0.1);
  color: var(--brand-brown);
  font-size: 11px;
  white-space: nowrap;
}

.platform-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.platform-card-unit {
  color: rgba(0,0,0,0.55);
  font-size: 12px;
}
.platform-card-network {
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.platform-card-network--internet {
  background: #e6f1fb;
  color: #185fa5;
}
.platform-card-network--govnet {
  background: #f0e8da;
  color: #854f0b;
}

.platform-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 0.5px dashed #f0ebe3;
}
.platform-card-url {
  flex: 1;
  min-width: 0;
  color: rgba(0,0,0,0.32);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-card-open {
  flex: 0 0 auto;
  color: var(--brand-brown);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body { min-width: 0; }
  .shell-header { padding: 0 24px; }
  .welcome-message { margin-left: 70px; }
}

@media (max-width: 700px) {
  .shell-header { height: 77px; padding: 0 16px; }
  .brand { padding: 3px 6px 3px 4px; }
  .brand-seal { flex-basis: 25px; width: 25px; height: 25px; margin-right: 5px; }
  .brand-logo { height: 25px; }
  .brand-name { font-size: 14px; }
  .account-name { display: none; }
  .shell-content { min-height: calc(100vh - 77px); }
  .shell-sidebar { flex-basis: 62px; margin-right: 6px; padding-top: 10px; }
  .sidebar-nav { padding: 0 6px; }
  .nav-item { justify-content: center; min-height: 44px; padding: 0; }
  .nav-parent { padding-right: 0; }
  .nav-icon { margin: 0; }
  .nav-label { display: none; }
  .nav-toggle, .nav-submenu { display: none; }
  .welcome-message { margin: 72px 24px; }
  .welcome-prefix, .welcome-title { font-size: 30px; }
}

/* ===== 个人中心菜单（外层框架右上角） ===== */
.account-menu { min-width: 170px; }

.account-menu-label {
  padding: 6px 10px 4px;
  color: #999;
  font-size: 11px;
  line-height: 1.4;
}

.account-role {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #404040;
  font: 13px var(--font-family);
  text-align: left;
  cursor: pointer;
}

.account-role:hover { background: #f4f6fa; }

.account-role-check {
  flex: 0 0 14px;
  width: 14px;
  color: transparent;
  font-size: 12px;
  font-weight: 700;
}

.account-role.is-active { color: var(--brand-brown); font-weight: 600; }
.account-role.is-active .account-role-check { color: var(--brand-brown); }

.account-role-text { line-height: 1.4; }

.account-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: #ececec;
}

.shell-toast {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 50%;
  z-index: 50;
  padding: 9px 18px;
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  font: 13px var(--font-family);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.18s ease;
}

.shell-toast.visible { opacity: 1; }

/* 县级枢纽内容页：入口置顶，五个平台等宽网格 */
.workspace-county-hub { background: #f5f7fa; }
.county-hub-content { max-width: none; padding: 32px 20px 48px; }
.hub-action-section { margin-bottom: 24px; }
.hub-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.action-entry { min-height: 120px; padding: 20px 28px; border-radius: 12px; box-shadow: 0 8px 20px rgba(65, 54, 42, .08); }
.action-entry--brown { background: linear-gradient(135deg, #8d5a25, #b17c45); }
.action-entry--blue { background: linear-gradient(135deg, #286a9f, #438bbd); }
.hub-platform-section { margin-top: 0; }
.platform-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.platform-card { min-width: 0; min-height: 220px; padding: 20px; border: 1px solid #e2e7ec; border-radius: 10px; box-shadow: 0 4px 14px rgba(56, 73, 90, .06); }
.platform-card:hover { border-color: #8e6a45; box-shadow: 0 8px 20px rgba(87, 65, 39, .14); }
.platform-card-name { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 1120px) { .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .county-hub-content { padding: 20px 10px 32px; } .hub-action-grid { grid-template-columns: 1fr; } .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .platform-grid { grid-template-columns: 1fr; } }

/* ============================================================
   任务下发分步向导弹窗
   ============================================================ */
.dispatch-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 28, 0.5);
}

.dispatch-dialog {
  width: 620px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.dispatch-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ece7dd;
}

.dispatch-dialog-title {
  margin: 0;
  color: var(--brand-brown);
  font-size: 16px;
  font-weight: 600;
}

.dispatch-dialog-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8a8a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dispatch-dialog-close:hover { background: #f2efe9; color: #333; }

/* 步骤条 */
.dispatch-stepper {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px 4px;
  gap: 0;
}

.dispatch-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dispatch-step::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e6e1d8;
  z-index: 0;
}

.dispatch-step:first-child::before { display: none; }

.dispatch-step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e6e1d8;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 600;
}

.dispatch-step-label {
  font-size: 12px;
  color: #9a958b;
  white-space: nowrap;
}

.dispatch-step.is-active .dispatch-step-num {
  background: var(--brand-brown);
  color: #fff;
}
.dispatch-step.is-active .dispatch-step-label { color: var(--brand-brown); font-weight: 600; }

.dispatch-step.is-done .dispatch-step-num {
  background: #3f8f5a;
  color: #fff;
}
.dispatch-step.is-done::before { background: #3f8f5a; }
.dispatch-step.is-done .dispatch-step-label { color: #3f8f5a; }

/* 主体 */
.dispatch-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
}

.dispatch-field { margin-bottom: 14px; }

.dispatch-field-label {
  display: block;
  margin-bottom: 6px;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 500;
}

.dispatch-required { color: #d8433a; }

.dispatch-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 13px var(--font-family);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.dispatch-input:focus {
  outline: none;
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.12);
}

.dispatch-textarea { min-height: 72px; resize: vertical; }

.dispatch-input.is-invalid {
  border-color: #d8433a;
}
.dispatch-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(216, 67, 58, 0.12); }

.dispatch-field-error {
  margin-top: 5px;
  color: #d8433a;
  font-size: 12px;
}

/* —— 任务登记 / 诉求上报弹窗：字段名与输入框同行布局 —— */
.dispatch-dialog-body--inline .dispatch-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.dispatch-dialog-body--inline > .dispatch-field > .dispatch-field-label,
.dispatch-dialog-body--inline .dispatch-field > .dispatch-field-label {
  flex: 0 0 auto;
  min-width: 80px;
  margin-bottom: 0;
  padding-top: 8px;
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}
.dispatch-dialog-body--inline .dispatch-field > .dispatch-input,
.dispatch-dialog-body--inline .dispatch-field > .dispatch-radio-group,
.dispatch-dialog-body--inline .dispatch-field > .dispatch-tag-select,
.dispatch-dialog-body--inline .dispatch-field > .dispatch-subfield,
.dispatch-dialog-body--inline .dispatch-field > .dispatch-file {
  flex: 1 1 0;
  min-width: 0;
}
/* 校验错误提示换行独占一行 */
.dispatch-dialog-body--inline .dispatch-field .dispatch-field-error {
  flex-basis: 100%;
  margin-left: 92px;
  margin-top: 4px;
}
/* 多部件字段（统筹对象、媒体缩略图、含子字段的单选组）保持上下堆叠 */
.dispatch-dialog-body--inline .dispatch-field--assign,
.dispatch-dialog-body--inline .dispatch-field--media,
.dispatch-dialog-body--inline .dispatch-field:has(.dispatch-subfield) {
  display: block;
}
.dispatch-dialog-body--inline .dispatch-field--assign > .dispatch-field-label,
.dispatch-dialog-body--inline .dispatch-field--media > .dispatch-field-label,
.dispatch-dialog-body--inline .dispatch-field:has(.dispatch-subfield) > .dispatch-field-label {
  flex: none;
  margin-bottom: 6px;
  padding-top: 0;
  text-align: left;
}
/* 含子字段的字段：单选组独占一行，子字段容器下方全宽 */
.dispatch-dialog-body--inline .dispatch-field:has(.dispatch-subfield) > .dispatch-radio-group {
  flex: none;
  width: auto;
  margin-bottom: 10px;
}
.dispatch-dialog-body--inline .dispatch-subfield { width: 100%; }
.dispatch-dialog-body--inline .dispatch-subfield .dispatch-field .dispatch-field-error {
  margin-left: 92px;
}

/* 任务来源：下拉框 + 补充输入框同行并排 */
.dispatch-dialog-body--inline .dispatch-field:has(.dispatch-source-detail) > .dispatch-input {
  flex: 0 0 140px;
}
.dispatch-dialog-body--inline .dispatch-source-detail {
  flex: 1 1 0;
  min-width: 0;
}
.dispatch-source-detail .dispatch-input { width: 100%; }
/* 任务来源校验错误提示换行独占 */
.dispatch-source-detail .dispatch-field-error {
  display: block;
  margin-top: 4px;
}

/* 单选组 */
.dispatch-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #4a4a4a;
}
.dispatch-radio input { cursor: pointer; }
.dispatch-radio:has(input:checked) {
  border-color: var(--brand-brown);
  background: rgba(120, 78, 35, 0.08);
  color: var(--brand-brown);
  font-weight: 500;
}
.dispatch-radio.is-disabled { opacity: 0.45; cursor: not-allowed; }
.dispatch-radio.is-disabled input { cursor: not-allowed; }

/* 标签多选 */
.dispatch-tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-tag {
  padding: 6px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 16px;
  background: #fff;
  color: #5a5a5a;
  font: 12px var(--font-family);
  cursor: pointer;
  transition: all 140ms ease;
}
.dispatch-tag:hover { border-color: var(--brand-brown); }
.dispatch-tag.is-selected {
  border-color: var(--brand-brown);
  background: var(--brand-brown);
  color: #fff;
  font-weight: 500;
}
.dispatch-tag.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dispatch-tag.is-disabled:hover { border-color: #d8d2c8; }

/* 督办子字段 */
.dispatch-subfield { margin-top: 10px; }

/* 附件 */
.dispatch-file { display: flex; flex-direction: column; gap: 8px; }
.dispatch-file .dispatch-input { padding: 6px; font-size: 12px; }
.dispatch-file-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dispatch-file-chip {
  padding: 3px 10px;
  border-radius: 4px;
  background: #f0ebe0;
  color: #6a5a42;
  font-size: 12px;
}

/* 只读预览 */
.dispatch-summary {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f4ee;
  border: 1px dashed #d8cfbe;
}

.dispatch-summary-title {
  margin-bottom: 8px;
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 600;
}

.dispatch-summary-row {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  font-size: 12px;
}
.dispatch-summary-k { flex: 0 0 64px; color: #9a958b; }
.dispatch-summary-v { color: #4a4a4a; }

/* —— 任务流程弹窗（调度督办/办结反馈/办理评价） —— */
.dispatch-dialog-body textarea.dispatch-input { min-height: 88px; }

/* 流转日志只读弹窗 */
.flowlogs-base {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f4ee;
  border: 1px dashed #d8cfbe;
}
.flowlogs-base-row {
  display: flex;
  gap: 12px;
  padding: 2px 0;
  font-size: 12px;
}
.flowlogs-base-k { flex: 0 0 64px; color: #9a958b; }
.flowlogs-base-v { color: #4a4a4a; }
.flowlogs-title {
  margin: 16px 0 8px;
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 600;
}
.flowlogs-empty {
  padding: 20px 16px;
  border: 1px dashed #d8cfbe;
  border-radius: 8px;
  color: #9a958b;
  font-size: 12px;
  text-align: center;
}
.flowlogs-item {
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid #ece6db;
  border-radius: 8px;
  background: #fff;
}
.flowlogs-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.flowlogs-action {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #eceff2;
  color: #7a828b;
}
.flowlogs-action.is-assigned { background: #e7f1ff; color: #2563eb; }
.flowlogs-action.is-supervising { background: #fdf1e7; color: #c4711f; }
.flowlogs-action.is-feedback { background: #f1ecfd; color: #7c5cd6; }
.flowlogs-action.is-evaluate { background: #e3f6f5; color: #0e8c86; }
.flowlogs-action.is-done { background: #e6f4ea; color: #2f855a; }
.flowlogs-action.is-submit { background: #e7f1ff; color: #2563eb; }
.flowlogs-action.is-accept { background: #f0f7e6; color: #5b8a2b; }
.flowlogs-action.is-escalate { background: #fdf1e7; color: #c4711f; }
.flowlogs-action.is-handling { background: #f1ecfd; color: #7c5cd6; }
.flowlogs-action.is-reject { background: #fce8e8; color: #c43e3e; }
.flowlogs-meta { color: #b0aba1; font-size: 11px; white-space: nowrap; }
.flowlogs-row {
  display: flex;
  gap: 10px;
  padding: 2px 0;
  font-size: 12px;
}
.flowlogs-row-k { flex: 0 0 70px; color: #9a958b; }
.flowlogs-row-v { color: #4a4a4a; line-height: 1.5; }

/* 诉求详情弹窗：内容文本块 */
.appeal-detail-content {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #ece6db;
  border-radius: 8px;
  background: #fff;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.7;
}

/* 诉求详情弹窗：地图位置 */
.appeal-map-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid #ece6db;
  border-radius: 8px;
  background: #f9f7f2;
  font-size: 13px;
  color: #5a4a30;
}
.appeal-map-coord-item {
  white-space: nowrap;
}
.appeal-map-coord-raw {
  color: #9a958b;
  font-size: 12px;
}
.appeal-map-box {
  position: relative;
  width: 100%;
  height: 280px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 18px;
}
.appeal-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.appeal-map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}
.appeal-map-marker-pin svg {
  width: 32px;
  height: 36px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  display: block;
}
.appeal-map-marker-shadow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 20px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(3px);
}
.appeal-map-marker-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.appeal-map-marker:hover .appeal-map-marker-tooltip {
  opacity: 1;
}
.appeal-map-nodata {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #9a958b;
  font-size: 13px;
}

/* 诉求办理弹窗：办结/提级区块 */
.appeal-handle-section { margin-top: 14px; }

/* 历史表格操作栏：主按钮（流转）+ 次按钮（查看详情），间距由 .hist-op-group flex gap 控制 */
.hist-op-btn--ghost {
  min-width: 76px;
  border-color: #d8d2c8;
  background: #fff;
  color: #5a4a30;
}
.hist-op-btn--ghost:hover {
  border-color: var(--brand-brown);
  color: var(--brand-brown);
  background: rgba(120, 78, 35, 0.06);
}

/* 历史任务分页 */
.hist-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.hist-pageinfo { color: #8a8a8a; font-size: 12px; }
.hist-pagebtns { display: flex; align-items: center; gap: 6px; }
.hist-page-ellipsis { color: #9a958b; font-size: 12px; padding: 0 2px; }
.hist-page-btn {
  min-width: 30px;
  padding: 5px 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #5a4a30;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.hist-page-btn:hover:not(.is-disabled):not(.is-current) {
  border-color: var(--brand-brown);
  color: var(--brand-brown);
}
.hist-page-btn.is-current {
  border-color: var(--brand-brown);
  background: var(--brand-brown);
  color: #fff;
  font-weight: 500;
}
.hist-page-btn.is-disabled {
  border-color: #ece6db;
  background: #f7f4ee;
  color: #b0aba1;
  cursor: not-allowed;
}

/* 任务登记：弹窗宽度与诉求上报弹窗保持一致 */
.dispatch-dialog--wide { width: 620px; }

/* —— 任务流程弹窗（办理/督办/办结反馈/办理评价）：左右分栏 ——
   左=任务详情与流转记录（独立滚动）；右=办理操作（表单+按钮，始终可见） */
.dispatch-dialog:has(.dispatch-dialog-body--split) {
  width: 1080px;
  max-width: calc(100vw - 48px);
}
@media (max-width: 1180px) {
  .dispatch-dialog:has(.dispatch-dialog-body--split) { width: 920px; }
}
.dispatch-dialog-body--split {
  display: flex;
  padding: 0;
  flex: none;                      /* 覆盖 .dispatch-dialog-body 的 flex:1，让 height 生效 */
  height: min(70vh, 640px);
  min-height: 420px;
  overflow: hidden;
}
.flow-split-pane {
  min-width: 0;
  overflow-y: auto;
}
.flow-split-pane--info {
  flex: 1 1 58%;
  padding: 16px 20px 8px;
  border-right: 1px solid #ece7dd;
}
.flow-split-pane--op {
  flex: 1 1 42%;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fbfaf7;
}
.flow-split-op-title { margin-top: 0; }
.flow-split-op-form { flex: 1; overflow-y: auto; }
.flow-split-op-foot {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #ece7dd;
  background: #fbfaf7;
}
@media (max-width: 760px) {
  .dispatch-dialog-body--split {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .flow-split-pane--info,
  .flow-split-pane--op {
    flex: none;
    overflow: visible;
  }
  .flow-split-pane--info { border-right: 0; border-bottom: 1px solid #ece7dd; }
  .flow-split-op-foot { margin-top: 8px; }
}

/* 资源统筹：统筹对象多选下拉（专业队伍/基层队伍/基层队伍/视频监控） */
.dispatch-field--assign { margin-bottom: 18px; }
.assign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.assign-cell-label {
  margin-bottom: 6px;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 500;
}
.assign-cell-fixed {
  padding: 8px 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #f5f3ef;
  color: #333;
  font: 13px var(--font-family);
  text-align: center;
}
.amsel { position: relative; }
.amsel-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #9a958b;
  font: 13px var(--font-family);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.amsel-trigger:hover { border-color: var(--brand-brown); }
.amsel.is-open .amsel-trigger,
.amsel-trigger:focus-visible {
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.12);
  outline: none;
}
.amsel-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9a958b;
}
.amsel-trigger-text.has-value { color: #333; }
.amsel-count {
  flex: 0 0 auto;
  padding: 0 7px;
  border-radius: 9px;
  background: #f0ebe0;
  color: #6a5a42;
  font-size: 11px;
  line-height: 18px;
}
.amsel-count[hidden] { display: none; }
.amsel-arrow {
  flex: 0 0 auto;
  color: #9a958b;
  font-size: 11px;
  transition: transform 150ms ease;
}
.amsel.is-open .amsel-arrow { transform: rotate(180deg); }
.amsel-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
.amsel.is-open .amsel-panel { display: block; }
.amsel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 2px 6px 8px;
  border-bottom: 1px solid #f0ece2;
  margin-bottom: 4px;
}
.amsel-actions button {
  border: 0;
  background: transparent;
  color: var(--brand-brown);
  font: 12px var(--font-family);
  cursor: pointer;
  padding: 0;
}
.amsel-actions button:hover { text-decoration: underline; }
.amsel-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #4a4a4a;
  font-size: 13px;
  cursor: pointer;
}
.amsel-opt:hover { background: #f7f4ee; }
.amsel-opt input { margin: 0; accent-color: var(--brand-brown); cursor: pointer; }
.amsel-opt.is-selected { color: var(--brand-brown); font-weight: 500; }

/* 统筹对象多选下拉：搜索过滤 */
.amsel-search { padding: 0 6px 8px; border-bottom: 1px solid #f0ece2; }
.amsel-search-input {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 12px var(--font-family);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.amsel-search-input:focus {
  outline: none;
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.12);
}
.amsel-search-input::placeholder { color: #b0aba1; }
.amsel-opt.is-filtered-out { display: none; }
.amsel-empty {
  padding: 10px 8px;
  color: #9a958b;
  font-size: 12px;
  text-align: center;
}

/* —— 地图与影像缩略图字段 —— */
.dispatch-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 18px;
}
.dispatch-field--media { margin-bottom: 0; }

.dispatch-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #f7f4ee;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.dispatch-thumb:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 4px 14px rgba(120, 78, 35, 0.16);
}
.dispatch-thumb:focus-visible {
  outline: none;
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.18);
}
.dispatch-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dispatch-thumb-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}
.dispatch-thumb:hover .dispatch-thumb-hint { opacity: 1; }
.dispatch-thumb-play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dispatch-thumb-play svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
/* 地图缩略图内联播放视频 */
.dispatch-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

@media (max-width: 560px) {
  .dispatch-media-grid { grid-template-columns: 1fr; }
}

/* —— 图片/视频预览弹窗 —— */
.media-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.82);
}
.media-preview-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease;
}
.media-preview-close:hover { background: rgba(255, 255, 255, 0.28); }
.media-preview-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.media-preview-title {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}

/* 视频播放弹窗 */
.media-preview-overlay--video { padding: 32px; }
.media-video-dialog {
  display: flex;
  flex-direction: column;
  width: 720px;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  background: #1a1a1a;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.media-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #262626;
  border-bottom: 1px solid #333;
}
.media-video-title { color: #fff; font-size: 14px; font-weight: 500; }
.media-video-close {
  position: static;
  top: auto;
  right: auto;
  background: transparent;
  color: #ccc;
}
.media-video-close:hover { background: rgba(255, 255, 255, 0.1); }
.media-video-player {
  display: block;
  width: 100%;
  max-height: calc(90vh - 48px);
  background: #000;
  border: 0;
  outline: none;
}

/* 资源统筹：任务信息只读回显（第一步录入内容） */
.dispatch-review {
  margin: 4px 0 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f4ee;
  border: 1px dashed #d8cfbe;
}
.dispatch-review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.dispatch-review-title {
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 600;
}
.dispatch-review-desc { color: #9a958b; font-size: 11px; }
.dispatch-review-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 3px 0;
  font-size: 12px;
}
.dispatch-review-k { flex: 0 0 64px; color: #9a958b; }
.dispatch-review-v {
  flex: 1;
  color: #4a4a4a;
  white-space: pre-wrap;
  word-break: break-all;
}
@media (max-width: 560px) { .assign-grid { grid-template-columns: 1fr; } }

/* —— 办理弹窗：资源统筹对象展示 —— */
.resource-section { margin-bottom: 16px; }
.resource-section:last-child { margin-bottom: 0; }
.resource-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ece7dd;
}
.resource-section-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--brand-brown);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.resource-section-title {
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 600;
}
.resource-section-sub {
  color: #9a958b;
  font-size: 11px;
}
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resource-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ece6db;
  border-radius: 6px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.resource-item:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 2px 8px rgba(120, 78, 35, 0.1);
}
.resource-item-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.4;
}
.resource-item-label .resource-name {
  font-weight: 500;
  color: #333;
}
.resource-item-label .resource-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f0ebe0;
  color: #6a5a42;
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}
.resource-item-label .resource-phone {
  color: #8a8a8a;
  font-size: 12px;
  white-space: nowrap;
}
.resource-item-label .resource-point {
  color: #555;
  font-size: 12px;
}
.resource-item-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e7f1ff;
  color: #2563eb;
  font-size: 11px;
  white-space: nowrap;
}
.resource-item-badge--brown {
  background: rgba(120, 78, 35, 0.08);
  color: var(--brand-brown);
}
.resource-item-badge--green {
  background: #e6f4ea;
  color: #2f855a;
}
.resource-item-badge--purple {
  background: #f1ecfd;
  color: #7c5cd6;
}

/* 脚注按钮 */
.dispatch-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #ece7dd;
}

.dispatch-foot-spacer { flex: none; width: 0; }

.dispatch-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  font: 13px var(--font-family);
  cursor: pointer;
  transition: opacity 140ms ease;
}
.dispatch-btn:hover { opacity: 0.9; }

.dispatch-btn--primary { background: var(--brand-brown); color: #fff; font-weight: 500; }
.dispatch-btn--ghost { background: #f0ece2; color: #5a4a30; }

/* 最近下发任务 */
.hub-recent-section { margin-top: 28px; }

.dispatch-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-recent-card {
  padding: 14px 16px;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(56, 73, 90, 0.04);
}

.dispatch-recent-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dispatch-recent-no { color: var(--brand-brown); font-size: 12px; font-weight: 600; }

.dispatch-recent-status {
  padding: 2px 9px;
  border-radius: 10px;
  background: #fdf1e7;
  color: #c4711f;
  font-size: 11px;
}

.dispatch-recent-title {
  margin: 6px 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.dispatch-recent-meta { color: #8a8a8a; font-size: 12px; }
.dispatch-recent-time { color: #b0aba1; font-size: 12px; }

/* 诉求上报：不予受理状态标签（灰色系，与待办理橙色区分） */
.dispatch-recent-status.is-rejected {
  background: #eceff2;
  color: #7a828b;
}

@media (max-width: 480px) {
  .dispatch-dialog { width: 100%; }
  .dispatch-step-label { font-size: 11px; }
  .dispatch-dialog-body { padding: 14px 14px 6px; }
  .dispatch-dialog-foot { padding: 12px 14px; }
}

/* ============================================================
   系统管理模块（用户 / 角色 / 组织 / 字典）
   ============================================================ */
.workspace-system-manage {
  overflow-y: auto;
  background: #f5f7fa;
}

.system-manage {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 48px;
}

.sm-root { display: flex; flex-direction: column; gap: 16px; }

/* —— 顶栏横幅 —— */
.sm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8d5a25, #b17c45);
  color: #fff;
}
.sm-banner-text h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.sm-banner-text p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.78); }

/* —— 标签栏 —— */
.sm-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e7ec;
}
.sm-tab {
  flex: 1;
  padding: 10px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5a5a5a;
  font: 14px var(--font-family);
  cursor: pointer;
  transition: all 140ms ease;
}
.sm-tab:hover { background: rgba(120, 78, 35, 0.06); color: var(--brand-brown); }
.sm-tab.is-active {
  background: var(--brand-brown);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--active-shadow);
}

/* —— 工具条 —— */
.sm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sm-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sm-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  border: 0.5px solid #ebe4d8;
}
.sm-stat-label { color: rgba(0,0,0,0.42); font-size: 12px; }
.sm-stat-value { color: var(--brand-brown); font-size: 22px; font-weight: 600; line-height: 1; }

.sm-toolbar-right { display: flex; align-items: center; gap: 10px; }
.sm-search {
  width: 200px;
  padding: 8px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 13px var(--font-family);
}
.sm-search:focus {
  outline: none;
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.12);
}

/* —— 按钮 —— */
.sm-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  font: 13px var(--font-family);
  cursor: pointer;
  transition: opacity 140ms ease;
  white-space: nowrap;
}
.sm-btn:hover { opacity: 0.9; }
.sm-btn--primary { background: var(--brand-brown); color: #fff; font-weight: 500; }
.sm-btn--ghost { background: #f0ece2; color: #5a4a30; }
.sm-btn--danger { background: #d8433a; color: #fff; font-weight: 500; }

/* —— 表格 —— */
.sm-body { display: flex; flex-direction: column; gap: 12px; }
.sm-table-wrap {
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(56, 73, 90, 0.06);
  overflow: hidden;
}
.sm-table {
  width: 100%;
  border-collapse: collapse;
}
.sm-table th, .sm-table td {
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f0ede7;
  vertical-align: middle;
}
.sm-table th {
  background: #faf7f1;
  color: #6a5a42;
  font-weight: 600;
  white-space: nowrap;
}
.sm-table tbody tr:last-child td { border-bottom: 0; }
.sm-table tbody tr:hover { background: #fbf8f3; }

.sm-actions { white-space: nowrap; }
.sm-link {
  padding: 0;
  margin-right: 12px;
  border: 0;
  background: transparent;
  color: #2b6cb0;
  font: 13px var(--font-family);
  cursor: pointer;
}
.sm-link:hover { text-decoration: underline; }
.sm-link--danger { color: #d8433a; }

.sm-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0ebe0;
  color: #6a5a42;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
.sm-muted { color: #9a958b; font-size: 12px; }

/* 状态徽标 */
.sm-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.sm-status--on { background: #e7f3ec; color: #2f7d4f; }
.sm-status--off { background: #f3edf1; color: #b0453e; }

/* 空数据 */
.sm-empty {
  padding: 48px 0;
  text-align: center;
  color: #b0aba1;
  font-size: 14px;
}

/* —— 组织树 —— */
.sm-org-name { white-space: nowrap; }
.sm-tree-toggle {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-brown);
  font-size: 12px;
  cursor: pointer;
  vertical-align: middle;
}
.sm-tree-toggle:hover { background: rgba(120, 78, 35, 0.1); }
.sm-tree-leaf {
  display: inline-block;
  width: 20px;
  margin-right: 4px;
  text-align: center;
  color: #cbbfa6;
  font-size: 12px;
}
.sm-tree-leaf::before { content: "·"; }

/* —— 弹窗 —— */
.sm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 28, 0.5);
}
.sm-dialog {
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.sm-dialog--confirm { width: 420px; }
.sm-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ece7dd;
}
.sm-dialog-title { margin: 0; color: var(--brand-brown); font-size: 16px; font-weight: 600; }
.sm-dialog-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8a8a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sm-dialog-close:hover { background: #f2efe9; color: #333; }
.sm-dialog-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.sm-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #ece7dd;
}
.sm-foot-spacer { flex: none; width: 0; }

/* 表单 */
.sm-field { margin-bottom: 14px; }
.sm-field-label {
  display: block;
  margin-bottom: 6px;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 500;
}
.sm-required { color: #d8433a; }
.sm-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 13px var(--font-family);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.sm-input:focus {
  outline: none;
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(120, 78, 35, 0.12);
}
.sm-textarea { min-height: 60px; resize: vertical; }
.sm-input.is-invalid { border-color: #d8433a; }
.sm-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(216, 67, 58, 0.12); }
.sm-field-error { margin-top: 5px; color: #d8433a; font-size: 12px; }

.sm-confirm-text { margin: 0; color: #4a4a4a; font-size: 14px; line-height: 1.7; }

@media (max-width: 760px) {
  .system-manage { padding: 16px 16px 32px; }
  .sm-toolbar { flex-direction: column; align-items: stretch; }
  .sm-toolbar-right { justify-content: flex-end; }
  .sm-dialog, .sm-dialog--confirm { width: 100%; }
}

/* ============================================================
   工作门户：直接嵌入截图
   ============================================================ */
.workspace-portal-image {
  overflow: hidden;
  background: #f5f7fa;
}

.portal-image-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
  object-fit: fill;
  border: 0;
}

/* ============================================================
   县级枢纽：顶部县域风貌横幅图
   ============================================================ */
.hub-banner-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: url("../../assets/images/county-hub-banner.png") center / cover no-repeat;
  box-shadow: 0 6px 20px rgba(87, 65, 39, 0.12);
}
.hub-banner-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}
.hub-banner-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 10px;
  padding-right: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
  .hub-banner-image { height: 150px; margin-bottom: 20px; }
  .hub-banner-title { font-size: 22px; letter-spacing: 6px; padding-right: 6px; }
}

/* ============================================================
   统计看板（任务列表 / 诉求列表通用）
   ============================================================ */
.stat-dashboard {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.stat-dashboard-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid #ebe4d8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.stat-dashboard-item:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 4px 14px rgba(120, 78, 35, 0.12);
  transform: translateY(-1px);
}
.stat-dashboard-item.is-active {
  border-color: var(--brand-brown);
  background: rgba(120, 78, 35, 0.06);
  box-shadow: 0 4px 14px rgba(120, 78, 35, 0.14);
}
.stat-dashboard-item.is-active .stat-dashboard-label {
  color: var(--brand-brown);
  font-weight: 600;
}
.stat-dashboard-item--total .stat-dashboard-value {
  color: var(--brand-brown);
}
.stat-dashboard-label {
  color: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  white-space: nowrap;
}
.stat-dashboard-value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.stat-dashboard-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
/* 状态颜色（与徽章颜色体系一致） */
.stat-dashboard-item--待办理 .stat-dashboard-value { color: #2563eb; }
.stat-dashboard-item--待办理 .stat-dashboard-dot { background: #2563eb; }
.stat-dashboard-item--办理中 .stat-dashboard-value { color: #c4711f; }
.stat-dashboard-item--办理中 .stat-dashboard-dot { background: #c4711f; }
.stat-dashboard-item--已办结 .stat-dashboard-value { color: #2f855a; }
.stat-dashboard-item--已办结 .stat-dashboard-dot { background: #2f855a; }
.stat-dashboard-item--不予受理 .stat-dashboard-value { color: #7a828b; }
.stat-dashboard-item--不予受理 .stat-dashboard-dot { background: #7a828b; }

@media (max-width: 760px) {
  .stat-dashboard { flex-wrap: wrap; }
  .stat-dashboard-item { flex: 1 1 calc(50% - 6px); }
}

/* ============ 调度弹窗 ============ */
.dispatch-dialog--dispatch {
  max-width: 960px;
  max-height: 92vh;
}
.dispatch-body--dispatch {
  max-height: none;
  padding: 0;
  overflow: hidden;
}

/* 调度弹窗 Tab 导航 */
.dispatch-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ece7dd;
  background: #faf8f3;
}
.dispatch-tab {
  flex: 1;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: #9a958b;
  font: 13px var(--font-family);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dispatch-tab:hover { color: #6a5a42; }
.dispatch-tab.is-active {
  color: var(--brand-brown);
  font-weight: 600;
  border-bottom-color: var(--brand-brown);
  background: #fff;
}
.dispatch-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* 调度弹窗 Tab 内容区 */
.dispatch-tab-content {
  padding: 16px 20px;
  height: 480px;
  overflow-y: auto;
}

/* 无人机画面 */
.drone-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.drone-video-card {
  border: 1px solid #ece6db;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a2e;
}
.drone-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
}
.drone-video-name {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.drone-video-code {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-family: Consolas, monospace;
}
.drone-video-box {
  position: relative;
  width: 100%;
  height: 160px;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px),
    repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px),
    linear-gradient(135deg, #1a2a3e 0%, #0d1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drone-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
}
.drone-video-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.drone-video-placeholder span {
  font-size: 12px;
}
.drone-video-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(220, 38, 38, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.drone-video-overlay::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-rec 1.5s ease-in-out infinite;
}
@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.drone-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.drone-controller-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
.drone-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font: 12px var(--font-family);
  cursor: pointer;
  transition: opacity 140ms ease;
}
.drone-call-btn:hover { opacity: 0.85; }
.drone-call-btn.is-calling {
  background: #e74c3c;
  animation: pulse-call 1s ease-in-out infinite;
}
@keyframes pulse-call {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

/* 摄像头画面 */
.cam-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cam-video-card {
  border: 1px solid #ece6db;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a2e;
}
.cam-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
}
.cam-video-name {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.cam-video-badge {
  padding: 1px 6px;
  border-radius: 3px;
  background: #2f855a;
  color: #fff;
  font-size: 10px;
}
.cam-video-box {
  position: relative;
  width: 100%;
  height: 180px;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px),
    repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px),
    linear-gradient(135deg, #1e2a1e 0%, #0d1a0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
}
.cam-video-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.cam-video-placeholder span {
  font-size: 12px;
}
.cam-video-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(47, 133, 90, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.cam-video-overlay::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* 联系人列表（乡镇/村/网格人员） */
.dispatch-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dispatch-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ece6db;
  border-radius: 8px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.dispatch-contact-item:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 2px 8px rgba(120, 78, 35, 0.08);
}
.dispatch-contact-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-brown);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.dispatch-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dispatch-contact-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.dispatch-contact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9a958b;
}
.dispatch-contact-level {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(120, 78, 35, 0.08);
  color: var(--brand-brown);
  font-size: 11px;
}
.dispatch-contact-phone {
  color: #6a5a42;
  font-family: Consolas, monospace;
}
.dispatch-contact-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font: 13px var(--font-family);
  cursor: pointer;
  transition: opacity 140ms ease;
}
.dispatch-contact-call:hover { opacity: 0.85; }
.dispatch-contact-call.is-calling {
  background: #e74c3c;
  animation: pulse-call 1s ease-in-out infinite;
}

/* 调度弹窗底部（仅关闭按钮） */
.dispatch-dialog-foot--dispatch {
  justify-content: center;
}

/* 响应式 */
@media (max-width: 640px) {
  .drone-video-grid, .cam-video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   无人机选择弹窗（从办理弹窗中弹出，层级在办理弹窗之上）
   ============================================================ */
.drone-pick-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 28, 0.5);
}
.drone-pick-dialog {
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.drone-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #ece7dd;
}
.drone-pick-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.drone-pick-close {
  border: none;
  background: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.drone-pick-close:hover { color: #333; }
.drone-pick-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 16px;
  max-height: 320px;
}
.drone-pick-search {
  padding: 12px 20px 0;
  background: #fff;
  border-bottom: 1px solid #ece7dd;
  flex: 0 0 auto;
}
.drone-pick-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcd5c5;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 140ms ease;
}
.drone-pick-search-input:focus {
  border-color: var(--brand-brown);
}
.drone-pick-empty {
  text-align: center;
  padding: 24px 0;
  color: #999;
  font-size: 13px;
}
.drone-pick-count {
  font-size: 12px;
  color: #9a958b;
  margin-right: auto;
}
.drone-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drone-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ece6db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.drone-pick-item:hover {
  border-color: var(--brand-brown);
  box-shadow: 0 2px 8px rgba(120, 78, 35, 0.1);
}
.drone-pick-item.is-checked {
  border-color: var(--brand-brown);
  background: rgba(120, 78, 35, 0.04);
}
.drone-pick-checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: all 140ms ease;
}
.drone-pick-item.is-checked .drone-pick-checkbox {
  border-color: var(--brand-brown);
  background: var(--brand-brown);
}
.drone-pick-checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 140ms ease;
}
.drone-pick-item.is-checked .drone-pick-checkbox::after {
  transform: rotate(45deg) scale(1);
}
.drone-pick-item .drone-pick-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #9a958b;
  transition: color 140ms ease;
}
.drone-pick-item .drone-pick-icon svg {
  width: 18px;
  height: 18px;
}
.drone-pick-item.is-checked .drone-pick-icon {
  color: var(--brand-brown);
}
.drone-pick-phone {
  color: #8a8a8a;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 4px;
}
.drone-pick-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drone-pick-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f0ebe0;
  color: #6a5a42;
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}
.drone-pick-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.drone-pick-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #ece7dd;
}

/* 办理弹窗右栏：选择无人机按钮 + 已选列表 */
.drone-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: 1px dashed var(--brand-brown);
  border-radius: 8px;
  background: rgba(120, 78, 35, 0.04);
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease;
}
.drone-select-btn:hover {
  background: rgba(120, 78, 35, 0.08);
}
.drone-selected-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.drone-selected-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ece6db;
  border-radius: 6px;
  background: #fff;
}
.drone-selected-item .drone-selected-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--brand-brown);
}
.drone-selected-item .drone-selected-icon svg {
  width: 16px;
  height: 16px;
}
.drone-selected-item .resource-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f0ebe0;
  color: #6a5a42;
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}
.drone-selected-item .resource-name {
  font-weight: 500;
  color: #333;
  font-size: 13px;
}
.drone-selected-item .drone-selected-remove {
  margin-left: auto;
  border: none;
  background: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.drone-selected-item .drone-selected-remove:hover { color: #e74c3c; }

/* 已选人员列表项（第五条任务专用） */
.team-selected-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ece6db;
  border-radius: 6px;
  background: #fff;
}
.team-selected-item .drone-selected-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--brand-brown);
}
.team-selected-item .drone-selected-icon svg {
  width: 16px;
  height: 16px;
}
.team-selected-item .team-selected-dept {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(120, 78, 35, 0.08);
  color: var(--brand-brown);
  font-size: 11px;
  white-space: nowrap;
}
.team-selected-item .team-selected-name {
  font-weight: 500;
  color: #333;
  font-size: 13px;
}
.team-selected-item .team-selected-phone {
  color: #8a8a8a;
  font-size: 12px;
  white-space: nowrap;
}
.team-selected-item .drone-selected-remove {
  margin-left: auto;
  border: none;
  background: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.team-selected-item .drone-selected-remove:hover { color: #e74c3c; }