From a307c7760157eeb7e164ee434144a9b4747ebe11 Mon Sep 17 00:00:00 2001 From: lxh2875931338 Date: Mon, 3 Aug 2026 21:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/style-1.css | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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 {