/* 通用弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 16px;
    text-align: center;
}

.modal-body .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.modal-body .icon.info {
    color: #3b82f6;
}

.modal-body .icon.warning {
    color: #f59e0b;
}

.modal-body .icon.error {
    color: #ef4444;
}

.modal-body .icon.success {
    color: #10b981;
}

.modal-body p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background-color: #3b82f6;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #2563eb;
}

.modal-btn.secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-btn.secondary:hover {
    background-color: #e5e7eb;
}