/* 公共弹窗壳 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: oaModalFadeIn 0.25s ease;
}

@keyframes oaModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: oaModalSlideDown 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes oaModalSlideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 12px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #e9ecef;
    background: #f8fafc;
    flex-shrink: 0;
}

.modal-footer .btn,
.form-actions .btn {
    min-width: 72px;
    padding: 7px 14px;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 8px;
}

.close,
.close-btn {
    color: #adb5bd;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: transparent;
    line-height: 1;
    padding: 0 4px;
}

.close:hover,
.close-btn:hover {
    color: #495057;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 16px auto;
        max-height: 92vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 14px 16px;
    }
}
