/* ============================================
   市级司法局法治宣传数据驾驶舱 - 样式表
   主题：量子政务 —— 深空霓虹科技风
   适配：1920x1080 (16:9)
   ============================================ */

/* ---- CSS变量定义 ---- */
:root {
  /* 核心科技色系 */
  --color-void: #020617;
  --color-void-light: #0a0f1e;
  --color-void-dark: #01040d;
  --color-surface: rgba(10, 20, 40, 0.6);
  --color-surface-elevated: rgba(15, 30, 60, 0.7);

  /* 霓虹主色 */
  --color-neon-cyan: #00f0ff;
  --color-neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --color-neon-cyan-dim: rgba(0, 240, 255, 0.1);
  --color-neon-blue: #2e6bff;
  --color-neon-blue-glow: rgba(46, 107, 255, 0.35);

  /* 量子金色 */
  --color-gold: #ffd700;
  --color-gold-light: #ffec8b;
  --color-gold-dark: #c9a000;
  --color-gold-glow: rgba(255, 215, 0, 0.35);

  /* 功能霓虹色 */
  --color-success: #00ff9d;
  --color-success-glow: rgba(0, 255, 157, 0.4);
  --color-warning: #ffb800;
  --color-warning-glow: rgba(255, 184, 0, 0.4);
  --color-danger: #ff3864;
  --color-danger-glow: rgba(255, 56, 100, 0.4);
  --color-info: #00f0ff;

  /* 文字色 */
  --text-primary: #e8f4f8;
  --text-secondary: #8ba3b8;
  --text-muted: #4a6078;
  --text-gold: #ffd700;

  /* 边框与发光 */
  --border-glow-cyan: rgba(0, 240, 255, 0.25);
  --border-glow-gold: rgba(255, 215, 0, 0.25);
  --border-subtle: rgba(0, 240, 255, 0.08);

  /* 玻璃拟态 */
  --glass-bg: rgba(8, 16, 32, 0.55);
  --glass-border: rgba(0, 240, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.03);

  /* 字体 */
  --font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --font-tech: 'Orbitron', 'Microsoft YaHei', sans-serif;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 阴影与发光 */
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.15);
  --shadow-cyan: 0 0 30px rgba(0, 240, 255, 0.15);
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* 动画 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 基础重置 ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: #050d1f;
  color: var(--text-primary);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* ---- 粒子背景 Canvas ---- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- 科技网格背景 ---- */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.tech-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(46, 107, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
}

/* ---- 主背景层：复刻深蓝渐变背景 ---- */
.main-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, #0c2a5c 0%, transparent 70%),
    radial-gradient(ellipse at 30% 70%, #0a1f4a 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, #0d2e5e 0%, transparent 50%),
    linear-gradient(180deg, #050d1f 0%, #071226 40%, #0a1a3a 70%, #07152e 100%);
}

/* ---- 16:9 适配方案 ---- */
.dashboard-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* ---- 顶部标题栏 ---- */
.dashboard-header {
  height: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.98) 0%, rgba(8, 16, 32, 0.9) 100%);
  border-bottom: 1px solid var(--border-glow-cyan);
  box-shadow:
    0 2px 30px rgba(0, 240, 255, 0.1),
    inset 0 -1px 0 rgba(0, 240, 255, 0.05);
  z-index: 100;
  overflow: visible;
  padding: 8px 0;
}

/* 标题栏扫描线 */
.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.03), transparent);
  animation: headerScan 8s linear infinite;
}

@keyframes headerScan {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* 标题栏两侧能量条 */
.header-energy-left,
.header-energy-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), transparent);
  opacity: 0.6;
}

.header-energy-left { left: 60px; }
.header-energy-right { right: 60px; }

.header-energy-left::before,
.header-energy-right::before {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--color-neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-neon-cyan-glow);
  animation: energyPulse 2s ease-in-out infinite;
}

.header-energy-left::before { left: 0; }
.header-energy-right::before { right: 0; }

@keyframes energyPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.header-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.header-badge {
  display: inline-block;
  padding: 3px 20px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  color: var(--color-neon-cyan);
  font-size: 0.75rem;
  letter-spacing: 5px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: var(--font-tech);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
}

