:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(10, 27, 42, 0.78);
  --panel-strong: rgba(13, 42, 61, 0.92);
  --line: rgba(120, 218, 255, 0.18);
  --text: #e9f7ff;
  --muted: #8da9b8;
  --cyan: #2fe6ff;
  --teal: #34f5bd;
  --amber: #ffb84d;
  --red: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 230, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(52, 245, 189, 0.11), transparent 24rem),
    linear-gradient(135deg, #050910 0%, var(--bg) 45%, #06151c 100%);
  color: var(--text);
  font-family:
    "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

#gridCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 40px clamp(28px, 5vw, 72px) 56px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  min-height: 196px;
  padding-top: 10px;
  overflow: hidden;
}

.hero__copy,
.hero__status {
  position: relative;
  z-index: 2;
}


.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(32px, 5.8vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  background: linear-gradient(92deg, #f2fbff 0%, #69e9ff 42%, #33f5c4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(47, 230, 255, 0.18);
}

h2 {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.25;
}

.hero__lead {
  max-width: 830px;
  margin-top: 22px;
  color: #b8d3de;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero__lead strong,
.share-copy strong {
  color: #ffffff;
  font-weight: 800;
}

.hero__status,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 27, 39, 0.7);
  color: #cbe8f2;
  font-size: 13px;
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(52, 245, 189, 0.12), 0 0 18px var(--teal);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.tabs {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 12;
  gap: 10px;
  margin-top: 18px;
  margin-inline: -8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(120, 218, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 17, 27, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 0 0 auto;
  position: relative;
  min-height: 44px;
  padding: 10px 18px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 27, 39, 0.72);
  color: #cbe8f2;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  padding-left: 34px;
  border-color: rgba(47, 230, 255, 0.85);
  background: rgba(47, 230, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(47, 230, 255, 0.18);
}

.tab-button.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--teal);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(52, 245, 189, 0.75));
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 30, 46, 0.92), rgba(6, 18, 29, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card {
  position: relative;
  min-height: 154px;
  padding: 22px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 255, 0.88), transparent);
}

.metric-card--primary {
  background: linear-gradient(145deg, rgba(18, 78, 94, 0.94), rgba(8, 28, 42, 0.82));
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card small span {
  display: inline;
}

.metric-card span {
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin: 12px 0 10px;
  background: linear-gradient(92deg, #ffffff 0%, #dff8ff 44%, #43eaff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  text-shadow: 0 0 18px rgba(47, 230, 255, 0.18);
}

.metric-card small {
  font-size: 13px;
  white-space: nowrap;
}

.overview {
  display: block;
  margin-top: 16px;
}

.trend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.map-panel {
  margin-top: 16px;
}

.map-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 27, 39, 0.7);
  color: #cbe8f2;
  font-size: 13px;
  white-space: nowrap;
}

.map-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.map-swatch--none {
  background: rgba(121, 150, 166, 0.36);
}

.map-swatch--unknown {
  background: rgba(69, 94, 108, 0.28);
}

.map-swatch--low {
  background: rgba(47, 230, 255, 0.42);
}

.map-swatch--mid {
  background: rgba(47, 230, 255, 0.78);
}

.map-swatch--high {
  background: #34f5bd;
  box-shadow: 0 0 16px rgba(52, 245, 189, 0.45);
}

.china-map {
  min-height: 560px;
  border: 1px solid rgba(120, 218, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 230, 255, 0.12), transparent 22rem),
    rgba(3, 17, 28, 0.36);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
}

.map-stage {
  min-width: 100%;
  min-height: 100%;
}

.china-map.is-panning {
  cursor: grabbing;
}

.china-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.province {
  stroke: rgba(2, 17, 28, 0.92);
  stroke-width: 1.2;
  transition: fill 160ms ease, filter 160ms ease, stroke 160ms ease;
}

.province-depth {
  stroke: rgba(1, 10, 17, 0.9);
  stroke-width: 1.1;
  opacity: 0.7;
}

.province-depth--unknown,
.province-depth--none {
  fill: rgba(8, 24, 34, 0.84);
}

.province-depth--low {
  fill: rgba(10, 68, 84, 0.86);
}

.province-depth--mid {
  fill: rgba(9, 92, 112, 0.88);
}

.province-depth--high {
  fill: rgba(8, 108, 86, 0.92);
}

.province--unknown {
  fill: #273947;
}

.province--none {
  fill: #596f7d;
}

.province--low {
  fill: #1d7f93;
}

.province--mid {
  fill: #25cde8;
}

