官网开发 0811

This commit is contained in:
eafonyang
2026-08-11 18:42:11 +08:00
parent 65281a734a
commit e40d9d6b27
12 changed files with 280 additions and 172 deletions
+13
View File
@@ -17,7 +17,11 @@ html {
body {
margin: 0;
/* 正文/UI:英文走 Inter,中文走 Noto Sans SC(已按 unicode-range 拆分按需下载),
未加载完成时回退系统字体(macOS PingFang / Windows 微软雅黑),font-display: swap 不阻塞渲染 */
font-family:
'Inter',
'Noto Sans SC',
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
@@ -30,6 +34,13 @@ body {
sans-serif;
}
/* 品牌大标题字体:英文走 Space Grotesk,中文走 Noto Sans SC(标题元素 font-weight 多为 700
复用正文已加载的 700 字重 CJK 子集,零额外体积)。富文本内标题由 .rich-text 规则还原为正文字体,保证可读性。 */
h1,
section h2 {
font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}
/* 链接统一下划线重置,避免浏览器默认样式 */
a {
text-decoration: none;
@@ -73,6 +84,8 @@ section h2 {
margin: 0.6em 0;
font-weight: 700;
line-height: 1.3;
/* 还原为正文字体,覆盖 h1/section h2 的标题字体(选择器优先级更高) */
font-family: 'Inter', 'Noto Sans SC', sans-serif;
}
.rich-text h1 {
font-size: 1.6em;