@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/inter-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/inter-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
    --sx-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
                    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
                    "Helvetica Neue", Arial, sans-serif;
    --sx-font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas,
                    "Liberation Mono", Menlo, monospace;

    --sx-font: var(--sx-font-sans);
    --site-font: var(--sx-font-sans);
    --font: var(--sx-font-sans);

    --el-font-family: var(--sx-font-sans);
    --el-font-family-mono: var(--sx-font-mono);
}

html,
body {
    font-family: var(--sx-font-sans);
    letter-spacing: normal;
    font-kerning: normal;
    font-synthesis-weight: none;
}

button,
input,
select,
textarea,
optgroup {
    font-family: inherit;
    font-feature-settings: inherit;
}

.el-button,
.el-input__inner,
.el-textarea__inner,
.el-select__placeholder,
.el-select-dropdown__item,
.el-tag,
.el-table,
.el-form-item__label,
.el-dialog__title,
.el-dialog__body,
.el-message,
.el-message-box,
.el-notification,
.el-popper,
.el-pagination,
.el-descriptions,
.el-descriptions__label,
.el-descriptions__content,
.el-card,
.el-drawer,
.el-tabs__item,
.el-menu-item,
.el-dropdown-menu__item {
    font-family: var(--sx-font-sans);
}

.sx-mono,
.sx-code,
.mono,
code,
kbd,
samp {
    font-family: var(--sx-font-mono);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
}

.sx-num,
.stat-num,
.stat-value,
.amount,
.price,
.order-no {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* 全站统一原生复选框（对齐 Element Plus 视觉） */
.sx-check {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    background: #fff center / 10px 10px no-repeat;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.sx-check:hover { border-color: #409eff; }
.sx-check:focus-visible { outline: 2px solid rgba(64, 158, 255, .35); outline-offset: 1px; }
.sx-check:checked {
    border-color: #409eff;
    background-color: #409eff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23fff' d='M406.6 781.2 190.4 565l60.4-60.4 155.8 155.8 366.6-366.6 60.4 60.4z'/%3E%3C/svg%3E");
}
.sx-check:disabled {
    border-color: #dcdfe6;
    background-color: #f2f6fc;
    cursor: not-allowed;
}
.sx-check--danger:hover { border-color: #ef4444; }
.sx-check--danger:focus-visible { outline-color: rgba(239, 68, 68, .35); }
.sx-check--danger:checked {
    border-color: #ef4444;
    background-color: #ef4444;
}
