/* 全局消息提示样式 - 类似 Ant Design Message */
.message-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.5715;
    pointer-events: auto;
    animation: messageSlideDown 0.3s ease-out;
    max-width: 400px;
    word-wrap: break-word;
}

.message.message-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.message.message-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.message.message-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

.message.message-info {
    background-color: #f0f9ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.message-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

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

.message.message-fade-out {
    animation: messageFadeOut 0.3s ease-out forwards;
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-container {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    
    .message {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
}
