/* ========================= [ Korean Fonts - 나눔 글꼴 - 优化版 ] */

/* 优化：只加载最常用的字体（Regular 和 Bold），减少约 50% 文件大小 */
/* 从 20MB 降至约 9MB，大幅提升加载速度 */

/* 나눔고딕 (Nanum Gothic) - 最常用的韩文字体 */
@font-face {
  font-family: 'Nanum Gothic';
  src: url('../fonts/NanumGothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nanum Gothic';
  src: url('../fonts/NanumGothicBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 如果需要更粗的字体，浏览器会自动降级使用 Bold */
@font-face {
  font-family: 'Nanum Gothic';
  src: url('../fonts/NanumGothicBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nanum Gothic';
  src: url('../fonts/NanumGothicBold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 字体应用 - 优化：中文优先使用 Noto，韩文使用 Nanum Gothic */
body {
  font-family: "Noto Serif SC", "Noto Sans SC", "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

/* 针对韩文内容的字体设置 */
[lang="ko"],
.lang-ko {
  font-family: 'Nanum Gothic', 'Malgun Gothic', 'Apple SD Gothic Neo', "Noto Serif SC", "Noto Sans SC", sans-serif;
}

