/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Text Domain:  generatepress-child
 Version:      1.0
*/
/* =====================================
   Noto Sans 多语言自托管 unicode-range分片加载
===================================== */

/* 简体中文 Noto Sans SC */
@font-face {
    font-family: "Noto Sans SC";
    src: url("./fonts/NotoSansSC-Regular-sub.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
    font-family: "Noto Sans SC";
    src: url("./fonts/NotoSansSC-Bold-sub.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF;
}

/* 韩文 Noto Sans KR */
@font-face {
    font-family: "Noto Sans KR";
    src: url("./fonts/NotoSansKR-Regular-sub.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+AC00-D7AF;
}
@font-face {
    font-family: "Noto Sans KR";
    src: url("./fonts/NotoSansKR-Bold-sub.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+AC00-D7AF;
}

/* 西文、俄语西里尔、越南语 Noto Sans */
@font-face {
    font-family: "Noto Sans";
    src: url("./fonts/NotoSans-Regular-sub.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0100-024F,U+0400-04FF,U+2000-206F;
}
@font-face {
    font-family: "Noto Sans";
    src: url("./fonts/NotoSans-Bold-sub.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0100-024F,U+0400-04FF,U+2000-206F;
}

/* 泰文 Noto Sans Thai */
@font-face {
    font-family: "Noto Sans Thai";
    src: url("./fonts/NotoSansThai-Regular-sub.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E00-0E7F;
}
@font-face {
    font-family: "Noto Sans Thai";
    src: url("./fonts/NotoSansThai-Bold-sub.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E00-0E7F;
}

/* 阿拉伯 Noto Sans Arabic */
@font-face {
    font-family: "Noto Sans Arabic";
    src: url("./fonts/NotoSansArabic-Regular-sub.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}
@font-face {
    font-family: "Noto Sans Arabic";
    src: url("./fonts/NotoSansArabic-Bold-sub.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF;
}

/* ================= 全局字体栈 ================= */
body, button, input, select, textarea, .gp-button, .main-navigation a, .widget-title {
    font-family:
        "Noto Sans SC",
        "Noto Sans KR",
        "Noto Sans",
        "Noto Sans Thai",
        "Noto Sans Arabic",
        system-ui,
        sans-serif;
    line-height: 1.65;
}
h1,h2,h3,h4,h5,h6,.entry-title,.page-title {
    font-family:
        "Noto Sans SC",
        "Noto Sans KR",
        "Noto Sans",
        "Noto Sans Thai",
        "Noto Sans Arabic",
        system-ui,
        sans-serif;
}
/* 阿拉伯RTL页面行高优化 */
html[dir="rtl"] body, :lang(ar) body {
    line-height:1.8;
}
