﻿/* ============================================================
   按语言应用自定义字体（字体文件位于 Scripts/lib/fonts，对应 .NET10 的 wwwroot/lib/fonts）
   在 app.css 之后加载，覆盖默认字体栈；语言切换（app.js setLang）更新 body[data-lang]，无需刷新。
   ZhCn 简体 -> lib/fonts/sc  SimSun 宋体
   ZhTw 繁体 -> lib/fonts/tc  MingLiU 明体
   JaJp 日文 -> lib/fonts/ja  KuroHanaMincho 黑花明朝体
   EnUs 英文 -> 沿用 app.css 已定义的自托管 Inter
   ============================================================ */
@font-face {
    font-family: "AppFontSC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Scripts/lib/fonts/sc/simsunb.eot?#iefix") format("embedded-opentype"), /*IE6-IE8 */
        url("/Scripts/lib/fonts/sc/simsunb.otf") format("opentype"),
        url("/Scripts/lib/fonts/sc/simsunb.ttf") format("truetype"), /*Safari,Android,iOS */
        url("/Scripts/lib/fonts/sc/simsunb.svg#minizhuanshu") format("svg"),
        url("/Scripts/lib/fonts/sc/simsunb.woff2") format("woff2"),
        url("/Scripts/lib/fonts/sc/simsunb.woff") format("woff");
    font-weight: normal;
    font-style: normal; /*字体样式*/
    font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/
}
@font-face {
    font-family: "AppFontTC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Scripts/lib/fonts/tc/MingLiU.eot?#iefix") format("embedded-opentype"), /*IE6-IE8 */
         url("/Scripts/lib/fonts/tc/MingLiU.otf") format("opentype"),
        url("/Scripts/lib/fonts/tc/MingLiU.ttf") format("truetype"), /*Safari,Android,iOS */
        url("/Scripts/lib/fonts/tc/MingLiU.svg#minizhuanshu") format("svg"),
        url("/Scripts/lib/fonts/tc/MingLiU.woff2") format("woff2"),
        url("/Scripts/lib/fonts/tc/MingLiU.woff") format("woff");
    font-weight: normal;
    font-style: normal; /*字体样式*/
    font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/
}
@font-face {
    font-family: "AppFontJA";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.eot?#iefix") format("embedded-opentype"), /*IE6-IE8 */
         url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.otf") format("opentype"),
        url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.ttf") format("truetype"), /*Safari,Android,iOS */
        url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.svg#minizhuanshu") format("svg"),
        url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.woff2") format("woff2"),
        url("/Scripts/lib/fonts/ja/KuroHanaMincho-ExtraBold.woff") format("woff");
    font-weight: normal;
    font-style: normal; /*字体样式*/
    font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/
}
/* 英文：TheNautigal（Scripts/lib/fonts/en） */
@font-face {
    font-family: "AppFontEN";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Scripts/lib/fonts/en/TheNautigal-Bold.eot?#iefix") format("embedded-opentype"), /*IE6-IE8 */
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.otf") format("opentype"),
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.ttf") format("truetype"), /*Safari,Android,iOS */
         url("/Scripts/lib/fonts/en/TheNautigal-Bold.svg#minizhuanshu") format("svg"),
        url("/Scripts/lib/fonts/en/TheNautigal-Regular.woff2") format("woff2"),
        url("/Scripts/lib/fonts/en/TheNautigal-Regular.woff") format("woff");
        font-weight: normal;
        font-style: normal; /*字体样式*/
         font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/
}
@font-face {
    font-family: "AppFontEN";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/Scripts/lib/fonts/en/TheNautigal-Bold.eot?#iefix") format("embedded-opentype"), /*IE6-IE8 */
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.otf") format("opentype"),
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.ttf") format("truetype"), /*Safari,Android,iOS */
         url("/Scripts/lib/fonts/en/TheNautigal-Bold.svg#minizhuanshu") format("svg"),
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.woff2") format("woff2"),
        url("/Scripts/lib/fonts/en/TheNautigal-Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal; /*字体样式*/
    font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/
}
body[data-lang="ZhCn"] {
    font-family: "AppFontSC","SimSun","Microsoft YaHei",serif,"AppFontSC";}
body[data-lang="ZhTw"] {
    font-family: "AppFontTC","MingLiU","PMingLiU","Microsoft JhengHei",serif,"AppFontTC";}
body[data-lang="JaJp"] {
    font-family: "AppFontJA","Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif,"AppFontJA";}
body[data-lang="EnUs"] {
    font-family: "AppFontEN","Inter",sans-serif,"AppFontEN";}