/* 前端样式（基础响应式卡片） */
.rcc-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    margin-bottom: 20px;
    position: relative;
}

.rcc-card .rcc-image {
    flex: 0 0 120px;
}

.rcc-card .rcc-image img {
    max-width: 120px;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}

.rcc-card .rcc-image img:hover {
    transform: scale(1.05);
}

/* PC端商品卡主图放大50% */
@media (min-width: 601px) {
    .rcc-card .rcc-image {
        flex: 0 0 180px; /* 120px * 1.5 = 180px */
    }
    
    .rcc-card .rcc-image img {
        max-width: 180px; /* 120px * 1.5 = 180px */
    }
    
    /* PC端为按钮留出空间，避免与标签重叠 */
    .rcc-card .rcc-body {
        position: relative;
        padding-bottom: 50px; /* 为按钮留出足够空间 */
    }
    
    .rcc-card .rcc-tags {
        margin-bottom: 10px; /* 增加标签与按钮的间距 */
    }
}

.rcc-card .rcc-body {
    flex: 1;
}

.rcc-card .rcc-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px !important;
    line-height: 1.4;
}

.rcc-card .rcc-brand-tag {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.4;
}

.rcc-card .rcc-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rcc-card .rcc-title a:hover {
    color: #1e8cbe;
}

.rcc-card .rcc-title-ratings {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rcc-card .rcc-title-rating {
    font-size: 12px;
    font-weight: 500;
    padding: 0 6px;
    border-radius: 3px;
    color: #fff;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.rcc-card .rcc-title-rating-lgst {
    background-color: #3498db;
}

.rcc-card .rcc-title-rating-serv {
    background-color: #2ecc71;
}

.rcc-card .rcc-title-rating-desc {
    background-color: #e74c3c;
}

/* 评分标签闪光效果 */
.rcc-card .rcc-title-rating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.rcc-card .rcc-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcc-card .rcc-prices {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 8px 0;
}

.rcc-card .rcc-price {
    color: #d33;
    font-weight: 700;
    font-size: 18px;
}

.rcc-card .rcc-discount-price {
    color: #666;
    font-size: 14px;
    text-decoration: line-through;
}

.rcc-card .rcc-meta {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.rcc-card .rcc-sales {
    margin-right: 10px;
}

.rcc-card .rcc-coupon {
    color: #e74c3c;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 5px;
    display: inline-block;
}

.rcc-card .rcc-coupon-condition {
    color: #666;
    font-size: 12px;
}

.rcc-card .rcc-platform-coupon {
    color: #e67e22;
    font-weight: 500;
    margin-right: 10px;
}

.rcc-card .rcc-platform-coupon-condition {
    color: #666;
    font-size: 12px;
}

.rcc-card .rcc-mall {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}





.rcc-card .rcc-tags {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rcc-card .rcc-tag {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.rcc-card .rcc-actions {
    margin-top: 10px;
    position: absolute;
    bottom: 2px;
    right: 10px;
}

.rcc-card .rcc-btn {
    background: linear-gradient(135deg, #E02E24 0%, #C41E1A 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(224, 46, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.rcc-card .rcc-btn:hover {
    background: linear-gradient(135deg, #C41E1A 0%, #A01815 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(224, 46, 36, 0.4);
}

.rcc-card .rcc-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(224, 46, 36, 0.3);
}

.rcc-card .rcc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.rcc-card .rcc-btn:hover::before {
    left: 100%;
}

.rcc-card .rcc-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.rcc-card .rcc-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.rcc-error {
    color: #d33;
    padding: 10px;
    border: 1px solid #d33;
    border-radius: 4px;
    background: #fff8f8;
}

@media (max-width: 600px) {
    .rcc-card {
        flex-direction: column;
    }
    .rcc-card .rcc-image {
        flex-basis: auto;
        width: 100%;
        text-align: center;
    }
    .rcc-card .rcc-image img {
        max-width: 100%;
        height: auto;
    }
    .rcc-card .rcc-actions {
        position: static;
        margin-top: 10px;
        text-align: right;
    }
}