/* 数据大屏 v3 — 严格对齐 photo/后台3 */

/* 面板四角装饰 */
.viz-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(6, 32, 68, 0.72) 0%, rgba(4, 18, 42, 0.88) 100%) !important;
  border: 1px solid rgba(0, 168, 255, 0.35) !important;
  border-radius: 2px !important;
  box-shadow: inset 0 0 40px rgba(0, 100, 200, 0.06), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.viz-panel .viz-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #00d4ff;
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

.viz-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.viz-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.viz-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.viz-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.viz-panel-head {
  position: relative;
  justify-content: center;
  text-align: center;
  font-size: 14px !important;
  letter-spacing: 2px;
  padding: 10px 12px !important;
  background: linear-gradient(90deg, transparent, rgba(0, 120, 220, 0.2), transparent);
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 1.4;
}

.viz-panel-head::before {
  display: none;
}

.viz-panel-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.65), transparent);
}

/* 顶栏标题科技框 */
.viz-header {
  height: 78px !important;
  padding: 0 24px !important;
  background: linear-gradient(180deg, rgba(0, 35, 75, 0.85) 0%, rgba(0, 18, 40, 0.4) 100%) !important;
  border-bottom: 1px solid rgba(0, 200, 255, 0.35) !important;
}

.viz-title-wrap {
  position: relative;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  overflow: visible;
}

.viz-title-frame {
  position: relative;
  display: inline-block;
  padding: 8px 72px 10px;
  background:
    linear-gradient(180deg, rgba(0, 90, 180, 0.25) 0%, rgba(0, 40, 90, 0.08) 100%);
  border-left: 1px solid rgba(0, 200, 255, 0.5);
  border-right: 1px solid rgba(0, 200, 255, 0.5);
}

.viz-title-frame::before,
.viz-title-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff);
  transform: translateY(-50%);
}

.viz-title-frame::before {
  right: 100%;
  margin-right: 8px;
  background: linear-gradient(90deg, transparent, #00e5ff);
}

.viz-title-frame::after {
  left: 100%;
  margin-left: 8px;
  background: linear-gradient(90deg, #00e5ff, transparent);
}

.viz-title-wing {
  display: none;
}

.viz-title {
  font-size: clamp(17px, 2vw, 26px) !important;
  letter-spacing: clamp(1px, 0.25vw, 4px) !important;
  color: #e6f7ff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.35);
  filter: none !important;
  animation: none !important;
}

.viz-subtitle {
  letter-spacing: 3px !important;
  margin-top: 6px !important;
}

.viz-body {
  grid-template-columns: minmax(300px, 24%) minmax(0, 1fr) minmax(300px, 24%) !important;
  gap: 14px !important;
  padding: 10px 14px 12px !important;
}

.viz-center {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 200px;
  gap: 12px;
  min-height: 0;
}

/* 左侧 2x2 中枢 */
.viz-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
}

.viz-hub-item {
  position: relative;
  text-align: center;
  padding: 14px 8px 12px;
  background: linear-gradient(180deg, rgba(0, 55, 110, 0.5) 0%, rgba(0, 25, 55, 0.65) 100%);
  border: 1px solid rgba(0, 160, 255, 0.28);
  border-radius: 4px;
  overflow: hidden;
}

.viz-hub-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.viz-hub-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, 0.5), rgba(0, 80, 160, 0.3));
  border: 1px solid rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #e6f7ff;
}

.viz-hub-item .val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.viz-hub-item .lbl {
  font-size: 11px;
  color: rgba(160, 210, 255, 0.88);
  margin-top: 6px;
}

/* 平台资源 — 图标 + 发光底座 + 数值 */
.viz-resource-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 10px 10px;
  align-items: end;
}

.viz-resource-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.viz-resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(0, 240, 255, 0.35), rgba(0, 60, 120, 0.2));
  border: 1px solid rgba(0, 200, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 2px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.25);
}

.viz-resource-item .pedestal {
  width: 72%;
  height: 14px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.7) 0%, rgba(0, 120, 200, 0.25) 45%, transparent 72%);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.45), 0 4px 12px rgba(0, 150, 255, 0.3);
}

.viz-resource-item .val {
  font-size: 22px;
  font-weight: 700;
  color: #00e5ff;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.viz-resource-item .lbl {
  font-size: 10px;
  color: rgba(150, 200, 255, 0.85);
  margin-top: 4px;
  white-space: nowrap;
}

