/* 加载模态弹窗样式 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading.hidden {
    display: none !important;
}

/* 弹窗容器 */
.simple-loading-container {
    background: white;
    border-radius: 20px;
    padding: 45px 40px;
    max-width: 520px;
    width: 90%;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* 头部 */
.loading-header {
    text-align: center;
    margin-bottom: 30px;
}

.loading-header h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.loading-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    min-height: 21px;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

/* 进度条容器 */
.progress-container {
    margin: 30px 0;
}

.progress-bar-simple {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill-simple {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 进度条光泽效果 */
.progress-fill-simple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* 底部按钮区 */
.loading-footer {
    text-align: center;
    margin-top: 30px;
}

.loading-footer .btn {
    padding: 12px 32px;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.loading-footer .btn-danger {
    background: #ef4444;
    color: white;
}

.loading-footer .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .simple-loading-container {
        padding: 35px 25px;
        width: 85%;
        max-width: 400px;
    }

    .loading-header h3 {
        font-size: 20px;
    }

    .loading-header p {
        font-size: 13px;
    }

    .loading-footer .btn {
        padding: 10px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .simple-loading-container {
        padding: 30px 20px;
        width: 90%;
    }

    .loading-header h3 {
        font-size: 18px;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    .simple-loading-container {
        background: #1f1f1f;
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .loading-header h3 {
        color: #ffffff;
    }

    .loading-header p {
        color: #a0a0a0;
    }

    .progress-bar-simple {
        background: #2a2a2a;
    }
}