perf(前端): 移除 Google Fonts 改用系统字体栈

- 删除 Google Fonts @import,解决国内访问阻塞问题
- 使用 system-ui 优先的系统字体栈
- 添加中文字体支持(苹方、冬青黑、微软雅黑)
- 移除 Inter 字体专用的 font-feature-settings

此改动可显著提升国内用户的页面加载速度,避免因 Google Fonts
被墙导致的渲染阻塞问题。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
yangjianbo
2026-01-16 19:49:33 +08:00
parent e3f812c2fe
commit eb432a49ed
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@@ -11,7 +9,6 @@
html { html {
@apply scroll-smooth antialiased; @apply scroll-smooth antialiased;
font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
} }
body { body {

View File

@@ -50,16 +50,19 @@ export default {
}, },
fontFamily: { fontFamily: {
sans: [ sans: [
'Inter', 'system-ui',
'-apple-system', '-apple-system',
'BlinkMacSystemFont', 'BlinkMacSystemFont',
'Segoe UI', 'Segoe UI',
'Roboto', 'Roboto',
'Helvetica Neue', 'Helvetica Neue',
'Arial', 'Arial',
'PingFang SC',
'Hiragino Sans GB',
'Microsoft YaHei',
'sans-serif' 'sans-serif'
], ],
mono: ['JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', 'monospace'] mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'monospace']
}, },
boxShadow: { boxShadow: {
glass: '0 8px 32px rgba(0, 0, 0, 0.08)', glass: '0 8px 32px rgba(0, 0, 0, 0.08)',