/* 全站 Web 字体：阿里巴巴普惠体 3.0 常规体 */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-font-family: 'AlibabaPuHuiTi', "Microsoft YaHei", "PingFang SC", sans-serif;
}

html {
    font-synthesis: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
}

html,
body,
button,
input,
textarea,
select,
table,
.app-body,
.auth-page,
.note-content,
.note-card,
.note-card__preview,
.note-card__body,
.ql-editor,
.notes-export-doc,
.notes-export-doc * {
    font-family: var(--app-font-family);
}

body,
.app-body,
.auth-page {
    font-synthesis: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

/* 侧栏导航：避免伪粗体导致发糊，优先清晰渲染 */
.app-sidebar,
.app-sidebar-nav,
.app-sidebar .app-menu-group-toggle,
.app-sidebar .app-menu-link {
    font-family: var(--app-font-family);
    font-synthesis: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
}

/* 仅加载 Regular 字重时，避免 Bootstrap 伪粗体发糊 */
.fw-bold,
.font-weight-bold,
b,
strong {
    font-synthesis: none;
}
