/* ============================================================================
   资源圆体（Resource Han Rounded CN）网页嵌入字体 · 仁爱慈善官网
   ----------------------------------------------------------------------------
   正名     : 「资源圆体」——国内设计师 CyanoHao 基于【中国版】思源黑体制作，
              简体不缺字（本站 1443 汉字覆盖 100%，2026-09-24 实测）
   ⚠️ 勿混淆 : 「思源柔黑／源柔哥特」（GenJyuuGothic）是日本自家製フォント工房
              基于【日版】思源黑体的另一款圆体，简体缺字 26.9%（缺"爱项为发"等
              388 个本站常用字），不可用于本站。两者此前被混称为「思源柔黑」
   授权     : SIL Open Font License 1.1 —— 免费商用、明确允许网页嵌入
   字重映射 : 以字体真实 usWeightClass 为准，不用文件名猜
              Normal=350  Regular=400  Medium=500  Bold=700  Heavy=900
   子集体积 : 全站用字 1572 字（含 1292 个汉字），每档约 215–220 KB
   子集口径 : pyftsubset --text-file=site_chars.txt --flavor=woff2 --no-hinting
   注意     : 新增内容若出现子集外的生僻字会回退到系统字体，需重新子集
   ============================================================================ */

@font-face {
    font-family: "Renai Rounded";
    src: url("RHR-Normal.woff2") format("woff2");
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Renai Rounded";
    src: url("RHR-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Renai Rounded";
    src: url("RHR-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Renai Rounded";
    src: url("RHR-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Renai Rounded";
    src: url("RHR-Heavy.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---- 标题槽位：换上资源圆体（原为 幼圆 / 系统圆体） ----
   本文件在 ribbon-theme.css 之后加载，同优先级下后者生效 */
:root {
    --font-title: "Renai Rounded", "Source Han Sans SC", "Noto Sans CJK SC",
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---- 正文槽位：需要「标题 + 正文」全圆时，给 <body> 加 rounded-all ----
   默认不开，正文保持思源黑体 / 系统黑体栈 */
body.rounded-all {
    --font-body: "Renai Rounded", "Source Han Sans SC", "Noto Sans CJK SC",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---- 正文观感微调 ----
   实测首页正文段落墨量：微软雅黑 13.98% / 资源圆体 Regular 12.26% / 资源圆体 Medium 14.54%
   MR duan 于 2026-09-24 拍板：正文用 Medium（比原微软雅黑实 4%），对中老年读者更稳。
   · 想退回更通透的 Regular：注释掉下面这一行即可
*/
body.rounded-all { font-weight: 500; }

