/* ========== Toast 轻量提示框样式 (增强版) ========== */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 30px;
    min-width: 320px;
    max-width: 420px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10001;
    opacity: 0;
    transform: translateX(450px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid;
    animation: slideInBounce 0.5s ease-out forwards;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: pulse 0.3s ease-in-out;
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateX(450px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateX(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(0) scale(1.05);
    }
}

.toast-notification.toast-success {
    border-left-color: #10b981;
}

.toast-notification.toast-error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
    font-style: normal;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ========== 自定义确认框样式 ========== */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    max-width: 500px;
    animation: slideUp 0.3s ease;
}

.confirm-dialog-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
}

.confirm-dialog-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.confirm-dialog-body {
    padding: 25px;
}

.confirm-dialog-body p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.confirm-dialog-footer {
    padding: 15px 25px;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 12px 12px;
}

.confirm-btn-cancel,
.confirm-btn-ok {
    padding: 8px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn-cancel {
    background: #e5e5e5;
    color: #666;
}

.confirm-btn-cancel:hover {
    background: #d0d0d0;
}

.confirm-btn-ok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.confirm-btn-ok:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .confirm-dialog {
        min-width: 90%;
        max-width: 90%;
        margin: 0 20px;
    }
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}
