/* 
 * 生僻字 / 扩展区汉字显示
 * - 常用字仍走系统字体（微软雅黑等）
 * - 扩展 B 及以后用遍黑体 Plangothic（仅 unicode-range 触发下载）
 */

@font-face {
    font-family: 'Plangothic';
    src: url('https://cdn.jsdelivr.net/npm/@libreservice/font-collection@0.1.1/dist/PlangothicP1-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* CJK Unified Ideographs Extension B */
    unicode-range: U+20000-2A6DF;
}

@font-face {
    font-family: 'Plangothic';
    src: url('https://cdn.jsdelivr.net/npm/@libreservice/font-collection@0.1.1/dist/PlangothicP2-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Ext C–I 等后续扩展区 */
    unicode-range: U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF, U+30000-3134F, U+31350-323AF;
}

:root {
    --font-stack-rare-chars:
        'Plangothic',
        'Microsoft YaHei',
        'PingFang SC',
        'Noto Sans SC',
        'SimSun',
        sans-serif;
}

/* 播放页正文 / 音对译 / 译文等 */
#yuanwen-txt,
#ywpy,
.yuanwen-box,
.lyric-line,
.translation,
#ypy6,
.work-box .content {
    font-family: var(--font-stack-rare-chars) !important;
}

/* 编辑框也需要能看见生僻字 */
textarea[name="yuanwen"],
#yuanwen,
textarea.yuanwen {
    font-family: var(--font-stack-rare-chars) !important;
}
