:root {
  /* 全站设计变量集中在这里，后续换品牌色或背景色优先改这一段。 */
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d7dee8;
  --blue: #2463eb;
  --green: #11845b;
  --red: #c2410c;
  --amber: #a96800;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px 28px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
}

.module-nav {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  overflow-x: auto;
}

.module-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.module-tab.active {
  border-color: var(--blue);
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.top-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.control {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.control span {
  color: var(--muted);
  font-size: 12px;
}

.control input,
.control select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.control input:focus,
.control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12);
}

.search-control {
  min-width: min(320px, 46vw);
  position: relative;
}

.compare-search-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbff;
}

.compare-search-row .search-control {
  width: min(360px, 100%);
}

.institution-suggest {
  display: none;
  position: absolute;
  z-index: 80;
  top: 26px;
  left: calc(100% + 12px);
  right: auto;
  width: min(420px, calc(100vw - 520px));
  height: min(520px, calc(100vh - 210px));
  overflow: hidden;
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.institution-suggest.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.suggest-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.suggest-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.suggest-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.suggest-close:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef5ff;
}

.suggest-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.suggest-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-item b {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.suggest-item:hover {
  background: #eef5ff;
  color: var(--blue);
}

.suggest-item.selected {
  background: #eef5ff;
  color: var(--blue);
}

.suggest-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard {
  padding: 20px 28px 32px;
}

.module-view {
  display: none;
}

.module-view.active {
  display: grid;
  gap: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.kpi,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi {
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border-top: 4px solid var(--blue);
}

.kpi.accent {
  border-top-color: var(--green);
}

.kpi span,
.kpi small {
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-head.compact {
  align-items: end;
}

.panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ghost-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
}

.ghost-button:hover {
  background: #f4f7ff;
}

.province-panel {
  display: grid;
  gap: 12px;
}

.province-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 180px;
}

.province-summary span {
  color: var(--muted);
  font-size: 12px;
}

.province-summary strong {
  font-size: 18px;
}

.province-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(360px, .75fr);
  gap: 16px;
  align-items: stretch;
}

.province-map-wrap {
  min-height: 620px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.province-map-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.province-tile {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 2;
  transition: opacity .15s ease, stroke .15s ease;
}

.province-tile:hover {
  opacity: .82;
  stroke: #172033;
}

.province-tile.active {
  stroke: #172033;
  stroke-width: 3;
}

.province-shape {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: opacity .15s ease, stroke .15s ease, stroke-width .15s ease;
}

.province-shape:hover {
  opacity: .86;
  stroke: #172033;
  stroke-width: 2;
}

.province-shape.active {
  stroke: #f59e0b;
  stroke-width: 2.2;
}

.province-shape-group {
  cursor: pointer;
}

.province-label {
  pointer-events: none;
  fill: #172033;
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.province-label.map-label {
  font-size: 13px;
}

.province-label.map-label.compact {
  font-size: 11px;
}

.province-value-label {
  pointer-events: none;
  fill: #475569;
  font-size: 10px;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}

.province-value-label.map-value-label {
  font-size: 11px;
}

.province-value-label.map-value-label.compact {
  font-size: 9px;
}

.province-legend text {
  fill: #53627a;
  font-size: 11px;
  font-weight: 700;
}

.province-detail {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 620px;
  max-height: 720px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.province-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.province-detail-head h3 {
  margin: 0;
  font-size: 16px;
}

.province-detail-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  line-height: 1.5;
}

.province-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.province-compare div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fbfdff;
}

.province-compare span {
  color: var(--muted);
  font-size: 11px;
}

.province-compare strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.province-table-wrap {
  overflow: auto;
  max-height: 340px;
}

.province-table-wrap th:first-child,
.province-table-wrap td:first-child {
  text-align: left;
  min-width: 220px;
  white-space: normal;
}

.province-table-wrap th:nth-child(2),
.province-table-wrap td:nth-child(2),
.province-table-wrap th:nth-child(3),
.province-table-wrap td:nth-child(3) {
  text-align: right;
  min-width: auto;
  white-space: nowrap;
}

.chip-row {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #243b8f;
  font-size: 12px;
}

.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #dbe4ff;
  color: #243b8f;
  cursor: pointer;
  line-height: 1;
}

