/* 闪存消息样式 */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 5s forwards;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.flash-icon {
    font-size: 24px;
    margin-right: 15px;
}

.flash-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    margin-left: 15px;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* 不同类型消息的颜色 */
.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 5px solid #10b981;
}

.flash-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 5px solid #fbbf24;
}

.flash-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 5px solid #ef4444;
}

.flash-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 5px solid #3b82f6;
}

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

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