/* 学生餐智慧监管大屏 - 自定义样式 */
* { box-sizing: border-box; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1a2e 100%);
  color: #e8f0ff;
  min-height: 100vh;
  overflow-x: hidden;
}
.glass-panel {
  background: linear-gradient(145deg, rgba(22, 93, 255, 0.12) 0%, rgba(0, 180, 42, 0.05) 100%);
  border: 1px solid rgba(22, 93, 255, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.panel-title {
  border-left: 3px solid #165DFF;
  padding-left: 10px;
  font-weight: 600;
  font-size: 15px;
}
.kpi-card {
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.25);
}
.sparkline { height: 36px; width: 100%; }
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a1628;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s;
}
#loader.hide { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 64px; height: 64px;
  border: 3px solid rgba(22, 93, 255, 0.2);
  border-top-color: #165DFF;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes data-flash {
  0% { background-color: rgba(0, 180, 42, 0.3); }
  100% { background-color: transparent; }
}
.data-updated { animation: data-flash 0.8s ease-out; }
.scroll-thin::-webkit-scrollbar { width: 4px; height: 4px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #165DFF; border-radius: 4px; }
.modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.chart-box { height: 100%; min-height: 140px; }
.trend-up { color: #00B42A; }
.trend-down { color: #F53F3F; }
.badge-live::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: #00B42A; border-radius: 50%; margin-left: 6px;
  animation: pulse-dot 1.2s infinite;
}
/* 运输车辆状态卡片 */
.vehicle-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: rgba(13, 33, 55, 0.6);
  border-left: 3px solid #165DFF;
  transition: all 0.2s;
}
.vehicle-row:hover { background: rgba(22, 93, 255, 0.15); }
.vehicle-row.status-loading { border-left-color: #FF7D00; }
.vehicle-row.status-dispatching { border-left-color: #165DFF; }
.vehicle-row.status-delivered { border-left-color: #00B42A; }
.vehicle-row.status-waiting { border-left-color: #86909C; }
.plate-tag {
  font-family: 'Consolas', monospace;
  font-weight: 700;
  background: #0a1a2e;
  border: 1px solid #165DFF;
  color: #e8f0ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.status-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.status-待命 { background: rgba(134,144,156,0.2); color: #86909C; }
.status-装餐中 { background: rgba(255,125,0,0.2); color: #FFB400; }
.status-配送中 { background: rgba(22,93,255,0.25); color: #5B8DFF; }
.status-已送达 { background: rgba(0,180,42,0.2); color: #4CD964; }
/* 食品安全溯源文章列表 */
.article-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid rgba(22, 93, 255, 0.4);
  background: rgba(13, 33, 55, 0.5);
  transition: all 0.2s;
  cursor: pointer;
}
.article-item:hover {
  background: rgba(22, 93, 255, 0.15);
  border-left-color: #165DFF;
  transform: translateX(2px);
}
.article-item .art-title {
  font-size: 13px;
  color: #e8f0ff;
  font-weight: 500;
  line-height: 1.4;
}
.article-item .art-meta {
  font-size: 11px;
  color: #86909C;
  margin-top: 3px;
}
.article-item .art-summary {
  font-size: 11px;
  color: #a0a8b8;
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 餐食质量 - 菜品卡片 */
.dish-card {
  background: rgba(13, 33, 55, 0.7);
  border: 1px solid rgba(22, 93, 255, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.2s;
}
.dish-card:hover {
  border-color: #165DFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}
.dish-cat {
  font-size: 11px;
  color: #5B8DFF;
  font-weight: 600;
  margin-bottom: 4px;
}
.dish-name {
  font-size: 13px;
  color: #e8f0ff;
  font-weight: 500;
  line-height: 1.4;
}
/* 天气卡片 */
.weather-block {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(22, 93, 255, 0.1);
  border: 1px solid rgba(22, 93, 255, 0.3);
}
.weather-icon { font-size: 20px; }
.weather-temp { font-size: 14px; font-weight: 600; color: #e8f0ff; }
.weather-type { font-size: 12px; color: #a0b8d8; }
.weather-city { font-size: 11px; color: #86909C; }
