/* ===== 芯耕AI作物视觉分析系统 — 深绿金色科技风 ===== */
/* 色值来源：ELAC品牌logo + 大屏UI参考图 */

:root {
  /* 背景层 */
  --bg-deep: #021410;
  --bg-main: #041a13;
  --bg-secondary: #062018;
  --bg-card: rgba(8, 34, 24, 0.7);
  --bg-card-solid: #082218;
  --bg-card-hover: rgba(12, 44, 30, 0.8);
  --bg-overlay: rgba(4, 20, 14, 0.88);

  /* 金色系（主品牌色） */
  --gold: #d4a843;
  --gold-light: #e6c25e;
  --gold-bright: #f0d068;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --gold-glow: rgba(212, 168, 67, 0.4);

  /* 霓虹绿（数据高亮） */
  --neon: #4effb8;
  --neon-light: #6effc8;
  --neon-dim: rgba(78, 255, 184, 0.12);
  --neon-glow: rgba(78, 255, 184, 0.35);

  /* 农业绿 */
  --agri-green: #2dd4a0;
  --agri-green-light: #4ee6b8;
  --agri-green-dim: rgba(45, 212, 160, 0.12);

  /* 警告色 */
  --warn-low: #f0c040;
  --warn-mid: #ff9040;
  --warn-high: #ff5060;

  /* 文字 */
  --text-main: #e8f5ef;
  --text-sub: #8db5a3;
  --text-muted: #4d6b5d;

  /* 边框 */
  --border: rgba(212, 168, 67, 0.18);
  --border-active: rgba(212, 168, 67, 0.5);
  --border-neon: rgba(78, 255, 184, 0.3);

  /* 玻璃态 */
  --glass: rgba(8, 34, 24, 0.55);
  --glass-border: rgba(212, 168, 67, 0.15);

  /* 尺寸 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "Fira Code", "JetBrains Mono", "Consolas", "SF Mono", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  position: relative;
}

/* 全局背景粒子层 */
.bg-particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-particles::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 255, 184, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(45, 212, 160, 0.03) 0%, transparent 70%);
}
.bg-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* === 顶部导航 === */
.top-nav {
  height: 54px;
  background: linear-gradient(180deg, rgba(6, 32, 24, 0.95), rgba(4, 20, 14, 0.95));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.top-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--neon) 50%, var(--gold) 70%, transparent 95%);
  opacity: 0.5;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo .nav-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4));
  transition: filter 0.3s;
}
.nav-logo .nav-logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(212, 168, 67, 0.7));
}
.nav-menu {
  display: flex;
  gap: 4px;
}
.nav-item {
  padding: 7px 18px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.nav-item:hover {
  color: var(--gold-light);
  background: var(--gold-dim);
}
.nav-item.active {
  color: var(--gold-bright);
  background: var(--gold-dim);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 12px var(--gold-dim), inset 0 0 8px rgba(212, 168, 67, 0.08);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 1px;
}
/* 导航下拉菜单 */
.nav-arrow {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-item.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(6, 32, 24, 0.98), rgba(2, 16, 11, 0.98));
  border: 1px solid var(--gold-dim);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 6px 0;
  min-width: 150px;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 18px rgba(212,168,67,0.15);
}
.nav-item.has-dropdown:hover > .nav-dropdown,
.nav-item.has-dropdown.open > .nav-dropdown {
  display: block;
}
.nav-dd-item {
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  text-align: left;
  border-left: 2px solid transparent;
}
.nav-dd-item:hover {
  background: rgba(212,168,67,0.08);
  color: var(--gold-bright);
  border-left-color: var(--gold);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav-time {
  font-family: var(--mono);
  color: var(--gold-light);
}

/* === 主布局 === */
/* 关键修复说明：
   - body 是 height:100vh + overflow:hidden（设计如此，不让整页滚动）
   - .main-layout 是固定 calc(100vh - 54px) 的 flex 容器
   - 子项 .charts-page / .growth-page 等作为唯一子项，需要伸展到父级高度并内部可滚动
   - 但 flex 子项默认 min-height: auto（min-content），内容超出时会撑大父级
   - 必须显式设置 min-height: 0 才能让子项的 overflow 生效
*/
.main-layout {
  display: flex;
  height: calc(100vh - 54px - 58px); /* 减去顶部 nav (54px) 和底部 bottom-bar (58px) */
  position: relative;
  z-index: 1;
  overflow: hidden; /* 顶层不滚，子项滚动 */
  min-height: 0;
}

/* === 内容滚动页 ===
   关键：flex 子项默认 min-height: auto，内容超出会撑大子项，
   父级 overflow:hidden 直接截断，滚动条无效。
   必须显式 min-height:0 + overflow-y:auto。
   不用 height:100% — 在 flex 容器中 align-items:stretch 已撑满，
   height:100% 反而可能造成高度计算冲突导致底部内容被截。
*/
/* 带类名的页面 */
.main-layout > .growth-page,
.main-layout > .charts-page,
.main-layout > .analysis-page,
.main-layout > .dashboard-page,
.main-layout > .history-page,
.main-layout > .settings-page,
.main-layout > .tasks-page,
.main-layout > .alerts-page,
.main-layout > .reports-page,
.main-layout > .assistant-page,
.main-layout > .models-page,
.main-layout > .compare-page {
  flex: 1 1 auto;
  min-height: 0 !important;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 48px !important;   /* 底部留白，防止最后几行被截 */
}
/* 无类名的页面（tasks/alerts/reports/assistant 用内联 style） */
.main-layout > div[style*="overflow-y:auto"],
.main-layout > div[style*="overflow-y: auto"] {
  min-height: 0 !important;
  min-width: 0;
  padding-bottom: 48px !important;
}

/* === 农情记录页 — 高度对齐 ===
   .main-layout 高度是 calc(100vh - 54px - 58px)，
   农情记录页的 .growth-page 要填满父级（减去自身padding） */
#page-growth > .growth-page {
  height: calc(100vh - 112px); /* 100vh - 54px(nav) - 58px(bottom-bar) */
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 60px 20px;
  box-sizing: border-box;
  flex: none;
  min-height: 0;
}

/* 万一高度为 auto，加个安全网 */
.main-layout canvas {
  max-width: 100%;
}

/* === 滚动条 — 加粗加亮，避免被忽略 ===
   之前 thumb 是 rgba(255,255,255,0.15) 几乎透明，
   用户截图发现根本看不见滚动条，以为页面无法滚动 */
