﻿/* ===== 自定义弹窗组件 ===== */
.sm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sm-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
}
.sm-modal-overlay.active .sm-modal {
    transform: scale(1) translateY(0);
}
.sm-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}
.sm-modal-icon.success { background: #dcfce7; color: #16a34a; }
.sm-modal-icon.error { background: #fee2e2; color: #dc2626; }
.sm-modal-icon.warning { background: #fef3c7; color: #d97706; }
.sm-modal-icon.info { background: #dbeafe; color: #2563eb; }
.sm-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}
.sm-modal-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: break-word;
}
.sm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.sm-modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}
.sm-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sm-modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.sm-modal-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
}
.sm-modal-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}