/* ===== 智算中心大屏 - 全面美化版 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #050d1a;
  overflow: hidden;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #EAEAEA;
}

/* ===== 大屏容器 ===== */
#dashboard {
  width: 1920px;
  height: 1080px;
  background: linear-gradient(180deg, #0A2342 0%, #06152B 60%, #040e1f 100%);
  position: relative;
  overflow: hidden;
}

/* 背景网格 - 更精细 */
#dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,228,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,228,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(0,228,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,228,255,0.015) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
  pointer-events: none;
  z-index: 1;
}

/* 背景光晕 */
#dashboard::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,228,255,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ===== 粒子/星点动画 ===== */
@keyframes starFloat1 {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-400px) translateX(50px); }
}
@keyframes starFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  50% { transform: translateY(-350px) translateX(-30px); }
}
@keyframes starFloat3 {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  50% { transform: translateY(-500px) translateX(80px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,228,255,0.6);
}
.particle:nth-child(1) { width: 2px; height: 2px; left: 10%; top: 80%; animation: starFloat1 8s ease-in-out infinite; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 25%; top: 90%; animation: starFloat2 12s ease-in-out infinite 1s; }
.particle:nth-child(3) { width: 2px; height: 2px; left: 40%; top: 85%; animation: starFloat3 10s ease-in-out infinite 2s; }
.particle:nth-child(4) { width: 1.5px; height: 1.5px; left: 55%; top: 75%; animation: starFloat1 9s ease-in-out infinite 3s; }
.particle:nth-child(5) { width: 2px; height: 2px; left: 70%; top: 88%; animation: starFloat2 11s ease-in-out infinite 0.5s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 85%; top: 82%; animation: starFloat3 13s ease-in-out infinite 4s; }
.particle:nth-child(7) { width: 1.5px; height: 1.5px; left: 15%; top: 70%; animation: starFloat1 7s ease-in-out infinite 2.5s; }
.particle:nth-child(8) { width: 2px; height: 2px; left: 60%; top: 92%; animation: starFloat2 14s ease-in-out infinite 1.5s; }
.particle:nth-child(9) { width: 2.5px; height: 2.5px; left: 92%; top: 78%; animation: starFloat1 10s ease-in-out infinite 5s; }
.particle:nth-child(10) { width: 2px; height: 2px; left: 48%; top: 95%; animation: starFloat3 9s ease-in-out infinite 3.5s; }
.particle:nth-child(11) { width: 1.5px; height: 1.5px; left: 5%; top: 60%; animation: twinkle 4s ease-in-out infinite; }
.particle:nth-child(12) { width: 2px; height: 2px; left: 30%; top: 45%; animation: twinkle 5s ease-in-out infinite 1s; }
.particle:nth-child(13) { width: 1px; height: 1px; left: 75%; top: 55%; animation: twinkle 3s ease-in-out infinite 2s; }
.particle:nth-child(14) { width: 2px; height: 2px; left: 95%; top: 40%; animation: twinkle 6s ease-in-out infinite 0.5s; }
.particle:nth-child(15) { width: 1.5px; height: 1.5px; left: 50%; top: 30%; animation: twinkle 4.5s ease-in-out infinite 3s; }

/* ===== 顶部通栏 ===== */
.header {
  position: relative;
  z-index: 10;
  height: 155px;
  padding: 10px 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-title {
  text-align: center;
  margin-bottom: 2px;
}
.header-title h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 10px;
  background: linear-gradient(90deg, #00E4FF 0%, #FFFFFF 35%, #00E4FF 50%, #FFFFFF 65%, #00E4FF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0,228,255,0.3);
  line-height: 1.3;
  animation: titleShimmer 6s linear infinite;
}
@keyframes titleShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.header-title .subtitle {
  font-size: 12px;
  color: rgba(234,234,234,0.5);
  letter-spacing: 6px;
  margin-top: 2px;
}

/* 顶部装饰线 */
.header-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,228,255,0.3) 20%, rgba(0,228,255,0.8) 50%, rgba(0,228,255,0.3) 80%, transparent 95%);
  margin: 6px 0 8px;
  position: relative;
}
.header-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  width: 300px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.3), transparent);
  border-radius: 50%;
  filter: blur(2px);
}

