/* ============================================================
   蕲春县横车镇应急管理信息平台 - 通用样式表
   政务蓝色大屏风格 | 适配1920x1080 | 兼容普通显示器
   版本: 1.0.0
   ============================================================ */

/* ============================================================
   一、CSS变量定义 - 全站颜色体系
   ============================================================ */
:root {
  /* --- 主色调 --- */
  --primary: #1a5fb4;           /* 政务蓝 - 主色 */
  --primary-light: #3584e4;     /* 亮蓝 - 高亮 */
  --primary-dark: #0d3b7a;      /* 深蓝 - 深色区域 */
  --accent: #00d4aa;            /* 强调青绿 - 点缀 */

  /* --- 背景色 --- */
  --bg-dark: #0a1628;           /* 主背景 - 深蓝黑 */
  --bg-card: #0f2240;           /* 卡片背景 */
  --bg-card-hover: #162d54;     /* 卡片悬浮背景 */
  --bg-panel: #0d1f3c;          /* 面板背景 */
  --border-color: #1a3a6b;      /* 边框色 */

  /* --- 文字色 --- */
  --text-primary: #e8f0fe;      /* 主文字 - 亮白蓝 */
  --text-secondary: #8ba3c7;    /* 次要文字 */
  --text-muted: #5a7090;        /* 弱化文字 */

  /* --- 状态色 --- */
  --status-normal: #10b981;     /* 正常 - 绿色 */
  --status-caution: #f59e0b;    /* 注意 - 黄色 */
  --status-warning: #ef4444;    /* 警告 - 红色 */
  --status-danger: #dc2626;     /* 危险 - 深红 */
  --status-info: #3b82f6;       /* 信息 - 蓝色 */

  /* --- 火险等级色 --- */
  --fire-l1: #10b981;           /* 一级 - 低火险 */
  --fire-l2: #3b82f6;           /* 二级 - 较低火险 */
  --fire-l3: #f59e0b;           /* 三级 - 较高火险 */
  --fire-l4: #ef4444;           /* 四级 - 高火险 */
  --fire-l5: #dc2626;           /* 五级 - 极高火险 */

  /* --- AQI等级色 --- */
  --aqi-excellent: #10b981;     /* 优 */
  --aqi-good: #f59e0b;          /* 良 */
  --aqi-moderate: #f97316;      /* 轻度污染 */
  --aqi-unhealthy: #ef4444;     /* 中度污染 */
  --aqi-severe: #a855f7;        /* 重度污染 */
  --aqi-hazardous: #7f1d1d;     /* 严重污染 */

  /* --- 尺寸变量 --- */
  --header-height: 64px;        /* 顶部标题栏高度 */
  --sidebar-width: 210px;       /* 侧边栏宽度 */
  --card-radius: 8px;           /* 卡片圆角 */
  --btn-radius: 6px;            /* 按钮圆角 */
}

/* ============================================================
   二、基础重置与全局布局
   ============================================================ */

/* 全局盒模型重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML/Body 基础设置 */
html,
body {
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow: hidden;
}

/* Body 背景 - 深色径向渐变，增加层次感 */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, #0f2a50 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, #0d1f3c 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 90%, #0d1f3c 0%, transparent 60%),
    var(--bg-dark);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全屏容器 - 大屏展示主容器 */
.fullscreen-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 主内容区域 - flex自适应 */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* 内容面板 - 带内边距 */
.content-panel {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 链接全局样式 */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* ============================================================
   三、顶部标题栏 .header
   ============================================================ */

.header {
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* 标题栏背景 - 中间亮两边暗的政务蓝渐变 */
  background: linear-gradient(
    90deg,
    #0a1628 0%,
    #0d2d5e 20%,
    #1a5fb4 50%,
    #0d2d5e 80%,
    #0a1628 100%
  );
  /* 底部边框发光效果 */
  border-bottom: 1px solid rgba(53, 132, 228, 0.4);
  box-shadow:
    0 2px 12px rgba(26, 95, 180, 0.25),
    0 0 30px rgba(26, 95, 180, 0.1) inset;
  flex-shrink: 0;
  z-index: 100;
}

/* 标题栏装饰线 - 底部细线发光 */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(53, 132, 228, 0.8) 30%,
    rgba(0, 212, 170, 0.6) 50%,
    rgba(53, 132, 228, 0.8) 70%,
    transparent 100%
  );
}