.main-layout > .growth-page::-webkit-scrollbar,
.main-layout > .charts-page::-webkit-scrollbar,
.main-layout > .analysis-page::-webkit-scrollbar,
.main-layout > .dashboard-page::-webkit-scrollbar,
.main-layout > .history-page::-webkit-scrollbar,
.main-layout > .settings-page::-webkit-scrollbar,
.main-layout > .tasks-page::-webkit-scrollbar,
.main-layout > .alerts-page::-webkit-scrollbar,
.main-layout > .reports-page::-webkit-scrollbar,
.main-layout > .assistant-page::-webkit-scrollbar,
.main-layout > .models-page::-webkit-scrollbar,
.main-layout > .compare-page::-webkit-scrollbar {
  width: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.main-layout > .growth-page::-webkit-scrollbar-track,
.main-layout > .charts-page::-webkit-scrollbar-track,
.main-layout > .analysis-page::-webkit-scrollbar-track,
.main-layout > .dashboard-page::-webkit-scrollbar-track,
.main-layout > .history-page::-webkit-scrollbar-track,
.main-layout > .settings-page::-webkit-scrollbar-track,
.main-layout > .tasks-page::-webkit-scrollbar-track,
.main-layout > .alerts-page::-webkit-scrollbar-track,
.main-layout > .reports-page::-webkit-scrollbar-track,
.main-layout > .assistant-page::-webkit-scrollbar-track,
.main-layout > .models-page::-webkit-scrollbar-track,
.main-layout > .compare-page::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin: 2px;
}
.main-layout > .growth-page::-webkit-scrollbar-thumb,
.main-layout > .charts-page::-webkit-scrollbar-thumb,
.main-layout > .analysis-page::-webkit-scrollbar-thumb,
.main-layout > .dashboard-page::-webkit-scrollbar-thumb,
.main-layout > .history-page::-webkit-scrollbar-thumb,
.main-layout > .settings-page::-webkit-scrollbar-thumb,
.main-layout > .tasks-page::-webkit-scrollbar-thumb,
.main-layout > .alerts-page::-webkit-scrollbar-thumb,
.main-layout > .reports-page::-webkit-scrollbar-thumb,
.main-layout > .assistant-page::-webkit-scrollbar-thumb,
.main-layout > .models-page::-webkit-scrollbar-thumb,
.main-layout > .compare-page::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), #b8902f);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 6px var(--gold-dim);
}
.main-layout > .growth-page::-webkit-scrollbar-thumb:hover,
.main-layout > .charts-page::-webkit-scrollbar-thumb:hover,
.main-layout > .analysis-page::-webkit-scrollbar-thumb:hover,
.main-layout > .dashboard-page::-webkit-scrollbar-thumb:hover,
.main-layout > .history-page::-webkit-scrollbar-thumb:hover,
.main-layout > .settings-page::-webkit-scrollbar-thumb:hover,
.main-layout > .tasks-page::-webkit-scrollbar-thumb:hover,
.main-layout > .alerts-page::-webkit-scrollbar-thumb:hover,
.main-layout > .reports-page::-webkit-scrollbar-thumb:hover,
.main-layout > .assistant-page::-webkit-scrollbar-thumb:hover,
.main-layout > .models-page::-webkit-scrollbar-thumb:hover,
.main-layout > .compare-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  background-clip: padding-box;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* === 日期选择器修复 ===
   Chrome/Edge 原生 date picker 的日历图标是深色 SVG，
   在深色背景下会完全看不见。强制 invert 反色显示。 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4) sepia(1) saturate(3) hue-rotate(15deg);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(1) brightness(1.6) sepia(1) saturate(4) hue-rotate(15deg)
    drop-shadow(0 0 4px var(--gold-glow));
}

/* === 输入框 placeholder 颜色 === */
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* === 左侧面板 === */
.left-panel {
  width: 290px;
  flex-shrink: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 18px;
  position: relative;
}
.left-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--neon) 50%, var(--gold) 80%, transparent);
  opacity: 0.3;
}
.panel-section {
  margin-bottom: 22px;
}
.panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.panel-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--gold), var(--neon));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--gold-dim), transparent 30%);
  animation: rotateBg 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
}
.upload-zone:hover::before, .upload-zone.dragover::before {
  opacity: 1;
}
@keyframes rotateBg { to { transform: rotate(360deg); } }
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  box-shadow: 0 0 20px var(--gold-dim), inset 0 0 16px rgba(212, 168, 67, 0.06);
}
.upload-zone .upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.upload-zone .upload-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(78, 255, 184, 0.35));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.upload-zone:hover .upload-logo, .upload-zone.dragover .upload-logo {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 18px rgba(212, 168, 67, 0.7));
}
.upload-zone .upload-text { font-size: 13px; color: var(--text-main); position: relative; z-index: 1; }
.upload-zone .upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; position: relative; z-index: 1; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 5px;
}
.form-label .required { color: var(--warn-high); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(2, 16, 12, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: all var(--dur) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim), 0 0 12px var(--gold-dim);
}
.form-textarea { resize: vertical; min-height: 42px; }

/* 质量评分 */
.quality-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.quality-score {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* === 中间主视觉 === */
.center-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-deep);
  position: relative;
}
.center-toolbar {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.tool-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.tool-btn:hover {
  color: var(--gold-light);
  background: var(--gold-dim);
  border-color: var(--border);
}
.tool-btn.active {
  color: var(--gold-bright);
  background: var(--gold-dim);
  border-color: var(--border-active);
  box-shadow: 0 0 10px var(--gold-dim);
}
.tool-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
}
.tool-spacer { margin-left: auto; }

/* 分析按钮（特殊样式） */
.analyze-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, #c4982e 100%);
  color: #1a1a0a;
  border: none;
  padding: 12px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 4px 16px var(--gold-dim), 0 0 24px var(--gold-dim);
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.analyze-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--gold-glow), 0 0 32px var(--gold-dim);
}
.analyze-btn:active {
  transform: translateY(0);
}
.analyze-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s var(--ease);
}
.analyze-btn:hover::after { left: 120%; }

/* 图片容器 */
.image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(8, 34, 24, 0.4) 0%, var(--bg-deep) 70%);
}

/* 3D 环容器 */
.rings-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s;
}
.ring.active { opacity: 1; }
.ring-1 {
  width: 300px; height: 300px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-top-color: var(--gold);
  animation: ringRotate 8s linear infinite;
}
.ring-2 {
  width: 380px; height: 380px;
  border: 1px dashed rgba(78, 255, 184, 0.15);
  border-right-color: var(--neon);
  animation: ringRotate 12s linear infinite reverse;
}
.ring-3 {
  width: 460px; height: 460px;
  border: 1px solid rgba(212, 168, 67, 0.08);
  border-bottom-color: var(--gold-light);
  animation: ringRotate 16s linear infinite;
}
@keyframes ringRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 环上的粒子点 */
.ring-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  top: -3px; left: 50%;
  margin-left: -3px;
}
.ring-dot.neon {
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow);
}

/* 图片舞台 - 绝对定位铺满容器，img 居中等比缩放 */
.image-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.image-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 60px rgba(212, 168, 67, 0.08);
  pointer-events: auto;
  margin: auto;
  flex-shrink: 0;
}
.annotation-canvas {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 4px;
  z-index: 3;
}

