/* =====================
   @font-face 注册（使用你上传的文件名）
   ===================== */

/* ---- ACaslonPro (英文字体：标题用) ---- */
@font-face {
  font-family: 'ACaslonPro';
  src: url('./ACaslonPro-Regular.otf') format('opentype'),
       url('./ACaslonPro.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ---- Gotham (英文字体：正文用) ---- */
@font-face {
  font-family: 'Gotham';
  src: url('./Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham';
  src: url('./Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham';
  src: url('./Gotham-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ---- Source Han Sans SC (中文简体：正文用) ---- */
@font-face {
  font-family: 'SourceHanSansSC';
  src: url('./SourceHanSansSC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'SourceHanSansSC';
  src: url('./SourceHanSansSC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ---- Noto Sans SC (中文简体：正文用) ---- */
@font-face {
  font-family: 'NotoSansSC';
  src: url('./NotoSansSC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'NotoSansSC';
  src: url('./NotoSansSC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ---- Chiron Hei TC (中文繁体：正文用) ---- */
@font-face {
  font-family: 'ChironHeiTC';
  src: url('./ChironHeiHK-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'ChironHeiTC';
  src: url('./ChironHeiHK-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


/* ---- Noto Sans TC (中文繁体：正文用) ---- */
@font-face {
  font-family: 'NotoSansTC';
  src: url('./NotoSansTC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'NotoSansTC';
  src: url('./NotoSansTC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ---- Source Han Serif SC (中文简体：标题用) ---- */
@font-face {
  font-family: 'SourceHanSerifSC';
  src: url('./SourceHanSerifSC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'SourceHanSerifSC';
  src: url('./SourceHanSerifSC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ---- Source Han Serif TC (中文繁体：标题用) ---- */
@font-face {
  font-family: 'SourceHanSerifTC';
  src: url('./SourceHanSerifTC-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'SourceHanSerifTC';
  src: url('./SourceHanSerifTC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* =====================
   基于语言强制指定字体（TranslatePress 会在 <html> 上设置 lang）
   优先使用 :lang() 选择器（兼容 en / zh-CN / zh-HK / zh-TW）
   使用 !important 确保覆盖 Elementor 的样式（如必要）
   ===================== */

/* ---------- 英文页面（正文用 Gotham，标题用 ACaslonPro） ---------- */
:lang(en) body,
:lang(en) div,
:lang(en) p,
:lang(en) span,
:lang(en) a,
:lang(en) li,
:lang(en) input,
:lang(en) textarea,
:lang(en) button,
:lang(en) label {
  font-family: 'Gotham', sans-serif !important;
}

:lang(en) h1,
:lang(en) h2,
:lang(en) h3,
:lang(en) h4,
:lang(en) h5,
:lang(en) h6 {
  font-family: 'ACaslonPro', serif !important;
}

/* ---------- 简体中文页面 zh-CN（正文用 SourceHanSansSC，标题用 SourceHanSerifSC） ---------- */
:lang(zh-CN) body,
:lang(zh-CN) div,
:lang(zh-CN) p,
:lang(zh-CN) span,
:lang(zh-CN) a,
:lang(zh-CN) li,
:lang(zh-CN) input,
:lang(zh-CN) textarea,
:lang(zh-CN) button,
:lang(zh-CN) label {
  font-family: 'NotoSansSC', 'SourceHanSansSC', 'SourceHanSerifSC', sans-serif !important;
}

:lang(zh-CN) h1,
:lang(zh-CN) h2,
:lang(zh-CN) h3,
:lang(zh-CN) h4,
:lang(zh-CN) h5,
:lang(zh-CN) h6 {
  font-family: 'SourceHanSerifSC', serif !important;
}

/* ---------- 繁体中文页面 zh-HK / zh-TW（正文用 SourceHanSansTC，标题用 SourceHanSerifTC） ---------- */
:lang(zh-HK) body,
:lang(zh-HK) div,
:lang(zh-HK) p,
:lang(zh-HK) span,
:lang(zh-HK) a,
:lang(zh-HK) li,
:lang(zh-HK) input,
:lang(zh-HK) textarea,
:lang(zh-HK) button,
:lang(zh-HK) label,
:lang(zh-TW) body,
:lang(zh-TW) div,
:lang(zh-TW) p,
:lang(zh-TW) span,
:lang(zh-TW) a,
:lang(zh-TW) li,
:lang(zh-TW) input,
:lang(zh-TW) textarea,
:lang(zh-TW) button,
:lang(zh-TW) label {
  font-family: 'NotoSansTC', 'ChironHeiTC', 'SourceHanSerifTC', sans-serif !important;
}

:lang(zh-HK) h1,
:lang(zh-HK) h2,
:lang(zh-HK) h3,
:lang(zh-HK) h4,
:lang(zh-HK) h5,
:lang(zh-HK) h6,
:lang(zh-TW) h1,
:lang(zh-TW) h2,
:lang(zh-TW) h3,
:lang(zh-TW) h4,
:lang(zh-TW) h5,
:lang(zh-TW) h6 {
  font-family: 'SourceHanSerifTC', serif !important;
}

/* 恢复 WordPress 后台工具栏默认字体，避免图标错位 */
#wpadminbar, 
#wpadminbar * {
  font-family: dashicons !important;
}