/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-image {
    width: 50%;
    height: 50%;
    max-width: 50%;
    max-height: 50%;
    min-width: 300px;
    min-height: 300px;
    object-fit: contain;
    animation: loadingPulse 2s ease-in-out infinite;
    /* 确保动图重复播放 */
    animation-iteration-count: infinite;
    animation-fill-mode: none;
    /* 强制动图循环播放 */
    image-rendering: auto;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}
