/* ============================================================
   GitHub 热力图
   ============================================================ */
.gh-wrap {
  margin-top: 60px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.gh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.gh-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.gh-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.gh-link:hover { color: var(--fg); }

.gh-chart {
  display: flex;
  justify-content: center;
  padding: 8px;
}

.gh-chart img {
  max-width: 100%;
  height: auto;
  transition: filter 0.4s var(--ease);
}

[data-theme="dark"] .gh-chart img {
  filter: invert(1) hue-rotate(150deg) saturate(0.7) brightness(0.95);
}

.gh-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.gh-legend .swatches {
  display: inline-flex;
  gap: 3px;
}

.gh-legend .sw {
  width: 11px; height: 11px;
  border-radius: 2px;
  background: var(--surface-2);
}

.gh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gh-stat {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.gh-stat:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.gh-stat:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.gh-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.gh-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