.header-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 8px;
  text-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 40px rgba(0, 240, 255, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-family);
}

.header-subtitle {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: 4px;
  font-family: var(--font-tech);
}

.header-meta {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.meta-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-neon-cyan);
  font-family: var(--font-mono);
  text-shadow: 0 0 10px var(--color-neon-cyan-glow);
}

.time-icon {
  width: 8px;
  height: 8px;
  background: var(--color-neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-neon-cyan-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.meta-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.meta-update {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  z-index: 1;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  color: var(--color-neon-cyan);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transition: left 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 20px var(--color-neon-cyan-glow);
  border-color: var(--color-neon-cyan);
  transform: translateY(-1px);
}

.action-btn svg {
  opacity: 0.9;
}

/* ---- 主体内容区 ---- */
.dashboard-main {
  flex: 1;
  display: grid;
  grid-template-columns: 22% 56% 22%;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "top-left top-center right-col"
    "top-left top-center right-col"
    "bottom-left bottom-center right-col";
  gap: 12px;
  padding: 14px;
  padding-bottom: 8px;
  overflow: hidden;
  min-height: 0;
  align-items: stretch;
}

/* 左上：KPI指标 */
.dashboard-top-left {
  grid-area: top-left;
  min-width: 0;
  overflow: hidden;
}

/* 中上：地图 */
.dashboard-top-center {
  grid-area: top-center;
  min-width: 0;
  overflow: hidden;
}

/* 右边列：包含右上、右中和右下 */
.right-col {
  grid-area: right-col;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 右上：月度趋势 - 右侧第一块 */
.dashboard-top-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 右中：TOP10 - 右侧第二块 */
.dashboard-middle-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 右下：饼图2 - 右侧第三块 */
.dashboard-bottom-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 左下：饼图1 */
.dashboard-bottom-left {
  grid-area: bottom-left;
  min-width: 0;
  overflow: hidden;
}

/* 中下：区县对比 */
.dashboard-bottom-center {
  grid-area: bottom-center;
  min-width: 0;
  overflow: hidden;
}

/* ---- 通用面板样式 —— 玻璃拟态 ---- */
.panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 var(--glass-highlight);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 面板顶部发光条 */
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), transparent);
  opacity: 0.6;
}

/* 面板四角能量灯 */
.panel-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-neon-cyan);
  opacity: 0.5;
  pointer-events: none;
  z-index: 5;
}

.panel-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.panel-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.panel-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.panel-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.panel-icon {
  width: 6px;
  height: 18px;
  background: linear-gradient(180deg, var(--color-neon-cyan), var(--color-neon-blue));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--color-neon-cyan-glow);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 8px var(--color-neon-cyan-glow); }
  50% { opacity: 1; box-shadow: 0 0 16px var(--color-neon-cyan-glow); }
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow-cyan), transparent);
  margin-left: 10px;
}

.panel-body {
  flex: 1;
  padding: 14px;
  overflow: hidden;
  position: relative;
}

/* ---- KPI卡片 —— 霓虹科技风 ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(46, 107, 255, 0.03));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow: hidden;
  transition: all var(--transition-normal);
  animation: kpiCardGlow 4s ease-in-out infinite;
}

@keyframes kpiCardGlow {
  0%, 100% {
    box-shadow: 0 0 0px rgba(0, 240, 255, 0);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
  }
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.kpi-card:hover {
  border-color: var(--border-glow-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

.kpi-card:hover::before {
  opacity: 0.8;
}

.kpi-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.kpi-content {
  position: relative;
  z-index: 1;
}

.kpi-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  color: var(--color-neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
  transition: all 0.3s;
}

.kpi-card:hover .kpi-icon-wrap {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: scale(1.05);
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-mono);
  line-height: 1.2;
  text-shadow: 0 0 15px var(--color-gold-glow);
}

.kpi-unit {
  font-size: 0.9rem;
  margin-left: 2px;
  color: var(--color-gold-light);
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 1px;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.kpi-trend.up {
  color: var(--color-success);
  text-shadow: 0 0 8px var(--color-success-glow);
}

.kpi-trend.down {
  color: var(--color-danger);
  text-shadow: 0 0 8px var(--color-danger-glow);
}

.trend-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---- 图表容器 ---- */
.chart-container {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.map-chart {
  min-height: 500px;
  height: 100%;
}

.rank-chart {
  min-height: 220px;
}

/* ---- 地图区域 —— 增强科技感 ---- */
.map-panel {
  flex: 2.2;
  position: relative;
  overflow: visible;
}

.map-panel::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, transparent 30%, transparent 70%, rgba(255, 215, 0, 0.15) 100%);
  border-radius: var(--radius-md);
  z-index: -1;
  pointer-events: none;
  animation: mapBorderGlow 3s ease-in-out infinite;
}

