/* Modal 对话框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease-out;
}

.modal-overlay.modal-exit {
    animation: modalFadeOut 0.2s ease-in forwards;
}

.modal-dialog {
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-overlay.modal-exit .modal-dialog {
    animation: modalSlideOut 0.3s ease-in forwards;
}

.modal-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #303840;
    margin: 0;
    line-height: 1.4;
}

.modal-body {
    padding: 20px;
    color: #303840;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.modal-footer {
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    min-width: 80px;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.modal-btn-primary {
    background-color: #ff6e26;
    color: #FFFFFF;
}

.modal-btn-primary:hover {
    background-color: #e55d1f;
}

.modal-btn-default {
    background-color: #F0F0F0;
    color: #303840;
}

.modal-btn-default:hover {
    background-color: #E0E0E0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
}

