/* 装饰效果CSS样式 */

/* 黑白模式 */
body.black-white-mode {
    filter: grayscale(100%);
}

/* 下雨效果 */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    background-color: rgba(174, 194, 224, 0.5);
    border-radius: 50%;
    width: 2px;
    height: 20px;
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 灯笼装饰 */
.lanterns-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 1000;
}

.lantern-con {
    position: absolute;
}

.lantern-light {
    position: relative;
    width: 120px;
    height: 90px;
    background-color: red;
    margin: 30px;
    border-radius: 50%;
    box-shadow: -5px 5px 50px 4px #fa6c00;
    transform-origin: top center;
}

.lantern-light.lantern-animation {
    animation: lantern-swing 3s infinite ease-in-out;
}

.lantern-light::before,
.lantern-light::after {
    content: '';
    position: absolute;
    border: 1px solid #dc8f03;
    width: 60px;
    height: 12px;
    background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
    left: 30px;
}

.lantern-light::before {
    top: -7px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.lantern-light::after {
    bottom: -7px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.lantern-line {
    width: 2px;
    height: 50px;
    background-color: #dc8f03;
    position: absolute;
    left: 88px;
}

.lantern-circle,
.lantern-rect {
    height: 90px;
    border-radius: 50%;
    border: 2px solid #dc8f03;
    background-color: rgba(216, 0, 15, .1);
}

.lantern-circle {
    width: 100px;
    margin: 12px 8px 8px 10px;
}

.lantern-rect {
    margin: -2px 8px 8px 26px;
    width: 45px;
}

.lantern-text {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #dc8f03;
    margin-top: 4px;
}

.lantern-tassel-top {
    width: 5px;
    height: 20px;
    background-color: #ffa500;
    border-radius: 0 0 5px 5px;
    position: relative;
    margin: -5px 0 0 59px;
}

.lantern-tassel-top.lantern-animation {
    animation: lantern-swing 3s infinite ease-in-out;
}

.lantern-tassel-middle,
.lantern-tassel-bottom {
    position: absolute;
    width: 10px;
    left: -2px;
}

.lantern-tassel-middle {
    border-radius: 50%;
    top: 14px;
    height: 10px;
    background-color: #dc8f03;
    z-index: 2;
}

.lantern-tassel-bottom {
    background-color: #ffa500;
    border-bottom-left-radius: 5px;
    height: 35px;
    top: 18px;
    z-index: 1;
}

@keyframes lantern-swing {
    0% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(-6deg);
    }
}

/* 花瓣飘落效果 */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.petal {
    position: absolute;
    border-radius: 50% 0 50% 0;
    width: 15px;
    height: 15px;
    opacity: 0.8;
    animation: petal-fall linear infinite;
}

@keyframes petal-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
