/* 统一消息提示样式 */
.message-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.message-toast {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    line-height: 1.5;
}

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

.message-toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* 消息类型样式 */
.message-toast.success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.message-toast.error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.message-toast.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.message-toast.info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* 关闭按钮 */
.message-toast .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: inherit;
}

.message-toast .close-btn:hover {
    opacity: 1;
}

/* 消息内容 */
.message-toast .message-content {
    padding-right: 25px;
}

/* 图标 */
.message-toast .message-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .message-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.message-toast.slide-in {
    animation: slideInRight 0.3s ease-out;
}

.message-toast.slide-out {
    animation: slideOutRight 0.3s ease-out;
} 