/* ==============================================================================
   通辽市农牧业智慧服务平台 · 顶层架构升级专用样式
   涵盖：七层两翼导览、多角色工作台、统一对象底账、7项数据核验中台、智能风控闭环、适老双语
   ============================================================================== */

/* --- 适老代办模式 (Elderly Accessible Mode) --- */
body.elder-mode {
  font-size: 19px !important;
  line-height: 1.8 !important;
}
body.elder-mode h1 { font-size: 34px !important; }
body.elder-mode h2, body.elder-mode h3 { font-size: 26px !important; }
body.elder-mode p, body.elder-mode span, body.elder-mode b { font-size: 18px !important; }
body.elder-mode button, body.elder-mode select, body.elder-mode input {
  font-size: 18px !important;
  min-height: 48px !important;
  padding: 10px 18px !important;
}
body.elder-mode .card, body.elder-mode .lg-panel, body.elder-mode .arch-panel {
  border-width: 2px !important;
  border-color: #1b7f57 !important;
}

/* --- 顶部操作栏辅助控件 (统一 Liquid Glass 设计语言) --- */
.topbar-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.role-select-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 4px 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
:root.dark .role-select-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.role-select-box label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary, #047857);
}
:root.dark .role-select-box label {
  color: var(--brand-light, #34d399);
}
.role-select-box select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  outline: none;
  cursor: pointer;
}
:root.dark .role-select-box select {
  color: #f4f4f5;
  background: #262626;
}

.arch-badge-btn,
.aux-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #262626;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.arch-badge-btn:hover,
.aux-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--brand-primary, #047857);
  color: var(--brand-primary, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
:root.dark .arch-badge-btn,
:root.dark .aux-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
:root.dark .arch-badge-btn:hover,
:root.dark .aux-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-light, #34d399);
  color: #ffffff;
}
.aux-toggle-btn.active {
  background: var(--brand-primary, #047857);
  color: #ffffff;
  border-color: var(--brand-primary, #047857);
}

/* --- 统一待办中心与工作台横幅 --- */
.arch-workbench-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fc 100%);
  border: 1px solid #c8daec;
  border-left: 5px solid #1B4E8A;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(18,49,79,0.06);
}
.arch-workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.arch-workbench-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #12314f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.arch-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

@keyframes taskCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tagPulseUrgent {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
  }
}

@keyframes floatEmptyIllustration {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.arch-task-card {
  background: #ffffff;
  border: 1px solid #d9e4f0;
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              background-color 0.22s ease;
  animation: taskCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.arch-task-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1B4E8A, #38bdf8);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.arch-task-card:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: #1B4E8A;
  box-shadow: 0 10px 24px -4px rgba(27, 78, 138, 0.16), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

.arch-task-card:hover::after {
  opacity: 1;
}

.arch-task-card:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 4px 10px -2px rgba(27, 78, 138, 0.12);
}

.arch-task-title {
  color: #1e293b;
  transition: color 0.18s ease;
}

.arch-task-card:hover .arch-task-title {
  color: #1B4E8A;
}

.arch-task-card .arch-task-action-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  background: #1B4E8A;
  color: #ffffff;
  border: 1px solid #1B4E8A;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-task-card .arch-task-action-btn:hover {
  background: #0f3d7e;
  border-color: #0f3d7e;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 3px 8px rgba(27, 78, 138, 0.28);
}

.arch-task-card .arch-task-action-btn:active {
  transform: translateY(0) scale(0.98);
}

.arch-task-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.18s ease;
}

.arch-task-card:hover .arch-task-tag {
  transform: scale(1.02);
}

