/* 提示框容器 - 顶部居中 */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 90%;
    pointer-events: none;
    /* 容器不拦截事件 */
}

/* 单个提示框 */
.toast {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    /* 单个toast可以交互 */
    position: relative;
    width: max-content;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #e74c3c;
}

.toast.success {
    background: #27ae60;
}

.toast.warning {
    background: #f39c12;
}

.toast.info {
    background: #3498db;
}