/* ━━ Hemory 官网双模式语义 token(深色默认)━━
   全站颜色唯一来源;组件禁止新硬编码 hex(第三方品牌 logo 色除外)。

   浅色 accent 对比度记录(WCAG 相对亮度公式,配白字 #ffffff):
   - 原定 #5F8E0C 仅 3.92:1,不达标(要求 ≥ 4.5:1),已加深;
   - 最终 --accent: #4F7A0A = 5.10:1,达标;
   - 最终 --accent-hover: #56820A = 4.57:1,达标(比 accent 亮一档,保持 hover 提亮方向)。 */
:root, :root[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-raised: #14171b;
  --bg-inset: #101317;
  --fg: #f2f4f6;
  --fg-mute: #9aa3ad;
  --fg-faint: #5c646d;
  --accent: #7FBA13;
  --accent-hover: #8FC91F;
  --accent-fg: #0a0b0d;
  --border: rgba(242, 244, 246, 0.10);
  --grid-line: rgba(242, 244, 246, 0.08);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
:root[data-theme="light"] {
  --bg: #f7f8f6;
  --bg-raised: #ffffff;
  --bg-inset: #eef0ec;
  --fg: #171b22;
  --fg-mute: #515966;
  --fg-faint: #8a919b;
  --accent: #4F7A0A;
  --accent-hover: #56820A;
  --accent-fg: #ffffff;
  --border: rgba(23, 27, 34, 0.12);
  --grid-line: rgba(23, 27, 34, 0.06);
  --shadow: 0 8px 28px rgba(23, 27, 34, 0.10);
}

/* ━━ 主题切换按钮(.h-theme-toggle)━━
   透明底,尺寸/节奏对齐旁边的 .h-nav-lang-trigger(padding-block 8px);
   深色态显 sun(点了变亮),浅色态显 moon(点了变暗)。 */
.h-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
  color: var(--fg-mute);
  transition: color 0.2s ease;
}
.h-theme-toggle:hover { color: var(--fg); }
.h-theme-toggle .lucide { width: 16px; height: 16px; }
.h-theme-toggle .lucide-moon { display: none; }
:root[data-theme="light"] .h-theme-toggle .lucide-sun { display: none; }
:root[data-theme="light"] .h-theme-toggle .lucide-moon { display: block; }