/* 时间显示 */
.header-time {
  position: absolute;
  right: 30px;
  top: 16px;
  font-size: 13px;
  color: rgba(234,234,234,0.6);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ===== KPI 卡片行 ===== */
.kpi-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  min-width: 125px;
  background: linear-gradient(180deg, rgba(0,228,255,0.06) 0%, rgba(0,228,255,0.02) 100%);
  border: 1px solid rgba(0,228,255,0.15);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.kpi-card:hover {
  border-color: rgba(0,228,255,0.35);
  background: linear-gradient(180deg, rgba(0,228,255,0.1) 0%, rgba(0,228,255,0.04) 100%);
  box-shadow: 0 0 20px rgba(0,228,255,0.1), inset 0 0 20px rgba(0,228,255,0.03);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.5), transparent);
}
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.3), transparent);
  border-radius: 2px;
}
.kpi-label {
  font-size: 11px;
  color: rgba(234,234,234,0.55);
  margin-bottom: 4px;
  white-space: nowrap;
  letter-spacing: 1px;
}
.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-num {
  font-size: 28px;
  font-weight: 700;
  color: #00E4FF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(0,228,255,0.5), 0 0 40px rgba(0,228,255,0.15);
}
.kpi-unit {
  font-size: 11px;
  color: rgba(234,234,234,0.5);
}

/* ===== 内容区 ===== */
.content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 8px 16px 12px;
  height: calc(1080px - 155px);
}

/* ===== 面板通用样式 - 科技感边框+四角装饰 ===== */
.panel {
  background: linear-gradient(180deg, rgba(10,35,66,0.75) 0%, rgba(6,21,43,0.65) 100%);
  border: 1px solid rgba(0,228,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  box-shadow: 0 0 20px rgba(0,228,255,0.03), inset 0 1px 0 rgba(0,228,255,0.08);
}
/* 面板顶部发光线 */
.panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.5), transparent);
  border-radius: 2px;
  z-index: 2;
}
/* 面板底部微光 */
.panel::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.2), transparent);
  z-index: 2;
}

/* 面板四角装饰 */
.panel-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 3;
  pointer-events: none;
}
.panel-corner::before,
.panel-corner::after {
  content: '';
  position: absolute;
  background: #00E4FF;
  box-shadow: 0 0 6px rgba(0,228,255,0.6), 0 0 12px rgba(0,228,255,0.3);
}
.panel-corner.tl { top: -1px; left: -1px; }
.panel-corner.tr { top: -1px; right: -1px; }
.panel-corner.bl { bottom: -1px; left: -1px; }
.panel-corner.br { bottom: -1px; right: -1px; }

.panel-corner.tl::before { top: 0; left: 0; width: 16px; height: 2px; }
.panel-corner.tl::after  { top: 0; left: 0; width: 2px; height: 16px; }
.panel-corner.tr::before { top: 0; right: 0; width: 16px; height: 2px; }
.panel-corner.tr::after  { top: 0; right: 0; width: 2px; height: 16px; }
.panel-corner.bl::before { bottom: 0; left: 0; width: 16px; height: 2px; }
.panel-corner.bl::after  { bottom: 0; left: 0; width: 2px; height: 16px; }
.panel-corner.br::before { bottom: 0; right: 0; width: 16px; height: 2px; }
.panel-corner.br::after  { bottom: 0; right: 0; width: 2px; height: 16px; }

/* 面板标题栏 - 左侧竖线装饰 */
.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #EAEAEA;
  padding: 4px 0 8px;
  border-bottom: 1px solid rgba(0,228,255,0.1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: linear-gradient(90deg, rgba(0,228,255,0.04) 0%, transparent 60%);
  padding-left: 12px;
  border-radius: 4px 4px 0 0;
}
.panel-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, #00E4FF, rgba(0,228,255,0.3));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,228,255,0.4);
}
.panel-title .icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(0,228,255,0.2), rgba(0,228,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,228,255,0.15);
}
.panel-title .icon svg {
  width: 14px;
  height: 14px;
}
.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ===== 子标题 - 下方渐变分隔线 ===== */
.sub-title {
  font-size: 11px;
  color: rgba(0,228,255,0.8);
  font-weight: 600;
  margin-bottom: 6px;
  padding-left: 10px;
  padding-bottom: 4px;
  border-left: 2px solid rgba(0,228,255,0.5);
  position: relative;
}
.sub-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,228,255,0.3), transparent 80%);
}

