/**
 * 虚拟实时购买记录展示样式
 */

/* 容器 */
.virtual-purchase-container {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 9997;
    pointer-events: none;
}

/* 通知框 */
.virtual-purchase-notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
}

.virtual-purchase-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.virtual-purchase-notification.hide {
    opacity: 0;
    transform: translateX(-100%);
}

/* 图标 */
.vp-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* 内容区 */
.vp-content {
    flex: 1;
    min-width: 0;
}

.vp-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.vp-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vp-location {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 10px;
}

.vp-goods {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-time {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
}

/* 关闭按钮 */
.vp-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    flex-shrink: 0;
    transition: all 0.2s;
}

.vp-close:hover {
    background: #e0e0e0;
    color: #666;
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .virtual-purchase-container {
        left: 10px;
        bottom: 80px;
        right: 10px;
    }
    
    .virtual-purchase-notification {
        min-width: auto;
        max-width: 100%;
        padding: 12px 15px;
    }
    
    .vp-icon {
        font-size: 24px;
    }
    
    .vp-username {
        font-size: 13px;
    }
    
    .vp-goods {
        font-size: 12px;
    }
}

/* 不同主题色（可选） */
.virtual-purchase-notification.theme-success {
    border-left: 4px solid #4CAF50;
}

.virtual-purchase-notification.theme-primary {
    border-left: 4px solid #667eea;
}

.virtual-purchase-notification.theme-warning {
    border-left: 4px solid #ff9800;
}