.province--high {
  fill: #34f5bd;
  filter: drop-shadow(0 0 8px rgba(52, 245, 189, 0.32));
}

.province:hover,
.province:focus {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(52, 245, 189, 0.45));
  outline: none;
}

.map-tooltip {
  position: fixed;
  z-index: 20;
  max-width: min(280px, calc(100vw - 28px));
  padding: 9px 11px;
  border: 1px solid rgba(47, 230, 255, 0.38);
  border-radius: 8px;
  background: rgba(4, 20, 31, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 18px rgba(47, 230, 255, 0.16);
  color: #e9f7ff;
  font-size: 13px;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip.is-sticky {
  border-color: rgba(52, 245, 189, 0.62);
}

.map-loading,
.map-error {
  display: grid;
  min-height: 560px;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.map-error {
  color: #ffdda3;
}

.map-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.trend-rows,
.growth-list {
  display: grid;
  gap: 12px;
}

.combo-chart {
  width: 100%;
  min-height: 560px;
}

.combo-chart svg {
  display: block;
  width: 100%;
  height: 560px;
  overflow: visible;
}

.combo-grid {
  stroke: rgba(120, 218, 255, 0.13);
  stroke-width: 1;
}

.combo-axis,
.combo-month,
.combo-value {
  fill: #9bb9c8;
  font-size: 15px;
  font-weight: 700;
}

.combo-value {
  font-size: 21px;
  font-weight: 900;
}

.combo-month {
  fill: #eaf8ff;
  font-size: 17px;
}

.combo-value--wanwei {
  fill: #c8fbff;
}

.combo-bar--wanwei {
  fill: url("#unused");
  fill: #2fe6ff;
  filter: drop-shadow(0 0 10px rgba(47, 230, 255, 0.32));
}

.combo-bar--national {
  fill: rgba(141, 169, 184, 0.58);
}

.combo-bar.is-missing {
  fill: rgba(141, 169, 184, 0.13);
  stroke: rgba(141, 169, 184, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.combo-line {
  fill: none;
  stroke: #34f5bd;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(52, 245, 189, 0.5));
}

.combo-dot {
  fill: #34f5bd;
  stroke: #082233;
  stroke-width: 4;
}

.trend-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: center;
}

.trend-month {
  color: #eaf8ff;
  font-weight: 700;
}

.trend-bars {
  display: grid;
  gap: 6px;
}

.trend-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 169, 184, 0.14);
}

.trend-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.trend-line--wanwei i {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: 0 0 18px rgba(47, 230, 255, 0.34);
}

.trend-line--national i {
  background: rgba(141, 169, 184, 0.55);
}

.trend-line.is-missing {
  background: repeating-linear-gradient(
    90deg,
    rgba(141, 169, 184, 0.14),
    rgba(141, 169, 184, 0.14) 8px,
    rgba(141, 169, 184, 0.05) 8px,
    rgba(141, 169, 184, 0.05) 16px
  );
}

.trend-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.growth-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(120, 218, 255, 0.12);
}

.growth-item span {
  color: #eaf8ff;
  font-weight: 700;
}

.growth-item strong {
  color: var(--teal);
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
}

.growth-item small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.month-note {
  margin: -8px 0 16px;
  color: #ffdda3;
  font-size: 13px;
  line-height: 1.6;
}

.panel {
  padding: clamp(18px, 2.5vw, 28px);
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.chart-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 27, 39, 0.7);
  color: #cbe8f2;
  font-size: 13px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend__swatch {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.legend__swatch--wanwei {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: 0 0 12px rgba(47, 230, 255, 0.32);
}

.legend__swatch--national {
  background: rgba(141, 169, 184, 0.55);
}

.donut-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.donut {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
}

.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 26px rgba(47, 230, 255, 0.25));
}

.donut circle {
  fill: none;
  stroke-width: 14;
}

.donut__track {
  stroke: rgba(141, 169, 184, 0.17);
}

.donut__value {
  stroke: url("#unused");
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 900ms ease;
}

.donut__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut__label strong {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
}

.donut__label span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.share-copy {
  display: grid;
  gap: 14px;
  color: #d4ebf5;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.data-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 184, 77, 0.08);
  color: #ffdda3;
  font-size: 13px;
  line-height: 1.6;
}

.rank-list,
.bar-chart {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

.rank-name {
  color: #eaf8ff;
  font-weight: 700;
}

.track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 169, 184, 0.16);
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: 0 0 18px rgba(47, 230, 255, 0.34);
}

.rank-value {
  color: #fff;
  font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  text-align: right;
}

