/* ========== 仪表盘 ========== */
.traffic-summary { margin-bottom: 20px; position: relative; }
.section-head { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.summary-meta { font-size: 14px; color: #666; }
.link-right { position: absolute; top: 0; right: 0; font-size: 14px; color: #2563eb; text-decoration: none; }
.card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; background: #fff; }
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.card-title { font-size: 1.1rem; font-weight: 600; }
.incident-grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.incident-total { padding: 20px; border: 1px solid #e0e0e0; border-radius: 6px; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.incident-total .icon-warning { margin-bottom: 4px; }
.total-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.total-num { font-size: 2rem; font-weight: 800; }
.total-desc { font-size: 13px; color: #666; }
.severity-blocks { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.severity { padding: 16px; border-radius: 6px; min-width: 120px; display: flex; flex-direction: column; gap: 4px; }
.severity .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
.severity .num { font-size: 1.5rem; font-weight: 700; }
.severity.high { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.severity.medium { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.severity.low { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.incident-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee; font-size: 13px; color: #666; display: flex; gap: 24px; flex-wrap: wrap; }

.live-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.live-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; position: relative; background: #fff; }
.live-card.congestion { border-color: #eab308; }
.live-card.incidents { border-color: #dc2626; }
.live-card.weather { border-color: #2563eb; }
.live-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: #dc2626; }
.live-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.live-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.live-value.yellow { color: #b45309; }
.live-value.blue { color: #2563eb; }
.live-desc { font-size: 13px; color: #666; margin-bottom: 12px; }
.progress-bar { height: 6px; border-radius: 3px; background: #e5e7eb; }
.progress-bar.yellow { width: 55%; background: #eab308; }
.mini-bars { display: flex; gap: 4px; align-items: flex-end; height: 24px; }
.mini-bars span { width: 12px; background: #dc2626; border-radius: 2px; }
.mini-bars span:nth-child(1) { height: 60%; }
.mini-bars span:nth-child(2) { height: 90%; }
.mini-bars span:nth-child(3) { height: 70%; }
.mini-bars span:nth-child(4) { height: 85%; }
.mini-bars span:nth-child(5) { height: 50%; }
.checkbox-label { font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; }

.recent-updates { margin-top: 24px; }
.recent-updates-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.recent-actions { display: flex; align-items: center; gap: 8px; }

.updates-list { list-style: none; }
.updates-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.dashboard-update-item { cursor: pointer; }
.dashboard-update-item:hover { background: #f8fafc; }
.updates-list .dot { flex-shrink: 0; margin-top: 6px; }
.updates-list .meta { display: block; font-size: 13px; color: #666; margin-top: 4px; }
.updates-list { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.evidence-title { margin-top: 18px; }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 8px;
  align-content: start;
}
.evidence-card { border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 14px; background: rgba(255,255,255,0.88); overflow: hidden; }
.evidence-card-highlight {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.36), 0 12px 24px rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.evidence-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f3f4f6; }
.evidence-card-body { padding: 10px; }
.evidence-card-title { font-size: 13px; font-weight: 700; }
.evidence-card-meta { font-size: 12px; color: #666; margin-top: 4px; }
.admin-users-panel { margin-top: 22px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fff; }
.admin-users-panel.hidden { display: none; }
.admin-users-page {
  margin: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.admin-users-page.hidden { display: none; }
.admin-users-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-user-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-user-stat { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; background: #f8fafc; }
.admin-user-stat .k { display: block; font-size: 11px; color: #64748b; margin-bottom: 4px; }
.admin-user-stat .v { font-size: 16px; font-weight: 700; color: #0f172a; }
.admin-users-table-wrap { overflow-x: auto; }
.admin-users-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-users-table th, .admin-users-table td { border-bottom: 1px solid #e5e7eb; padding: 8px; text-align: left; white-space: nowrap; }
.admin-users-table th { font-size: 12px; color: #475569; }
.admin-feedback-panel {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}
.admin-feedback-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-feedback-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.admin-feedback-filters select {
  min-width: 160px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
  color: #0f172a;
}
.admin-feedback-table-wrap { overflow-x: auto; }
.admin-feedback-table {
  table-layout: fixed;
  min-width: 1040px;
}
.admin-feedback-table th:nth-child(1),
.admin-feedback-table td:nth-child(1),
.admin-feedback-table th:nth-child(2),
.admin-feedback-table td:nth-child(2),
.admin-feedback-table th:nth-child(3),
.admin-feedback-table td:nth-child(3),
.admin-feedback-table th:nth-child(4),
.admin-feedback-table td:nth-child(4) {
  width: 150px;
  max-width: 150px;
}
.admin-feedback-table th:nth-child(5),
.admin-feedback-table td:nth-child(5) {
  width: 110px;
}
.admin-feedback-table th:nth-child(6),
.admin-feedback-table td:nth-child(6) {
  width: 92px;
}
.admin-feedback-table th:nth-child(8),
.admin-feedback-table td:nth-child(8) {
  width: 92px;
}
.admin-feedback-clip {
  display: block;
  max-width: 134px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-feedback-comment {
  white-space: normal;
  min-width: 280px;
  line-height: 1.45;
}
.admin-feedback-actions-cell {
  text-align: center;
}
.admin-feedback-delete-btn {
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}
.admin-feedback-delete-btn:hover {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.75);
}
.admin-feedback-delete-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.dot.red { background: #dc2626; }
.dot.orange { background: #ea580c; }
.dot.green { background: #22c55e; }

