/**
 * 浮动卡片样式
 */

.floating-cards-container {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 200px;
}

.price-card, .wechat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
}

.price-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 12px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.price-header h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.price-content {
    padding: 20px 15px;
    text-align: center;
    background: #fafafa;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
    line-height: 1;
    margin-bottom: 5px;
}

.price-unit {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.price-time {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 8px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.wechat-header {
    background: #07c160;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.wechat-header h4 {
    margin: 0;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.wechat-content {
    padding: 20px 15px;
    text-align: center;
    background: #fff;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.qr-placeholder p {
    margin: 0;
    font-size: 12px;
    color: #333;
}

.qr-desc {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-cards-container {
        right: 5px;
        max-width: 160px;
        gap: 10px;
    }
    
    .price-header h3 {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .price-content {
        padding: 15px 10px;
    }
    
    .wechat-header h4 {
        font-size: 11px;
    }
    
    .wechat-content {
        padding: 15px 10px;
    }
    
    .qr-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .floating-cards-container {
        display: none; /* 小屏幕隐藏浮动卡片，避免遮挡主内容 */
    }
}

