/* Noto Sans SC - Self-hosted Chinese font (Google Fonts blocked in China) */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('/fonts/NotoSansSC/NotoSansSC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans SC';
    src: url('/fonts/NotoSansSC/NotoSansSC-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans SC';
    src: url('/fonts/NotoSansSC/NotoSansSC-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Chinese font stack - Noto Sans SC first, then system Chinese fonts as fallback */
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Satoshi', sans-serif;
}

h1, h2, h3, h4, h5, h6, .title, .hero-heading {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'ClashDisplay', sans-serif;
}

/* Chinese text typically needs slightly more line-height for readability */
p, li, td, th, dd {
    line-height: 1.8;
}

/* Chinese text is generally more compact, adjust letter-spacing */
body {
    letter-spacing: 0.02em;
}

/* Ensure proper word-break for Chinese (no spaces between words) */
p, li, td, th, dd, span, a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Navigation and menu items - prevent line breaks in menu text */
.navbar-nav .nav-link,
.dropdown-item span,
.mega-dropdown-list a {
    white-space: nowrap;
}

/* Footer link adjustments for Chinese text */
.footer-nav-link a {
    line-height: 1.6;
}

/* WeChat icon color matching */
.bi-wechat {
    color: #07C160;
}
a:hover .bi-wechat {
    color: #06AD56;
}
