/* ===== 流量雷达统计卡片 ===== */
.site-stats-widget {
  --stats-bg: linear-gradient(180deg, rgba(247, 252, 255, 0.96) 0%, rgba(233, 243, 255, 0.94) 100%);
  --stats-border: rgba(123, 161, 214, 0.26);
  --stats-panel: rgba(255, 255, 255, 0.8);
  --stats-panel-border: rgba(140, 174, 222, 0.22);
  --stats-muted: #6981a3;
  background: var(--stats-bg);
  border: 1px solid var(--stats-border);
  box-shadow: 0 16px 34px rgba(90, 125, 177, 0.1);
}

.site-stats-widget .widget-title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #173055;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 11px;
  background: var(--stats-panel);
  border: 1px solid var(--stats-panel-border);
  box-shadow: 0 6px 14px rgba(93, 123, 170, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stats-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 142, 210, 0.3);
  box-shadow: 0 12px 22px rgba(93, 123, 170, 0.12);
}

.stats-item i {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.82rem;
  color: #2d5f9d;
  background: linear-gradient(135deg, rgba(228, 240, 255, 0.95), rgba(199, 222, 255, 0.95));
}

.stats-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-item-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--stats-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-item-value {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1d3557;
}

/* 夜间模式 */
body.dark-mode .site-stats-widget {
  --stats-bg: linear-gradient(180deg, rgba(15, 27, 44, 0.9) 0%, rgba(11, 22, 36, 0.84) 100%);
  --stats-border: rgba(150, 179, 222, 0.14);
  --stats-panel: rgba(17, 31, 49, 0.84);
  --stats-panel-border: rgba(126, 156, 206, 0.16);
  --stats-muted: #8ea5c8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body.dark-mode .site-stats-widget .widget-title {
  color: #f2f6ff;
}

body.dark-mode .stats-item-value {
  color: #eef4ff;
}

body.dark-mode .stats-item i {
  background: linear-gradient(135deg, rgba(34, 54, 84, 0.95), rgba(20, 38, 63, 0.95));
  color: #9cc1ff;
}

body.dark-mode .stats-item-label {
  color: #8ea5c8;
}
