:root {
  /* 拉丁语系：西班牙语、土耳其语、葡萄牙语、德语、法语、波兰语 */
  --font-latin:
    "Manrope",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;

  /* 俄语 */
  --font-russian:
    "Golos Text",
    "Manrope",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  /* 韩语 */
  --font-korean:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "맑은 고딕",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  /* 阿拉伯语 */
  --font-arabic:
    "Mada",
    "Noto Sans Arabic",
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}

/* html,
body {
  font-family: var(--font-latin);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} */

/* 拉丁语系：西班牙语、土耳其语、葡萄牙语、德语、法语、波兰语 */
html:lang(es),
html:lang(tr),
html:lang(pt),
html:lang(de),
html:lang(fr),
html:lang(pl) {
  font-family: var(--font-latin);
}

/* 俄语 */
html:lang(ru) {
  font-family: var(--font-russian);
}

/* 韩语 */
html:lang(ko) {
  font-family: var(--font-korean);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 阿拉伯语 */
html:lang(ar) {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  letter-spacing: normal;
}

/* 表单控件默认不一定继承字体，所以显式继承 */
button,
input,
select,
textarea,
option {
  font: inherit;
}

/* 推荐的实际字重分工 */
/* body,
p,
li,
dd,
td,
input,
textarea {
  font-weight: 400;
} */

label,
.meta,
.caption-strong {
  font-weight: 500;
}

button,
.button,
nav,
.menu,
.tab,
th {
  font-weight: 600;
}

/* h4,
h5,
h6,
.card-title {
  font-weight: 600;
} */

/* h1,
h2,
h3,
.hero-title {
  font-weight: 700;
} */

/* 只有变量字体能够准确显示 650 等中间字重 */
.strong-soft {
  font-weight: 650;
}

/* 通用字重工具类 */
.fw-100 { font-weight: 100; }
.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Manrope、Golos、Pretendard、Noto KR、Mada、Noto Arabic 没有真正斜体时，
   需要斜体内容可单独改用 Inter 或 Plus Jakarta Sans。 */
.true-italic {
  font-family: "Inter", sans-serif;
  font-style: italic;
}

/* 阿拉伯语不要人为增加字距 */
html:lang(ar) h1,
html:lang(ar) h2,
html:lang(ar) h3,
html:lang(ar) p,
html:lang(ar) button {
  letter-spacing: normal;
}