.tag-high { background: #fee2e2; color: #dc2626; }
.tag-urgent {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #f87171;
  animation: tagPulseUrgent 2.5s infinite;
}
.tag-mid { background: #fef3c7; color: #d97706; }
.tag-notice { background: #e0f2fe; color: #0284c7; }

/* 工作台空状态插画提示 */
.arch-tasks-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  animation: taskCardEnter 0.4s ease backwards;
}

.arch-tasks-empty-state:hover {
  border-color: #94a3b8;
  background: rgba(255, 255, 255, 0.9);
}

.arch-tasks-empty-state .empty-illustration {
  margin: 0 auto 14px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatEmptyIllustration 3.2s ease-in-out infinite;
}

:root.dark .arch-task-card {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
:root.dark .arch-task-title {
  color: #f1f5f9;
}
:root.dark .arch-task-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4);
}
:root.dark .arch-task-card:hover .arch-task-title {
  color: #38bdf8;
}
:root.dark .arch-tasks-empty-state {
  background: rgba(30, 41, 59, 0.6);
  border-color: #475569;
}
:root.dark .arch-tasks-empty-state:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: #64748b;
}

/* --- 统一对象底账卡片专区 --- */
.arch-panel {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(18,49,79,0.04);
}
.arch-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.arch-panel-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #12314f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.arch-panel-header h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  background: #1B4E8A;
  border-radius: 2px;
}
.arch-sub-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.arch-sub-tab {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.arch-sub-tab.active, .arch-sub-tab:hover {
  background: #1B4E8A;
  color: #ffffff;
  border-color: #1B4E8A;
}

/* --- 数据核验中台 (7项标准化API测试台) --- */
.verify-console-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: stretch;
}
.verify-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verify-nav-btn {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.verify-nav-btn b {
  font-size: 14px;
  color: #0f172a;
}
.verify-nav-btn span {
  font-size: 11.5px;
  color: #64748b;
}
.verify-nav-btn:hover {
  background: #eef4fa;
  border-color: #1B4E8A;
}
.verify-nav-btn.active {
  background: #eef4fa;
  border: 2px solid #1B4E8A;
}
.verify-result-viewer {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 240px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}
.verify-result-viewer pre {
  overflow-x: auto;
  white-space: pre-wrap;
  color: #38bdf8;
  line-height: 1.5;
}
.verify-badge-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* --- 四类重点政务应用全景卡片 --- */
.four-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.app-hero-card {
  background: #ffffff;
  border: 1px solid #d7e3f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(18,49,79,0.03);
}
.app-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18,49,79,0.08);
  border-color: #1B4E8A;
}
.app-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-card-title h4 {
  font-size: 16px;
  color: #12314f;
  font-weight: 700;
}
.app-flow-chain {
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.6;
}
.app-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.app-stat-row b {
  font-size: 18px;
  color: #1B4E8A;
}
.app-stat-row span {
  font-size: 12px;
  color: #64748b;
}