/* 扫描覆盖层 */
.scan-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  display: none;
  z-index: 3;
  border-radius: 4px;
  overflow: hidden;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon) 20%,
    var(--gold-bright) 50%,
    var(--neon) 80%,
    transparent 100%);
  box-shadow:
    0 0 20px var(--neon-glow),
    0 0 40px var(--gold-glow),
    0 -20px 60px rgba(78, 255, 184, 0.15);
  animation: scanMove 2.5s ease-in-out infinite;
}
.scan-line::after {
  content: '';
  position: absolute;
  top: 3px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg,
    rgba(78, 255, 184, 0.15) 0%,
    transparent 100%);
  pointer-events: none;
}
@keyframes scanMove {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

/* 雷达扫描效果 */
.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  display: none;
  overflow: hidden;
}
.radar-sweep.active { display: block; }
.radar-sweep::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 50%;
  transform-origin: 0% 100%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(78, 255, 184, 0.05) 20deg,
    rgba(78, 255, 184, 0.15) 45deg,
    rgba(212, 168, 67, 0.2) 60deg,
    transparent 60deg);
  animation: radarRotate 3s linear infinite;
}
@keyframes radarRotate { to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  z-index: 2;
  position: relative;
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.4;
  filter: drop-shadow(0 0 12px var(--gold-dim));
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-state .empty-text { font-size: 16px; color: var(--text-sub); }
.empty-state .empty-hint { font-size: 13px; margin-top: 8px; color: var(--text-muted); }

/* 分析状态弹窗 */
.analysis-status {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-overlay);
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  padding: 28px 40px;
  text-align: center;
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 60px var(--gold-dim),
    inset 0 0 20px rgba(212, 168, 67, 0.05);
}
.analysis-status::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 30%, transparent 70%, var(--neon));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.analysis-status .status-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-right-color: var(--neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
  box-shadow: 0 0 20px var(--gold-dim);
}
@keyframes spin { to { transform: rotate(360deg); } }
.analysis-status .status-text {
  font-size: 15px;
  color: var(--gold-bright);
  font-weight: 600;
  text-shadow: 0 0 12px var(--gold-glow);
}
.analysis-status .status-steps {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-sub);
}
.analysis-status .status-step {
  padding: 3px 0;
  opacity: 0.35;
  transition: all 0.3s var(--ease);
}
.analysis-status .status-step.active {
  opacity: 1;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
  transform: translateX(4px);
}
.analysis-status .status-step.completed {
  opacity: 0.7;
  color: var(--agri-green);
}
.analysis-status .status-step.completed::before {
  content: '✓ ';
}

/* === 右侧面板 === */
.right-panel {
  width: 330px;
  flex-shrink: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 18px;
  position: relative;
}
.right-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--neon) 20%, var(--gold) 50%, var(--neon) 80%, transparent);
  opacity: 0.3;
}

/* 健康评分环（科技感 - 双层 + 扫描） */
.score-container {
  text-align: center;
  margin-bottom: 24px;
  padding: 12px 0;
  position: relative;
}
.score-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(212, 168, 67, 0.15);
  border-radius: 16px;
  pointer-events: none;
}
.score-ring {
  width: 140px; height: 140px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 0 24px var(--gold-dim));
  animation: score-rotate 30s linear infinite;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: score-spin 4s linear infinite;
}
@keyframes score-spin {
  to { transform: rotate(360deg); }
}
@keyframes score-rotate {
  to { filter: drop-shadow(0 0 30px var(--gold)) hue-rotate(15deg); }
}
.score-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: 800;
  font-family: var(--mono);
  text-shadow: 0 0 20px currentColor;
  z-index: 2;
}
.score-value::after {
  content: '/100';
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 2px;
}
.score-label {
  font-size: 11px;
  color: var(--gold-light);
  margin-top: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 0 8px var(--gold-dim);
}

/* 信息卡片（玻璃态 + 科技感 - 升级版） */
.info-card {
  background: linear-gradient(135deg, rgba(20, 56, 40, 0.6), rgba(8, 34, 24, 0.8));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
  transition: all 0.25s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}
/* 顶部高光 + 角点装饰 */
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.info-card::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}
.info-card:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(30, 76, 52, 0.7), rgba(12, 44, 30, 0.9));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 168, 67, 0.2);
  transform: translateY(-2px);
}
.info-card-title {
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  position: relative;
}
.info-card-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--gold-dim);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(127, 160, 140, 0.12);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #7fa08c; font-size: 12px; letter-spacing: 0.5px; }
.info-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.2);
}

/* 风险标签 */
.risk-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.risk-normal {
  background: var(--neon-dim);
  color: var(--neon);
  box-shadow: 0 0 8px var(--neon-dim);
}
.risk-low {
  background: rgba(240, 192, 64, 0.12);
  color: var(--warn-low);
  box-shadow: 0 0 8px rgba(240, 192, 64, 0.1);
}
.risk-mid {
  background: rgba(255, 144, 64, 0.12);
  color: var(--warn-mid);
  box-shadow: 0 0 8px rgba(255, 144, 64, 0.1);
}
.risk-high {
  background: rgba(255, 80, 96, 0.12);
  color: var(--warn-high);
  box-shadow: 0 0 8px rgba(255, 80, 96, 0.1);
}

/* 异常列表（科技感升级版） */
.abnormality-item {
  background: linear-gradient(135deg, rgba(8, 34, 24, 0.7), rgba(20, 56, 40, 0.5));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-left: 3px solid var(--warn-low);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.abnormality-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: left 0.5s;
}
.abnormality-item:hover::before { left: 0; }
.abnormality-item:hover {
  background: linear-gradient(135deg, rgba(20, 56, 40, 0.85), rgba(30, 76, 52, 0.7));
  border-color: var(--gold);
  border-left-color: var(--gold);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 168, 67, 0.2);
}
.abnormality-item.highlighted {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(40, 90, 60, 0.7), rgba(20, 56, 40, 0.85));
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
  border-left-width: 4px;
}
.ab-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.ab-title::before {
  content: '▸';
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
  text-shadow: 0 0 4px var(--gold-glow);
}
.ab-desc { font-size: 12px; color: #b8d4c8; margin-bottom: 6px; line-height: 1.5; }
.ab-recommend {
  font-size: 12px;
  color: #4effb8;
  padding-top: 6px;
  border-top: 1px dashed rgba(78, 255, 184, 0.2);
  text-shadow: 0 0 4px rgba(78, 255, 184, 0.3);
}

/* 建议列表 */
.recommendation-item {
  padding: 9px 12px;
  font-size: 13px;
  color: #d4e8dd;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.25s ease;
  border-bottom: 1px dashed rgba(127, 160, 140, 0.1);
  border-radius: 4px;
}
.recommendation-item:last-child { border-bottom: none; }
.recommendation-item:hover {
  color: #ffffff;
  background: rgba(212, 168, 67, 0.08);
  transform: translateX(4px);
  border-bottom-color: rgba(212, 168, 67, 0.3);
}
.recommendation-item::before {
  content: '\25B8';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 3px;
  text-shadow: 0 0 6px var(--gold-glow);
  filter: drop-shadow(0 0 4px var(--gold-glow));
}

/* 免责声明（科技感） */
.disclaimer-box {
  font-size: 12px;
  color: #b8c5d0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(40, 60, 80, 0.18), rgba(20, 40, 60, 0.25));
  border-radius: 8px;
  margin-top: 16px;
  line-height: 1.7;
  border-left: 3px solid #5d7892;
  border-top: 1px solid rgba(93, 120, 146, 0.3);
  border-right: 1px solid rgba(93, 120, 146, 0.2);
  border-bottom: 1px solid rgba(93, 120, 146, 0.2);
  position: relative;
  letter-spacing: 0.2px;
}
.disclaimer-box::before {
  content: 'ⓘ';
  position: absolute;
  top: 12px;
  right: 12px;
  color: #5d7892;
  font-size: 14px;
  opacity: 0.6;
}

/* === 底部时间线 === */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 58px;
  flex-shrink: 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 18px;
  overflow-x: auto;
  z-index: 100;
}
.bottom-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--neon) 30%, var(--gold) 50%, var(--neon) 70%, transparent 95%);
  opacity: 0.3;
}
.bottom-title {
  font-size: 12px;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 1px;
}
.bottom-spacer { flex: 1; }

