.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
}

.shape {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.1;
    animation: float 20s infinite;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 60%;
    left: 70%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
    top: 30%;
    left: 50%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    width: 180px;
    height: 180px;
    border-radius: 50% 50% 30% 60% / 40% 60% 40% 60%;
    top: 70%;
    left: 20%;
    animation-delay: -15s;
}

.shape:nth-child(5) {
    width: 150px;
    height: 150px;
    border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
    top: 20%;
    left: 80%;
    animation-delay: -7s;
}

.shape:nth-child(6) {
    width: 220px;
    height: 220px;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    top: 80%;
    left: 40%;
    animation-delay: -12s;
}

.shape:nth-child(7) {
    width: 170px;
    height: 170px;
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    top: 40%;
    left: 30%;
    animation-delay: -3s;
}

.shape:nth-child(8) {
    width: 190px;
    height: 190px;
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    top: 50%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 添加网格背景 */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

/* 添加光晕效果 */
.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
    var(--primary-color) 0%,
    transparent 50%);
    opacity: 0.1;
    filter: blur(100px);
}

/* 深色模式优化 */
[data-theme="dark"] .shape {
    opacity: 0.15;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

[data-theme="dark"] .geometric-shapes {
    opacity: 0.15;
}

[data-theme="dark"] .grid-background {
    opacity: 0.15;
}

[data-theme="dark"] .glow-effect {
    opacity: 0.15;
} 