/* Poppins Font - Subset WOFF2 Format */
/* 只包含项目中实际使用的 font-weight: 400, 500, 600 */
/* 使用子集化后的字体（仅包含实际使用的字符，文件更小） */
/* 
 * 保底方案说明：
 * 1. 每个 @font-face 都包含多个 src，浏览器会按顺序尝试加载：
 *    - 优先：本地子集化版本（最小）
 *    - 其次：本地完整版本
 *    - 最后：网络 CDN 资源（Google Fonts）
 * 2. 如果所有字体文件都加载失败，请在使用时添加系统字体作为 fallback：
 *    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
 * 3. 或者使用下面定义的 CSS 变量：--font-poppins
 */

/* 定义带 fallback 的字体栈变量（推荐使用） */
:root {
  --font-poppins: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* 加载顺序：本地子集化 → 本地完整版 → 网络 CDN */
  src: url('./Poppins-Regular-subset.woff2') format('woff2'),
       url('./Poppins-Regular.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  /* 加载顺序：本地子集化 → 本地完整版 → 网络 CDN */
  src: url('./Poppins-Medium-subset.woff2') format('woff2'),
       url('./Poppins-Medium.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  /* 加载顺序：本地子集化 → 本地完整版 → 网络 CDN */
  src: url('./Poppins-SemiBold-subset.woff2') format('woff2'),
       url('./Poppins-SemiBold.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2') format('woff2');
}