/* 平台标题文字 */
.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 4px;
  /* 文字发光阴影效果 */
  text-shadow:
    0 0 10px rgba(53, 132, 228, 0.6),
    0 0 30px rgba(53, 132, 228, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* 左侧实时时钟 */
.header-clock {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-clock .time {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Microsoft YaHei', monospace;
  text-shadow: 0 0 8px rgba(53, 132, 228, 0.5);
}

.header-clock .date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 右侧数据更新时间 */
.header-update {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.header-update .update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-normal);
  box-shadow: 0 0 6px var(--status-normal);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   四、数据卡片 .data-card
   ============================================================ */

.data-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 14px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 卡片顶部装饰线 */
.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(53, 132, 228, 0.6) 20%,
    rgba(53, 132, 228, 0.3) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* 卡片悬浮效果 */
.data-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(53, 132, 228, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(26, 95, 180, 0.15);
}

/* 卡片标题区 */
.data-card .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

/* 标题左侧蓝色竖条装饰 */
.data-card .card-header::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(
    180deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 卡片标题文字 */
.data-card .card-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* 卡片右上角图标/操作区 */
.data-card .card-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* 卡片内容区 */
.data-card .card-body {
  position: relative;
}

/* 卡片角装饰 - 四角小三角 */
.data-card .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(53, 132, 228, 0.4);
  transition: all 0.3s ease;
}

.data-card .corner.corner-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.data-card .corner.corner-tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.data-card .corner.corner-bl {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.data-card .corner.corner-br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.data-card:hover .corner {
  width: 12px;
  height: 12px;
  border-color: rgba(53, 132, 228, 0.7);
}

/* ============================================================
   五、统计数字 .stat-number
   ============================================================ */

.stat-number {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  transition: all 0.5s ease;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* 统计数字单位 */
.stat-number .unit {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* 不同状态的统计数字颜色 */
.stat-number.normal {
  color: var(--status-normal);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-number.caution {
  color: var(--status-caution);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.stat-number.warning {
  color: var(--status-warning);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.stat-number.danger {
  color: var(--status-danger);
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.stat-number.info {
  color: var(--status-info);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.stat-number.accent {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

/* 统计标签 */
.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 统计数字变化动画 - 数字滚动效果容器 */
.stat-change {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  margin-left: 6px;
  font-weight: normal;
}

.stat-change.up {
  color: var(--status-warning);
}

.stat-change.down {
  color: var(--status-normal);
}

/* ============================================================
   六、地图区域 .map-container
   ============================================================ */

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: var(--bg-panel);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* 地图占位背景 - 网格纹理 */
.map-container .map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #0b1a30;
  /* 网格线纹理 */
  background-image:
    linear-gradient(rgba(26, 95, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 95, 180, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

/* 地图中心定位辅助线 */
.map-container .map-placeholder::before,
.map-container .map-placeholder::after {
  content: '';
  position: absolute;
  background-color: rgba(26, 95, 180, 0.15);
}

.map-container .map-placeholder::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.map-container .map-placeholder::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* -------------------- 地图监测点位 .map-marker -------------------- */

.map-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  /* 脉冲环 */
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.3),
    0 0 8px rgba(0, 0, 0, 0.3);
}

/* 点位中心白点 */
.map-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* 点位悬浮放大 */
.map-marker:hover {
  transform: scale(1.5);
  z-index: 20;
}

/* --- 防汛点 - 蓝色 --- */
.map-marker.type-flood {
  background-color: rgba(59, 130, 246, 0.7);
  border: 2px solid #3b82f6;
  box-shadow:
    0 0 0 0 rgba(59, 130, 246, 0.4),
    0 0 8px rgba(59, 130, 246, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

/* --- 防火点 - 橙色 --- */
.map-marker.type-fire {
  background-color: rgba(249, 115, 22, 0.7);
  border: 2px solid #f97316;
  box-shadow:
    0 0 0 0 rgba(249, 115, 22, 0.4),
    0 0 8px rgba(249, 115, 22, 0.4);
  animation: pulse 2.5s ease-in-out infinite 0.5s;
}

/* --- 空气质量监测 - 绿色 --- */
.map-marker.type-aqi {
  background-color: rgba(16, 185, 129, 0.7);
  border: 2px solid #10b981;
  box-shadow:
    0 0 0 0 rgba(16, 185, 129, 0.4),
    0 0 8px rgba(16, 185, 129, 0.4);
}

/* --- 避险点 - 紫色 --- */
.map-marker.type-shelter {
  background-color: rgba(139, 92, 246, 0.7);
  border: 2px solid #8b5cf6;
  box-shadow:
    0 0 0 0 rgba(139, 92, 246, 0.4),
    0 0 8px rgba(139, 92, 246, 0.4);
}

/* 点位标签 */
.map-marker .marker-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-secondary);
  background-color: rgba(10, 22, 40, 0.85);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.map-marker:hover .marker-label {
  opacity: 1;
}

/* -------------------- 点位悬浮信息框 .map-tooltip -------------------- */

.map-tooltip {
  position: absolute;
  background-color: rgba(13, 31, 60, 0.95);
  border: 1px solid rgba(53, 132, 228, 0.4);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 180px;
  z-index: 100;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(26, 95, 180, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 信息框箭头 */
.map-tooltip::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(53, 132, 228, 0.4);
}

.map-tooltip .tooltip-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.map-tooltip .tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 1.8;
}

.map-tooltip .tooltip-label {
  color: var(--text-secondary);
}

.map-tooltip .tooltip-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   七、四大监测板块样式 .monitor-section
   ============================================================ */

.monitor-section {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 板块头部 */
.monitor-section .section-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(
    90deg,
    rgba(26, 95, 180, 0.2) 0%,
    transparent 60%
  );
  border-bottom: 1px solid var(--border-color);
}

/* 板块头部图标 */
.monitor-section .section-header .section-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
}

/* 防汛板块图标 - 蓝色 */
.monitor-section.section-flood .section-icon {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* 防火板块图标 - 橙色 */
.monitor-section.section-fire .section-icon {
  background-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* 空气质量板块图标 - 绿色 */
.monitor-section.section-aqi .section-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* 地灾板块图标 - 紫色 */
.monitor-section.section-geo .section-icon {
  background-color: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

/* 板块标题 */
.monitor-section .section-header .section-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* 板块内容区 */
.monitor-section .section-body {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
}

/* -------------------- 监测数据表格样式 -------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  background-color: rgba(26, 95, 180, 0.15);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 7px 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(26, 58, 107, 0.3);
  transition: background-color 0.2s ease;
}

/* 表格行交替色 */
.data-table tbody tr:nth-child(even) {
  background-color: rgba(15, 34, 64, 0.4);
}

/* 表格行悬浮高亮 */
.data-table tbody tr:hover td {
  background-color: rgba(26, 95, 180, 0.1);
  color: var(--text-primary);
}

/* 表格中数值单元格右对齐 */
.data-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -------------------- 进度条/仪表盘样式 -------------------- */

/* 线性进度条容器 */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(26, 95, 180, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* 进度条填充 */
.progress-bar .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
}

/* 进度条光泽效果 */
.progress-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  border-radius: 4px 4px 0 0;
}

/* 进度条颜色 */
.progress-bar .progress-fill.fill-normal {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-bar .progress-fill.fill-caution {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar .progress-fill.fill-warning {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-bar .progress-fill.fill-info {
  background: linear-gradient(90deg, #1a5fb4, #3584e4);
}

/* 仪表盘容器 */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gauge-container .gauge-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
}

.gauge-container .gauge-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   八、预警弹窗 .alert-popup
   ============================================================ */

.alert-popup {
  position: fixed;
  top: 80px;
  right: 0;
  min-width: 300px;
  max-width: 400px;
  background-color: rgba(13, 31, 60, 0.98);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-left: 4px solid var(--status-warning);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  z-index: 1000;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(239, 68, 68, 0.15);
  /* 滑入动画 */
  animation: slideIn 0.4s ease forwards;
}

/* 红色预警 */
.alert-popup.level-red {
  border-left-color: var(--status-danger);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(220, 38, 38, 0.2);
}

/* 橙色预警 */
.alert-popup.level-orange {
  border-left-color: #f97316;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(249, 115, 22, 0.15);
}

/* 黄色预警 */
.alert-popup.level-yellow {
  border-left-color: var(--status-caution);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(245, 158, 11, 0.15);
}

/* 蓝色预警 */
.alert-popup.level-blue {
  border-left-color: var(--status-info);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.15);
}

/* 预警弹窗头部 */
.alert-popup .alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 预警图标 */
.alert-popup .alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.alert-popup.level-red .alert-icon {
  background-color: rgba(220, 38, 38, 0.2);
  color: var(--status-danger);
}

.alert-popup.level-orange .alert-icon {
  background-color: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.alert-popup.level-yellow .alert-icon {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--status-caution);
}

.alert-popup.level-blue .alert-icon {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--status-info);
}

/* 预警标题 */
.alert-popup .alert-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
}

/* 预警时间 */
.alert-popup .alert-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* 预警内容 */
.alert-popup .alert-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 30px;
}

/* 预警关闭按钮 */
.alert-popup .alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease;
  background: none;
  border: none;
}

.alert-popup .alert-close:hover {
  color: var(--text-primary);
}

/* ============================================================
   九、状态标签 .status-tag
   ============================================================ */

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

/* 状态标签前的小圆点 */
.status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 正常 - 绿色 */
.status-tag.normal {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-tag.normal::before {
  background-color: #10b981;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
}

/* 注意 - 黄色 */
.status-tag.caution {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-tag.caution::before {
  background-color: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

/* 警告 - 红色 */
.status-tag.warning {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-tag.warning::before {
  background-color: #ef4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

/* 危险 - 深红 */
.status-tag.danger {
  background-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.status-tag.danger::before {
  background-color: #dc2626;
  box-shadow: 0 0 4px rgba(220, 38, 38, 0.5);
}

/* 信息 - 蓝色 */
.status-tag.info {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.status-tag.info::before {
  background-color: #3b82f6;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

/* 火险等级标签 */
.status-tag.fire-l1 {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-tag.fire-l2 {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.status-tag.fire-l3 {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-tag.fire-l4 {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-tag.fire-l5 {
  background-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* ============================================================
   十、登录页样式 .login-page
   ============================================================ */

/* 登录页全屏容器 */
.login-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* 深色背景 + 科技感网格 */
  background-color: var(--bg-dark);
  background-image:
    /* 细密网格 */
    linear-gradient(rgba(26, 95, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 95, 180, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 背景装饰光晕 */
.login-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 95, 180, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 170, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* 登录卡片 */
.login-card {
  width: 420px;
  max-width: 90vw;
  padding: 40px 36px;
  background: rgba(13, 31, 60, 0.85);
  border: 1px solid rgba(53, 132, 228, 0.25);
  border-radius: 12px;
  /* 毛玻璃效果 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(26, 95, 180, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

/* 登录卡片顶部装饰线 */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-light) 30%,
    var(--accent) 50%,
    var(--primary-light) 70%,
    transparent 100%
  );
  border-radius: 2px;
}

/* 登录标题 */
.login-card .login-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(53, 132, 228, 0.4);
}

.login-card .login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

/* 登录表单 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 表单输入组 */
.login-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-form .input-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 登录输入框 */
.login-form .input-group input {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

/* 输入框占位符颜色 */
.login-form .input-group input::placeholder {
  color: var(--text-muted);
}

/* 输入框聚焦 - 蓝色边框发光 */
.login-form .input-group input:focus {
  border-color: var(--primary-light);
  box-shadow:
    0 0 0 3px rgba(53, 132, 228, 0.15),
    0 0 12px rgba(53, 132, 228, 0.2);
  background-color: rgba(10, 22, 40, 1);
}

/* 登录按钮 */
.login-form .btn-login {
  width: 100%;
  padding: 11px 20px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-light) 50%,
    var(--primary) 100%
  );
  background-size: 200% 100%;
  border: none;
  border-radius: var(--btn-radius);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 2px 8px rgba(26, 95, 180, 0.4),
    0 0 15px rgba(26, 95, 180, 0.2);
}

/* 登录按钮悬浮 */
.login-form .btn-login:hover {
  background-position: 100% 0;
  box-shadow:
    0 4px 16px rgba(53, 132, 228, 0.5),
    0 0 25px rgba(53, 132, 228, 0.3);
  transform: translateY(-1px);
}

/* 登录按钮按下 */
.login-form .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.3);
}

/* ============================================================
   十一、后台管理页 .admin-layout
   ============================================================ */

.admin-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* -------------------- 左侧边栏 -------------------- */

.admin-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: #0d1b32;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

/* 侧边栏Logo区 */
.admin-sidebar .sidebar-header {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.admin-sidebar .sidebar-header .logo-text {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* 侧边栏导航菜单 */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  list-style: none;
}

/* 导航菜单项 */
.sidebar-nav .nav-item {
  margin: 2px 10px;
}

.sidebar-nav .nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* 导航图标 */
.sidebar-nav .nav-item a .nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* 导航悬浮效果 */
.sidebar-nav .nav-item a:hover {
  background-color: rgba(26, 95, 180, 0.12);
  color: var(--text-primary);
}

/* 导航选中状态 - 蓝色高亮 */
.sidebar-nav .nav-item.active a {
  background: linear-gradient(
    90deg,
    rgba(26, 95, 180, 0.25) 0%,
    rgba(26, 95, 180, 0.1) 100%
  );
  color: var(--text-primary);
  border-left: 3px solid var(--primary-light);
}

/* 侧边栏底部 */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* -------------------- 右侧主内容区 -------------------- */

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* 管理页顶部栏 */
.admin-main .admin-header {
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: rgba(13, 31, 60, 0.6);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.admin-main .admin-header .page-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
}

.admin-main .admin-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 管理页内容区 */
.admin-main .admin-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* -------------------- 管理页表格样式 -------------------- */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.admin-table thead th {
  background-color: rgba(26, 95, 180, 0.2);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(26, 58, 107, 0.3);
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* 行交替色 */
.admin-table tbody tr:nth-child(even) {
  background-color: rgba(15, 34, 64, 0.4);
}

/* 行悬浮高亮 */
.admin-table tbody tr:hover td {
  background-color: rgba(26, 95, 180, 0.08);
  color: var(--text-primary);
}

/* 操作按钮组 */
.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.action-btns .btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 后台管理标签页 */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* 编辑按钮 */
.action-btns .btn-edit {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.action-btns .btn-edit:hover {
  background-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* 删除按钮 */
.action-btns .btn-delete {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.action-btns .btn-delete:hover {
  background-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* -------------------- 管理页表单样式 -------------------- */

.admin-form {
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group .form-input {
  width: 100%;
  padding: 9px 12px;
  background-color: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group .form-input::placeholder {
  color: var(--text-muted);
}

.form-group .form-input:focus {
  border-color: var(--primary-light);
  box-shadow:
    0 0 0 3px rgba(53, 132, 228, 0.15),
    0 0 10px rgba(53, 132, 228, 0.15);
}

/* 表单行 - 多列布局 */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* 表单选择框 */
.form-group .form-select {
  width: 100%;
  padding: 9px 12px;
  background-color: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(53, 132, 228, 0.15);
}

/* 表单文本域 */
.form-group .form-textarea {
  width: 100%;
  padding: 9px 12px;
  background-color: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group .form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(53, 132, 228, 0.15);
}

/* ============================================================
   十二、按钮样式 .btn-*
   ============================================================ */

/* 按钮基础样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 蓝色主按钮 */
.btn-primary {
  background: linear-gradient(
    180deg,
    #3584e4 0%,
    #1a5fb4 100%
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(0);
}

/* 红色危险按钮 */
.btn-danger {
  background: linear-gradient(
    180deg,
    #ef4444 0%,
    #dc2626 100%
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

.btn-danger:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(0);
}

/* 绿色成功按钮 */
.btn-success {
  background: linear-gradient(
    180deg,
    #10b981 0%,
    #059669 100%
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-success:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-success:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(0);
}

/* 黄色/橙色警告按钮 */
.btn-warning {
  background: linear-gradient(
    180deg,
    #f59e0b 0%,
    #d97706 100%
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-warning:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-warning:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(0);
}

/* 次要按钮 - 线框 */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary-light);
  color: var(--text-primary);
  background-color: rgba(26, 95, 180, 0.08);
}

/* 小尺寸按钮 */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* 大尺寸按钮 */
.btn-lg {
  padding: 10px 24px;
  font-size: 15px;
}

/* ============================================================
   十三、自定义滚动条样式
   ============================================================ */

/* WebKit 浏览器滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background-color: rgba(10, 22, 40, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(26, 95, 180, 0.4);
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(53, 132, 228, 0.6);
}

/* Firefox 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 95, 180, 0.4) rgba(10, 22, 40, 0.5);
}

/* ============================================================
   十四、动画定义 @keyframes
   ============================================================ */

/* --- 从右侧滑入动画 --- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- 从左侧滑入 --- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- 淡入动画 --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- 从下方淡入 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 脉冲效果 - 用于预警点位呼吸灯 --- */
@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.3),
      0 0 8px currentColor;
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0),
      0 0 16px currentColor;
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 8px currentColor;
  }
}

/* --- 旋转动画 - 用于Loading --- */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- 闪烁效果 - 用于紧急状态 --- */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- 闪烁边框效果 - 用于高亮卡片 --- */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(53, 132, 228, 0.3);
    box-shadow: 0 0 8px rgba(53, 132, 228, 0.1);
  }
  50% {
    border-color: rgba(53, 132, 228, 0.6);
    box-shadow: 0 0 20px rgba(53, 132, 228, 0.2);
  }
}

/* --- 扫描线效果 - 科技感装饰 --- */
@keyframes scanLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* --- 数字滚动动画 - 计数效果 --- */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   十五、动画工具类
   ============================================================ */

/* 应用动画的工具类 */
.anim-slide-in {
  animation: slideIn 0.4s ease forwards;
}

.anim-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.anim-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.anim-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.anim-rotate {
  animation: rotate 1s linear infinite;
}

.anim-blink {
  animation: blink 1.5s ease-in-out infinite;
}

.anim-border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

/* 延迟动画类 */
.anim-delay-1 {
  animation-delay: 0.1s;
}

.anim-delay-2 {
  animation-delay: 0.2s;
}

.anim-delay-3 {
  animation-delay: 0.3s;
}

.anim-delay-4 {
  animation-delay: 0.4s;
}

.anim-delay-5 {
  animation-delay: 0.5s;
}

/* 初始隐藏（配合动画使用） */
.anim-hidden {
  opacity: 0;
}

/* ============================================================
   十六、响应式布局适配
   ============================================================ */

/* --- 大屏 1920px 及以上 - 默认样式即为大屏 --- */

/* --- 1366px - 1919px 普通显示器适配 --- */
@media screen and (max-width: 1919px) {
  .header-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .header-clock .time {
    font-size: 16px;
  }

  .stat-number {
    font-size: 28px;
  }

  .data-card {
    padding: 10px 12px;
  }

  .data-card .card-title {
    font-size: 13px;
  }

  .monitor-section .section-header {
    padding: 8px 10px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 6px 8px;
  }
}

/* --- 1365px 以下最小适配 --- */
@media screen and (max-width: 1365px) {
  :root {
    --header-height: 54px;
    --sidebar-width: 180px;
  }

  .header-title {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .header-clock {
    display: none; /* 小屏隐藏时钟 */
  }

  .header-update {
    display: none; /* 小屏隐藏更新时间 */
  }

  .stat-number {
    font-size: 22px;
  }

  .admin-sidebar {
    --sidebar-width: 180px;
    min-width: 180px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ============================================================
   十七、辅助工具类
   ============================================================ */

/* Flex 布局工具 */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

/* Grid 布局工具 */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-gap-12 {
  gap: 12px;
}

.grid-gap-16 {
  gap: 16px;
}

/* 文本工具 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 12px;
}

.text-lg {
  font-size: 16px;
}

.font-bold {
  font-weight: bold;
}

/* 间距工具 */
.m-0 {
  margin: 0;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.p-12 {
  padding: 12px;
}

.p-16 {
  padding: 16px;
}

/* 溢出控制 */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 无边框 */
.border-none {
  border: none;
}

/* 圆角 */
.rounded {
  border-radius: var(--card-radius);
}

/* 宽度工具 */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* ============================================================
   十八、Loading 加载动画组件
   ============================================================ */

/* Loading 遮罩 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 22, 40, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 16px;
}

/* Loading 旋转圈 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(26, 95, 180, 0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

/* Loading 文字 */
.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* ============================================================
   十九、分割线样式
   ============================================================ */

/* 水平分割线 */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-color) 20%,
    var(--border-color) 80%,
    transparent 100%
  );
  margin: 12px 0;
}

/* ============================================================
   二十、大屏布局专用 - 数据面板网格
   ============================================================ */

/* 三列大屏布局：左侧面板 | 中间地图 | 右侧面板 */
.dashboard-layout {
  display: flex;
  flex: 1;
  gap: 12px;
  padding: 10px 14px;
  overflow: hidden;
}

/* 左右侧边栏面板区 */
.dashboard-sidebar {
  width: 340px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* 中间地图区域 */
.dashboard-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 400px;
  overflow: hidden;
}

/* 底部门槛信息栏 */
.dashboard-footer {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  background-color: rgba(13, 31, 60, 0.5);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dashboard-footer .footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-footer .footer-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-normal);
}

/* ============================================================
   二十一、火险等级与AQI等级指示器
   ============================================================ */

/* 火险等级指示器 */
.fire-level-indicator {
  display: flex;
  gap: 2px;
  align-items: center;
}

.fire-level-indicator .level-bar {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(26, 58, 107, 0.4);
  transition: all 0.3s ease;
}

.fire-level-indicator .level-bar.active {
  box-shadow: 0 0 6px currentColor;
}

.fire-level-indicator .level-bar.l1.active {
  background-color: var(--fire-l1);
}

.fire-level-indicator .level-bar.l2.active {
  background-color: var(--fire-l2);
}

.fire-level-indicator .level-bar.l3.active {
  background-color: var(--fire-l3);
}

.fire-level-indicator .level-bar.l4.active {
  background-color: var(--fire-l4);
}

.fire-level-indicator .level-bar.l5.active {
  background-color: var(--fire-l5);
}

/* AQI 圆环指示器 */
.aqi-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  font-size: 11px;
  position: relative;
}

.aqi-ring .aqi-value {
  font-size: 18px;
  font-weight: bold;
}

.aqi-ring.excellent {
  border-color: var(--aqi-excellent);
  color: var(--aqi-excellent);
}

.aqi-ring.good {
  border-color: var(--aqi-good);
  color: var(--aqi-good);
}

.aqi-ring.moderate {
  border-color: var(--aqi-moderate);
  color: var(--aqi-moderate);
}

.aqi-ring.unhealthy {
  border-color: var(--aqi-unhealthy);
  color: var(--aqi-unhealthy);
}

.aqi-ring.severe {
  border-color: var(--aqi-severe);
  color: var(--aqi-severe);
}

.aqi-ring.hazardous {
  border-color: var(--aqi-hazardous);
  color: var(--aqi-hazardous);
}

/* ============================================================
   二十二、分页组件样式
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
}

.pagination .page-item {
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pagination .page-item:hover {
  border-color: var(--primary-light);
  color: var(--text-primary);
  background-color: rgba(26, 95, 180, 0.1);
}

.pagination .page-item.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination .page-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-item.disabled:hover {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background-color: transparent;
}

/* ============================================================
   文件结束
   ============================================================ */