.history-quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 18px;
  background: rgba(78, 255, 184, 0.08);
  border: 1px solid rgba(78, 255, 184, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.history-quick-link:hover {
  background: rgba(212, 168, 67, 0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 12px rgba(212, 168, 67, 0.4);
}
.history-quick-link .history-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(78, 255, 184, 0.5));
}
.history-quick-link .history-label {
  font-size: 12px;
  color: var(--neon);
  font-weight: 600;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.timeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  position: relative;
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.timeline-stage.completed .timeline-dot {
  background: var(--agri-green);
  border-color: var(--agri-green);
  box-shadow: 0 0 8px var(--agri-green-dim);
}
.timeline-stage.current .timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow), 0 0 24px var(--gold-dim);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 12px var(--gold-glow), 0 0 24px var(--gold-dim); }
  50% { box-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-dim); }
}
.timeline-label { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.timeline-stage.completed .timeline-label { color: var(--agri-green-light); }
.timeline-stage.current .timeline-label { color: var(--gold-bright); font-weight: 600; }
.timeline-line {
  width: 24px; height: 2px;
  background: var(--border);
}
.timeline-line.completed { background: var(--agri-green); box-shadow: 0 0 4px var(--agri-green-dim); }

/* 历史缩略图 */
.history-strip {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.history-thumb {
  width: 42px; height: 34px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.history-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 8px var(--gold-dim);
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-thumb .thumb-risk {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}

/* === 历史记录页 === */
.history-page {
  display: block;
  padding: 24px;
  overflow-y: auto;
  width: 100%;
}
.history-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.history-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.history-table tr { cursor: pointer; transition: background 0.2s; }
.history-table tr:hover { background: var(--gold-dim); }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(8px);
  overflow: auto;
}
.table-wrap .history-table {
  width: 100%;
  min-width: 1000px;
}

/* === 设置页 === */
.settings-page {
  display: block;
  padding: 24px;
  overflow-y: auto;
  max-width: 620px;
}

/* === 涟漪效果 === */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: rippleExpand 0.6s var(--ease);
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* === 结果出现动画 === */
.info-card.entering {
  animation: cardEnter 0.5s var(--ease-bounce) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === 滚动条 — 全局默认（金色可见） === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), #b8902f);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  background-clip: padding-box;
  box-shadow: 0 0 8px var(--gold-glow);
}
::-webkit-scrollbar-corner { background: rgba(0, 0, 0, 0.3); }

/* === 响应式 === */
@media (max-width: 1366px) {
  .left-panel { width: 250px; }
  .right-panel { width: 290px; }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 320px; height: 320px; }
  .ring-3 { width: 390px; height: 390px; }
}
@media (max-width: 1200px) {
  .left-panel { width: 210px; }
  .right-panel { width: 250px; }
  .ring-1 { width: 200px; height: 200px; }
  .ring-2 { width: 260px; height: 260px; }
  .ring-3 { width: 320px; height: 320px; }
}

/* === 实时监测面板 === */
.sensor-monitor {
  margin-bottom: 4px;
}
.sensor-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sensor-plot-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sensor-select {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  min-width: 0;
}
.sensor-select:hover {
  border-color: var(--neon-dim);
}
.sensor-select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 170, 0.12);
}
.sensor-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sensor-select option {
  background: #1a1f2e;
  color: var(--text-light);
}
.sensor-monitor-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}
.sensor-refresh-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.sensor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon-glow);
  animation: sensorPulse 2s ease-in-out infinite;
}
.sensor-dot.loading {
  background: var(--warn-mid);
  animation: sensorBlink 0.6s ease-in-out infinite;
}
.sensor-dot.error {
  background: var(--warn-high);
  animation: none;
}
@keyframes sensorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes sensorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.sensor-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.sensor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-dim), transparent);
}
.sensor-card-title {
  font-size: 12px;
  color: var(--neon-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.sensor-card-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}
.sensor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sensor-item {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 6px;
  background: rgba(78, 255, 184, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(78, 255, 184, 0.08);
  transition: all 0.3s var(--ease);
}
.sensor-item:hover {
  background: rgba(78, 255, 184, 0.08);
  border-color: rgba(78, 255, 184, 0.2);
}
.sensor-label {
  font-size: 10px;
  color: var(--text-sub);
  flex-shrink: 0;
}
.sensor-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  font-family: var(--mono);
  text-shadow: 0 0 8px var(--neon-dim);
  margin-left: auto;
}
.sensor-unit {
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sensor-update-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  margin-bottom: 4px;
}
.sensor-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 8px 0 14px;
}

/* 响应式 - 传感器面板 */
@media (max-width: 1366px) {
  .sensor-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sensor-value { font-size: 13px; }
}
@media (max-width: 1200px) {
  .sensor-grid { gap: 4px; }
  .sensor-item { padding: 3px 4px; }
  .sensor-label { font-size: 9px; }
  .sensor-value { font-size: 12px; }
  .sensor-unit { font-size: 8px; }
}

/* ===== 仪表盘页 ===== */
.dashboard-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dashboard-plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.dashboard-soil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ===== 生长记录页 ===== */
.growth-page table th {
  font-weight: 500;
}

/* ===== 数据表格页 ===== */
.datatable-page .tool-btn.active {
  border-bottom: 2px solid var(--accent);
  border-radius: 4px 4px 0 0;
}

/* ===== Toast 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* ===== Phase2: 任务中心 / 预警中心 样式 ===== */

/* 统计卡片行 */
.task-stats-row, .alert-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* ============================================================
   统计卡片升级 (v20260807p)
   ============================================================ */
.task-stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stat-mini-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 56, 40, 0.7) 0%, rgba(8, 28, 20, 0.9) 100%);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 110px;
  text-align: center;
  flex: 1;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: all 0.25s;
}
.stat-mini-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.stat-mini-card:hover {
  border-color: rgba(212, 168, 67, 0.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(212, 168, 67, 0.2);
  transform: translateY(-1px);
}
.stat-mini-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(212, 168, 67, 0.5);
  letter-spacing: 1px;
  font-family: 'Consolas', 'Monaco', monospace;
}
.stat-mini-label {
  font-size: 12px;
  color: #c8d8d2;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* 全局 select 下拉项 - 高对比度 */
select option {
  background: #0d2620 !important;
  color: #e8f5ef !important;
  padding: 8px 12px !important;
  font-weight: 500;
}
select option:hover, select option:checked {
  background: #1a4030 !important;
  color: #ffd97a !important;
}

/* 筛选下拉框 - 自定义箭头，解决原生 <select> 文字/箭头分两个盒子的视觉bug */
.filter-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='%23d4a843' d='M0 0l5 6 5-6z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 9px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.12);
}
.filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.2);
}
.filter-select option {
  background: #0d2818;
  color: var(--text-main);
  padding: 8px 12px;
}
.filter-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ============================================================
   Phase 2: 任务/审核卡片 - 科幻深色升级版 (v20260807p)
   ============================================================ */
