/**
 * Skill 页 · 维吾尔语字体（源自 d:\AI模型\sinak\font）
 * 铁律：禁止 direction:rtl / dir=rtl —— 只换字体，不改页面方向。
 *
 * 关键点：必须用「独立族名 + unicode-range + 栈首」；
 * 若把 alkatip 放在 Segoe/雅黑后面，系统字体会冒充阿拉伯文区段，维文就会「未识别」。
 */

@font-face {
  font-family: 'SkillUgFont';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/agent/font/ALKATIPBasmaTom.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'alkatip basma';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/agent/font/ALKATIPBasmaTom.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'alkatip basma tom';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/agent/font/ALKATIPBasmaTom.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'alkatip tor';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/agent/font/ALKATIPBasmaTom.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'ukij tuz tom';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/agent/font/ALKATIPBasmaTom.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* 整页 LTR；维文码位点走 SkillUgFont，中英文仍用系统字体 */
body.skill-page {
  direction: ltr !important;
  font-family:
    'SkillUgFont',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    'Noto Naskh Arabic', Tahoma, sans-serif;
}

/* 卡片描述 / 维文片段：栈首强制维文字体，禁止 RTL */
.skill-desc,
.skill-name,
.skill-sub,
.skill-card--ug .skill-desc,
.uy,
[lang='ug'],
.roi-modal-card.roi-ug,
.roi-modal-card.roi-ug * {
  direction: ltr !important;
  font-family:
    'SkillUgFont',
    'alkatip tor',
    'alkatip basma tom',
    'ukij tuz tom',
    'Microsoft YaHei',
    'Segoe UI',
    sans-serif;
}
