body.rainy-theme {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #4a5568;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #63b3ed, #4299e1);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.5);
}


.rain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}


.rain-bg::before,
.rain-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background: rgba(138, 185, 205, 0.6);
    animation: rain-fall linear infinite;
}

.rain-bg::before {
    left: 20%;
    animation-duration: 0.8s;
    animation-delay: 0s;
}

.rain-bg::after {
    left: 80%;
    animation-duration: 1.2s;
    animation-delay: 0.3s;
}


@keyframes rain-fall {
    0% {
        transform: translateY(-100vh) rotate(15deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(15deg);
        opacity: 0;
    }
}


.rain-cloud {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 200px;
    height: 80px;
    background: rgba(156, 163, 175, 0.8);
    border-radius: 50px;
    z-index: -1;
    animation: cloud-drift 20s linear infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rain-cloud::before,
.rain-cloud::after {
    content: '';
    position: absolute;
    background: rgba(156, 163, 175, 0.8);
    border-radius: 50%;
}

.rain-cloud::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.rain-cloud::after {
    width: 80px;
    height: 80px;
    top: -40px;
    right: 20px;
}

@keyframes cloud-drift {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }
}


.rain-lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rain-lightning.flash {
    opacity: 1;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    animation: lightning-flash 0.2s ease-in-out;
}

@keyframes lightning-flash {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}


body.rainy-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -2;
    pointer-events: none;
}


@media (max-width: 768px) {
    .rain-cloud {
        width: 150px;
        height: 60px;
        top: 5%;
        left: 5%;
        animation-duration: 15s;
    }

    .rain-cloud::before {
        width: 40px;
        height: 40px;
        left: 10px;
    }

    .rain-cloud::after {
        width: 60px;
        height: 60px;
        right: 10px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .rain-bg::before,
    .rain-bg::after,
    .rain-cloud {
        animation: none;
    }

    .rain-lightning {
        display: none;
    }
}