From 14e669178e9080de31aa2316286f1b37ee8c6cc7 Mon Sep 17 00:00:00 2001 From: hehh Date: Tue, 25 Nov 2025 21:45:58 +0800 Subject: [PATCH] =?UTF-8?q?style(css):=20=E5=A2=9E=E5=BC=BA=E9=BB=91?= =?UTF-8?q?=E5=A4=9C=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除旧的 stat-key 样式定义 - 添加黑夜模式下 area-stats 的背景、边框和阴影效果 - 定义黑夜模式下 stat-item 的背景及悬停效果 - 设置黑夜模式下 stat-val 的文字颜色和发光效果 - 配置黑夜模式下 stat-key 的文字颜色和微弱发光效果 --- css/about.css | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/css/about.css b/css/about.css index 28f7a15..8f07e11 100644 --- a/css/about.css +++ b/css/about.css @@ -607,11 +607,6 @@ body { font-size: 1.5rem; } -.stat-key { - font-size: 0.8rem; - color: var(--text-tertiary); - text-transform: uppercase; -} /* --- MBTI --- */ .area-mbti { @@ -1820,6 +1815,32 @@ body { text-overflow: ellipsis; } +/* 黑夜模式样式增强 */ +[data-theme="night"] .area-stats { + background: rgba(30, 30, 35, 0.55); + border: 1px solid rgba(255, 255, 255, 0.08); + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); +} + +[data-theme="night"] .stat-item { + background: rgba(255, 255, 255, 0.05); +} + +[data-theme="night"] .stat-item:hover { + background: rgba(108, 92, 231, 0.2); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); +} + +[data-theme="night"] .stat-val { + color: #fff; + text-shadow: 0 0 10px var(--accent-glow); +} + +[data-theme="night"] .stat-key { + color: var(--text-secondary); + text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); +} + /* PC端统计区域响应式布局 */ @media (min-width: 1446px) { .area-stats {