/* ===== Toast 通知条 — 黑白欧美极简风 ===== */
.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    isolation: isolate;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 340px;
    max-width: 480px;
    padding: 16px 18px 17px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16), 0 2px 8px rgba(17, 24, 39, 0.08);
    border: 1px solid #d1d5db;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.toast.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 左侧强调线已移除 */

/* 图标 */
.toast-icon {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
}

.toast-icon svg {
    width: 12px;
    height: 12px;
}

.toast-success .toast-icon { background: #f9fafb; color: #111827; }
.toast-info .toast-icon    { background: #f3f4f6; color: #1f2937; }
.toast-warning .toast-icon { background: #f3f4f6; color: #374151; }
.toast-error .toast-icon   { background: #111827; color: #ffffff; border-color: #111827; }

/* 内容 */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #111827;
    margin: 0 0 3px;
    line-height: 1.35;
}

.toast-message {
    font-size: 15px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* 关闭按钮 */
.toast-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    transition: color .15s, background .15s;
}

.toast-close:hover {
    color: #111827;
    background: #f3f4f6;
}

/* 底部自动消失进度条 */
.toast-progress {
    position: absolute;
    left: 3px;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #e5e7eb;
    border-radius: 0 0 12px 0;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    border-radius: 0 0 12px 0;
    background: #111827;
    width: 100%;
    transform-origin: left;
    animation: toast-shrink var(--toast-duration, 3000ms) linear forwards;
}

.toast-success .toast-progress-bar { background: #111827; }
.toast-info .toast-progress-bar    { background: #374151; }
.toast-warning .toast-progress-bar { background: #6b7280; }
.toast-error .toast-progress-bar   { background: #000000; }

@keyframes toast-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }

    .toast {
        min-width: 0;
        max-width: none;
        padding: 14px 14px 15px;
        border-radius: 3px;
    }
}