/* 状态色变量（高对比度） */
:root {
  --task-color-pending: #ffc107;
  --task-color-assigned: #42a5f5;
  --task-color-progress: #ab47bc;
  --task-color-completed: #66bb6a;
  --task-color-verified: #26a69a;
  --task-color-cancelled: #78909c;
  --task-color-high: #ef5350;
  --task-color-medium: #ffc107;
  --task-color-low: #78909c;
}

/* 卡片基础：玻璃拟态 + 角点装饰 */
.task-card, .alert-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 56, 40, 0.65) 0%, rgba(8, 34, 24, 0.85) 100%);
  border: 1px solid rgba(212, 168, 67, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  overflow: hidden;
}
/* 卡片顶部金色细线（高科技感） */
.task-card::before, .alert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.55), transparent);
  opacity: 0.5;
}
/* hover 效果：金色光晕 + 轻微抬升 */
.task-card:hover, .alert-card:hover {
  border-color: rgba(212, 168, 67, 0.45);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(212, 168, 67, 0.18),
    inset 0 0 28px rgba(212, 168, 67, 0.04);
  transform: translateY(-1px);
}

/* 卡片内部三段式 flex：左侧图标 / 中部内容 / 右侧操作 */
.task-card-v2 {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.task-card-v2 .tc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  position: relative;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(212, 168, 67, 0.04));
  border: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow: inset 0 0 18px rgba(212, 168, 67, 0.1);
}
.task-card-v2 .tc-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(212,168,67,0.15);
}
.task-card-v2 .tc-icon[data-type='irrigation'] {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.22), rgba(79, 195, 247, 0.04));
  border-color: rgba(79, 195, 247, 0.35);
  color: #4fc3f7;
}
.task-card-v2 .tc-icon[data-type='fertilization'] {
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.22), rgba(102, 187, 106, 0.04));
  border-color: rgba(102, 187, 106, 0.35);
  color: #81c784;
}
.task-card-v2 .tc-icon[data-type='pest_control'] {
  background: linear-gradient(135deg, rgba(239, 83, 80, 0.22), rgba(239, 83, 80, 0.04));
  border-color: rgba(239, 83, 80, 0.35);
  color: #ef5350;
}
.task-card-v2 .tc-icon[data-type='weeding'] {
  background: linear-gradient(135deg, rgba(174, 213, 129, 0.22), rgba(174, 213, 129, 0.04));
  border-color: rgba(174, 213, 129, 0.35);
  color: #aed581;
}
.task-card-v2 .tc-icon[data-type='replanting'] {
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.22), rgba(102, 187, 106, 0.04));
  border-color: rgba(102, 187, 106, 0.35);
  color: #66bb6a;
}
.task-card-v2 .tc-icon[data-type='inspection'] {
  background: linear-gradient(135deg, rgba(171, 71, 188, 0.22), rgba(171, 71, 188, 0.04));
  border-color: rgba(171, 71, 188, 0.35);
  color: #ce93d8;
}
.task-card-v2 .tc-icon-label {
  font-size: 10px;
  margin-top: 2px;
  color: inherit;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.task-card-v2 .tc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.task-card-v2 .tc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.task-card-v2 .tc-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.task-card-v2 .tc-desc {
  font-size: 13px;
  color: #c8d8d2;
  line-height: 1.65;
  letter-spacing: 0.2px;
}

/* 状态徽章（带光晕） */
.task-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border: 1px solid currentColor;
  background-clip: padding-box;
}
.task-status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.task-priority-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.task-priority-badge.high { background: rgba(239, 83, 80, 0.18); color: #ff8a80; border-color: rgba(239, 83, 80, 0.4); }
.task-priority-badge.medium { background: rgba(255, 193, 7, 0.18); color: #ffd54f; border-color: rgba(255, 193, 7, 0.4); }
.task-priority-badge.low { background: rgba(120, 144, 156, 0.18); color: #b0bec5; border-color: rgba(120, 144, 156, 0.4); }

/* 元数据 chips（图标 + 文字） */
.task-card-v2 .tc-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.task-card-v2 .tc-chip {
  font-size: 12px;
  color: #a8c2b6;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task-card-v2 .tc-chip b {
  color: #d4a843;
  font-weight: 600;
}
.task-card-v2 .tc-chip .ico {
  font-size: 12px;
  color: var(--gold-light);
  filter: drop-shadow(0 0 4px currentColor);
}

/* 操作按钮（统一玻璃拟态） */
.task-card-v2 .tc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 86px;
}
.task-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.18s ease;
  color: var(--text-sub);
  text-align: center;
}
.task-action-btn:hover {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.4);
  color: var(--gold-light);
  transform: translateY(-1px);
}
.task-action-btn.action-danger {
  color: #ff8a80;
  border-color: rgba(239, 83, 80, 0.3);
}
.task-action-btn.action-danger:hover {
  background: rgba(239, 83, 80, 0.15);
  border-color: rgba(239, 83, 80, 0.5);
  color: #ff5252;
}
.task-action-btn.action-success {
  color: #69f0ae;
  border-color: rgba(102, 187, 106, 0.3);
}
.task-action-btn.action-success:hover {
  background: rgba(102, 187, 106, 0.15);
  border-color: rgba(102, 187, 106, 0.5);
  color: #66bb6a;
}
.task-action-btn.action-purple {
  color: #ce93d8;
  border-color: rgba(171, 71, 188, 0.3);
}
.task-action-btn.action-purple:hover {
  background: rgba(171, 71, 188, 0.15);
  border-color: rgba(171, 71, 188, 0.5);
  color: #ab47bc;
}
.task-action-btn.action-teal {
  color: #80cbc4;
  border-color: rgba(38, 166, 154, 0.3);
}
.task-action-btn.action-teal:hover {
  background: rgba(38, 166, 154, 0.15);
  border-color: rgba(38, 166, 154, 0.5);
  color: #26a69a;
}

.task-card-v2 .tc-exec-notes {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--gold-dim);
  border-radius: 6px;
  font-size: 12px;
  color: #b8d4c8;
  line-height: 1.5;
}
.task-card-v2 .tc-exec-notes b {
  color: var(--gold-light);
  margin-right: 4px;
}

/* 来源标签 */
.task-card-v2 .tc-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.task-card-v2 .tc-source.ai { background: rgba(212, 168, 67, 0.16); color: #ffd97a; border: 1px solid rgba(212, 168, 67, 0.4); }
.task-card-v2 .tc-source.alert { background: rgba(239, 83, 80, 0.16); color: #ff8a80; border: 1px solid rgba(239, 83, 80, 0.4); }
.task-card-v2 .tc-source.review { background: rgba(171, 71, 188, 0.16); color: #ce93d8; border: 1px solid rgba(171, 71, 188, 0.4); }

/* ============================================================
   Phase 3: 报告中心 - 升级版 (v20260807p)
   ============================================================ */
.report-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 56, 40, 0.85) 0%, rgba(8, 28, 20, 0.92) 100%);
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.report-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.7;
}
.report-card::after {
  /* 四角装饰（与卡片同色） */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 6px 6px, var(--gold) 1.5px, transparent 2px) 0 0 / 14px 14px no-repeat,
    radial-gradient(circle at calc(100% - 6px) 6px, var(--gold) 1.5px, transparent 2px) 0 0 / 14px 14px no-repeat,
    radial-gradient(circle at 6px calc(100% - 6px), var(--gold) 1.5px, transparent 2px) 0 0 / 14px 14px no-repeat,
    radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), var(--gold) 1.5px, transparent 2px) 0 0 / 14px 14px no-repeat;
  opacity: 0.45;
}
.report-card:hover {
  border-color: var(--gold);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(212, 168, 67, 0.32),
    inset 0 0 32px rgba(212, 168, 67, 0.05);
  transform: translateY(-3px);
}
.report-card:hover::after { opacity: 0.85; }

