/* 1. 声明 Roboto 各个字重和样式 */

/* Regular（常规） */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400; /* 常规字重 */
  font-style: normal; /* 正常样式 */
  font-display: swap; /* 优化加载体验：先显示默认字体，加载完替换 */
}

/* Light（细体） */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/Roboto-Light.ttf") format("truetype");
  font-weight: 300; /* 细体字重 */
  font-style: normal;
  font-display: swap;
}

/* Medium（中粗） */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: 500; /* 中粗字重 */
  font-style: normal;
  font-display: swap;
}

/* Bold（粗体） */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700; /* 粗体字重 */
  font-style: normal;
  font-display: swap;
}

/* Black Italic（黑色 斜体） */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/Roboto-BlackItalic.ttf") format("truetype");
  font-weight: 900; /* 黑色字重（900 是 Roboto Black 的标准字重） */
  font-style: italic; /* 斜体样式 */
  font-display: swap;
}

/* 2. 全局或局部使用 Roboto 字体 */
body {
  font-family: "Roboto", sans-serif; /* 优先用 Roboto，没有则回退系统 sans-serif */
  font-weight: 400; /* 默认字重（常规） */
}