.viz-resource-item.sync .viz-resource-icon {
  font-size: 14px;
  font-weight: 700;
  color: #00e5ff;
}

/* 中间事件表 */
.viz-events-panel {
  min-height: 0;
}

.viz-events-panel .viz-panel-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.viz-events-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.viz-events-table th {
  background: rgba(0, 50, 100, 0.92) !important;
  font-size: 12px;
  padding: 11px 10px;
}

.viz-events-table td {
  font-size: 12px;
  padding: 10px;
}

.viz-empty-nfc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 16px;
  min-height: 200px;
}

.viz-nfc-illus {
  width: 88px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(0, 120, 220, 0.5), rgba(0, 50, 110, 0.8));
  border: 2px solid rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.35), inset 0 0 24px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.viz-nfc-illus::before {
  content: "NFC";
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
}

.viz-nfc-illus::after {
  content: "";
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 8px #00e5ff;
}

.viz-empty-nfc .title {
  font-size: 14px;
  color: rgba(200, 230, 255, 0.9);
  margin-bottom: 6px;
}

.viz-empty-nfc .sub {
  font-size: 12px;
  color: rgba(126, 180, 230, 0.65);
  margin-bottom: 14px;
}

.viz-empty-nfc button {
  padding: 6px 18px;
  font-size: 12px;
  color: #00e5ff;
  background: rgba(0, 70, 140, 0.5);
  border: 1px solid rgba(0, 200, 255, 0.5);
  border-radius: 4px;
  cursor: pointer;
}

.viz-table-pager {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 150, 255, 0.2);
  font-size: 12px;
  color: rgba(140, 190, 240, 0.85);
  background: rgba(0, 30, 60, 0.5);
}

.viz-table-pager select,
.viz-table-pager input {
  height: 26px;
  padding: 0 8px;
  background: rgba(0, 40, 80, 0.8);
  border: 1px solid rgba(0, 160, 255, 0.35);
  border-radius: 4px;
  color: #b8e0ff;
  font-size: 12px;
}

.viz-table-pager .pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.viz-table-pager .pg-btn {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid rgba(0, 160, 255, 0.35);
  background: rgba(0, 50, 100, 0.6);
  color: #b8e0ff;
  border-radius: 4px;
  cursor: default;
  font-size: 12px;
}

.viz-table-pager .pg-btn.active {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 100, 180, 0.5);
}

/* 底部双图 */
.viz-bottom-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 200px;
}

.viz-bottom-charts .viz-panel-body .viz-chart {
  min-height: 150px !important;
}

/* 商品排行表 */
.viz-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.viz-rank-table th {
  padding: 8px 10px;
  text-align: left;
  color: rgba(140, 190, 240, 0.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
  background: rgba(0, 45, 90, 0.6);
}

.viz-rank-table td {
  padding: 8px 10px;
  color: #b8e0ff;
  border-bottom: 1px solid rgba(0, 120, 200, 0.1);
}

.viz-rank-table .no {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(0, 90, 160, 0.5);
  color: #7ec8ff;
  font-weight: 700;
  font-size: 10px;
}

.viz-rank-table tr:nth-child(1) .no {
  background: linear-gradient(135deg, #ffd666, #d48806);
  color: #1a1a1a;
}

.viz-data-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px;
  color: rgba(126, 180, 230, 0.7);
  font-size: 12px;
  min-height: 100px;
}

.viz-data-empty .ico {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.45;
}

/* 右侧迷你事件表 */
.viz-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.viz-mini-table th {
  padding: 7px 6px;
  text-align: left;
  color: rgba(140, 190, 240, 0.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
  background: rgba(0, 45, 90, 0.55);
  white-space: nowrap;
}

.viz-mini-table td {
  padding: 7px 6px;
  color: #b8e0ff;
  border-bottom: 1px solid rgba(0, 120, 200, 0.08);
}

.viz-mini-table .ok {
  color: #52c41a;
}

.viz-col-right .viz-panel:nth-child(4) {
  flex: 1;
}

.viz-donut-box .viz-chart {
  min-height: 130px !important;
}

.viz-col-left .viz-panel:nth-child(2) .viz-chart {
  min-height: 130px !important;
}

.chart-empty-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(126, 180, 230, 0.65);
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}

.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 120px;
}

@media (max-width: 1600px) {
  .viz-resource-strip {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }

  .viz-body {
    grid-template-columns: 280px minmax(0, 1fr) 280px !important;
  }
}
