/* ================= 主页数据大屏 ================= */
.home-dash { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 14px 16px 18px; border: 1px solid #14456b; border-radius: 12px; color: #cfe8ff; background: radial-gradient(1200px 600px at 50% 0%, rgba(14,116,144,.20), transparent 62%), linear-gradient(180deg, #061426 0%, #04101d 100%); }
.home-dash::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(34,211,238,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.05) 1px, transparent 1px); background-size: 36px 36px; opacity: .5; }
.home-dash > * { position: relative; z-index: 1; }
.dash-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 4px 2px 12px; border-bottom: 1px solid #123a5a; position: relative; z-index: 10; }
.dash-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #67e8f9; letter-spacing: 1px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.dash-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 5px; color: #e6f7ff; white-space: nowrap; text-shadow: 0 0 18px rgba(34,211,238,.55); }
.dash-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; color: #7dd3fc; }
.dash-clock { font-family: Consolas, 'Courier New', monospace; letter-spacing: .5px; }
.dash-range { padding: 4px 9px; border: 1px solid #1b4a6b; border-radius: 5px; background: rgba(9,32,54,.8); color: #9ad7ef; white-space: nowrap; }
.dash-icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(9,32,54,.85); border: 1px solid #1b4a6b; border-radius: 7px; color: #67e8f9; cursor: pointer; transition: all .18s; }
.dash-icon-btn svg { width: 16px; height: 16px; }
.dash-icon-btn:hover { border-color: #22d3ee; color: #a5f3fc; box-shadow: 0 0 12px rgba(34,211,238,.4); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0; }
.kpi-card { position: relative; overflow: hidden; padding: 10px 14px; border: 1px solid #14456b; border-radius: 7px; background: linear-gradient(180deg, rgba(12,42,72,.75), rgba(7,24,42,.85)); }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, #22d3ee, #0e7490); box-shadow: 0 0 12px rgba(34,211,238,.7); }
.kpi-label { font-size: 12px; color: #7aa7c7; letter-spacing: 1px; }
.kpi-value { font-family: Consolas, 'Courier New', monospace; font-size: 26px; font-weight: 700; line-height: 1.25; color: #5eead4; text-shadow: 0 0 14px rgba(94,234,212,.55); }
.kpi-sub { font-size: 11px; color: #4d7896; }
.dash-grid { display: grid; grid-template-columns: 0.9fr 2.7fr 0.9fr; gap: 12px; align-items: stretch; flex: 1; min-height: 480px; }
.dash-map-panel { grid-column: 2; }
.dash-panel { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 10px 12px 12px; border: 1px solid #14456b; border-radius: 7px; background: linear-gradient(180deg, rgba(9,32,54,.82), rgba(5,18,34,.9)); }
.dash-panel::before, .dash-panel::after { content: ''; position: absolute; width: 14px; height: 14px; opacity: .65; pointer-events: none; }
.dash-panel::before { left: -1px; top: -1px; border-left: 2px solid #22d3ee; border-top: 2px solid #22d3ee; border-radius: 7px 0 0 0; }
.dash-panel::after { right: -1px; bottom: -1px; border-right: 2px solid #22d3ee; border-bottom: 2px solid #22d3ee; border-radius: 0 0 7px 0; }
.dash-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(27,74,107,.55); font-size: 13px; color: #67e8f9; letter-spacing: 1px; }
.panel-tag { padding: 1px 5px; border: 1px solid rgba(34,211,238,.45); border-radius: 3px; font-style: normal; font-size: 10px; color: #22d3ee; letter-spacing: 1px; }
.dash-table-wrap { position: relative; flex: 1; overflow: auto; min-height: 0; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-table th { position: sticky; top: 0; padding: 6px 8px; text-align: left; white-space: nowrap; color: #5b93b4; font-weight: 500; background: #081d33; }
.dash-table td { padding: 7px 8px; white-space: nowrap; border-bottom: 1px solid rgba(27,74,107,.35); color: #9dc6dd; }
.dash-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3f6f92; font-size: 13px; pointer-events: none; }
.dash-table .td-income { color: #34d399; font-weight: 600; }
.dash-table .live-ok { color: #34d399; }
.dash-table .live-fail { color: #f87171; }
.china-map { position: relative; flex: 1; width: 100%; min-height: 0; }
.china-map::after { content: ''; position: absolute; left: 0; right: 0; top: -80px; height: 70px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(34,211,238,.10), transparent); animation: mapScan 6s linear infinite; }
@keyframes mapScan { 0% { top: -80px; } 100% { top: 100%; } }
.map-legend { display: flex; gap: 14px; padding-top: 6px; font-size: 11px; color: #4d7896; }
.map-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }
.dot-c { background: #67e8f9; box-shadow: 0 0 6px #67e8f9; }
.dot-y { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-map-panel { grid-column: auto; }
  .china-map { min-height: 420px; }
}
@media (max-width: 768px) {
  .dash-top { grid-template-columns: 1fr; text-align: center; }
  .dash-meta { justify-content: center; flex-wrap: wrap; }
  .dash-title { font-size: 16px; letter-spacing: 2px; white-space: normal; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
