/* ===================================
   mjdbjgs.com - 站内计数挂件样式 v1.0 (2026-09-20)
   用于 .stat-bar（浏览量 + 匿名 👍/👎）
   自适应浅色/深色主题：用 currentColor + 低透明度，不写死背景色
   =================================== */

.stat-bar {
  display: flex;
  justify-content: center;
  margin: 26px auto 6px;
  font-size: 0.9rem;
}

.stat-bar .stat-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  /* 半透明白底：在浅色页是浅灰、在深色页是浅光晕，两边都能读 */
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: inherit;
  line-height: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-bar .stat-views,
.stat-bar .stat-votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.88;
}

.stat-bar .stat-ico {
  font-size: 0.95em;
  opacity: 0.85;
}

.stat-bar .stat-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 1.4em;
  text-align: center;
}

.stat-bar .stat-sep {
  width: 1px;
  height: 15px;
  background: currentColor;
  /* 纯装饰分隔线：aria-hidden，无文字内容 → 按 WCAG 属「装饰性」，不适用文字对比度要求。
     视觉上保持克制（0.3），检测器已按 aria-hidden 跳过。 */
  opacity: 0.3;
}

.stat-bar .stat-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.12s ease;
  filter: saturate(0.25) opacity(0.75);
}

.stat-bar .stat-btn:hover {
  background: rgba(148, 163, 184, 0.22);
  filter: saturate(1) opacity(1);
}

.stat-bar .stat-btn:focus-visible {
  outline: 2px solid #5a67d8;
  outline-offset: 2px;
}

.stat-bar .stat-btn:active {
  transform: scale(0.92);
}

.stat-bar .stat-btn.is-picked {
  filter: saturate(1) opacity(1);
  background: rgba(148, 163, 184, 0.22);
}

.stat-bar .stat-btn.is-disabled {
  cursor: default;
  opacity: 0.5;
}

.stat-bar .stat-btn.is-disabled:hover {
  background: transparent;
}

.stat-bar .stat-hint {
  font-size: 0.76rem;
  opacity: 0.62;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .stat-bar .stat-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-bar .stat-btn {
    transition: none;
  }
}
