/* 本地字体定义 - M1 Trader 网站 */

/* 
 * 使用系统字体栈，提供最佳性能和用户体验
 * 这些字体在各个操作系统上都有很好的显示效果
 */

:root {
  /* 主要字体族 - 使用Inter字体 */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* 标题字体族 - Inter字体 */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* 等宽字体 - 用于代码或数字 */
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, Courier, monospace;
  
  /* 中文优化字体栈 */
  --font-chinese: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Inter字体定义 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('Inter-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Inter-Bold.woff2') format('woff2');
}

/* 基础字体应用 */
* {
  font-family: var(--font-chinese);
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* 正文字体 */
body, p, span, div {
  font-family: var(--font-primary);
  line-height: 1.6;
}

/* 等宽字体应用 */
code, pre, .monospace {
  font-family: var(--font-mono);
}

/* 数字优化 */
.numbers, .stat-number, .highlight-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* 字体渲染优化 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 响应式字体大小 */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

/* 如果您想要使用Inter字体，只需取消注释上面的@font-face声明，
   并将字体文件下载到 assets/fonts/ 目录 */
