/* ========================================
   身份证明上传进度样式
   用于第二步（当事人信息）的上传反馈
   ======================================== */

/* ==================== 进度容器 ==================== */
.identity-upload-progress {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 文件信息 ==================== */
.identity-upload-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.identity-file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(33, 150, 243, 0);
    }
}

.identity-file-details {
    flex: 1;
    min-width: 0;
}

.identity-file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    word-break: break-all;
    font-size: 15px;
}

.identity-file-size {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ==================== 进度条 ==================== */
.identity-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.identity-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3 0%, #42A5F5 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

/* ==================== 进度文本 ==================== */
.identity-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.identity-status {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
}

.identity-speed {
    font-size: 12px;
    color: #6b7280;
}

/* ==================== 成功状态 ==================== */
.identity-upload-progress.success .identity-file-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.identity-upload-progress.success .identity-progress-fill {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
}

.identity-upload-progress.success .identity-status {
    color: #4CAF50;
}

/* ==================== 失败状态 ==================== */
.identity-upload-progress.error .identity-file-icon {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.identity-upload-progress.error .identity-progress-fill {
    background: linear-gradient(90deg, #f44336 0%, #e57373 100%);
}

.identity-upload-progress.error .identity-status {
    color: #f44336;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .identity-upload-progress {
        padding: 16px;
    }

    .identity-file-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .identity-file-name {
        font-size: 14px;
    }

    .identity-file-size,
    .identity-speed {
        font-size: 11px;
    }

    .identity-status {
        font-size: 13px;
    }

    .identity-progress-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}