/* Nidoport 动态可视化组件样式（6 套动态图，零外链、严格 CSP、浅/深色与减少动效适配） */
:root {
  --np-c1: #0066cc;
  --np-c1-soft: rgba(0, 102, 204, 0.14);
  --np-c2: #0f9d74;
  --np-c2-soft: rgba(15, 157, 116, 0.14);
  --np-c3: #e07a16;
  --np-c3-soft: rgba(224, 122, 22, 0.15);
  --np-c4: #5856d6;
  --np-c5: #d9385a;
  --np-surface: var(--card, #ffffff);
  --np-surface-alt: var(--bg-alt, #f5f5f7);
  --np-ink: var(--text, #1d1d1f);
  --np-ink-2: var(--text-2, #424245);
  --np-muted: var(--muted, #6e6e73);
  --np-border: var(--line, rgba(0, 0, 0, 0.09));
  --np-border-strong: var(--line-strong, #d2d2d7);
  --np-track: rgba(29, 29, 31, 0.08);
  --np-grid: rgba(29, 29, 31, 0.07);
  --np-tooltip-bg: rgba(255, 255, 255, 0.94);
  --np-tooltip-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.18);
  --np-heat-0: rgba(29, 29, 31, 0.06);
  --np-heat-1: rgba(0, 102, 204, 0.22);
  --np-heat-2: rgba(0, 102, 204, 0.45);
  --np-heat-3: rgba(0, 102, 204, 0.72);
  --np-heat-4: #0066cc;
  --np-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --np-spring: cubic-bezier(0.22, 1.24, 0.36, 1);
  --np-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --np-c1: #2997ff;
    --np-c1-soft: rgba(41, 151, 255, 0.18);
    --np-c2: #30d158;
    --np-c2-soft: rgba(48, 209, 88, 0.18);
    --np-c3: #ff9f0a;
    --np-c3-soft: rgba(255, 159, 10, 0.18);
    --np-c4: #7d7aff;
    --np-c5: #ff4f79;
    --np-surface: var(--card, #1c1c1e);
    --np-surface-alt: var(--bg-alt, #111113);
    --np-ink: var(--text, #f5f5f7);
    --np-ink-2: var(--text-2, #c7c7cc);
    --np-muted: var(--muted, #98989d);
    --np-border: var(--line, rgba(255, 255, 255, 0.12));
    --np-border-strong: var(--line-strong, #3a3a3c);
    --np-track: rgba(255, 255, 255, 0.11);
    --np-grid: rgba(255, 255, 255, 0.09);
    --np-tooltip-bg: rgba(28, 28, 30, 0.94);
    --np-tooltip-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.55);
    --np-heat-0: rgba(255, 255, 255, 0.07);
    --np-heat-1: rgba(41, 151, 255, 0.24);
    --np-heat-2: rgba(41, 151, 255, 0.48);
    --np-heat-3: rgba(41, 151, 255, 0.74);
    --np-heat-4: #2997ff;
  }
}

:root[data-theme="dark"] {
  --np-c1: #2997ff;
  --np-c1-soft: rgba(41, 151, 255, 0.18);
  --np-c2: #30d158;
  --np-c2-soft: rgba(48, 209, 88, 0.18);
  --np-c3: #ff9f0a;
  --np-c3-soft: rgba(255, 159, 10, 0.18);
  --np-c4: #7d7aff;
  --np-c5: #ff4f79;
  --np-surface: var(--card, #1c1c1e);
  --np-surface-alt: var(--bg-alt, #111113);
  --np-ink: var(--text, #f5f5f7);
  --np-ink-2: var(--text-2, #c7c7cc);
  --np-muted: var(--muted, #98989d);
  --np-border: var(--line, rgba(255, 255, 255, 0.12));
  --np-border-strong: var(--line-strong, #3a3a3c);
  --np-track: rgba(255, 255, 255, 0.11);
  --np-grid: rgba(255, 255, 255, 0.09);
  --np-tooltip-bg: rgba(28, 28, 30, 0.94);
  --np-tooltip-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.55);
  --np-heat-0: rgba(255, 255, 255, 0.07);
  --np-heat-1: rgba(41, 151, 255, 0.24);
  --np-heat-2: rgba(41, 151, 255, 0.48);
  --np-heat-3: rgba(41, 151, 255, 0.74);
  --np-heat-4: #2997ff;
}

.np-svg-ns {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 通用网格与卡片容器 */
.np-charts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.np-charts-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.np-chart-card {
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
}

.np-charts-grid > .span-2,
.np-chart-card.span-2 {
  grid-column: 1 / -1;
}

.np-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.np-chart-titles {
  min-width: 0;
}

.np-chart-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--np-ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.np-chart-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--np-muted);
  line-height: 1.4;
}

.np-chart-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.np-chart-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--np-c1);
  background: var(--np-c1-soft);
  white-space: nowrap;
}

.np-chart-tag.warn {
  color: var(--np-c3);
  background: var(--np-c3-soft);
}

.np-chart-tag.ok {
  color: var(--np-c2);
  background: var(--np-c2-soft);
}

.np-pill-btn {
  appearance: none;
  border: 1px solid var(--np-border-strong);
  background: var(--np-surface);
  color: var(--np-ink-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.35;
  transition: border-color 0.18s var(--np-ease), background 0.18s var(--np-ease), color 0.18s var(--np-ease);
}

.np-pill-btn:hover {
  border-color: var(--np-c1);
  color: var(--np-c1);
  background: var(--np-surface);
}

.np-pill-btn[aria-pressed="true"],
.np-pill-btn.active {
  background: var(--np-c1);
  border-color: var(--np-c1);
  color: #ffffff;
}

.np-seg-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.np-chart-body {
  position: relative;
  min-width: 0;
}

.np-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

.np-svg-label {
  fill: var(--np-muted);
  font-size: 11px;
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
}

.np-svg-strong {
  fill: var(--np-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.np-svg-grid {
  stroke: var(--np-grid);
  stroke-width: 1;
}

.np-svg-track {
  stroke: var(--np-track);
  fill: none;
}

.np-c-0 { color: var(--np-c1); }
.np-c-1 { color: var(--np-c2); }
.np-c-2 { color: var(--np-c3); }
.np-c-3 { color: var(--np-c4); }
.np-c-4 { color: var(--np-c5); }

.np-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.np-dot-0 { background: var(--np-c1); }
.np-dot-1 { background: var(--np-c2); }
.np-dot-2 { background: var(--np-c3); }
.np-dot-3 { background: var(--np-c4); }
.np-dot-4 { background: var(--np-c5); }

/* ---- 1. 轨道分配环 ---- */
.np-ring-layout {
  display: grid;
  grid-template-columns: minmax(150px, 196px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.np-ring-stage {
  position: relative;
  width: 100%;
  max-width: 196px;
  margin: 0 auto;
}

.np-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 18px;
}

.np-ring-pct {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--np-ink);
  font-variant-numeric: tabular-nums;
}

.np-ring-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--np-ink-2);
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-ring-val {
  margin-top: 2px;
  font-size: 11px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
}

.np-ring-arc {
  fill: none;
  stroke-linecap: round;
  cursor: pointer;
}

.np-ring-halo {
  fill: none;
  stroke-linecap: round;
  pointer-events: none;
}

.np-ring-orbit {
  fill: none;
  stroke: var(--np-border);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.np-ring-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.np-ring-leg-btn {
  appearance: none;
  width: 100%;
  border: 1px solid var(--np-border);
  background: var(--np-surface-alt);
  color: var(--np-ink);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--np-ease), background 0.2s var(--np-ease), transform 0.2s var(--np-ease);
}

.np-ring-leg-btn:hover {
  border-color: var(--np-c1);
  background: var(--np-surface);
}

.np-ring-leg-btn.active {
  background: var(--np-surface);
  border-color: var(--np-c1);
  box-shadow: 0 4px 14px -6px rgba(0, 102, 204, 0.28);
}

.np-ring-leg-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.np-ring-leg-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.np-ring-leg-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--np-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-ring-leg-sub {
  font-size: 11px;
  color: var(--np-muted);
  font-family: var(--np-mono);
}

.np-ring-leg-pct {
  font-family: var(--np-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---- 2. 流量曲线 ---- */
.np-curve-stage {
  position: relative;
  touch-action: none;
  cursor: ew-resize;
  border-radius: 12px;
  padding-top: 6px;
}

.np-curve-line {
  fill: none;
  stroke: var(--np-c1);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.np-curve-dash {
  stroke: var(--np-c1);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
  opacity: 0.72;
}

.np-curve-probe-halo {
  fill: var(--np-c1);
  opacity: 0.2;
}

.np-curve-probe-dot {
  fill: var(--np-surface);
  stroke: var(--np-c1);
  stroke-width: 3;
}

.np-curve-tooltip {
  position: absolute;
  top: 4px;
  left: 0;
  transform: translateX(-50%);
  background: var(--np-tooltip-bg);
  border: 1px solid var(--np-border-strong);
  border-radius: 11px;
  padding: 6px 11px;
  box-shadow: var(--np-tooltip-shadow);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.np-curve-tt-day {
  font-size: 11px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  line-height: 1.25;
}

.np-curve-tt-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--np-ink);
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.np-curve-tt-sub {
  font-size: 11px;
  color: var(--np-muted);
  font-family: var(--np-mono);
  line-height: 1.25;
}

.np-curve-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--np-muted);
  margin-top: 6px;
}

/* ---- 3. 弹性排序柱 ---- */
.np-bars-stage {
  position: relative;
}

.np-bar-rect {
  rx: 8;
  ry: 8;
}

.np-bar-val {
  fill: var(--np-ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.np-bar-day {
  fill: var(--np-ink-2);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.np-bar-rank {
  fill: var(--np-muted);
  font-size: 10px;
  font-family: var(--np-mono);
  text-anchor: middle;
}

.np-bars-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  color: var(--np-muted);
}

/* ---- 4. 双针目标仪表 ---- */
.np-gauge-stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.np-gauge-tick {
  stroke-linecap: round;
}

.np-gauge-arc {
  fill: none;
  stroke-linecap: round;
}

.np-gauge-target-needle {
  stroke: var(--np-c3);
  stroke-width: 2.2;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
}

.np-gauge-target-tip {
  fill: var(--np-c3);
}

.np-gauge-actual-needle {
  fill: var(--np-ink);
}

.np-gauge-hub-outer {
  fill: var(--np-surface);
  stroke: var(--np-c1);
  stroke-width: 3;
}

.np-gauge-hub-inner {
  fill: var(--np-c1);
}

.np-gauge-pct {
  fill: var(--np-ink);
  font-size: 32px;
  font-weight: 800;
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.np-gauge-meta {
  fill: var(--np-muted);
  font-size: 12px;
  text-anchor: middle;
}

.np-gauge-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--np-muted);
  margin-top: 2px;
}

.np-gauge-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.np-gauge-line-chip {
  width: 14px;
  height: 3px;
  border-radius: 99px;
  display: inline-block;
}

.np-gauge-line-chip.actual {
  background: var(--np-ink);
}

.np-gauge-line-chip.target {
  background: var(--np-c3);
}

/* ---- 5. 活动热力矩阵（28 格波纹亮起 + 四周让位 + 中心详情卡） ---- */
.np-heat-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-heat-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 2px;
}

.np-heat-wk {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--np-muted);
}

.np-heat-stage {
  position: relative;
  padding: 16px 24px;
  min-height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}

.np-heat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.np-heat-cell {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  aspect-ratio: 1.25 / 1;
  min-height: 38px;
  background: var(--np-heat-0);
  color: var(--np-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-family: var(--np-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.46s var(--np-spring),
    opacity 0.36s var(--np-ease),
    background 0.28s var(--np-ease),
    border-color 0.22s var(--np-ease),
    box-shadow 0.22s var(--np-ease);
}

.np-heat-cell:hover {
  border-color: var(--np-c1);
}

.np-heat-cell.lvl-0 { background: var(--np-heat-0); color: var(--np-muted); }
.np-heat-cell.lvl-1 { background: var(--np-heat-1); color: var(--np-ink); }
.np-heat-cell.lvl-2 { background: var(--np-heat-2); color: var(--np-ink); }
.np-heat-cell.lvl-3 { background: var(--np-heat-3); color: #ffffff; }
.np-heat-cell.lvl-4 { background: var(--np-heat-4); color: #ffffff; }

.np-heat-cell.unlit {
  opacity: 0.16;
  transform: scale(0.76);
}

.np-heat-cell.selected {
  border-color: var(--np-c3);
  box-shadow: 0 0 0 2px var(--np-c3-soft);
}

.np-heat-detail {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(260px, calc(100% - 24px));
  background: var(--np-tooltip-bg);
  border: 1px solid var(--np-border-strong);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: var(--np-tooltip-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: transform 0.42s var(--np-spring), opacity 0.28s var(--np-ease);
}

.np-heat-detail.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.np-heat-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.np-heat-detail-day {
  font-family: var(--np-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--np-ink);
}

.np-heat-detail-close {
  appearance: none;
  border: 0;
  background: var(--np-surface-alt);
  color: var(--np-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.np-heat-detail-close:hover {
  color: var(--np-ink);
  background: var(--np-border);
}

.np-heat-detail-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--np-c1);
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.np-heat-detail-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--np-ink-2);
}

.np-heat-detail-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 99px;
  background: var(--np-track);
  overflow: hidden;
}

.np-heat-detail-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--np-c1);
  width: 0;
}

.np-heat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--np-muted);
}

.np-heat-scale {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.np-heat-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.np-heat-swatch.lvl-0 { background: var(--np-heat-0); }
.np-heat-swatch.lvl-1 { background: var(--np-heat-1); }
.np-heat-swatch.lvl-2 { background: var(--np-heat-2); }
.np-heat-swatch.lvl-3 { background: var(--np-heat-3); }
.np-heat-swatch.lvl-4 { background: var(--np-heat-4); }

/* ---- 6. 流量占比条（三来源宽度与百分比同步，合计恒为 100%） ---- */
.np-share-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.np-share-track {
  width: 100%;
  height: 26px;
  border-radius: 13px;
  background: var(--np-track);
  display: flex;
  gap: 3px;
  padding: 3px;
  overflow: hidden;
}

.np-share-seg {
  height: 100%;
  border-radius: 10px;
  min-width: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.np-share-seg-0 { background: var(--np-c1); }
.np-share-seg-1 { background: var(--np-c2); }
.np-share-seg-2 { background: var(--np-c3); }

.np-share-seg-txt {
  color: #ffffff;
  font-family: var(--np-mono);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.np-share-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.np-share-item {
  border: 1px solid var(--np-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--np-surface-alt);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.np-share-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--np-ink-2);
}

.np-share-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-share-item-pct {
  font-family: var(--np-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--np-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.np-share-item-val {
  font-family: var(--np-mono);
  font-size: 11px;
  color: var(--np-muted);
}

.np-share-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--np-muted);
}

.np-share-sum {
  font-family: var(--np-mono);
  font-weight: 700;
  color: var(--np-c2);
}

/* 响应式断点 */
@media (max-width: 900px) {
  .np-charts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .np-chart-card {
    padding: 14px;
  }
  .np-ring-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .np-share-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .np-heat-grid,
  .np-heat-weekdays {
    gap: 5px;
  }
  .np-heat-cell {
    min-height: 32px;
    border-radius: 8px;
    font-size: 10px;
  }
}

/* 真实无数据空状态卡（零假图回退） */
.chart-empty-card {
  background: var(--np-surface);
  border: 1px dashed var(--np-border-strong);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
}

.chart-empty-card.span-2 {
  grid-column: 1 / -1;
}

.chart-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--np-ink);
}

.chart-empty-desc {
  margin: 0;
  font-size: 13px;
  color: var(--np-muted);
  max-width: 360px;
  line-height: 1.5;
}

.chart-empty-action {
  margin-top: 6px;
}

/* 减少动态效果：保持所有内容立即可见且零晃动 */
@media (prefers-reduced-motion: reduce) {
  .np-pill-btn,
  .np-ring-leg-btn,
  .np-heat-cell,
  .np-heat-detail {
    transition: none !important;
  }
}
