/* 网络检测遮蔽窗样式 */
.network-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.network-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.network-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.network-image {
    width: 300px;
    height: 300px;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    animation: pulse 2s infinite alternate;
}

/* 网络加载动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    margin-top: 20px;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-overlay.network-checking .loading-spinner {
    opacity: 1;
}

/* 网络状态指示器 */
.network-status-indicator {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    display: none;
}

.network-overlay.network-checking .network-status-indicator {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.network-status-indicator.online {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.network-status-indicator.offline {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .network-image {
        width: 200px;
        height: 200px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}