@keyframes mapBorderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.map-body {
  position: relative;
  padding: 8px;
  overflow: hidden;
}

/* 地图装饰角标 */
.map-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.map-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.map-corner.top-left {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}

.map-corner.top-right {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 8px;
}

.map-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 8px;
}

.map-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

/* 地图头部统计 */
.map-stats-summary {
  display: flex;
  gap: 20px;
  margin-left: auto;
  margin-right: 14px;
}

.map-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.map-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 地图图例 */
.map-legend {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
  pointer-events: none;
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.legend-icon {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-blue));
  border-radius: 4px;
  box-shadow: 0 0 10px var(--color-neon-cyan-glow);
}

.legend-gradient {
  width: 160px;
  height: 10px;
  background: linear-gradient(90deg, #020617, #0a1f3a, #143a5c, #1a5290, #216bc4, #2e85e0, #4a9ef5, #6bb3ff, #8cc8ff, #00f0ff);
  border-radius: 5px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 240, 255, 0.08);
}

/* 地图数据速览面板 */
.map-quick-stats {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
  min-width: 160px;
  pointer-events: none;
}

.quick-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.quick-stat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-neon-cyan);
  text-shadow: 0 0 10px var(--color-neon-cyan-glow);
}

.quick-stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quick-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* 区县详情浮层 */
.district-detail-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  z-index: 20;
  backdrop-filter: blur(16px);
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 240, 255, 0.1);
  min-width: 240px;
  display: none;
  animation: detailFadeIn 0.3s ease;
}

@keyframes detailFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.detail-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-neon-cyan);
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--color-neon-cyan-glow);
}

.detail-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-neon-cyan);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-close:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px var(--color-neon-cyan-glow);
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-gold);
  text-shadow: 0 0 8px var(--color-gold-glow);
}

/* ---- 底部信息栏 —— 霓虹科技风 ---- */
.dashboard-footer {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.95), rgba(2, 6, 23, 0.98));
  border-top: 1px solid var(--border-glow-cyan);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -2px 20px rgba(0, 240, 255, 0.05);
}

.footer-marquee {
  height: 26px;
  background: rgba(0, 240, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 0.85rem;
  color: var(--color-neon-cyan);
  padding: 0 24px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px var(--color-neon-cyan-glow);
  font-family: var(--font-tech);
}

.marquee-separator {
  width: 6px;
  height: 6px;
  background: var(--color-neon-cyan);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: 0 0 8px var(--color-neon-cyan-glow);
  animation: sepPulse 2s ease-in-out infinite;
}

@keyframes sepPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

.footer-summary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0 24px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.summary-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-gold);
  font-family: var(--font-mono);
  text-shadow: 0 0 15px var(--color-gold-glow);
}

/* ---- 上传弹窗 —— 玻璃拟态 ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, rgba(8, 16, 32, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 90vw;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    var(--shadow-cyan);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  color: var(--color-neon-cyan);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 15px var(--color-neon-cyan-glow);
}

.modal-body {
  padding: 28px;
}

.upload-area {
  border: 2px dashed var(--border-glow-cyan);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(0, 240, 255, 0.02);
}

.upload-area:hover {
  border-color: var(--color-neon-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

.upload-area.dragover {
  border-color: var(--color-neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.upload-icon {
  color: var(--color-neon-cyan);
  margin-bottom: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px var(--color-neon-cyan-glow));
}

.upload-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.upload-link {
  color: var(--color-neon-cyan);
  text-decoration: underline;
  cursor: pointer;
  text-shadow: 0 0 8px var(--color-neon-cyan-glow);
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---- 宽版弹窗 ---- */
.modal-content--wide {
  width: 640px;
  max-width: 92vw;
}

