/* 大型动效设计 */
.large-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 绽放花朵 */
.flower {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.7;
    animation: flowerBloom 15s infinite ease-in-out;
}

.flower-1 {
    top: 10%;
    left: 5%;
    color: var(--primary);
    animation-delay: 0s;
}

.flower-2 {
    top: 15%;
    right: 10%;
    color: var(--accent);
    animation-delay: 3s;
}

.flower-3 {
    bottom: 20%;
    left: 10%;
    color: var(--secondary);
    animation-delay: 6s;
}

.flower-4 {
    bottom: 10%;
    right: 5%;
    color: var(--primary-dark);
    animation-delay: 9s;
}

.flower-5 {
    top: 40%;
    left: 15%;
    color: var(--primary-light);
    animation-delay: 12s;
}

.petal {
    position: absolute;
    width: 60px;
    height: 100px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
    transform-origin: bottom center;
}

.petal-1 { transform: rotate(0deg); }
.petal-2 { transform: rotate(45deg); }
.petal-3 { transform: rotate(90deg); }
.petal-4 { transform: rotate(135deg); }
.petal-5 { transform: rotate(180deg); }
.petal-6 { transform: rotate(225deg); }
.petal-7 { transform: rotate(270deg); }
.petal-8 { transform: rotate(315deg); }

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.8;
}

/* 流动线条 */
.flow-line {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.6;
    animation: flowMove 20s infinite linear;
}

.flow-line-1 {
    top: 25%;
    left: -200px;
    width: 400px;
    color: var(--primary);
    animation-delay: 0s;
}

.flow-line-2 {
    top: 65%;
    right: -200px;
    width: 400px;
    color: var(--accent);
    animation-delay: 5s;
}

.flow-line-3 {
    bottom: 35%;
    left: -200px;
    width: 400px;
    color: var(--secondary);
    animation-delay: 10s;
}

.flow-line-4 {
    top: 45%;
    right: -200px;
    width: 400px;
    color: var(--primary-light);
    animation-delay: 15s;
}

/* 大型浮动形状 */
.large-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: shapeFloat 25s infinite ease-in-out;
}

.large-shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    animation-delay: 0s;
}

.large-shape-2 {
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: var(--accent);
    animation-delay: 8s;
}

.large-shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: 16s;
    opacity: 0.05;
}

/* 背景光晕 */
.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    animation: glowShift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* 动画定义 */
@keyframes flowerBloom {
    0%, 100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes flowMove {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.08;
    }
    50% {
        transform: translate(-30px, 40px) scale(1.05);
        opacity: 0.1;
    }
    75% {
        transform: translate(-50px, -20px) scale(1.15);
        opacity: 0.07;
    }
}

@keyframes glowShift {
    0% {
        opacity: 0.6;
        background-position: 0% 0%;
    }
    100% {
        opacity: 0.9;
        background-position: 100% 100%;
    }
}