/* 新报告卡片内部：顶部bar + 内容区 */
.report-card-inner {
  display: flex;
  gap: 0;
  padding: 18px 20px;
}
.report-card-bar {
  width: 5px;
  align-self: stretch;
  border-radius: 2px;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor, inset 0 0 4px currentColor;
}
.report-card-content {
  flex: 1;
  min-width: 0;
}
.report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.report-card-head .rc-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-shadow: 0 0 10px rgba(212, 168, 67, 0.35);
  line-height: 1.4;
}
.report-card-head .rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border: 1.5px solid currentColor;
  white-space: nowrap;
  box-shadow: 0 0 8px currentColor;
}
.report-card-head .rc-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.report-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #a8c2b6;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.report-card-meta .rm-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.report-card-meta .rm-item .ico {
  color: var(--gold-light);
  font-size: 14px;
  filter: drop-shadow(0 0 4px currentColor);
}
.report-card-meta .rm-item b {
  color: #d4a843;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.report-card-meta .rm-sep {
  color: rgba(212, 168, 67, 0.5);
}

.report-card-summary {
  font-size: 14px;
  color: #d8e8e0;
  line-height: 1.75;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.06), rgba(212, 168, 67, 0.02));
  border-left: 2px solid rgba(212, 168, 67, 0.45);
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.3px;
}

.report-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #88a898;
  padding-top: 8px;
  border-top: 1px dashed rgba(212, 168, 67, 0.18);
}
.report-card-footer .rf-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-card-footer .rf-left .ico {
  color: var(--gold);
  font-size: 13px;
}
.report-card-footer .rf-right {
  color: #4fc3f7;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input option {
  background: #0d2818;
  color: var(--text-main);
}

/* 按钮 */
.btn-primary {
  background: var(--gold);
  color: #1a1a2e;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 弹窗内容 */
.modal-content {
  background: #0a1f14;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 16px;
  color: var(--text-main);
  margin: 0;
}
.modal-close {
  font-size: 22px;
  color: var(--text-sub);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-main);
}
.modal-footer {
  border-top: 1px solid var(--border);
}

/* Tab 按钮 */
.tab-btn {
  transition: background 0.2s, color 0.2s;
}

/* ============================================================
   Phase 3: 报告中心样式（高对比度优化版）
   ============================================================ */
.report-card {
  background: linear-gradient(135deg, rgba(20, 56, 40, 0.85), rgba(8, 34, 24, 0.9));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.report-card:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(30, 76, 52, 0.9), rgba(12, 44, 30, 0.95));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 168, 67, 0.25);
  transform: translateY(-2px);
}
.report-card .rc-type-bar { display: none; }
.report-card .rc-title { display: none; }
.report-card .rc-badge { display: none; }
.report-card .rc-meta { display: none; }
.report-card .rc-meta-sep { display: none; }
.report-card .rc-summary { display: none; }
.report-card .rc-footer { display: none; }
.report-card .rc-footer-icon { display: none; }

/* 保留 rc-* 类作为 fallback（如有其它位置使用） */
.rc-title { font-size: 16px; font-weight: 700; color: #ffffff; letter-spacing: 0.3px; }
.rc-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; border: 1px solid currentColor; }
.rc-summary { font-size: 14px; color: #d4e8dd; line-height: 1.7; }

/* ============================================================
   Phase 3: AI助手样式
   ============================================================ */
.assistant-page {
  background: var(--bg-card);
}
.assistant-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.assistant-user {
  flex-direction: row-reverse;
}
.assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a1a1a;
}
.assistant-avatar.user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
}
.assistant-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.assistant-user .assistant-bubble {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.25);
}
.assistant-thinking {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 16px;
}
.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
  animation: thinkingBounce 1.4s infinite ease-in-out both;
}
.thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes thinkingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   Phase 3: 预测模块样式
   ============================================================ */
.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.prediction-card:hover {
  border-color: var(--gold-dim);
}

/* =========================================================
 *  智慧农业驾驶舱（cockpit）
 *  - 深色科技感 + 中心 3D 倾斜地图 + 左右两栏
 * ========================================================= */
