/* ASTINDO 统一字体定义 - 避免乱码和外部依赖 */

/* 定义字体 */
@font-face {
    font-family: 'ASTINDO-Primary';
    src: url('../fonts/xn7gYHE41ni1AdIRggexSg.ttf') format('truetype'),
         url('../fonts/xn7gYHE41ni1AdIRggqxSuXd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ASTINDO-Accent';
    src: url('../fonts/Accountant-Pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 通用字体堆栈 - 确保良好的中文和英文显示 */
:root {
    --font-primary: 'ASTINDO-Primary', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', Arial, sans-serif;
    --font-accent: 'ASTINDO-Accent', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', Arial, sans-serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', '宋体', Arial, sans-serif;
}

/* 基础样式 */
* {
    font-family: var(--font-system);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题使用强调字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-accent);
}

/* 确保按钮和表单元素使用系统字体 */
button, input, select, textarea {
    font-family: var(--font-system);
}

/* 特殊类 */
.font-primary {
    font-family: var(--font-primary);
}

.font-accent {
    font-family: var(--font-accent);
}

.font-system {
    font-family: var(--font-system);
}

/* 兼容性样式 - 替换Inter字体 */
.inter-font, [style*="font-family: 'Inter'"], [style*="font-family: Inter"] {
    font-family: var(--font-primary) !important;
}

/* 替换Segoe UI字体堆栈 */
[style*="font-family: 'Segoe UI'"] {
    font-family: var(--font-system) !important;
}