/* --- 智能风控与预警工单卡片 --- */
.risk-stat-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.risk-badge-box {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.risk-badge-box.red { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.risk-badge-box.yellow { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.risk-badge-box.blue { background: #f0f9ff; border: 1px solid #bae6fd; color: #0284c7; }
.risk-badge-box.green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.risk-badge-box b { font-size: 22px; font-weight: 700; }
.risk-badge-box span { font-size: 12px; opacity: 0.85; }

/* --- 模态框 / 顶层架构全屏视窗 --- */
.arch-fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 49, 79, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.arch-fullscreen-modal.active {
  display: flex;
}
.arch-modal-window {
  background: #ffffff;
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.arch-modal-topbar {
  background: linear-gradient(135deg, #12314f 0%, #1B4E8A 100%);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.arch-modal-topbar h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.arch-modal-close-btn {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border: none;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.arch-modal-close-btn:hover {
  background: rgba(255,255,255,0.3);
}
.arch-iframe-frame {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 860px) {
  .verify-console-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   时空底座 GIS 一张图与遥感农机深度联动样式
   ============================================================ */

/* 空间图层控制器 (嵌入左侧一张图调度枢纽面板中) */
.gis-layer-switcher {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
  width: 100%;
  box-shadow: none;
  font-size: 12px;
}

.gis-layer-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts, #64748b);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  padding-left: 2px;
}

.gis-layer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gis-layer-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  font-size: 12.5px;
  color: #0f172a;
}

:root.dark .gis-layer-item {
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
}

.gis-layer-item:hover {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
}

:root.dark .gis-layer-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.gis-layer-item input[type="checkbox"] {
  accent-color: #059669;
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

.gis-switch-wrap input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* 真实地图图例色块 (完全去除花哨 Emoji) */
.gis-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
  box-sizing: border-box;
}

.swatch-county {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.swatch-parcels {
  border: 1.5px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.25);
}

.swatch-projects {
  border: 1.5px solid #059669;
  background: rgba(5, 150, 105, 0.4);
}

.swatch-conflicts {
  border: 1.5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.35);
}

.swatch-ndvi {
  background: linear-gradient(135deg, #ef4444 0%, #eab308 50%, #10b981 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.swatch-tracks {
  border-top: 2.5px dashed #eab308;
  height: 0;
  margin-top: 6px;
  background: transparent;
}

.swatch-ranches {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b5cf6;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
  margin: 0 2px;
}

.swatch-crops {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f43f5e;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.6);
  margin: 0 2px;
}

.swatch-entities {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0284c7;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
  margin: 0 2px;
}

.layer-sub-count {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}
:root.dark .layer-sub-count {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.gis-layer-item .layer-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.gis-layer-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.gis-layer-tag.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
:root.dark .gis-layer-tag.amber {
  color: #fbbf24;
}

.gis-layer-tag.red {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}
:root.dark .gis-layer-tag.red {
  color: #f87171;
}

.gis-layer-tag.yellow {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}
:root.dark .gis-layer-tag.yellow {
  color: #fde047;
}

.gis-layer-badge-conflict {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: auto;
  animation: pulse-red-badge 1.8s infinite;
}

@keyframes pulse-red-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* 旗县快速下钻选择器 */
.gis-quick-zoom {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--bd, rgba(0, 0, 0, 0.08));
  border-radius: 8px;
}

:root.dark .gis-quick-zoom {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.gis-quick-zoom label,
.gis-quick-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ts, #64748b);
  margin-bottom: 4px;
}
:root.dark .gis-quick-label {
  color: #94a3b8;
}

.gis-quick-select {
  width: 100%;
  background: var(--bg2, #ffffff);
  border: 1px solid var(--bd, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
  color: var(--t, #0f172a);
  padding: 5px 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

:root.dark .gis-quick-select {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.gis-quick-select:focus {
  border-color: var(--lime, #2d6a4f);
}

/* 农机北斗时序轨迹动态回放控制器浮层 (现代低调 HUD 结构，居中且支持折叠) */
.gis-playback-bar {
  position: absolute;
  bottom: 16px;
  left: calc(320px + 24px);
  right: 76px;
  max-width: 820px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  padding: 10px 16px;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root:not(.dark) .gis-playback-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(5, 150, 105, 0.25);
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.gis-playback-bar.collapsed {
  padding: 8px 14px;
  gap: 0;
}

.gis-playback-bar.collapsed .gis-playback-controls,
.gis-playback-bar.collapsed .gis-telemetry-chips {
  display: none !important;
}

.gis-playback-bar.collapsed .gis-playback-collapse-btn svg {
  transform: rotate(180deg);
}

.gis-playback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.gis-machine-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
}

:root:not(.dark) .gis-machine-title {
  color: #059669;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot-glow 2s infinite;
}

@keyframes pulse-dot-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.gis-machine-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  max-width: 200px;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease;
}

:root:not(.dark) .gis-machine-select {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.gis-machine-select:focus {
  border-color: #10b981;
}

.gis-machine-select option {
  background: #0f172a;
  color: #fff;
}

:root:not(.dark) .gis-machine-select option {
  background: #ffffff;
  color: #0f172a;
}

.gis-playback-collapse-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

:root:not(.dark) .gis-playback-collapse-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

.gis-playback-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:root:not(.dark) .gis-playback-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.gis-telemetry-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  overflow: hidden;
}

.gis-tele-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  color: #cbd5e1;
  white-space: nowrap;
}

:root:not(.dark) .gis-tele-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

.gis-tele-chip strong {
  color: #34d399;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-left: 2px;
}

:root:not(.dark) .gis-tele-chip strong {
  color: #047857;
}

.gis-tele-chip.chip-rtk strong {
  color: #38bdf8;
}

:root:not(.dark) .gis-tele-chip.chip-rtk strong {
  color: #0284c7;
}

.gis-tele-chip.chip-time strong {
  color: #fbbf24;
}

:root:not(.dark) .gis-tele-chip.chip-time strong {
  color: #b45309;
}

.gis-playback-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gis-play-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
  transition: all 0.15s ease;
}

.gis-play-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.gis-playback-slider {
  flex: 1;
  accent-color: #059669;
  cursor: pointer;
  height: 5px;
}

.gis-speed-btn-group {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

:root:not(.dark) .gis-speed-btn-group {
  border-color: rgba(0, 0, 0, 0.12);
}

.gis-speed-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: none;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

:root:not(.dark) .gis-speed-btn {
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}

.gis-speed-btn.active {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
}

/* 遥感 NDVI 专题图例 */
.gis-ndvi-legend {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 11px;
  width: 170px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

:root:not(.dark) .gis-ndvi-legend {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.gis-ndvi-legend h5 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #86efac;
}

:root:not(.dark) .gis-ndvi-legend h5 {
  color: #218c00;
}

.gis-ndvi-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eab308 0%, #84cc16 35%, #22c55e 70%, #218c00 100%);
  margin-bottom: 6px;
}

.gis-ndvi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.8;
}

/* 脉冲红框冲突样式 (Leaflet SVG Path) */
@keyframes pulse-red-boundary {
  0% { stroke: #ef4444; stroke-width: 3; fill-opacity: 0.18; }
  50% { stroke: #dc2626; stroke-width: 5; fill-opacity: 0.45; }
  100% { stroke: #ef4444; stroke-width: 3; fill-opacity: 0.18; }
}

.pulse-conflict-path {
  animation: pulse-red-boundary 1.8s infinite;
}

/* 高保真地图弹窗 */
.custom-gis-popup .leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 4px;
}

.custom-gis-popup .leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.94);
}

.gis-popup-body {
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.gis-popup-header {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gis-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0;
  color: #cbd5e1;
}

.gis-popup-row strong {
  color: #ffffff;
}

.gis-popup-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.gis-popup-btn {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
}
.gis-popup-btn:hover {
  background: #0369a1;
}
.gis-popup-btn.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e2e8f0;
}
.gis-popup-btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- 方向三：实名防伪电子印章 (Official Seal Stamp) --- */
.arch-seal-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 12px auto;
  position: relative;
}

.arch-seal-circle {
  width: 140px;
  height: 140px;
  border: 3.5px solid #dc2626;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #dc2626;
  text-align: center;
  padding: 8px;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) inset, 0 4px 12px rgba(220, 38, 38, 0.12);
  transform: rotate(-3deg);
  background: rgba(254, 242, 242, 0.3);
  user-select: none;
}

.arch-seal-circle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  right: 4px;
  border: 1px solid #dc2626;
  border-radius: 50%;
  pointer-events: none;
}

.arch-seal-star {
  font-size: 26px;
  line-height: 1;
  color: #dc2626;
  margin-bottom: 2px;
}

.arch-seal-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.5px;
  max-width: 105px;
}

.arch-seal-type-badge {
  margin-top: 3px;
  font-size: 9.5px;
  border: 1px solid #dc2626;
  padding: 0 4px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* --- 穿透式全流程审计证据卷宗 6环时间轴 (Dossier Rings) --- */
.dossier-rings-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin: 16px 0;
  padding-left: 20px;
}

.dossier-rings-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #cbd5e1;
}

.dossier-ring-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s;
}

.dossier-ring-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dossier-ring-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #0284c7;
}

