diff --git a/static/style-1.css b/static/style-1.css index acaabb0..5165666 100644 --- a/static/style-1.css +++ b/static/style-1.css @@ -1,27 +1,28 @@ /* ===== style-1.css - 全局基础 ===== */ /* ---------- 字体定义 ---------- */ -/* 自托管 HarmonyOS Sans 字体 */ +/* 自托管 HarmonyOS Sans SC Regular */ -/* 中文/英文:HarmonyOS Sans SC Regular */ +/* 中英文:HarmonyOS Sans SC Regular */ @font-face { font-family: 'HarmonyOS Sans SC'; - src: url('/static/fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); + src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; } -/* 数字专用:HarmonyOS Sans Light */ +/* 数字专用:复用 HarmonyOS Sans SC Regular(因 Light 版本缺失) */ @font-face { font-family: 'HarmonyOS Sans'; - src: url('/static/fonts/HarmonyOS_Sans_Light.ttf') format('truetype'); + src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; } /* 后备:如果自托管字体加载失败,使用系统字体 */ + /* ---------- 重置 ---------- */ * { margin: 0; @@ -37,7 +38,7 @@ body { color: #e0e0e0; } -/* ---------- 数字专用字体(使用 HarmonyOS Sans Light) ---------- */ +/* ---------- 数字专用字体(使用 HarmonyOS Sans) ---------- */ .digit, .big-number, .remote-port, @@ -48,18 +49,18 @@ body { .login-btn, .save-btn, .btn-confirm { - font-weight: 300 !important; /* Light 字重 */ + font-weight: 300 !important; letter-spacing: 0.02em; font-family: 'HarmonyOS Sans', 'JetBrains Mono', monospace; } -/* 数字特别加粗(适用于大数字展示)——但 Light 本身就细,这里加大字重覆盖 */ +/* 数字特别加粗(适用于大数字展示) */ .big-number { font-weight: 600 !important; letter-spacing: -0.01em; } -/* 代码/端口类数字使用等宽字体,但保持 Light 风格 */ +/* 代码/端口类数字使用等宽字体,但保持 HarmonyOS Sans 风格 */ .digit, .remote-port, .proxy-addr {