:root {
  --cockpit-bg: radial-gradient(ellipse at top, #042022 0%, #020e0a 100%);
  --cock-panel-bg: linear-gradient(150deg, rgba(6, 32, 35, 0.85), rgba(2, 16, 18, 0.7));
  --cock-panel-bd: rgba(64, 158, 188, 0.25);
  --cock-neon: #3ddce0;
  --cock-pink: #ff5ec4;
  --cock-orange: #ffb74d;
  --cock-red: #ff4d6d;
}

/* 驾驶舱页面由 switchPage 的内联 display 控制，不需要 !important 强制 */
.cockpit {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--cockpit-bg);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.cockpit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,220,224,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,220,224,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* 顶部标题栏 */
.cockpit-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 10px;
  border-bottom: 1px solid rgba(61,220,224,0.15);
}
.cockpit-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cockpit-title .title-bar {
  display: inline-block;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold-bright), var(--cock-neon));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--gold-dim);
}
.cockpit-title .title-main {
  font-size: 22px;
  font-weight: 700;
  color: #f4ecc8;
  letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(212,168,67,0.4);
}
.cockpit-title .title-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(61,220,224,0.5);
  text-transform: uppercase;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(61,220,224,0.2);
}
.cockpit-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  font-size: 12px;
}
.cockpit-time {
  color: var(--gold-light);
  font-family: 'Consolas', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c94f;
  box-shadow: 0 0 8px #27c94f;
  animation: pulse-dot 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* KPI 数据条 */
.cockpit-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}
.kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--cock-panel-bg);
  border: 1px solid var(--cock-panel-bd);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,220,224,0.18);
}
.kpi-card .kpi-icon {
  font-size: 22px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,220,224,0.08);
  border-radius: 4px;
  border: 1px solid rgba(61,220,224,0.18);
}
.kpi-card .kpi-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kpi-card .kpi-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Consolas', monospace;
}
.kpi-card .kpi-value > span {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.kpi-card .kpi-value > i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-sub);
}
.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
.kpi-card .kpi-bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
}
.kpi-gold { color: #d4a843; }
.kpi-cyan { color: #3ddce0; }
.kpi-green { color: #27c94f; }
.kpi-purple { color: #b794f4; }
.kpi-red { color: #ff4d6d; }
.kpi-orange { color: #ffa726; }

/* 三列主体 */
.cockpit-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 12px;
  padding: 0 24px 12px;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.cockpit-left, .cockpit-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
}
.cockpit-left::-webkit-scrollbar,
.cockpit-right::-webkit-scrollbar,
.scroll-list::-webkit-scrollbar {
  width: 6px;
}
.cockpit-left::-webkit-scrollbar-thumb,
.cockpit-right::-webkit-scrollbar-thumb,
.scroll-list::-webkit-scrollbar-thumb {
  background: rgba(61,220,224,0.25);
  border-radius: 3px;
}

/* 面板卡片 */
.cockpit-panel {
  background: var(--cock-panel-bg);
  border: 1px solid var(--cock-panel-bd);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cockpit-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  background: linear-gradient(90deg, rgba(61,220,224,0.06), transparent);
  border-bottom: 1px solid rgba(61,220,224,0.15);
  letter-spacing: 1px;
}
.cockpit-panel .panel-icon {
  font-size: 14px;
  filter: hue-rotate(0deg);
}
.cockpit-panel .panel-title {
  flex: 1;
}
.cockpit-panel .panel-badge {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
  background: rgba(61,220,224,0.12);
  border: 1px solid rgba(61,220,224,0.3);
  color: var(--cock-neon);
  border-radius: 10px;
  font-size: 11px;
  font-family: 'Consolas', monospace;
}
.cockpit-panel .panel-badge.danger {
  background: rgba(255,77,109,0.15);
  border-color: rgba(255,77,109,0.4);
  color: var(--cock-red);
}
.cockpit-panel .panel-body {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-sub);
}
.cockpit-panel .panel-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
.scroll-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 14px 12px !important;
}

/* 农场卡片 */
.farm-card {
  background: rgba(61,220,224,0.04);
  border: 1px solid rgba(61,220,224,0.2);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s;
}
.farm-card:hover {
  border-color: var(--gold-bright);
  background: rgba(212,168,67,0.06);
  transform: translateX(2px);
}
.farm-card.active {
  border-color: var(--gold-bright);
  background: rgba(212,168,67,0.12);
  box-shadow: 0 0 12px rgba(212,168,67,0.2);
  transform: translateX(3px);
}
.farm-hint {
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
  padding: 8px 0 4px;
  opacity: 0.6;
}
.farm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.farm-name {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
}
.farm-code {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: var(--cock-neon);
  background: rgba(61,220,224,0.1);
  padding: 1px 6px;
  border-radius: 2px;
}
.farm-meta {
  margin: 6px 0;
  font-size: 11px;
  color: var(--text-sub);
}
.farm-meta i {
  color: var(--gold);
  margin-right: 4px;
}
.farm-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.fs-item {
  background: rgba(61,220,224,0.06);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.fs-item b {
  font-size: 16px;
  color: var(--cock-neon);
  font-family: 'Consolas', monospace;
}
.fs-item i { font-style: normal; font-size: 10px; }
.farm-crop {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(61,220,224,0.15);
}
.farm-coords {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 健康评估 */
.health-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(61,220,224,0.18);
}
.health-ring {
  --p: 75;
  --color: #27c94f;
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--p) * 1%), rgba(61,220,224,0.08) 0);
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.health-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: #021617;
  border-radius: 50%;
}
.health-ring-num {
  position: relative;
  font-family: 'Consolas', monospace;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}
.health-ring-num i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-sub);
  margin-left: 2px;
}
.health-text {
  flex: 1;
  font-size: 12px;
}
.ht-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-sub);
}
.ht-row b { color: var(--cock-neon); font-weight: 600; }
.ht-row b.danger { color: var(--cock-red); }
.health-trend .trend-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

/* 作物分布 */
.crop-dist .crop-bar-item {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}
.crop-dist .cb-name { color: var(--text-sub); }
.crop-dist .cb-bar {
  background: rgba(61,220,224,0.08);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}
.crop-dist .cb-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px currentColor;
}
.crop-dist .cb-pct {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: var(--gold-light);
  text-align: right;
}

/* 中央地图（2D 精致暗色风格） */
.cockpit-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.cockpit-map-wrap {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #0a1f2e 0%, #041018 70%, #020a0e 100%);
  border: 1px solid rgba(61,220,224,0.25);
  box-shadow:
    0 0 40px rgba(61,220,224,0.08),
    inset 0 0 60px rgba(0,0,0,0.6);
  min-height: 0;
}
.cockpit-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cockpit-map .leaflet-container {
  background: transparent !important;
  height: 100% !important;
  width: 100% !important;
}
/* 修复：确保 Leaflet panes 是绝对定位（防止外部 CSS 加载失败导致静态堆叠） */
.cockpit-map .leaflet-pane {
  position: absolute !important;
  left: 0;
  top: 0;
}
.cockpit-map .leaflet-pane > * {
  position: absolute !important;
}
.cockpit-map .leaflet-marker-icon {
  position: relative !important;
}
.cockpit-map .leaflet-marker-shadow {
  position: relative !important;
}
/* 四角装饰 */
.cockpit-map-wrap .map-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--cock-neon);
  z-index: 5;
  opacity: 0.6;
}
.cockpit-map-wrap .map-corner.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.cockpit-map-wrap .map-corner.tr { top: 10px; right: 10px; border-top: 2px solid; border-right: 2px solid; }
.cockpit-map-wrap .map-corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid; border-left: 2px solid; }
.cockpit-map-wrap .map-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }

.cockpit-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 400;
}
.map-hud-tl {
  position: absolute;
  top: 14px; left: 18px;
  pointer-events: auto;
}
.map-hud-br {
  position: absolute;
  bottom: 14px; right: 18px;
  pointer-events: auto;
}
.map-title-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(212,168,67,0.5);
}
.map-sub-text {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: rgba(61,220,224,0.7);
  margin-top: 4px;
  letter-spacing: 2px;
}
.map-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(61,220,224,0.3);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-sub);
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.gold { background: #d4a843; box-shadow: 0 0 6px #d4a843; }
.legend-dot.pink { background: #ff4d6d; box-shadow: 0 0 6px #ff4d6d; }

/* 地图扫描线 */
.map-scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.map-scanline::before {
  content: '';
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cock-neon) 50%, transparent);
  opacity: 0.4;
  animation: scanline-move 5s linear infinite;
}
@keyframes scanline-move {
  0% { transform: translateY(-10%); }
  100% { transform: translateY(2800%); }
}

/* 农场标记（2D 精致版） */
.farm-marker {
  position: relative;
  width: 40px;
  height: 40px;
  pointer-events: auto !important;
}
.leaflet-marker-icon.farm-marker {
  background: transparent !important;
  border: none !important;
}
/* 外层脉冲圈 */
.fm-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.5);
  background: rgba(212,168,67,0.08);
  animation: fm-pulse 2s ease-out infinite;
}
@keyframes fm-pulse {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}
/* 第二层脉冲（错开动画） */
.fm-pulse2 {
  position: absolute;
  left: 50%; top: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.35);
  animation: fm-pulse 2s ease-out infinite;
  animation-delay: 1s;
}
/* 核心 — 水滴/图钉形状 */
.fm-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  background: var(--gold-bright);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-bright), 0 2px 6px rgba(0,0,0,0.5);
  z-index: 3;
}
/* 标签 */
.fm-label {
  position: absolute;
  left: 50%; top: -30px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(2,16,18,0.85);
  border: 1px solid rgba(212,168,67,0.5);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: 0 0 6px #000;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
/* 标签底部小三角 */
.fm-label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(212,168,67,0.5);
}
/* 选中态标记 —— 变红+放大 */
.farm-marker-active .fm-core {
  background: #ff4d6d !important;
  border-color: #fff !important;
  box-shadow: 0 0 18px #ff4d6d, 0 2px 6px rgba(0,0,0,0.5) !important;
  width: 18px !important;
  height: 18px !important;
}
.farm-marker-active .fm-pulse,
.farm-marker-active .fm-pulse2 {
  border-color: rgba(255, 77, 109, 0.6) !important;
  background: rgba(255, 77, 109, 0.08) !important;
}
.farm-marker-active .fm-label {
  color: #ff8fa3 !important;
  border-color: rgba(255, 77, 109, 0.7) !important;
  background: rgba(20,4,10,0.9) !important;
}
.farm-marker-active .fm-label::after {
  border-top-color: rgba(255, 77, 109, 0.7) !important;
}