.dossier-ring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.dossier-ring-header strong {
  font-size: 13.5px;
  color: #0f172a;
}

.dossier-ring-code {
  font-family: monospace;
  font-size: 11.5px;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #0369a1;
}

.merkle-hash-box {
  background: #0f172a;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 11.5px;
  color: #38bdf8;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ==============================================================================
   域⑤ 现代农事综合服务中心协同运营样式 (7大功能区、北斗智配、农资溯源)
   ============================================================================== */
.hub-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hub-tab-btn:hover {
  color: #0284c7;
}
.hub-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.zone-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zone-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2,132,199,0.1);
  transform: translateY(-2px);
}

.zone-load-bar-wrap {
  background: #f1f5f9;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.zone-load-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.dispatch-candidate-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dispatch-candidate-card.recommended {
  border-color: #0284c7;
  background: #f0f9ff;
}

.trace-timeline-wrap {
  position: relative;
  padding-left: 28px;
  margin-top: 14px;
}
.trace-timeline-wrap::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #cbd5e1;
}
.trace-step-item {
  position: relative;
  margin-bottom: 18px;
}
.trace-step-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #0284c7;
}
.trace-step-content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.badge-low-stock {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-normal-stock {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================================= */
/* 方向五：通辽特色优势产业全景与开鲁红干椒产业链专区样式 (域②/域⑥) */
/* ============================================================= */

/* 特色优势单品卡片 */
.crop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.crop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.crop-card.chili-card {
  border-top: 4px solid #ef4444;
}
.crop-card.corn-card {
  border-top: 4px solid #f59e0b;
}
.crop-card.soy-card {
  border-top: 4px solid #10b981;
}
.crop-card.buck-card {
  border-top: 4px solid #8b5cf6;
}

.crop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.crop-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crop-gi-badge {
  font-size: 11px;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.crop-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 10px 0;
  text-align: center;
}
.crop-metric-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.crop-metric-item span {
  font-size: 11px;
  color: #64748b;
}

.crop-card-meta {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}
.crop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.crop-tag-chip {
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.crop-card-actions {
  display: flex;
  gap: 8px;
}
.crop-card-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.crop-card-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.crop-card-btn.primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.crop-card-btn.primary:hover {
  background: #0369a1;
}

/* 红干椒每日定价指数卡片 */
.chili-price-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}
.chili-price-card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}
.chili-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #7c2d12;
  margin-bottom: 4px;
}
.chili-origin-val {
  font-size: 18px;
  font-weight: 800;
  color: #c2410c;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.chili-origin-val em {
  font-style: normal;
  font-size: 11.5px;
  color: #9a3412;
}
.chili-dest-comparison {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #fed7aa;
}

