/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    border-left: 4px solid;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.toast.error {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.toast.warning {
    border-left-color: #ffc107;
    background: #fffdf5;
}

.toast.info {
    border-left-color: #17a2b8;
    background: #f8fdff;
}

.toast-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.toast-icon {
    margin-right: 12px;
    font-size: 18px;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.toast-close:hover {
    color: #666;
}

/* Toast确认对话框样式 */
.toast-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.toast-confirm.show {
    opacity: 1;
    visibility: visible;
}

.toast-confirm-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 3px solid #ffb3d9;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.toast-confirm.show .toast-confirm-content {
    transform: scale(1);
}

.toast-confirm-icon {
    font-size: 3rem;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.toast-confirm-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

.toast-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.toast-confirm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.toast-confirm-ok {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff9ec7 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.toast-confirm-ok:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,157,0.4);
}

.toast-confirm-cancel {
    background: #f0f0f0;
    color: #666;
}

.toast-confirm-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
        padding: 12px 16px;
    }
    
    .toast-message {
        font-size: 13px;
    }

    .toast-confirm-content {
        padding: 20px;
        max-width: 90%;
    }

    .toast-confirm-icon {
        font-size: 2.5rem;
    }

    .toast-confirm-message {
        font-size: 1rem;
    }

    .toast-confirm-actions {
        flex-direction: column;
    }

    .toast-confirm-btn {
        width: 100%;
    }
}