/* yultoz 维吾尔语字体（仅切字体，不改布局方向） */
@font-face {
	font-family: ukij;
	src: url('../fonts/UKIJTor.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'UKIJ Tor';
	src: url('../fonts/UKIJTor.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: alma;
	src: url('../fonts/UtuqAlma.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: qiraylik;
	src: url('../fonts/ShirkhanEgme.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--font-ug: ukij, 'UKIJ Tor', alma, qiraylik, sans-serif;
	--font-zh: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'SF Pro Display', sans-serif;
}

/* 默认 / 维吾尔语：全局全部走 yultoz */
html,
html[data-lang='ug'] {
	--font-ui: var(--font-ug);
	--font-en: var(--font-ug);
	--font-cn: var(--font-ug);
	--font-mono: var(--font-ug);
}

html[data-lang='zh'] {
	--font-ui: var(--font-zh);
	--font-en: 'Inter', 'SF Pro Display', sans-serif;
	--font-cn: 'PingFang SC', 'Microsoft YaHei', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* 维语：整站强制 ukij（含表格、按钮、输入、标题、mono） */
html[data-lang='ug'],
html[data-lang='ug'] body,
html[data-lang='ug'] body *:not(.material-symbols-outlined):not(svg):not(path) {
	font-family: ukij, 'UKIJ Tor', alma, qiraylik, sans-serif !important;
	font-weight: normal;
}

/* 中文：恢复原有 Inter / 中文栈 */
html[data-lang='zh'],
html[data-lang='zh'] body {
	font-family: var(--font-zh) !important;
}

html[data-lang='zh'] .mono,
html[data-lang='zh'] code,
html[data-lang='zh'] pre {
	font-family: 'JetBrains Mono', ui-monospace, monospace !important;
}

/* 图标字体不受影响 */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined' !important;
	font-weight: normal !important;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
}
.lang-switch button {
	min-width: 44px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-2);
}
.lang-switch button.active {
	background: var(--grad-primary);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
