.rpn-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(-100%);
    transition: all 0.5s ease;
    font-family: Arial, sans-serif;
    cursor: default;
}

.rpn-notification.show {
    transform: translateX(0);
}

.rpn-notification:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    transform: translateX(0) translateY(-2px);
}

.rpn-notification .rpn-content {
    display: flex;
    align-items: center;
    position: relative;
}

.rpn-notification .rpn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.rpn-notification .rpn-product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.rpn-notification .rpn-text {
    flex: 1;
    min-width: 0;
}

.rpn-notification .rpn-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.rpn-notification .rpn-product {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 2px;
    line-height: 1.3;
    word-wrap: break-word;
}

.rpn-notification .rpn-product-link {
    color: #ffeb3b;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rpn-notification .rpn-product-link:hover {
    color: #fff59d;
    text-decoration: none;
}

.rpn-notification .rpn-time {
    font-size: 11px;
    opacity: 0.7;
}

.rpn-notification .rpn-close {
    position: absolute;
    top: -5px;
    right: -8px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rpn-notification .rpn-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.rpn-notification .rpn-vibe-link {
    margin-top: 8px;
    color: #ffeb3b;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-block;
}

.rpn-notification .rpn-vibe-link:hover {
    color: #fff59d;
}

@media (max-width: 480px) {
    .rpn-notification {
        bottom: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .rpn-notification .rpn-product-image,
    .rpn-notification .rpn-avatar {
        width: 40px;
        height: 40px;
    }
    
    .rpn-notification .rpn-close {
        top: -3px;
        right: -3px;
    }
}

/* 淡入淡出动画 */
@keyframes rpnFadeIn {
    from {
        opacity: 0;
        transform: translateX(-100%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes rpnFadeOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%) translateY(-20px);
    }
}

.rpn-notification.rpn-animate-in {
    animation: rpnFadeIn 0.5s ease-out;
}

.rpn-notification.rpn-animate-out {
    animation: rpnFadeOut 0.5s ease-in;
}