/* 彩色消息提示 — qmsg风格渐变Toast */
.zm-toast-wrapper {
    position: fixed;
    top: 20px; left: 0;
    z-index: 12012;
    width: 100%;
    pointer-events: none;
    font-size: 1rem;
    font-weight: 500;
}
.zm-toast-item {
    padding: 8px;
    text-align: center;
    animation-duration: .3s;
    will-change: transform;
}
.zm-toast-content {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    pointer-events: all;
    max-width: 80%;
    min-width: 80px;
}
.zm-toast-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}
.zm-toast-inner .zm-toast-icon {
    display: flex;
    align-items: center;
    height: 16px;
    margin-right: 8px;
}
.zm-toast-inner span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
}
/* 类型配色 */
.zm-toast-info    .zm-toast-inner { background: linear-gradient(135deg, #635bff, #539bff); }
.zm-toast-success .zm-toast-inner { background: linear-gradient(135deg, #0cd20f, #6ad22e); }
.zm-toast-warning .zm-toast-inner { background: linear-gradient(135deg, #f57f32, #eeac27); }
.zm-toast-error   .zm-toast-inner { background: linear-gradient(135deg, #ff4d49, #f85071); }

/* 动画 */
@keyframes zm-toast-in {
    0%   { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes zm-toast-out {
    0%   { max-height: 150px; padding: 8px; opacity: 1; }
    100% { max-height: 0; padding: 0; opacity: 0; }
}
.zm-toast-item { animation: zm-toast-in .3s ease forwards; }
.zm-toast-item.zm-toast-closing { animation: zm-toast-out .3s ease forwards; }
