/* turing font */

/* 用法：
1. 项目中加载 https://lf-hippo.hippoaixue.com/obj/hippo-turing-fe/assets/edu/turing/font/turing-font.css 文件
2. 业务代码直接声明 font-family 即可
 */

/*
 UI规范：
 https://www.figma.com/file/TZIzXv9tioI9bfqZvGZynG/%E6%B2%B3%E9%A9%AC%E7%88%B1%E5%AD%A63.0%E8%AE%BE%E8%AE%A1%E7%B3%BB%E7%BB%9F?node-id=11%3A2796
*/

html,
body {
  /* 默认西文字体为Byte Sans, 非衬线字体兜底 */
  font-family: 'Byte Sans', sans-serif;
}

/* #region ByteSans字体，支持400-700字重，已裁切，仅包含半角英文/数字/标点字符 */

/** 400 用 regular */
@font-face {
  font-weight: 400;
  font-family: 'Byte Sans';
  font-style: normal;
  src: local('Byte Sans Regular'), local('Byte-Sans-Regular'), url('../fonts/ByteSans-Regular.woff2') format('woff2'),
    url('ByteSans-Regular.ttf') format('truetype');
  font-display: block;
}

/** 500-600 用 medium */
@font-face {
  font-weight: 500 600;
  font-family: 'Byte Sans';
  font-style: normal;
  src: local('Byte Sans Medium'), local('Byte-Sans-Medium'), url('../fonts/ByteSans-Medium.woff2') format('woff2'),
    url('ByteSans-Medium.ttf') format('truetype');
  font-display: block;
}

/** 700 用 bold */
@font-face {
  font-weight: 700;
  font-family: 'Byte Sans';
  font-style: normal;
  src: local('Byte Sans Bold'), local('Byte-Sans-Bold'), url('../fonts/ByteSans-Bold.woff2') format('woff2'),
    url('ByteSans-Bold.ttf') format('truetype');
  font-display: block;
}

@font-face {
  font-weight: 400;
  font-family: 'Byte Sans Medium';
  font-style: normal;
  src: local('Byte Sans Medium'), local('Byte-Sans-Medium'), url('../fonts/ByteSans-Medium.woff2') format('woff2'),
    url('ByteSans-Medium.ttf') format('truetype');
  font-display: block;
}

@font-face {
  font-weight: 400;
  font-family: 'Byte Sans Bold';
  font-style: normal;
  src: local('Byte Sans Bold'), local('Byte-Sans-Bold'), url('../fonts/ByteSans-Bold.woff2') format('woff2'),
    url('ByteSans-Bold.ttf') format('truetype');
  font-display: block;
}

/* #endregion */

/* #region 方正风雅颂，支持400-700字重 */

@font-face {
  font-weight: 400 700;
  font-family: FZFengYaSongS-GB;

  /** 字体较大，用swap防止长时间不可见 */
  font-display: swap;
  src: local('FZFengYaSongS-GB'), url('../fonts/FZFengYaSongS-GB.woff2') format('woff2'),
    url('FZFengYaSongS-GB.ttf') format('truetype');
  font-display: block;
}

/* #endregion */

/* 思源宋体常用8105字及特殊字符裁剪版 */
@font-face {
  font-family: SourceHanSerifSC-Regular;
  font-display: block;
  src: local('SourceHanSerifSC-Regular'), url('../fonts/SourceHanSerifSC-Regular.woff2') format('woff2');
}