/* ===== 左上：算力资源 ===== */
.lt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.lt-grid .chart-box {
  min-height: 0;
}
.lt-quota {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  padding-top: 6px;
}
.quota-item {
  flex: 1;
}
.quota-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(234,234,234,0.6);
  margin-bottom: 5px;
}
.quota-val {
  color: #00E4FF;
  font-weight: 600;
  font-size: 12px;
  text-shadow: 0 0 6px rgba(0,228,255,0.3);
}
/* 配额进度条 - 更精致 */
.quota-bar {
  height: 8px;
  background: rgba(0,228,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,228,255,0.08);
}
.quota-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  position: relative;
}
.quota-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: quotaShine 2s ease-in-out infinite;
}
@keyframes quotaShine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
#quota-virtual .quota-bar-fill {
  background: linear-gradient(90deg, #A855F7, #C084FC);
  box-shadow: 0 0 8px rgba(168,85,247,0.3);
}
#quota-container .quota-bar-fill {
  background: linear-gradient(90deg, #00FF88, #4ADE80);
  box-shadow: 0 0 8px rgba(0,255,136,0.3);
}

/* ===== 右上：业务排行 ===== */
.rt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.rt-grid .chart-box { min-height: 0; }

.rt-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

/* 费用排行列表 - hover效果+交替行 */
.cost-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: rgba(234,234,234,0.65);
  border-radius: 4px;
  transition: all 0.2s ease;
}
.cost-item:nth-child(odd) {
  background: rgba(0,228,255,0.02);
}
.cost-item:hover {
  background: rgba(0,228,255,0.08);
  transform: translateX(2px);
}
.cost-rank {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(0,228,255,0.08);
  color: rgba(234,234,234,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.cost-rank.top3 {
  background: linear-gradient(135deg, #00E4FF55, #00E4FF15);
  color: #00E4FF;
  border: 1px solid rgba(0,228,255,0.2);
  box-shadow: 0 0 6px rgba(0,228,255,0.15);
}
.cost-name { flex: 1; }
.cost-tokens { color: rgba(234,234,234,0.45); font-size: 10px; }
.cost-amount { color: #FFD600; font-weight: 600; min-width: 40px; text-align: right; text-shadow: 0 0 6px rgba(255,214,0,0.2); }

/* 项目状态 */
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(234,234,234,0.65);
  padding: 4px 10px;
  background: rgba(0,228,255,0.04);
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
  border: 1px solid rgba(0,228,255,0.06);
  transition: all 0.2s ease;
}
.status-item:hover {
  background: rgba(0,228,255,0.08);
  border-color: rgba(0,228,255,0.15);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-item.online .status-dot { background: #00FF88; box-shadow: 0 0 8px #00FF8888; }
.status-item.building .status-dot { background: #FFD600; box-shadow: 0 0 8px #FFD60088; }
.status-item.expanding .status-dot { background: #00E4FF; box-shadow: 0 0 8px #00E4FF88; }
.status-item strong { color: #EAEAEA; margin-left: 2px; }

/* ===== 左下：机房动环 ===== */
.lb-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.lb-grid .chart-box { min-height: 0; }

.lb-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* 环境状态 */
.env-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.env-item {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(135deg, rgba(0,228,255,0.04), rgba(0,228,255,0.01));
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid rgba(0,228,255,0.06);
  transition: all 0.2s ease;
}
.env-item:hover {
  background: linear-gradient(135deg, rgba(0,228,255,0.08), rgba(0,228,255,0.03));
  border-color: rgba(0,228,255,0.15);
}
.env-label { color: rgba(234,234,234,0.5); }
.env-value { color: #EAEAEA; font-weight: 600; }
.env-value small { font-weight: 400; color: rgba(234,234,234,0.45); }
.env-value.ok { color: #00FF88; text-shadow: 0 0 6px rgba(0,255,136,0.3); }
.env-value.warn { color: #FF4D4D; text-shadow: 0 0 6px rgba(255,77,77,0.3); }

/* 服务器状态条 - 更粗+圆角+光泽 */
.srv-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.srv-seg { transition: width 0.8s ease; position: relative; }
.srv-seg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}
.srv-seg.online { background: linear-gradient(180deg, #00FF88, #00CC6A); }
.srv-seg.warning { background: linear-gradient(180deg, #FFD600, #CCB000); }
.srv-seg.fault { background: linear-gradient(180deg, #FF4D4D, #CC3333); }
.srv-legend {
  display: flex;
  gap: 12px;
  font-size: 10px;
}
.srv-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(234,234,234,0.6);
}
.srv-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.srv-tag.online::before { background: #00FF88; box-shadow: 0 0 4px #00FF8866; }
.srv-tag.warning::before { background: #FFD600; box-shadow: 0 0 4px #FFD60066; }
.srv-tag.fault::before { background: #FF4D4D; box-shadow: 0 0 4px #FF4D4D66; }

/* 告警徽章 - 更大更醒目+脉冲动画 */
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,77,77,0); }
}
@keyframes alertPulseYellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,214,0,0.25); }
  50% { box-shadow: 0 0 0 5px rgba(255,214,0,0); }
}
@keyframes alertPulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,228,255,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(0,228,255,0); }
}

#alert-status {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.alert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 64px;
  transition: all 0.3s ease;
}
.alert-badge.red {
  background: linear-gradient(180deg, rgba(255,77,77,0.15), rgba(255,77,77,0.05));
  border: 1px solid rgba(255,77,77,0.3);
  animation: alertPulse 2s ease-in-out infinite;
}
.alert-badge.yellow {
  background: linear-gradient(180deg, rgba(255,214,0,0.12), rgba(255,214,0,0.04));
  border: 1px solid rgba(255,214,0,0.25);
  animation: alertPulseYellow 2.5s ease-in-out infinite;
}
.alert-badge.blue {
  background: linear-gradient(180deg, rgba(0,228,255,0.1), rgba(0,228,255,0.03));
  border: 1px solid rgba(0,228,255,0.2);
  animation: alertPulseBlue 3s ease-in-out infinite;
}
.alert-count {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.alert-badge.red .alert-count { color: #FF4D4D; text-shadow: 0 0 12px rgba(255,77,77,0.6); }
.alert-badge.yellow .alert-count { color: #FFD600; text-shadow: 0 0 10px rgba(255,214,0,0.5); }
.alert-badge.blue .alert-count { color: #00E4FF; text-shadow: 0 0 10px rgba(0,228,255,0.5); }
.alert-label { font-size: 10px; color: rgba(234,234,234,0.55); margin-top: 3px; letter-spacing: 0.5px; }

/* ===== 右下：任务调度 ===== */
.rb-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr 1fr auto;
  gap: 6px;
  flex: 1;
  min-height: 0;
}
.rb-grid .chart-box { min-height: 0; }

/* 作业队列卡片 - 背景渐变+边框光效 */
.queue-cards {
  display: flex;
  gap: 8px;
}
.queue-card {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,228,255,0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.queue-card:hover {
  transform: translateY(-1px);
}
.queue-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 15%; right: 15%;
  height: 2px;
  border-radius: 2px;
}
.queue-card.running {
  background: linear-gradient(180deg, rgba(0,228,255,0.12), rgba(0,228,255,0.03));
  border-color: rgba(0,228,255,0.25);
  box-shadow: 0 0 12px rgba(0,228,255,0.06);
}
.queue-card.running::after { background: linear-gradient(90deg, transparent, #00E4FF, transparent); }
.queue-card.queued {
  background: linear-gradient(180deg, rgba(255,214,0,0.08), rgba(255,214,0,0.02));
  border-color: rgba(255,214,0,0.2);
  box-shadow: 0 0 12px rgba(255,214,0,0.04);
}
.queue-card.queued::after { background: linear-gradient(90deg, transparent, #FFD600, transparent); }
.queue-card.completed {
  background: linear-gradient(180deg, rgba(0,255,136,0.08), rgba(0,255,136,0.02));
  border-color: rgba(0,255,136,0.18);
  box-shadow: 0 0 12px rgba(0,255,136,0.04);
}
.queue-card.completed::after { background: linear-gradient(90deg, transparent, #00FF88, transparent); }
.queue-num {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.queue-card.running .queue-num { color: #00E4FF; text-shadow: 0 0 10px rgba(0,228,255,0.4); }
.queue-card.queued .queue-num { color: #FFD600; text-shadow: 0 0 10px rgba(255,214,0,0.4); }
.queue-card.completed .queue-num { color: #00FF88; text-shadow: 0 0 10px rgba(0,255,136,0.4); }
.queue-label {
  font-size: 10px;
  color: rgba(234,234,234,0.55);
  margin-top: 3px;
}

/* 网络流量 - icon+排版 */
.net-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.net-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: linear-gradient(135deg, rgba(0,228,255,0.04), rgba(0,228,255,0.01));
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid rgba(0,228,255,0.06);
  transition: all 0.2s ease;
}
.net-item:hover {
  background: linear-gradient(135deg, rgba(0,228,255,0.08), rgba(0,228,255,0.03));
  border-color: rgba(0,228,255,0.15);
}
.net-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
}
.net-icon svg {
  width: 14px;
  height: 14px;
}
.net-label { color: rgba(234,234,234,0.5); }
.net-value { color: #EAEAEA; font-weight: 600; margin-left: auto; }
.net-value small { font-weight: 400; color: rgba(234,234,234,0.45); }

/* ===== 数字滚动动画 ===== */
@keyframes numPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.kpi-num {
  animation: numPulse 3s ease-in-out infinite;
}

/* ===== 呼吸灯 ===== */
@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.status-dot {
  animation: breathe 2s ease-in-out infinite;
}

/* ===== 扫光动画 ===== */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(calc(1080px)); }
}
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.15), transparent);
  z-index: 3;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

/* ===== 模态弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-container {
  background: linear-gradient(180deg, #0c2a4a 0%, #091e38 100%);
  border: 1px solid rgba(0,228,255,0.25);
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  min-height: 300px;
  box-shadow: 0 0 40px rgba(0,228,255,0.1), 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
/* 弹窗四角装饰 */
.modal-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,228,255,0.5), transparent);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,228,255,0.15);
  background: rgba(0,228,255,0.03);
}
.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: #EAEAEA;
  letter-spacing: 1px;
}
.modal-close {
  font-size: 22px;
  color: rgba(234,234,234,0.5);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.modal-close:hover {
  color: #FF4D4D;
  background: rgba(255,77,77,0.1);
}
.modal-body {
  padding: 20px;
  color: rgba(234,234,234,0.75);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Chart box 公用 ===== */
.chart-box {
  position: relative;
}

/* ===== 弹窗内详情样式 ===== */
.detail-desc {
  color: rgba(234,234,234,0.6);
  font-size: 12px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(0,228,255,0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(0,228,255,0.3);
  line-height: 1.6;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,228,255,0.06);
  transition: background 0.2s ease;
}
.detail-row:hover {
  background: rgba(0,228,255,0.04);
}
.detail-label {
  color: rgba(234,234,234,0.55);
  font-size: 12px;
}
.detail-value {
  color: #00E4FF;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.detail-value small {
  color: rgba(234,234,234,0.45);
  font-weight: 400;
  font-size: 11px;
  margin-left: 2px;
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.detail-table th {
  text-align: left;
  padding: 8px 10px;
  color: rgba(0,228,255,0.8);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,228,255,0.15);
  background: rgba(0,228,255,0.04);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.detail-table td {
  padding: 7px 10px;
  color: rgba(234,234,234,0.7);
  border-bottom: 1px solid rgba(0,228,255,0.04);
}
.detail-table tr:hover td {
  background: rgba(0,228,255,0.04);
}
.detail-table tr:nth-child(even) td {
  background: rgba(0,228,255,0.015);
}

/* ===== 面板标题可点击提示 ===== */
.panel-title[style*="cursor"] {
  transition: all 0.2s ease;
}
.panel-title:hover {
  color: #00E4FF;
}

/* ===== KPI 卡片可点击提示 ===== */
.kpi-card[style*="cursor"]:hover {
  transform: translateY(-2px);
  border-color: rgba(0,228,255,0.4);
  box-shadow: 0 4px 20px rgba(0,228,255,0.15), inset 0 0 20px rgba(0,228,255,0.05);
}
