/* ===== 產業熱力圖 ===== */
.heatmap-page { display: flex; flex-direction: column; gap: 16px; }

.heatmap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.heatmap-head-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.heatmap-title { font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.heatmap-sub { font-size: var(--fs-xs); }
.heatmap-tabs { height: 28px; }
.heatmap-tabs button { font-size: var(--fs-xs); padding: 3px 12px; }

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.heat-card { padding: 0; overflow: hidden; }
.heat-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.heat-card-name { font-weight: 600; font-size: var(--fs-sm); flex: 1; }
.heat-card-count { font-size: var(--fs-xs); }
.heat-card-avg { font-size: var(--fs-sm); font-weight: 700; }

.heat-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 4px;
  padding: 8px;
}
.heat-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-1);
  font-family: inherit;
  transition: transform 0.08s ease, border-color 0.08s ease;
}
.heat-cell:hover { transform: translateY(-1px); border-color: var(--text-3); }
.heat-cell-name {
  font-size: var(--fs-xs); font-weight: 500;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.heat-cell-pct { font-size: 10px; }

.heatmap-empty { padding: 40px; text-align: center; color: var(--text-3); }