.time-range-controls {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.time-range-controls div,
.time-range-controls label {
  display: grid;
  gap: 5px;
}

.time-range-controls strong {
  font-size: 13px;
}

.time-range-controls span {
  color: var(--muted);
  font-size: 12px;
}

.time-range-controls input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.chart-wrap {
  height: 330px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.comparison-table-wrap {
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.comparison-table-wrap th:first-child,
.comparison-table-wrap td:first-child {
  text-align: left;
  min-width: 260px;
  white-space: normal;
}

.comparison-table-wrap th:nth-child(2),
.comparison-table-wrap td:nth-child(2) {
  text-align: right;
  min-width: auto;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  gap: 14px;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbff;
}

.filter-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.filter-summary div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.filter-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.filter-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.filter-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.filter-table-wrap th:first-child,
.filter-table-wrap td:first-child {
  min-width: 64px;
}

.filter-table-wrap th:nth-child(2),
.filter-table-wrap td:nth-child(2) {
  text-align: left;
  min-width: 280px;
  white-space: normal;
}

.filter-table-wrap th:nth-child(7),
.filter-table-wrap td:nth-child(7) {
  text-align: left;
}

.chart-point {
  stroke: #ffffff;
  stroke-width: 1.4;
}

.chart-wrap svg,
.mini-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.grid-layout {
  /* 主体采用一宽一窄布局：左侧承载分析表格，右侧承载机构明细。 */
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.mini {
  min-width: 132px;
}

.table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5eaf1;
  text-align: right;
  white-space: nowrap;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
  white-space: normal;
  min-width: 240px;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f4f7ff;
}

.positive {
  color: var(--green);
  font-weight: 700;
}

.negative {
  color: var(--red);
  font-weight: 700;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-stats div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.detail-stats span {
  color: var(--muted);
  font-size: 12px;
}

.detail-stats strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.mini-chart-wrap {
  height: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.list-panel {
  display: grid;
  gap: 8px;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fbfdff;
  cursor: pointer;
}

.list-item:hover {
  background: #f4f7ff;
}

.list-item b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.list-item span {
  color: var(--muted);
  font-size: 12px;
}

.metric {
  text-align: right;
  font-size: 14px;
}

.axis-label {
  fill: #667085;
  font-size: 11px;
}

.chart-grid {
  stroke: #e5eaf1;
  stroke-width: 1;
}

.empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.placeholder-panel {
  min-height: 420px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state span {
  max-width: 720px;
  line-height: 1.65;
}

.empty-state.compact {
  min-height: 140px;
}

.province-trend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 16px;
}

.field-chart-wrap {
  height: 430px;
}

.field-side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 430px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.field-side-panel h3 {
  margin: 0;
  font-size: 16px;
}

.field-table-wrap {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.field-table-wrap th:first-child,
.field-table-wrap td:first-child {
  min-width: 180px;
  text-align: left;
  white-space: normal;
}

.province-trend-chart-wrap {
  height: 430px;
}

.province-gdp-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 430px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.province-gdp-panel h3 {
  margin: 0;
  font-size: 16px;
}

.gdp-chart-wrap {
  height: 250px;
}

.province-trend-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.province-trend-summary div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #ffffff;
}

.province-trend-summary span {
  color: var(--muted);
  font-size: 12px;
}

.province-trend-summary strong {
  font-size: 18px;
}

.province-benchmark-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.panel-head.compact h3 {
  margin: 0;
  font-size: 17px;
}

.panel-head.compact p {
  margin: 4px 0 0;
  color: var(--muted);
}

.province-benchmark-wrap {
  max-width: 100%;
  overflow: auto;
  max-height: 520px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.province-benchmark-table {
  min-width: 920px;
}

.province-benchmark-table th,
.province-benchmark-table td {
  text-align: right;
  white-space: nowrap;
}

.province-benchmark-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.province-benchmark-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 160px;
  text-align: left;
  background: #f8fafc;
}

.province-benchmark-table tbody th:first-child {
  color: var(--ink);
  font-weight: 700;
}

.contact-footer {
  margin: 0 28px 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-footer .contact-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-footer strong {
  color: var(--ink);
}

.contact-footer span,
.contact-footer p {
  font-size: 13px;
  line-height: 1.5;
}

.contact-qrs {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-qrs figure {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  margin: 0;
  width: 126px;
}

.contact-qrs img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.contact-qrs figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
  text-align: center;
}

.contact-footer a {
  color: var(--blue);
  text-decoration: none;
}

.contact-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .topbar {
    justify-items: stretch;
  }

  .top-controls {
    justify-content: start;
    width: 100%;
  }

  .search-control {
    min-width: min(100%, 560px);
  }

  .module-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .time-range-controls {
    grid-template-columns: 1fr;
  }

  .province-layout {
    grid-template-columns: 1fr;
  }

  .province-trend-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .province-map-wrap,
  .province-map-wrap svg,
  .province-detail {
    min-height: 360px;
  }

  .kpi-grid,
  .grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .dashboard,
  .contact-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .contact-footer {
    margin-left: 14px;
    margin-right: 14px;
  }

  .kpi-grid,
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }

  .chart-wrap {
    height: 260px;
  }

  h1 {
    font-size: 23px;
  }
}

/* UI refresh: restrained data-platform treatment. */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #0f1f3a;
  --muted: #5e6d85;
  --line: #dbe3ef;
  --blue: #1f66e5;
  --blue-soft: #edf4ff;
  --green: #0f8463;
  --red: #c54018;
  --amber: #9c6500;
  --shadow: 0 10px 26px rgba(15, 31, 58, 0.07);
  --soft-shadow: 0 4px 14px rgba(15, 31, 58, 0.05);
}

body {
  background:
    linear-gradient(180deg, #f8fbff 0, #f4f7fb 260px),
    var(--bg);
}

.topbar {
  gap: 14px;
  padding: 24px 36px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e5ebf4;
}

.topbar h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.top-controls {
  align-items: center;
}

.control {
  gap: 7px;
}

.control span {
  color: #53627a;
  font-size: 12px;
  font-weight: 600;
}

.control input,
.control select {
  height: 42px;
  border-color: #d6dfec;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.control input:hover,
.control select:hover {
  border-color: #b9c8de;
}

.module-nav {
  gap: 10px;
  padding: 14px 36px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #e1e8f2;
}

.module-tab {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border-color: #d4deeb;
  background: #ffffff;
  color: #526176;
  box-shadow: 0 1px 0 rgba(15, 31, 58, .02);
}

.module-tab:hover {
  border-color: #aebfd6;
  color: var(--ink);
}

.module-tab.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(31, 102, 229, .14);
}

.dashboard {
  max-width: 1880px;
  margin: 0 auto;
  padding: 26px 36px 40px;
  overflow-x: hidden;
}

.module-view.active {
  min-width: 0;
  gap: 22px;
}

.kpi-grid {
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.kpi,
.panel {
  min-width: 0;
  border-color: #dce5f1;
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
}

.kpi {
  min-height: 118px;
  padding: 20px;
  border-top: 0;
  border-left: 4px solid var(--blue);
  overflow: hidden;
}

.kpi.accent {
  border-left-color: var(--green);
}

.kpi span,
.kpi small {
  color: #5c6b82;
}

.kpi span {
  font-weight: 600;
}

.kpi strong {
  color: var(--ink);
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.kpi strong.negative,
.negative {
  color: var(--red);
}

.kpi strong.positive,
.positive {
  color: var(--green);
}

.panel {
  padding: 20px;
}

.panel-head {
  align-items: flex-start;
  padding: 0 0 16px;
  border-bottom: 1px solid #e5ebf4;
}

.panel-head.compact {
  padding-bottom: 12px;
}

.panel-head h2 {
  font-size: 20px;
  color: var(--ink);
}

.panel-head h3 {
  color: var(--ink);
}

.panel-head p {
  margin-top: 6px;
  color: #66758d;
  line-height: 1.55;
}

.province-panel {
  gap: 16px;
}

.province-summary {
  align-self: center;
  min-width: 120px;
}

.province-summary strong {
  font-size: 20px;
}

.province-layout {
  grid-template-columns: minmax(660px, 1.48fr) minmax(390px, .72fr);
  gap: 20px;
}

.province-map-wrap {
  min-height: 650px;
  border-color: #dfe8f4;
  border-radius: 10px;
  background: #fbfdff;
  overflow: hidden;
}

.province-map-wrap svg {
  min-height: 650px;
}

.province-detail {
  min-height: 650px;
  max-height: 760px;
  border-color: #dfe8f4;
  border-radius: 10px;
}

.province-compare {
  padding: 12px;
  background: #f8fbff;
  border-color: #dde6f2;
}

.province-compare div {
  border-radius: 8px;
  background: #ffffff;
}

.province-table-wrap {
  max-height: 410px;
}

.compare-search-row {
  margin: 16px 0 18px;
  padding: 16px;
  border-color: #dce6f3;
  border-radius: 10px;
  background: #f8fbff;
}

.compare-search-row .search-control {
  width: min(360px, 100%);
}

.institution-suggest {
  top: 26px;
  left: calc(100% + 12px);
  right: auto;
  width: min(420px, calc(100vw - 520px));
  height: min(520px, calc(100vh - 210px));
  max-height: none;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 31, 58, .17);
}

.suggest-item {
  min-height: 40px;
}

.chip-row {
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  min-height: 32px;
  border-radius: 999px;
}

.time-range-controls {
  padding: 16px;
  border-color: #dde6f2;
  border-radius: 10px;
  background: #fbfdff;
}

.chart-wrap,
.mini-chart-wrap,
.province-trend-chart-wrap,
.field-chart-wrap,
.gdp-chart-wrap {
  border-color: #dfe8f4;
  border-radius: 10px;
  background: #ffffff;
}

.chart-grid {
  stroke: #e6edf6;
}

.axis-label {
  fill: #5e6d85;
}

table {
  border-color: #dfe7f2;
}

thead th {
  background: #f6f9fd;
  color: #33445c;
  font-weight: 700;
}

th,
td {
  border-bottom-color: #e7edf5;
}

tbody tr:hover {
  background: #f8fbff;
}

.ghost-button {
  min-height: 38px;
  border-radius: 8px;
  border-color: #cad8ea;
  color: var(--blue);
  background: #ffffff;
}

.ghost-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.list-panel {
  gap: 8px;
}

.list-item {
  border-radius: 8px;
  background: #fbfdff;
}

.detail-stats div,
.province-trend-summary div,
.field-summary div {
  border-color: #dfe8f4;
  border-radius: 9px;
  background: #fbfdff;
}

.contact-footer {
  max-width: 1880px;
  margin: 0 auto 28px;
  border-color: #dce5f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

@media (max-width: 1180px) {
  .topbar,
  .module-nav,
  .dashboard {
    padding-left: 18px;
    padding-right: 18px;
  }

  .province-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar h1 {
    font-size: 25px;
  }

  .module-tab {
    min-height: 38px;
    padding: 0 14px;
  }

  .panel {
    padding: 16px;
  }

  .province-map-wrap,
  .province-map-wrap svg,
  .province-detail {
    min-height: 390px;
  }
}
