@font-face {
  font-family: 'Effie Sans EN';
  src: url('./fonts/ITCAvantGardeStdBook.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

@font-face {
  font-family: 'Effie Sans EN';
  src: url('./fonts/ITCAvantGardeStd-Md.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

@font-face {
  font-family: 'Effie Sans EN';
  src: url('./fonts/ITCAvantGardeStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

@font-face {
  font-family: 'Effie Sans CN';
  src: url('./fonts/SourceHanSansCN-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

@font-face {
  font-family: 'Effie Sans CN';
  src: url('./fonts/SourceHanSansCN-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

@font-face {
  font-family: 'Effie Sans CN';
  src: url('./fonts/SourceHanSansCN-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 25%;
}

/* 可选规格：仅定义变量，不自动应用 */
:root {
  /* 末尾两项是插件库图标字体名，作为回退项保留图标字形，不是新声明的字体 */
  --e-font-mix: 'Effie Sans EN', 'Effie Sans CN', sans-serif;
  --e-font-en: 'Effie Sans EN', sans-serif;
  --e-font-cn: 'Effie Sans CN', sans-serif;

  --e-fw-light: 300;
  --e-fw-medium: 500;
  --e-fw-bold: 700;

  --e-fs-xs: 12px;
  --e-fs-sm: 14px;
  --e-fs-base: 16px;
  --e-fs-lg: 18px;
  --e-fs-xl: 20px;
  --e-fs-2xl: 24px;
  --e-fs-3xl: 32px;
  --e-fs-4xl: 48px;

  --e-lh-tight: 1.25;
  --e-lh-normal: 1.5;
  --e-lh-loose: 1.75;
}

/* 全局最优先：仅强制字体族，不改字号 / 行高 / 字重 */
*,
*::before,
*::after {
  font-family: var(--e-font-mix) !important;
}

.swiper,
.swiper::before,
.swiper::after,
.swiper *,
.swiper *::before,
.swiper *::after {
  font-family: 'swiper-icons', var(--e-font-mix) !important;
}

.video-js,
.video-js::before,
.video-js::after,
.video-js *,
.video-js *::before,
.video-js *::after {
  font-family: 'VideoJS', var(--e-font-mix) !important;
}

/* 工具类：按需显式使用 */
.e-font-mix { font-family: var(--e-font-mix) !important; }
.e-font-en  { font-family: var(--e-font-en) !important; }
.e-font-cn  { font-family: var(--e-font-cn) !important; }

.e-fw-300 { font-weight: 300; }
.e-fw-500 { font-weight: 500; }
.e-fw-700 { font-weight: 700; }

.e-fs-xs   { font-size: var(--e-fs-xs); }
.e-fs-sm   { font-size: var(--e-fs-sm); }
.e-fs-base { font-size: var(--e-fs-base); }
.e-fs-lg   { font-size: var(--e-fs-lg); }
.e-fs-xl   { font-size: var(--e-fs-xl); }
.e-fs-2xl  { font-size: var(--e-fs-2xl); }
.e-fs-3xl  { font-size: var(--e-fs-3xl); }
.e-fs-4xl  { font-size: var(--e-fs-4xl); }

.e-lh-tight  { line-height: var(--e-lh-tight); }
.e-lh-normal { line-height: var(--e-lh-normal); }
.e-lh-loose  { line-height: var(--e-lh-loose); }
