/* ============================================================
 * 内置字体注册（公共层）· fonts-builtin.css  v1.0
 * ============================================================
 * 为什么必须抽：
 *   字体列表原先在 5 个页面各写一份，@font-face 更乱 ——
 *   playlist / scroll-playlist 注册了 10 款（正确）；
 *   gift-v2 / effect 一条都没注册（选了「思源黑体」实际渲染系统字体）；
 *   index 注册了 4 条指向不存在的 .otf（同样失效）。
 *
 * ── 三个作用 ──────────────────────────────────────────────
 *   ① 10 款内置可商用字体（SIL OFL / 官方免费商用，见 _font_license.txt）
 *   ② 3 个英文别名：兼容头像框历史数据里的 'AlibabaPuHuiTi' / 'SourceHanSerif' / 'YouSheBiaoTiHei'
 *   ③ 6 个已下线的系统字体名重映射 —— 旧作品里存着「微软雅黑」，
 *      不重映射就会 fallback 到用户本机真正的微软雅黑（方正版权，商用需授权）。
 *      重映射后同一串名字渲染的是思源黑体，**旧数据不用改、导出图里也不再有方正字形**。
 *      已实测：同名 @font-face 优先于系统已安装字体（宽度 554.5 与思源黑体完全一致）。
 *
 * ── 禁止 ──────────────────────────────────────────────────
 *   · 不许在这里注册任何需要付费授权的字体（微软雅黑 / 中易宋黑楷 / Impact / Arial 都不行）
 *   · 字体文件全部走 /static/fonts/ 下的 woff2，不许改成外链 CDN
 *   · 新增字体必须先在 _font_license.txt 里能查到免费商用依据
 * ============================================================ */

/* ---------- ① 内置可商用字体（中文名，界面里显示的就是这些） ---------- */
@font-face{font-family:'阿里巴巴普惠体';src:url('/static/fonts/puhuiti-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'思源黑体';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'优设标题黑';src:url('/static/fonts/youshe-biaotihei.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'站酷庆科黄油体';src:url('/static/fonts/zcool-huangyou.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'得意黑';src:url('/static/fonts/deyihei.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'思源宋体';src:url('/static/fonts/source-han-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'演示悠然小楷';src:url('/static/fonts/yanshi-youran.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'马善政毛笔楷体';src:url('/static/fonts/mashanzheng.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'江城圆体';src:url('/static/fonts/jiangcheng-yuanti.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'濑户字体简体';src:url('/static/fonts/seto.woff2') format('woff2');font-weight:400;font-display:swap}

/* ---------- ② 英文别名（头像框历史数据兼容） ---------- */
@font-face{font-family:'AlibabaPuHuiTi';src:url('/static/fonts/puhuiti-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'SourceHanSerif';src:url('/static/fonts/source-han-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'YouSheBiaoTiHei';src:url('/static/fonts/youshe-biaotihei.woff2') format('woff2');font-weight:400;font-display:swap}

/* ---------- ③ 已下线的系统字体名重映射（旧作品兼容，兼降版权风险） ----------
   这些名字只用于「读旧数据」，界面里不再提供选择。
   映射原则：形态最接近的开源字体。 */
@font-face{font-family:'微软雅黑';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'黑体';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'宋体';src:url('/static/fonts/source-han-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'楷体';src:url('/static/fonts/yanshi-youran.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Impact';src:url('/static/fonts/youshe-biaotihei.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Arial';src:url('/static/fonts/puhuiti-regular.woff2') format('woff2');font-weight:400;font-display:swap}
/* v9.219：英文名同样要挡住。canvas 的 c.font 走的是字体族名，写 'Microsoft YaHei'
   不会命中上面「微软雅黑」那条中文别名，会直接落到系统字体（Windows 上就是方正版权的微软雅黑）。
   礼物菜单老存档的 fontFamily、滚动歌单 render.js 的 FAMILY 映射表都传英文名进来。 */
@font-face{font-family:'Microsoft YaHei';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Microsoft YaHei UI';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'SimHei';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'SimSun';src:url('/static/fonts/source-han-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'KaiTi';src:url('/static/fonts/yanshi-youran.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'PingFang SC';src:url('/static/fonts/source-han-sans.woff2') format('woff2');font-weight:400;font-display:swap}
