恢复背景效果

This commit is contained in:
CN-JS-HuiBai
2026-04-05 22:47:48 +08:00
parent 2a8cb32d47
commit afe7361e06
3 changed files with 59 additions and 36 deletions

View File

@@ -127,9 +127,7 @@ html {
body {
font-family: var(--font-sans);
background: radial-gradient(circle at 0% 0%, #1a1e2e 0%, #0a0e1a 45%),
radial-gradient(circle at 100% 100%, #151a2e 0%, #0a0e1a 45%);
background-attachment: fixed;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
@@ -148,7 +146,51 @@ body {
pointer-events: none;
}
/* ---- Animated Background Classes Removed for Performance ---- */
.bg-glow {
position: fixed;
border-radius: 50%;
filter: blur(120px);
opacity: 0.4;
z-index: 0;
pointer-events: none;
animation: glowFloat 20s ease-in-out infinite;
will-change: transform, opacity;
}
.bg-glow-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
top: -200px;
left: -100px;
animation-delay: 0s;
}
.bg-glow-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
bottom: -150px;
right: -100px;
animation-delay: -7s;
}
.bg-glow-3 {
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-delay: -14s;
}
@keyframes glowFloat {
0%, 100% { transform: translate(0, 0) scale(1); }
25% { transform: translate(30px, -30px) scale(1.05); }
50% { transform: translate(-20px, 20px) scale(0.95); }
75% { transform: translate(25px, 15px) scale(1.02); }
}
/* ---- App Container ---- */
#app {
@@ -167,7 +209,9 @@ body {
align-items: center;
justify-content: space-between;
padding: 0 28px;
background: rgba(10, 14, 26, 0.95); /* More opaque, no filter */
background: rgba(10, 14, 26, 0.85);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid var(--border-color);
}
@@ -397,10 +441,8 @@ input:checked+.slider:before {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
/* backdrop-filter: blur(8px); */
/* -webkit-backdrop-filter: blur(8px); */
background: rgba(15, 22, 50, 0.9); /* More solid background for readability without blur */
transform: translateZ(0);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: all 0.3s ease;
overflow: hidden;
}
@@ -567,10 +609,8 @@ input:checked+.slider:before {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
/* backdrop-filter: blur(8px); */
/* -webkit-backdrop-filter: blur(8px); */
background: rgba(15, 22, 50, 0.9); /* More solid background for readability without blur */
transform: translateZ(0);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
overflow: hidden;
transition: all 0.3s ease;
}
@@ -1843,23 +1883,7 @@ input:checked+.slider:before {
}
/* Value update animation */
@keyframes valueFlash {
0% {
opacity: 1;
}
50% {
opacity: 0.6;
}
100% {
opacity: 1;
}
}
.value-update {
animation: valueFlash 0.3s ease;
}
/* Value update flash disabled */
/* ---- Scrollbar ---- */
::-webkit-scrollbar {