 #toastContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    position: relative;
    padding: 25px 50px 25px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 350px;
    max-width: 90vw;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.info {
    background: #3498db;
}

.toast.info::before {
    background: #2980b9;
}

.toast.success {
    background: #2ecc71;
}

.toast.success::before {
    background: #27ae60;
}

.toast.warning {
    background: #f39c12;
}

.toast.warning::before {
    background: #d35400;
}

.toast.error {
    background: #e74c3c;
}

.toast.error::before {
    background: #c0392b;
}

.toast-icon {
    font-size: 28px;
    margin-right: 15px;
    min-width: 28px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 关键修改: 实现自动换行 */
.toast-message {
    font-size: 1.05rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: white;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    border-radius: 0 0 12px 12px;
    width: 100%;
}

.progress-value {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.1s linear;
    border-radius: 0 0 12px 12px;
}

.toast.info .progress-value {
    background: rgba(255, 255, 255, 0.7);
}

.toast.success .progress-value {
    background: rgba(255, 255, 255, 0.7);
}

.toast.warning .progress-value {
    background: rgba(255, 255, 255, 0.8);
}

.toast.error .progress-value {
    background: rgba(255, 255, 255, 0.7);
}