/* 自定义弹窗样式 */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.custom-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(225deg, #3be7fe -11.69%, rgba(59, 184, 254, 0) 22.91%), linear-gradient(42deg, #3be7fe -19.17%, rgba(59, 184, 254, 0) 27.1%), linear-gradient(312deg, #217aff 35%, #4434ff 104.66%), #3a89fe;
}

.modal-header.success {
    /* background: linear-gradient(135deg, #52c41a, #73d13d); */
    color: white;
    border-bottom: none;
}

.modal-header.error {
    /* background: linear-gradient(225deg, #3be7fe -11.69%, rgba(59, 184, 254, 0) 22.91%), linear-gradient(42deg, #3be7fe -19.17%, rgba(59, 184, 254, 0) 27.1%), linear-gradient(312deg, #217aff 35%, #4434ff 104.66%), #3a89fe; */
    /* background: linear-gradient(135deg, #ff4d4f, #ff7875); */
    color: white;
    border-bottom: none;
}

.modal-header.warning {
    /* background: linear-gradient(135deg, #faad14, #ffc53d); */
    color: white;
    border-bottom: none;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 24px;
    text-align: center;
    line-height: 1.6;
}

.modal-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}

.modal-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
    font-size: 14px;
    color: #666;
    border-left: 4px solid #1890ff;
}

.modal-details.success {
    border-left-color: #52c41a;
    background: #f6ffed;
}

.modal-details.error {
    border-left-color: #ff4d4f;
    background: #fff2f0;
}

.application-id {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1890ff;
    background: #e6f7ff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 4px;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 144, 255, 0.3);
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-btn.secondary:hover {
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-list {
    text-align: left;
    margin: 12px 0;
}

.error-item {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    color: #a8071a;
    font-size: 14px;
}

.error-item::before {
    content: "⚠️ ";
    margin-right: 6px;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}