/* WMS 云服务运营驾驶舱 —— 深色大屏 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #01050c;
  overflow: hidden;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", sans-serif;
  color: #cfe4f8;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background:
    radial-gradient(1300px 560px at 50% -12%, rgba(25, 118, 220, .30), transparent 62%),
    radial-gradient(900px 520px at 92% 112%, rgba(18, 92, 190, .20), transparent 60%),
    radial-gradient(800px 460px at 4% 108%, rgba(16, 80, 168, .16), transparent 60%),
    #040d1d;
}
.screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(64, 140, 230, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 140, 230, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(0, 2, 8, .55) 100%);
}

/* ---------------- 顶栏 ---------------- */
.hd {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; padding: 6px 26px 0;
}
.hd::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 178, 255, .55) 22%, rgba(120, 220, 255, .8) 50%, rgba(86, 178, 255, .55) 78%, transparent);
  box-shadow: 0 0 12px rgba(64, 176, 255, .45);
}
.hd-side { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #8fb9dd; letter-spacing: .5px; }
.hd-left i { width: 4px; height: 4px; border-radius: 50%; background: #3f9be0; box-shadow: 0 0 6px #3f9be0; }
.hd-right { justify-content: flex-end; gap: 18px; }
.clock { display: flex; align-items: baseline; gap: 10px; }
.clock em { font-style: normal; font-size: 12.5px; color: #7fa6c9; letter-spacing: .4px; }
.clock b { font-size: 16px; font-weight: 600; color: #e8f6ff; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.hd-tag {
  padding: 4px 12px; border: 1px solid rgba(60, 168, 255, .35); border-radius: 3px;
  font-size: 12px; color: #6fc7ff; letter-spacing: 1.5px;
  background: linear-gradient(180deg, rgba(26, 96, 180, .30), rgba(10, 44, 90, .30));
  box-shadow: inset 0 0 14px rgba(60, 160, 255, .18);
}
.hd-title { position: relative; display: flex; align-items: center; gap: 26px; }
.hd-title h1 {
  font-size: 40px; font-weight: 800; letter-spacing: 7px; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 6%, #cdefff 42%, #59c4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(64, 178, 255, .55));
}
.title-wing { position: relative; width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(90, 200, 255, .85));
}
.title-wing::after { content: ""; position: absolute; right: 0; top: -3px; width: 40px; height: 8px;
  border-top: 2px solid rgba(120, 220, 255, .85); transform: skewX(-38deg);
}
.title-wing.right { transform: scaleX(-1); }

/* ---------------- KPI ---------------- */
.kpis {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  padding: 14px 22px 0; height: 122px;
}
.kpi {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; height: 96px;
  background: linear-gradient(165deg, rgba(16, 52, 100, .55), rgba(6, 22, 44, .72));
  border: 1px solid rgba(62, 140, 235, .28); border-radius: 4px;
  box-shadow: inset 0 0 26px rgba(20, 90, 180, .16);
}
.kpi::before, .kpi::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: rgba(90, 210, 255, .9); border-style: solid; }
.kpi::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.kpi::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.kpi-ico {
  flex: 0 0 54px; width: 54px; height: 54px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #7fd8ff;
  background: radial-gradient(circle at 50% 40%, rgba(44, 156, 255, .35), rgba(14, 56, 110, .25) 68%);
  border: 1px solid rgba(80, 180, 255, .35);
  box-shadow: inset 0 0 16px rgba(60, 170, 255, .25), 0 0 18px rgba(40, 140, 255, .18);
}
.kpi-ico svg { width: 28px; height: 28px; }
.kpi-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi-label { font-size: 13px; color: #93b4d4; letter-spacing: .5px; }
.kpi-value { font-size: 30px; line-height: 1.05; font-weight: 700; color: #f2fbff; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(90, 200, 255, .35); }
.kpi-value small { font-size: 14px; font-weight: 500; color: #a9cbe6; margin-left: 3px; }
.kpi-sub { font-size: 11.5px; color: #7598ba; }
.kpi-sub em { font-style: normal; color: #35e0a1; font-weight: 600; }

/* ---------------- 面板栅格 ---------------- */
.grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 460px 1fr 500px; gap: 16px;
  padding: 14px 22px 18px; height: 878px;
}
.col { display: grid; gap: 16px; min-height: 0; }
.col-left { grid-template-rows: 1.25fr 1fr 1.2fr; }
.col-center { grid-template-rows: 1fr 326px; }
.col-right { grid-template-rows: repeat(3, 1fr); }
.panel {
  position: relative; min-height: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(10, 32, 62, .66), rgba(5, 17, 36, .58));
  border: 1px solid rgba(56, 136, 235, .24); border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(16, 70, 150, .14);
  display: flex; flex-direction: column;
}
.panel::before, .panel::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: rgba(86, 198, 255, .8); border-style: solid; pointer-events: none; }
.panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

.panel-head { display: flex; align-items: center; gap: 10px; height: 26px; flex: 0 0 auto; }
.panel-head h3 {
  position: relative; padding-left: 12px;
  font-size: 15.5px; font-weight: 700; color: #d9efff; letter-spacing: 1px; white-space: nowrap;
}
.panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 1px;
  background: linear-gradient(180deg, #62d6ff, #1f7fd8);
  box-shadow: 0 0 8px rgba(70, 190, 255, .7);
}
.panel-head .sp { flex: 1; }
.panel-head .tip { font-size: 11.5px; color: #6d90b3; letter-spacing: .4px; }
.panel-head .tip b { color: #8fd2ff; font-weight: 600; }
.panel-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }

/* ---------------- 地区排行 ---------------- */
.rlist { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding-top: 6px; }
.rrow { display: flex; align-items: center; gap: 10px; height: 23px; }
.rrow .name { flex: 0 0 38px; font-size: 12.5px; color: #a7c6e2; }
.rrow .track { position: relative; flex: 1; height: 9px; background: rgba(40, 90, 150, .22); border-radius: 2px; overflow: hidden; }
.rrow .track i {
  position: absolute; inset: 0 auto 0 0; border-radius: 2px;
  background: linear-gradient(90deg, #1462c9 0%, #2a9df4 55%, #5fdcff 100%);
  box-shadow: 0 0 10px rgba(70, 180, 255, .45);
}
.rrow .track i::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: #bdefff; opacity: .85; }
.rrow .val { flex: 0 0 34px; text-align: right; font-size: 12.5px; font-weight: 600; color: #cfeaff; font-variant-numeric: tabular-nums; }

/* ---------------- 订阅套餐 ---------------- */
.plan-wrap { display: flex; align-items: center; gap: 26px; padding: 2px 6px 0 4px; }
.donut { position: relative; flex: 0 0 138px; width: 138px; height: 138px; border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(60, 190, 255, .28)); }
.donut::after { content: ""; position: absolute; inset: 23px; border-radius: 50%;
  background: #081a33; box-shadow: inset 0 0 16px rgba(40, 140, 255, .30); }
.donut .dc { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.donut .dc b { font-size: 26px; font-weight: 700; color: #eefbff; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(90, 200, 255, .45); }
.donut .dc span { font-size: 11px; color: #84a7c7; }
.lglist { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lgrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #a9c8e2; }
.lgrow i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; box-shadow: 0 0 7px currentColor; }
.lgrow span { flex: 1; }
.lgrow b { color: #dff2ff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 行业雷达 ---------------- */
.radar-box { flex: 1; display: flex; align-items: center; justify-content: center; }
.radar-box svg { width: 100%; height: 100%; }

/* ---------------- 地图 ---------------- */
.panel-map { padding-bottom: 10px; }
.map-total { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8fb3d5; }
.map-total svg { width: 14px; height: 14px; color: #4fd4ff; }
.map-total b { font-size: 16px; font-weight: 700; color: #ffe28a; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.map-body { position: relative; flex: 1; min-height: 0; margin-top: 2px; }
.map-body svg.map { width: 100%; height: 100%; display: block; }
.map-side {
  position: absolute; right: 8px; top: 10px; width: 132px;
  padding: 10px 12px; border: 1px solid rgba(60, 150, 240, .22); border-radius: 3px;
  background: linear-gradient(180deg, rgba(10, 34, 66, .78), rgba(5, 18, 38, .66));
  box-shadow: inset 0 0 18px rgba(20, 90, 180, .18);
}
.map-side .ms-row { display: flex; justify-content: space-between; align-items: center; height: 21px; font-size: 12px; color: #9dbfdd; }
.map-side .ms-row b { color: #6fd9ff; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-inset {
  position: absolute; right: 10px; bottom: 8px; width: 104px; height: 92px;
  border: 1px solid rgba(60, 150, 240, .28); border-radius: 3px;
  background: rgba(5, 18, 38, .72); overflow: hidden;
}
.map-inset svg { width: 100%; height: 76px; display: block; }
.map-inset span { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 10.5px; color: #7fa9cc; letter-spacing: 1px; }
.map-legend {
  position: absolute; left: 10px; bottom: 8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #8fb3d5;
}
.map-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ee2ff; box-shadow: 0 0 8px #4ee2ff; margin-right: 2px; }
.map-legend .curve { width: 22px; height: 8px; margin-left: 16px;
  border-top: 2px solid #e8b34a; border-radius: 50%; transform: rotate(-8deg); opacity: .9; }

.city-label { font-size: 12px; fill: #cfe9ff; letter-spacing: .5px; paint-order: stroke; stroke: rgba(3, 12, 26, .85); stroke-width: 3px; }
.city-label.hub { fill: #ffe08a; font-size: 13px; font-weight: 700; }
.flowline { fill: none; stroke: rgba(255, 206, 102, .92); stroke-width: 1.5; stroke-dasharray: 5 6; animation: dashflow 2.6s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 190, 70, .55)); }
.flowline-glow { fill: none; stroke: rgba(255, 196, 86, .18); stroke-width: 5; filter: blur(2px); }
.flowdot { fill: #ffe3a3; filter: drop-shadow(0 0 5px rgba(255, 204, 100, .9)); }
@keyframes dashflow { to { stroke-dashoffset: -44; } }
.prov {
  fill: url(#mapFill);
  stroke: rgba(92, 194, 255, .48);
  stroke-width: .85;
  filter: drop-shadow(0 0 2px rgba(58, 158, 255, .35));
  transition: fill .2s, stroke .2s;
}
.prov:hover { fill: rgba(38, 122, 214, .70); stroke: rgba(120, 224, 255, .85); }

/* ---------------- 趋势 ---------------- */
.trend-body { flex: 1; min-height: 0; }
.trend-body svg { width: 100%; height: 100%; display: block; }
.trend-legend { position: absolute; top: 0; right: 4px; display: flex; gap: 16px; font-size: 11.5px; color: #93b6d6; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 9px; height: 9px; border-radius: 2px; }
.trend-legend i.line { height: 3px; border-radius: 2px; width: 14px; }

/* ---------------- 健康度 ---------------- */
.health-wrap { display: flex; align-items: center; gap: 6px; flex: 1; padding-top: 2px; }
.gauge-box { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.gauge-box svg { width: 100%; height: 100%; }
.health-lg { flex: 0 0 132px; display: flex; flex-direction: column; gap: 16px; padding-right: 4px; }
.hlg { display: flex; flex-direction: column; gap: 5px; }
.hlg .t { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #9dbedd; }
.hlg .t i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.hlg .t b { margin-left: auto; color: #eaf8ff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hlg .bar { height: 3px; background: rgba(50, 100, 160, .3); border-radius: 2px; overflow: hidden; }
.hlg .bar i { display: block; height: 100%; border-radius: 2px; }

/* ---------------- 仓库使用率 ---------------- */
.ulist { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding-top: 4px; }
.urow { display: flex; align-items: center; gap: 8px; height: 23px; }
.urow .rank { flex: 0 0 15px; height: 15px; line-height: 15px; text-align: center; font-size: 10.5px; font-weight: 700; color: #0a1c33;
  background: linear-gradient(180deg, #7fd4ff, #2f8fe0); border-radius: 2px; }
.urow .rank.r1 { background: linear-gradient(180deg, #ffd873, #e89b2c); }
.urow .rank.r2 { background: linear-gradient(180deg, #9fe0ff, #3f9de6); }
.urow .rank.r3 { background: linear-gradient(180deg, #6fd2c4, #2b9e8f); }
.urow .name { flex: 0 0 62px; font-size: 12px; color: #a5c5e1; white-space: nowrap; }
.urow .track { flex: 1; height: 8px; background: rgba(40, 90, 150, .22); border-radius: 2px; overflow: hidden; }
.urow .track i { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #1462c9, #2aa3f2 60%, #63e0ff);
  box-shadow: 0 0 8px rgba(70, 180, 255, .4); }
.urow .val { flex: 0 0 38px; text-align: right; font-size: 12px; font-weight: 600; color: #cfeaff; font-variant-numeric: tabular-nums; }

/* ---------------- 告警 ---------------- */
.panel-head .more { font-size: 11.5px; color: #6da4d4; text-decoration: none; letter-spacing: .5px; }
.panel-head .more:hover { color: #9fdcff; }
.alert-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.alert-table th { font-weight: 500; color: #6f93b5; text-align: left; padding: 6px 4px; border-bottom: 1px solid rgba(60, 130, 210, .18); letter-spacing: .5px; }
.alert-table td { padding: 4px; border-bottom: 1px solid rgba(60, 130, 210, .10); color: #b6d2ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-table tr:last-child td { border-bottom: 0; }
.alert-table td.t { color: #86a9c9; font-variant-numeric: tabular-nums; width: 44px; }
.alert-table td.msg { max-width: 0; width: 100%; }
.lv { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 0 5px; height: 18px; border-radius: 2px; }
.lv i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.lv.urgent { color: #ff6b6b; background: rgba(255, 90, 90, .10); border: 1px solid rgba(255, 90, 90, .30); }
.lv.warn { color: #f5a83c; background: rgba(245, 160, 50, .10); border: 1px solid rgba(245, 160, 50, .30); }
.lv.info { color: #47b0ff; background: rgba(60, 160, 255, .10); border: 1px solid rgba(60, 160, 255, .30); }
