/* ========================================
   加载进度条和动画样式 - 专业版 v2.0
   ======================================== */

/* ==================== 进度条容器 ==================== */
.loading-progress-container {
    width: 100%;
    max-width: 560px;
    margin: 36px auto 24px;
}

.loading-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressGradient 2.5s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    position: relative;
}

.loading-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-progress-text {
    text-align: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==================== 加载消息 ==================== */
.loading-message {
    color: var(--white);
    font-size: 16px;
    text-align: center;
    margin: 32px auto;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    min-height: 56px;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ==================== 取消按钮 ==================== */
.btn-cancel-loading {
    margin-top: 36px;
    padding: 14px 40px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.3px;
}

.btn-cancel-loading:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 1) 0%, rgba(185, 28, 28, 1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.5);
}

.btn-cancel-loading:active {
    transform: translateY(-1px);
}

.btn-cancel-loading svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* ==================== 加载动画布局优化 ==================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .loading-progress-container {
        max-width: 90%;
    }

    .loading-message {
        font-size: 14px;
        padding: 14px 24px;
        margin: 24px auto;
    }

    .btn-cancel-loading {
        padding: 12px 32px;
        font-size: 15px;
    }

    .loading-progress-text {
        font-size: 16px;
    }
}