.cb-top-lists-wrapper {
    padding: 30px 0;
    background: #fff;
}

.cb-top-lists-header {
    text-align: left;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cb-top-lists-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.cb-top-lists-header span {
    font-size: 13px;
    color: #999;
}

/* 三栏布局 - 强化对齐 */
.cb-top-lists-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important; /* 核心：强制拉伸所有子元素至相同高度 */
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
    .cb-top-lists-container {
        display: block !important; /* 手机端改回块级布局，避免 flex 嵌套复杂性 */
        height: auto !important;
        padding: 0 10px !important;
    }
    .cb-top-list-card {
        display: block !important; /* 手机端改回块级布局 */
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important; /* 强制最小高度，防止塌陷 */
        margin-bottom: 20px !important;
        overflow: visible !important; /* 允许溢出显示，防止“遮盖” */
    }
    .cb-top-list-items {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 50px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .cb-top-list-item {
        margin-bottom: 15px !important;
    }
}

/* 单个榜单卡片 - 强化等高 */
.cb-top-list-card {
    flex: 1 1 0 !important; /* 强制三者平分宽度且允许伸缩 */
    min-width: 0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-clip: padding-box !important;
}

/* 热卖榜背景 */
.cb-top-list-card[data-style="hot"] {
    background: #fff5f2;
}

/* 好价榜背景 */
.cb-top-list-card[data-style="goodPrice"] {
    background: #fff9f0;
}

/* 热搜榜背景 */
.cb-top-list-card[data-style="complex"] {
    background: #fdf5ff;
}

.cb-top-list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    min-height: 28px; /* 统一标题高度 */
}

.cb-top-list-title h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-top-list-title h3 img {
    width: 20px;
    height: 20px;
}

.cb-top-list-title .view-more {
    font-size: 13px;
    color: #bbb;
    text-decoration: none;
}

/* 榜单列表 */
.cb-top-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 榜单项 */
.cb-top-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

/* 商品图片容器 */
.cb-top-list-item-image-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cb-top-list-item-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.cb-top-list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 排名徽章叠加在图片上 */
.cb-rank-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: #333;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-weight: bold;
}

.cb-rank-badge-overlay .rank-num {
    font-size: 14px;
}

.cb-rank-1 .cb-rank-badge-overlay {
    background: #ff0000;
}

.cb-rank-2 .cb-rank-badge-overlay {
    background: #ff6000;
}

.cb-rank-3 .cb-rank-badge-overlay {
    background: #ffb400;
}

/* 商品信息 */
.cb-top-list-item-info {
    flex: 1;
    min-width: 0;
}

.cb-top-list-item-name {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}

.cb-1688-tag {
    display: inline-block;
    background: #ff6000;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: bold;
}

.cb-top-list-item-meta {
    font-size: 13px;
    color: #ff6000;
    font-weight: bold;
}

.cb-top-list-item-meta span {
    color: #999;
    font-weight: normal;
    margin-right: 4px;
}

/* 热搜榜列表项 */
.cb-hot-search-list .cb-top-list-item {
    gap: 12px;
    min-height: 60px; /* 增加项高度，使 6 个文字项的总高接近 5 个图片项的高度 */
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.cb-hot-search-list .cb-top-list-item:last-child {
    border-bottom: none;
}

.cb-rank-box {
    width: 24px;
    height: 24px;
    background: #ddd;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.cb-rank-1 .cb-rank-box { background: #ff0000; }
.cb-rank-2 .cb-rank-box { background: #ff6000; }
.cb-rank-3 .cb-rank-box { background: #ffb400; }

.cb-hot-search-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-hot-search-trend {
    font-size: 14px;
}

/* 装饰性背景图标 (热搜榜) */
.cb-top-list-card[data-style="complex"]::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f0e0ff"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.5;
    z-index: 0;
}

.cb-top-list-items {
    position: relative;
    z-index: 1;
}