.chart-panel,
.table-panel {
  margin-top: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  min-height: 44px;
}

.bar-name {
  color: #dff5ff;
  font-weight: 700;
}

.bar-stack {
  display: grid;
  gap: 6px;
}

.bar-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 169, 184, 0.14);
}

.bar-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-line--wanwei span {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.bar-line--national span {
  background: rgba(141, 169, 184, 0.55);
}

.bar-line.is-missing {
  background: repeating-linear-gradient(
    90deg,
    rgba(141, 169, 184, 0.14),
    rgba(141, 169, 184, 0.14) 8px,
    rgba(141, 169, 184, 0.05) 8px,
    rgba(141, 169, 184, 0.05) 16px
  );
}

.bar-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(120, 218, 255, 0.12);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

td {
  color: #edf9ff;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(47, 230, 255, 0.12);
  color: #bdf5ff;
  font-size: 12px;
  font-weight: 700;
}

.badge--top {
  background: rgba(52, 245, 189, 0.13);
  color: #b9ffe9;
}

.badge--chance {
  background: rgba(255, 184, 77, 0.14);
  color: #ffdda3;
}

@media (max-width: 980px) {
  .trend-row {
    grid-template-columns: 88px minmax(0, 1fr) 150px;
  }

  .hero__status {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .hero,
  .overview,
  .donut-layout,
  .trend-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut {
    margin: 0 auto;
  }

}

@media (max-width: 620px) {
  .dashboard {
    padding: 14px 10px 22px;
  }

  .hero {
    gap: 10px;
    min-height: 0;
    padding-top: 0;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 6px;
    font-size: 12px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.12;
  }

  h2 {
    font-size: 18px;
  }

  .hero__lead {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero__status {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .tabs {
    gap: 8px;
    margin-top: 12px;
    margin-inline: -6px;
    padding: 6px;
  }

  .tab-button {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .tab-button.is-active {
    padding-left: 26px;
  }

  .tab-button.is-active::before {
    left: 10px;
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 7px;
  }

  .metric-card {
    min-height: 104px;
    padding: 14px 12px;
  }

  .metric-card span {
    font-size: 12px;
  }

  .metric-card strong {
    margin: 8px 0 6px;
    font-size: 24px;
  }

  .metric-card small {
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

  .overview,
  .chart-panel,
  .trend-grid {
    margin-top: 10px;
  }

  .panel {
    padding: 14px 12px;
  }

  .share-panel .panel__heading {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 10px;
  }

  .panel__heading {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .tag,
  .legend,
  .map-legend {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .map-tools {
    justify-content: flex-start;
    gap: 8px;
  }

  .donut-layout {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
  }

  .donut {
    width: 116px;
    margin: 0;
  }

  .donut circle {
    stroke-width: 12;
  }

  .donut__label strong {
    font-size: 28px;
  }

  .donut__label span {
    margin-top: 4px;
    font-size: 11px;
  }

  .share-copy {
    gap: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .chart-tools {
    justify-content: flex-start;
    gap: 8px;
  }

  .trend-row {
    grid-template-columns: 58px minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .trend-month,
  .trend-meta {
    font-size: 11px;
  }

  .trend-rows,
  .growth-list {
    gap: 7px;
  }

  .combo-chart {
    min-height: 250px;
  }

  .combo-chart svg {
    height: auto;
  }

  .combo-axis,
  .combo-value {
    font-size: 11px;
  }

  .combo-value {
    font-size: 15px;
  }

  .combo-month {
    font-size: 12px;
  }

  .combo-line {
    stroke-width: 3;
  }

  .china-map {
    min-height: 260px;
  }

  .china-map svg {
    height: 260px;
  }

  .map-note {
    font-size: 12px;
  }

  .trend-line {
    height: 7px;
  }

  .growth-item {
    padding: 7px 0;
  }

  .growth-item strong {
    font-size: 20px;
  }

  .month-note {
    margin: -4px 0 10px;
    font-size: 12px;
  }

  .legend {
    gap: 10px;
  }

  .legend__swatch {
    width: 14px;
    height: 7px;
  }

  .rank-item,
  .bar-row {
    grid-template-columns: 42px minmax(0, 1fr) 72px;
    gap: 8px;
  }

  .bar-row {
    min-height: 30px;
  }

  .bar-chart {
    gap: 7px;
  }

  .bar-name {
    font-size: 13px;
  }

  .bar-stack {
    gap: 4px;
  }

  .bar-line {
    height: 7px;
  }

  .bar-meta {
    font-size: 11px;
  }

  .table-panel {
    display: none;
  }
}