/* ---- 弹窗头部增强 ---- */
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  color: var(--color-neon-cyan);
  filter: drop-shadow(0 0 8px var(--color-neon-cyan-glow));
}

/* ---- 操作步骤指引 ---- */
.upload-steps {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 0;
}

.upload-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neon-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 3px;
}

.step-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-connector {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(0, 240, 255, 0.05));
  margin-top: 14px;
  flex-shrink: 0;
}

/* ---- 模板下载区 ---- */
.template-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-md);
  gap: 16px;
}

.template-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.template-info-icon {
  color: var(--color-gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--color-gold-glow));
  margin-top: 2px;
}

.template-info-text {
  flex: 1;
  min-width: 0;
}

.template-info-title {
  font-size: 0.85rem;
  color: var(--color-gold-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.template-info-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.template-info-desc strong {
  color: var(--color-gold);
  font-weight: 600;
}

.template-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.template-download-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
}

.template-download-btn svg {
  flex-shrink: 0;
}

/* ---- 上传区域标题 ---- */
.upload-section-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 2px;
  letter-spacing: 0.5px;
}

/* ---- 上传进度条 ---- */
.upload-progress {
  width: 100%;
  padding: 10px 0;
}

.upload-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-success));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.upload-progress-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- 上传结果展示 ---- */
.upload-result {
  text-align: center;
  padding: 16px 0;
}

.upload-result-icon {
  margin-bottom: 12px;
}

.upload-result-icon.success {
  color: var(--color-success);
  filter: drop-shadow(0 0 12px var(--color-success-glow));
}

.upload-result-icon.error {
  color: var(--color-danger);
  filter: drop-shadow(0 0 12px var(--color-danger-glow));
}

.upload-result-msg {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.upload-result-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  color: var(--color-neon-cyan);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-result-retry:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px var(--color-neon-cyan-glow);
}

/* ---- 上传区有结果时隐藏图标 ---- */
.upload-area.has-result .upload-icon {
  display: none;
}

.upload-area.has-result {
  cursor: default;
}

/* ---- 加载遮罩 —— 量子漩涡 ---- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loading-spinner::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top-color: var(--color-neon-cyan);
  border-right-color: var(--color-neon-cyan);
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 20px var(--color-neon-cyan-glow);
}

.loading-spinner::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-bottom-color: var(--color-gold);
  border-left-color: var(--color-gold);
  animation: spin 1s linear infinite reverse;
  box-shadow: 0 0 15px var(--color-gold-glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 24px;
  color: var(--color-neon-cyan);
  font-size: 1rem;
  letter-spacing: 4px;
  font-family: var(--font-tech);
  text-shadow: 0 0 15px var(--color-neon-cyan-glow);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- 滚动条样式 ---- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-glow-cyan);
  border-radius: 2px;
}

/* ---- 响应式适配 ---- */
@media (max-width: 1366px) {
  .header-title {
    font-size: 1.4rem;
  }

  .kpi-value {
    font-size: 1.25rem;
  }

  .panel-title {
    font-size: 0.8rem;
  }

  .dashboard-main {
    grid-template-columns: 22% 43% 35%;
    grid-template-rows: 40% 60%;
    gap: 12px;
  }
}

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

  .footer-summary {
    gap: 16px;
  }

  .header-title {
    font-size: 1.2rem;
  }

  .kpi-value {
    font-size: 1.1rem;
  }

  .panel-title {
    font-size: 0.75rem;
  }

  .dashboard-main {
    grid-template-columns: 24% 42% 34%;
    grid-template-rows: 45% 55%;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .dashboard-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "top-left"
      "top-center"
      "top-right"
      "middle-right"
      "bottom-left"
      "bottom-center"
      "bottom-right";
    overflow-y: auto;
  }
  
  .dashboard-top-left,
  .dashboard-top-center,
  .dashboard-top-right,
  .dashboard-middle-right,
  .dashboard-bottom-left,
  .dashboard-bottom-center,
  .dashboard-bottom-right {
    min-height: 300px;
    margin-top: 0 !important;
  }
}

