/* ============================================
   商品卡片统一样式 - 方案一：统一左右布局
   ============================================ */

/* 基础卡片样式 */
.rcc-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.rcc-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 图片区域 */
.rcc-card .rcc-image {
    width: 90px;
    min-width: 90px;
    height: 90px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 8px 8px;
}

.rcc-card .rcc-image a {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.rcc-card .rcc-image a::before,
.rcc-card .rcc-image a::after {
    display: none !important;
    content: none !important;
}

.rcc-card .rcc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rcc-card .rcc-image:hover img {
    transform: scale(1.05);
}

/* 图片放大提示 */
.rcc-card .rcc-image::after {
    content: '🔍';
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rcc-card .rcc-image:hover::after {
    opacity: 1;
}

/* 内容区域 */
.rcc-card .rcc-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

/* 标题 */
.rcc-card .rcc-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcc-card .rcc-brand-tag {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    vertical-align: middle;
    margin-right: 3px;
}

body .jizone-weibo-feed .jz-weibo-card .rcc-card .rcc-title a,
.jz-weibo-card .rcc-card .rcc-title a,
.rcc-card .rcc-title a {
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.rcc-card .rcc-title a:hover {
    color: #e4393c !important;
}

/* 评分区域 - 移动端隐藏 */
.rcc-card .rcc-title-ratings {
    display: none;
}

/* 描述 - 移动端隐藏 */
.rcc-card .rcc-desc {
    display: none;
}

/* 价格区域 */
.rcc-card .rcc-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.rcc-card .rcc-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.rcc-card .rcc-price {
    color: #e4393c;
    font-weight: 700;
    font-size: 16px;
}

.rcc-card .rcc-price .rcc-price-symbol {
    font-size: 12px;
    margin-right: 1px;
}

.rcc-card .rcc-discount-price {
    color: #999;
    font-size: 11px;
    text-decoration: line-through;
}

.rcc-card .rcc-sales {
    color: #999;
    font-size: 10px;
}

.rcc-card .rcc-coupon {
    display: inline-flex;
    align-items: center;
    background: #fff0f0;
    color: #e4393c;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid #ffcccc;
}

.rcc-card .rcc-coupon::before {
    content: '券';
    background: #e4393c;
    color: #fff;
    padding: 0 3px;
    border-radius: 2px;
    margin-right: 3px;
    font-size: 9px;
}

.rcc-card .rcc-platform-coupon {
    display: inline-flex;
    align-items: center;
    background: #fff8f0;
    color: #ff6600;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid #ffddbb;
}

.rcc-card .rcc-coupon-condition,
.rcc-card .rcc-platform-coupon-condition {
    color: #999;
    font-size: 9px;
    margin-left: 2px;
}

/* 店铺信息 - 移动端隐藏 */
.rcc-card .rcc-mall {
    display: none;
}

/* 标签 - 移动端隐藏 */
.rcc-card .rcc-tags {
    display: none;
}

/* 操作按钮 */
.rcc-card .rcc-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

body .jizone-weibo-feed .jz-weibo-card .rcc-card .rcc-btn,
.jz-weibo-card .rcc-card .rcc-btn,
.rcc-card .rcc-btn {
    flex: 1;
    background: linear-gradient(135deg, #e4393c 0%, #ff6b6b 100%);
    color: #fff !important;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none !important;
    display: block;
    font-weight: 500;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(228, 57, 60, 0.3);
}

.rcc-card .rcc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(228, 57, 60, 0.4);
}

/* 淘宝卡片按钮样式 */
.rcc-card.rcc-card-taobao .rcc-btn {
    background: linear-gradient(135deg, #ff5000 0%, #ff9000 100%);
    box-shadow: 0 1px 4px rgba(255, 80, 0, 0.3);
}

.rcc-card.rcc-card-taobao .rcc-btn:hover {
    box-shadow: 0 2px 6px rgba(255, 80, 0, 0.4);
}

.rcc-card .rcc-tpwd-copy-btn {
    background: linear-gradient(135deg, #666 0%, #888 100%) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 淘宝淘口令样式 - 移动端简化 */
.rcc-card .rcc-card-tpwd {
    background: linear-gradient(135deg, #ff5000 0%, #ff9000 100%);
    border-radius: 4px;
    padding: 4px 6px;
    color: #fff;
    font-size: 10px;
}

.rcc-card .rcc-tpwd-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rcc-card .rcc-tpwd-label {
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.rcc-card .rcc-tpwd-value {
    font-family: monospace;
    font-size: 9px;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 4px;
    border-radius: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.rcc-card .rcc-tpwd-full {
    display: none;
}

.rcc-card .rcc-tpwd-copy {
    background: #fff;
    color: #ff5000;
    border: none;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}

.rcc-card .rcc-tpwd-hint {
    display: none;
}

/* ============================================
   PC端布局 (768px以上)
   ============================================ */
@media (min-width: 768px) {
    .rcc-card {
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .rcc-card .rcc-image {
        width: 150px;
        min-width: 150px;
        height: 150px;
        margin: 12px 0 12px 12px;
    }

    .rcc-card .rcc-body {
        padding: 12px 14px;
        gap: 6px;
    }

    .rcc-card .rcc-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    /* 评分区域 - PC端显示 */
    .rcc-card .rcc-title-ratings {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .rcc-card .rcc-title-rating {
        font-size: 10px;
        font-weight: 500;
        padding: 1px 5px;
        border-radius: 2px;
        color: #fff;
        line-height: 1.3;
    }

    .rcc-card .rcc-title-rating-lgst {
        background: #3498db;
    }

    .rcc-card .rcc-title-rating-serv {
        background: #27ae60;
    }

    .rcc-card .rcc-title-rating-desc {
        background: #e74c3c;
    }

    /* 描述 - PC端显示 */
    .rcc-card .rcc-desc {
        display: -webkit-box;
        font-size: 12px;
        color: #888;
        margin: 0;
        line-height: 1.4;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rcc-card .rcc-price {
        font-size: 20px;
    }

    .rcc-card .rcc-price .rcc-price-symbol {
        font-size: 14px;
    }

    .rcc-card .rcc-discount-price {
        font-size: 12px;
    }

    .rcc-card .rcc-sales {
        font-size: 11px;
    }

    .rcc-card .rcc-coupon {
        font-size: 11px;
        padding: 2px 6px;
    }

    .rcc-card .rcc-coupon::before {
        font-size: 10px;
    }

    .rcc-card .rcc-platform-coupon {
        font-size: 11px;
        padding: 2px 6px;
    }

    /* 店铺信息 - PC端显示 */
    .rcc-card .rcc-mall {
        display: block;
        font-size: 11px;
        color: #666;
    }

    .rcc-card .rcc-mall-name {
        color: #333;
    }

    /* 标签 - PC端显示 */
    .rcc-card .rcc-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .rcc-card .rcc-tag {
        font-size: 10px;
        color: #666;
        background: #f5f5f5;
        padding: 1px 5px;
        border-radius: 2px;
    }

    body .jizone-weibo-feed .jz-weibo-card .rcc-card .rcc-btn,
    .jz-weibo-card .rcc-card .rcc-btn,
    .rcc-card .rcc-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 18px;
    }

    .rcc-card .rcc-card-tpwd {
        padding: 6px 8px;
        font-size: 11px;
    }

    .rcc-card .rcc-tpwd-value {
        font-size: 10px;
        padding: 2px 6px;
    }

    .rcc-card .rcc-tpwd-copy {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ============================================
   大屏幕优化 (1024px以上)
   ============================================ */
@media (min-width: 1024px) {
    .rcc-card .rcc-image {
        width: 160px;
        min-width: 160px;
        height: 160px;
        margin: 14px 0 14px 14px;
    }

    .rcc-card .rcc-body {
        padding: 14px 16px;
    }

    .rcc-card .rcc-title {
        font-size: 15px;
    }

    .rcc-card .rcc-price {
        font-size: 22px;
    }
}

/* ============================================
   图片放大模态框
   ============================================ */
.rcc-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
}

.rcc-image-modal.active {
    display: flex;
}

.rcc-image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.rcc-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.rcc-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   深色模式支持
   ============================================ */
@media (prefers-color-scheme: dark) {
    .rcc-card {
        background: #1a1a1a;
        border-color: #333;
    }

    .rcc-card .rcc-image {
        background: #2a2a2a;
    }

    .rcc-card .rcc-title a {
        color: #e0e0e0 !important;
    }

    .rcc-card .rcc-title a:hover {
        color: #ff6b6b !important;
    }

    .rcc-card .rcc-desc {
        color: #999;
    }

    .rcc-card .rcc-discount-price {
        color: #777;
    }

    .rcc-card .rcc-mall {
        color: #888;
    }

    .rcc-card .rcc-tag {
        background: #2a2a2a;
        color: #aaa;
    }

    .rcc-card .rcc-coupon {
        background: #3a1a1a;
        border-color: #5a3030;
    }

    .rcc-card .rcc-platform-coupon {
        background: #3a2a1a;
        border-color: #5a4030;
    }
}
