.msg-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7); /* 黑色透明背景 */
    color: #ffffff; /* 白色字体 */
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 9999; /* 最高层级，确保不被遮挡 */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 不阻挡底层点击 */
    max-width: 80%; /* 适配小屏幕，避免文字溢出 */
    text-align: center;
}

/* 弹框显示状态 */
.msg-toast.show {
    opacity: 1;
}