/* ---- 全屏模式样式 ---- */
:fullscreen {
  width: 100vw;
  height: 100vh;
  background: var(--color-void);
}

:fullscreen #particle-canvas,
:fullscreen .tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

:fullscreen .dashboard-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 2;
}

:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: var(--color-void);
}

:-webkit-full-screen #particle-canvas,
:-webkit-full-screen .tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

:-webkit-full-screen .dashboard-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 2;
}

:-moz-full-screen {
  width: 100vw;
  height: 100vh;
  background: var(--color-void);
}

:-moz-full-screen #particle-canvas,
:-moz-full-screen .tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

:-moz-full-screen .dashboard-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 2;
}

/* ---- 3D悬浮地图效果 —— 增强版 ---- */
.map-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.map-3d-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

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

/* 地图底座 */
.map-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(90deg);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: basePulse 4s ease-in-out infinite;
}

@keyframes basePulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) rotateX(90deg) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) rotateX(90deg) scale(1.05); }
}

/* 地图网格背景 */
.map-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

/* 科技感扫描线 */
.map-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), rgba(255, 215, 0, 0.3), var(--color-neon-cyan), transparent);
  box-shadow: 0 0 15px var(--color-neon-cyan-glow), 0 0 30px rgba(255, 215, 0, 0.15);
  animation: scanLine 4s linear infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 科技光晕效果 */
.map-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

/* 地图数据标签 */
.map-data-label {
  position: absolute;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--color-neon-cyan);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  z-index: 15;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
  text-shadow: 0 0 8px var(--color-neon-cyan-glow);
}

