style(css): 增强黑夜模式下的统计区域样式

- 移除旧的 stat-key 样式定义
- 添加黑夜模式下 area-stats 的背景、边框和阴影效果
- 定义黑夜模式下 stat-item 的背景及悬停效果
- 设置黑夜模式下 stat-val 的文字颜色和发光效果
- 配置黑夜模式下 stat-key 的文字颜色和微弱发光效果
This commit is contained in:
hehh
2025-11-25 21:45:58 +08:00
parent d8290974b5
commit 14e669178e

View File

@@ -607,11 +607,6 @@ body {
font-size: 1.5rem; font-size: 1.5rem;
} }
.stat-key {
font-size: 0.8rem;
color: var(--text-tertiary);
text-transform: uppercase;
}
/* --- MBTI --- */ /* --- MBTI --- */
.area-mbti { .area-mbti {
@@ -1820,6 +1815,32 @@ body {
text-overflow: ellipsis; 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端统计区域响应式布局 */ /* PC端统计区域响应式布局 */
@media (min-width: 1446px) { @media (min-width: 1446px) {
.area-stats { .area-stats {