From d16540b5cbe35c2fd93a95b8c107887277bf7062 Mon Sep 17 00:00:00 2001 From: engigu Date: Fri, 17 Apr 2026 20:45:12 +0800 Subject: [PATCH] chore: mobile font --- web/src/assets/index.css | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/web/src/assets/index.css b/web/src/assets/index.css index 6dccabe..a24ba9f 100644 --- a/web/src/assets/index.css +++ b/web/src/assets/index.css @@ -213,7 +213,8 @@ body { @apply bg-background text-foreground antialiased; - font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + /* 增强字体栈:优先 Inter,同时补充安卓/Linux 中文字体 */ + font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; @@ -223,7 +224,7 @@ } input, textarea, button, select { - font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; + font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif !important; } .font-code, @@ -256,21 +257,21 @@ line-height: 1.3; } - /* 正文与描述类文字同步加厚,避免手机端自动淡出造成的纤细感 */ + /* 正文与描述类文字同步加厚,使用标准字重 500 以匹配静态字体 */ p, span:not([class*="icon"]), label, [class*="description"], [class*="muted"], .text-muted-foreground { - font-weight: 480; + font-weight: 500; line-height: 1.6; } - /* 针对移动端小字进行强制加粗补偿(400 在手机上易由于笔画过细而消失) */ + /* 针对移动端小字进行字重补偿,使用标准字重 600 */ .text-xs { font-size: 12.5px; - font-weight: 550; + font-weight: 600; line-height: 1.4; letter-spacing: 0.01em; }