/* ---- 动画效果 ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.2s; }
.panel:nth-child(3) { animation-delay: 0.3s; }
.panel:nth-child(4) { animation-delay: 0.4s; }
.panel:nth-child(5) { animation-delay: 0.5s; }
.panel:nth-child(6) { animation-delay: 0.6s; }
.panel:nth-child(7) { animation-delay: 0.7s; }

/* ---- 装饰性元素 ---- */
.dashboard-container::before {
  content: '';
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 64px;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(0, 240, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ECharts tooltip 自定义样式 */
.custom-tooltip {
  background: rgba(2, 6, 23, 0.95) !important;
  border: 1px solid var(--border-glow-cyan) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1) !important;
}

/* ---- 鼠标跟随光效 ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ============================================
   需求V1.1 新增样式
   ============================================ */

/* ---- 背景升级：深蓝色科技感增强 ---- */
body {
  background: linear-gradient(135deg, #010a1f 0%, #02122e 30%, #030e2c 60%, #01071a 100%);
}

.tech-grid-bg {
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.tech-grid-bg::before {
  background:
    radial-gradient(ellipse at 25% 40%, rgba(0, 150, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(0, 180, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 200, 255, 0.04) 0%, transparent 50%);
}

/* ---- 标题增强：渐变文字 + 阴影效果 ---- */
.panel-title {
  text-shadow: 0 0 15px rgba(0, 180, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  background: linear-gradient(180deg, #e8f4f8 0%, #6dc5f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-title {
  background: linear-gradient(180deg, #ffffff 0%, #4dc9f6 40%, #0088cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 180, 255, 0.4);
  letter-spacing: 8px;
}

/* ---- KPI数字增强：加粗渐变效果 ---- */
.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-value .kpi-unit {
  font-size: 0.9rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- 面板标题增强阴影 ---- */
.kpi-label {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---- 图标增强：动态发光效果 ---- */
.panel-icon {
  width: 8px;
  height: 22px;
  background: linear-gradient(180deg, var(--color-neon-cyan) 0%, #0099ff 50%, var(--color-neon-cyan) 100%);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.5), 0 0 6px rgba(0, 240, 255, 0.3);
  animation: iconEnhancedPulse 2s ease-in-out infinite;
}

@keyframes iconEnhancedPulse {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 12px rgba(0, 180, 255, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 24px rgba(0, 200, 255, 0.7); }
}

.kpi-icon-wrap {
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.15);
  transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon-wrap {
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.35);
  transform: scale(1.08);
  border-color: rgba(0, 200, 255, 0.3);
}

/* ---- 数据实时更新标识（可点击按钮） ---- */
.realtime-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.78rem;
  color: var(--color-success);
  letter-spacing: 1px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.realtime-indicator:hover {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.2), inset 0 0 20px rgba(0, 255, 157, 0.05);
  transform: translateY(-1px);
}

.realtime-indicator:hover .realtime-arrow {
  transform: translateX(3px);
  color: var(--color-neon-cyan);
}

.realtime-dot {
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success-glow), 0 0 20px rgba(0, 255, 157, 0.3);
  animation: realtimeDotPulse 2s ease-in-out infinite;
}

@keyframes realtimeDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--color-success-glow), 0 0 20px rgba(0, 255, 157, 0.3); }
  50% { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 4px rgba(0, 255, 157, 0.2), 0 0 10px rgba(0, 255, 157, 0.15); }
}

.realtime-text {
  font-size: 0.78rem;
  color: var(--color-success);
  letter-spacing: 1px;
  font-weight: 500;
  text-shadow: 0 0 6px var(--color-success-glow);
}

.realtime-indicator:hover .realtime-text {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

.realtime-arrow {
  color: var(--color-success);
  opacity: 0.6;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

/* ---- 趋势图数据截止标注 ---- */
.trend-data-cutoff {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 12px;
  padding: 3px 10px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 4px;
  white-space: nowrap;
}

/* ---- 区县对比时间选择器 ---- */
.time-selector {
  margin-left: 10px;
}

.time-select {
  padding: 3px 10px;
  background: rgba(0, 180, 255, 0.08);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 4px;
  color: var(--color-neon-cyan);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.time-select:hover {
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.time-select option {
  background: #02122e;
  color: var(--text-primary);
}

/* ---- 单饼图布局 ---- */
.pie-chart {
  flex: 1;
  min-height: 140px;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pieFloat 5s ease-in-out infinite;
}

.bottom-pie-left-panel .pie-chart {
  animation-delay: 0s;
}

.bottom-pie-right-panel .pie-chart {
  animation-delay: 0.8s;
}

@keyframes pieFloat {
  0%, 100% { transform: perspective(500px) rotateY(1deg) scale(1); }
  50% { transform: perspective(500px) rotateY(-1deg) scale(1.01); }
  75% { transform: perspective(500px) rotateY(-1deg) scale(1.01); }
}

.bottom-pie-left-panel:hover .pie-chart,
.bottom-pie-right-panel:hover .pie-chart {
  animation: none;
  transform: perspective(400px) rotateY(-3deg) scale(1.02);
}

/* ---- 面板悬停微动效 ---- */
.panel {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.panel:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-panel), 0 0 40px rgba(0, 180, 255, 0.06);
}

.map-panel:hover {
  transform: translateY(0);
}

/* ---- 地图面板样式 ---- */
.dashboard-top-center .map-panel {
  height: 100%;
}

/* ---- 面板充满容器 ---- */
.dashboard-top-left .panel,
.dashboard-top-center .panel,
.dashboard-top-right .panel,
.dashboard-middle-right .panel,
.dashboard-bottom-left .panel,
.dashboard-bottom-center .panel,
.dashboard-bottom-right .panel {
  height: 100%;
}

/* ---- 响应式：小屏优化 ---- */
@media (max-width: 1366px) {
  .dashboard-main {
    grid-template-columns: 22% 43% 35%;
    grid-template-rows: 40% 60%;
    gap: 12px;
  }
  .pie-chart {
    min-height: 140px;
  }
}

@media (max-width: 1280px) {
  .dashboard-main {
    grid-template-columns: 24% 42% 34%;
    grid-template-rows: 45% 55%;
    gap: 10px;
  }
}