/* 遥感物候阶梯行 */
.pheno-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.pheno-row:hover {
  border-color: #0284c7;
}
.pheno-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pheno-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.pheno-progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}
.pheno-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #0284c7);
  transition: width 0.4s ease;
}
.pheno-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-top: 6px;
}
.pheno-chip {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}
.pheno-advice-box {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #218c00;
  border-radius: 0 4px 4px 0;
  margin-top: 6px;
}

/* 骨干冷链与烘干收储设施卡片 */
.cold-facility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}
.cold-facility-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.cold-facility-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.cold-facility-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.cold-type-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.cold-type-badge.cold-storage {
  background: #e0f2fe;
  color: #0284c7;
}
.cold-type-badge.drying-tower {
  background: #fef3c7;
  color: #b45309;
}
.cold-type-badge.processing-workshop {
  background: #f3e8ff;
  color: #7e22ce;
}

.cold-capacity-meter {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}
.cold-capacity-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.cold-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #475569;
  margin-top: 6px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
}
.temp-gauge {
  font-weight: 700;
}
.temp-gauge.cool {
  color: #0284c7;
}
.temp-gauge.warm {
  color: #d97706;
}

/* 全产业链 5 环节深度图谱时间步进条 */
.val-chain-stepper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-top: 14px;
}
.val-chain-step-card {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  position: relative;
}
.val-chain-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.val-chain-step-body {
  flex: 1;
}
.val-chain-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.val-chain-step-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 6px 0 8px 0;
}
.val-chain-step-entities {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.val-chain-step-entity-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 7px;
  color: #1e293b;
}

