
    /* 基础样式 */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.toast-container {
    position: fixed;
    top: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    min-width: 50%;
    max-width: 100%;
}
.toast {
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.hide {
    transform: translateY(20px);
    opacity: 0;
}
.toast-primary { background-color: #3b82f6; }
.toast-success { background-color: #10b981; }
.toast-warning { background-color: #f59e0b; }
.toast-error { background-color: #ef4444; }

/* 图标样式 */
.toast-icon {
    font-size: 18px;
}

/* 进度条样式 */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0,0,0,0.2);
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    transition: width linear;
}
.toast-primary .toast-progress-bar { background-color: #2563eb; }
.toast-success .toast-progress-bar { background-color: #059669; }
.toast-warning .toast-progress-bar { background-color: #d97706; }
.toast-error .toast-progress-bar { background-color: #dc2626; }

/* 关闭按钮样式 */
.toast-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    position: absolute;
    right: 10px;
}
.toast-close:hover {
    opacity: 1;
}
