/* ===== Toast 通知组件 ===== */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 32px);
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    transition: all 0.25s ease-out;
    cursor: default;
}

.toast-item.toast-out {
    opacity: 0;
    transform: translateY(-12px);
}

.toast-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.toast-close {
    flex-shrink: 0;
    font-size: 16px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
    background: none;
    border: none;
}

.toast-close:hover {
    color: #666;
}

/* Variants */
.toast-success { border-left: 4px solid #10B981; }
.toast-success .toast-icon { color: #10B981; }

.toast-error { border-left: 4px solid #EF4444; }
.toast-error .toast-icon { color: #EF4444; }

.toast-warning { border-left: 4px solid #F59E0B; }
.toast-warning .toast-icon { color: #F59E0B; }

.toast-info { border-left: 4px solid #3B82F6; }
.toast-info .toast-icon { color: #3B82F6; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 确认弹窗 ===== */
.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.toast-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    max-width: 380px;
    width: calc(100% - 48px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    animation: modalIn 0.25s ease-out;
}

.toast-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 10px;
}

.toast-modal-body {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.toast-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.toast-modal-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.toast-modal-btn-cancel {
    background: #F3F4F6;
    color: #6B7280;
}

.toast-modal-btn-cancel:hover {
    background: #E5E7EB;
}

.toast-modal-btn-confirm {
    background: #FF4D6D;
    color: #fff;
}

.toast-modal-btn-confirm:hover {
    background: #E6395E;
}

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

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}