/* Toast 轻提示：出现后自动消失 */

.toast-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: min(92vw, 560px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e4e7ed;
    box-shadow: 0 8px 26px rgba(48, 49, 51, .14);
    color: #303133;
    font-size: 13.5px;
    line-height: 1.6;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease;
}

.toast.is-show { opacity: 1; transform: translateY(0); }
.toast.is-hide { opacity: 0; transform: translateY(-8px); }

.toast-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 2px;
}

.toast-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast-text { flex: 1; min-width: 0; word-break: break-word; }
.toast-text p { margin: 0; }
.toast-text p + p { margin-top: 3px; }

.toast-ok { border-color: #c9e9d2; }
.toast-ok .toast-icon { color: #20a53a; }
.toast-err { border-color: #fde2e2; }
.toast-err .toast-icon { color: #f56c6c; }
.toast-info { border-color: #d9ecff; }
.toast-info .toast-icon { color: #409eff; }

@media (max-width: 520px) {
    .toast-stack { top: 12px; max-width: calc(100vw - 24px); }
    .toast { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .toast { transition: none; }
}
