/* 1. 定义字体家族，统一命名为 'DM Sans' */
@font-face {
  font-family: 'DM Sans';
  src: url('/public/fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 500;
  /* 对应 Regular */
  font-style: normal;
  font-display: swap;
  /* 关键：避免字体加载闪烁，优先显示系统字体 */
}

@font-face {
  font-family: 'DM Sans';
  src: url('/public/fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 600;
  /* 对应 Medium */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/public/fonts/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  /* 对应 Bold */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/public/fonts/DMSans-Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  /* 斜体 */
  font-display: swap;
}

/* 2. 全局应用字体 */
* {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}