/* =============================================================
   方向六：新型农业经营主体一户一码与信用风控评价专区 (域④/域⑨)
   ============================================================= */

/* 经营主体卡片 */
.entity-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.entity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.entity-card.level-aaa {
  border-top: 4px solid #eab308;
}
.entity-card.level-aa {
  border-top: 4px solid #0284c7;
}
.entity-card.level-a {
  border-top: 4px solid #10b981;
}
.entity-card.level-b {
  border-top: 4px solid #f97316;
}
.entity-card.level-c {
  border-top: 4px solid #ef4444;
}

.entity-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.entity-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 2px;
}
.entity-type-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

/* 一户一码防伪编码徽章 */
.one-code-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 1px 6px;
  margin: 4px 0 8px 0;
  cursor: pointer;
  width: fit-content;
}
.one-code-stamp:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* 信用等级 Badge */
.credit-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.credit-badge.badge-aaa {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.credit-badge.badge-aa {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.credit-badge.badge-a {
  background: #dcfce7;
  color: #218c00;
  border: 1px solid #86efac;
}
.credit-badge.badge-b {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.credit-badge.badge-c {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* 红名单示范标签 */
.red-list-tag {
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* 经营生产核心指标卡片 */
.entity-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  margin: 8px 0;
  text-align: center;
}
.entity-metric-item b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.entity-metric-item span {
  font-size: 10.5px;
  color: #64748b;
}

/* 五维信用指标进度条 */
.dim-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  margin-bottom: 4px;
}
.dim-score-label {
  width: 65px;
  color: #475569;
  flex-shrink: 0;
}
.dim-score-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.dim-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #0284c7);
}
.dim-score-val {
  width: 45px;
  text-align: right;
  font-weight: 600;
  color: #0f172a;
  flex-shrink: 0;
}

/* 卡片底部操作按钮组 */
.entity-card-footer {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.entity-action-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-weight: 500;
}
.entity-action-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.entity-action-btn.primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.entity-action-btn.primary:hover {
  background: #0369a1;
}

/* 金融直通车试算卡片 */
.loan-calc-card {
  position: sticky;
  top: 14px;
}

/* 模态框内的卷宗与表格排版 */
.dossier-header-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dossier-grid-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.dossier-info-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}
.dossier-info-cell span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}
.dossier-info-cell strong {
  font-size: 12.5px;
  color: #0f172a;
}
.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.dossier-table th {
  background: #f1f5f9;
  color: #475569;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 600;
}
.dossier-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.dossier-table tr:hover td {
  background: #f8fafc;
}

/* =============================================================
   方向七：统一数据治理与全域数据报表导出中心
   ============================================================= */

.gov-domain-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gov-domain-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.gov-domain-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gov-domain-metric {
  font-size: 18px;
  font-weight: 800;
  color: #0284c7;
  margin: 6px 0 2px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.gov-domain-metric em {
  font-size: 11px;
  font-style: normal;
  color: #64748b;
  font-weight: normal;
}
.gov-domain-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

/* 导出卡片 */
.gov-export-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}
.gov-export-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}
.gov-export-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.gov-export-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.gov-export-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 4px 0 10px 0;
  line-height: 1.4;
}
.gov-export-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

/* 网络状态行 */
.gov-net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.gov-net-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}
.gov-net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* 预览表格 */
.gov-preview-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.gov-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  white-space: nowrap;
}
.gov-preview-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 6px 10px;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
}
.gov-preview-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}
.gov-preview-table tr:hover td {
  background: #f8fafc;
}