/* Leaflet tooltip 主题 */
.cockpit-tip {
  background: rgba(2,16,18,0.9) !important;
  border: 1px solid var(--cock-neon) !important;
  color: var(--cock-neon) !important;
  font-size: 12px !important;
  padding: 2px 8px !important;
  border-radius: 2px !important;
  box-shadow: 0 0 8px rgba(61,220,224,0.5) !important;
}
.cockpit-tip::before {
  border-top-color: var(--cock-neon) !important;
}

/* Leaflet popup 主题 */
.leaflet-popup-content-wrapper {
  background: linear-gradient(150deg, #022025, #020e0a) !important;
  color: #cbe7ef !important;
  border: 1px solid var(--cock-neon) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px rgba(61,220,224,0.5) !important;
}
.leaflet-popup-tip {
  background: var(--cock-neon) !important;
}
.leaflet-popup-close-button {
  color: var(--cock-neon) !important;
}
/* Leaflet 缩放控件暗色风格 */
.leaflet-control-zoom {
  border: 1px solid rgba(61,220,224,0.3) !important;
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}
.leaflet-control-zoom a {
  background: rgba(2,16,18,0.85) !important;
  color: var(--cock-neon) !important;
  border-bottom: 1px solid rgba(61,220,224,0.15) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 18px !important;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.leaflet-control-zoom a:hover {
  background: rgba(212,168,67,0.15) !important;
  color: var(--gold-light) !important;
}

/* ============================================================
   v20260807p: 驾驶舱地图 - 复位按钮
   ============================================================ */
.map-reset-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 12px;
  background: linear-gradient(135deg, rgba(2,16,18,0.92), rgba(4,28,24,0.92));
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(212, 168, 67, 0.18),
    inset 0 0 12px rgba(212, 168, 67, 0.06);
  transition: all 0.25s ease;
  pointer-events: auto;
  font-family: 'Microsoft YaHei', sans-serif;
}
.map-reset-btn:hover {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(212, 168, 67, 0.05));
  border-color: var(--gold);
  color: #ffffff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(212, 168, 67, 0.5),
    inset 0 0 16px rgba(212, 168, 67, 0.12);
  transform: translateY(-1px);
}
.map-reset-btn:active {
  transform: translateY(0);
}
.map-reset-btn .mrb-icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 4px currentColor);
}
.map-reset-btn .mrb-text {
  font-size: 12px;
}
.map-reset-btn.flash {
  animation: reset-flash 0.6s ease;
}
@keyframes reset-flash {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 22px rgba(212,168,67,0.5); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 40px rgba(212,168,67,1), inset 0 0 32px rgba(212,168,67,0.4); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 22px rgba(212,168,67,0.5); }
}

/* 预警/任务/活动列表行 */
.alert-row, .task-row, .activity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(61,220,224,0.1);
}
.alert-row:last-child, .task-row:last-child, .activity-row:last-child {
  border-bottom: none;
}
/* 驾驶舱预警/任务行：点击跳转 + 视觉提示 */
.alert-row[onclick], .task-row[onclick] {
  cursor: pointer;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}
.alert-row[onclick]:hover, .task-row[onclick]:hover {
  background: rgba(212,168,67,0.08);
  transform: translateX(2px);
}
.alert-row[onclick]:active, .task-row[onclick]:active {
  transform: translateX(0);
  background: rgba(212,168,67,0.15);
}
.alert-row .ar-dot {
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cock-neon);
  box-shadow: 0 0 4px currentColor;
  flex-shrink: 0;
}
.alert-row .ar-body { flex: 1; font-size: 12px; }
.alert-row .ar-title { color: var(--text-main); font-weight: 500; }
.alert-row .ar-title b { color: var(--gold-light); margin-right: 4px; }
.alert-row .ar-meta { color: var(--text-sub); font-size: 11px; margin-top: 2px; }
.alert-row .ar-time { color: var(--text-muted); margin-left: 8px; font-size: 10px; }
.alert-row.level-high .ar-dot { background: var(--cock-red); color: var(--cock-red); }
.alert-row.level-mid .ar-dot { background: var(--cock-orange); color: var(--cock-orange); }
.alert-row.level-low .ar-dot { background: var(--cock-neon); color: var(--cock-neon); }

.task-row { gap: 10px; }
.task-row .t-prio {
  width: 38px;
  text-align: center;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  background: rgba(61,220,224,0.12);
  color: var(--cock-neon);
  flex-shrink: 0;
  margin-top: 4px;
}
.task-row .t-prio.high {
  background: rgba(255,77,109,0.15);
  color: var(--cock-red);
}
.task-row .t-prio.mid {
  background: rgba(255,183,77,0.15);
  color: var(--cock-orange);
}
.task-row .t-body { flex: 1; font-size: 12px; }
.task-row .t-title { color: var(--text-main); margin-bottom: 2px; }
.task-row .t-meta { color: var(--text-sub); font-size: 11px; }

.activity-row { gap: 10px; }
.activity-row .ac-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cock-neon);
  position: relative;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-row .ac-dot span {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--cock-neon);
  opacity: 0.3;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.activity-row .ac-body { flex: 1; font-size: 12px; }
.activity-row .ac-title b { color: var(--gold-light); }
.activity-row .ac-meta { color: var(--text-sub); font-size: 11px; margin-top: 2px; }

/* 底部滚动数据流 */
.cockpit-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(6,32,35,0.9), rgba(2,16,18,0.9));
  border-top: 1px solid rgba(61,220,224,0.15);
  margin: 0 24px 12px;
  border-radius: 4px;
  height: 32px;
  overflow: hidden;
}
.footer-label {
  flex-shrink: 0;
  padding: 0 14px;
  font-size: 11px;
  color: var(--gold-light);
  border-right: 1px solid rgba(61,220,224,0.25);
  letter-spacing: 1px;
}
.footer-stream {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.stream-track {
  display: inline-block;
  white-space: nowrap;
  color: var(--text-sub);
  font-size: 12px;
  animation: stream-move 60s linear infinite;
}
.stream-track b {
  color: var(--cock-neon);
  font-family: 'Consolas', monospace;
}
.stream-item {
  display: inline-block;
  padding: 0 28px;
  position: relative;
}
.stream-item::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(61,220,224,0.3);
}
@keyframes stream-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 响应式 - 驾驶舱 */
@media (max-width: 1280px) {
  .cockpit-kpis { grid-template-columns: repeat(3, 1fr); }
  .cockpit-body { grid-template-columns: 240px 1fr 240px; }
}
@media (max-width: 900px) {
  .cockpit-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .cockpit-left, .cockpit-right { max-height: 280px; }
  .cockpit-kpis { grid-template-columns: repeat(2, 1fr); }
}

