/* ============================================================
 * Brave 主题 · 字体与细节升级  v1
 * 生成于 2026-11-20
 *
 * 1) 全站换成 HarmonyOS Sans（鸿蒙字体），中文观感更精致
 * 2) 在一起天数改成彩色分字，数字跳动不抖动
 *
 * 想还原：删掉 head.php 里引用本文件的那一行。
 * ============================================================ */

/* ---------- 1. 鸿蒙字体 ----------
 * 只在 body 上设置，靠继承生效。
 * 不逐个标签覆盖，是为了不误伤图标字体（.fa / .iconfont）
 * —— 它们有自己的 font-family 规则，优先级高于继承。 */
body {
  font-family: 'HarmonyOS_Regular',
               -apple-system, BlinkMacSystemFont,
               'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', 'Helvetica Neue',
               Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 代码块必须保持等宽，不能被正文替换掉 */
body pre,
body code,
body kbd,
body samp,
body .hljs,
body [class*="language-"] {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono',
               Menlo, Monaco, monospace !important;
}

/* ---------- 2. 在一起天数：彩色分字 ----------
 * 号码用 tabular-nums，秒数每秒变化时宽度不跳。 */
#love_days,
#love_hours,
#love_mins,
#love_secs {
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

/* 亮色模式：粉 / 蓝 / 青 / 橙，和主题粉呼应 */
#love_days  { color: #ff5f87 !important; }
#love_hours { color: #5b8def !important; }
#love_mins  { color: #21b58f !important; }
#love_secs  { color: #f2953f !important; }

/* 暗色模式：整体提亮一档，保证可读 */
html[data-theme="dark"] #love_days  { color: #ff87a8 !important; }
html[data-theme="dark"] #love_hours { color: #7ea8ff !important; }
html[data-theme="dark"] #love_mins  { color: #3fd2a8 !important; }
html[data-theme="dark"] #love_secs  { color: #ffb066 !important; }
