/* TrendCard 趋势卡片组件样式 */
.box_child {
    display: block;
    position: relative;
    --max-height: none;
    --card-border: 1px;
    --card-spacing: var(--sl-spacing-small);
    display: flex;
    padding: var(--sl-spacing-2x-large);
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: var(--sl-border-radius-large);
    background-color: rgba(255, 255, 255, 0.7);
    flex-direction: column;
    position: relative;
    margin-bottom: var(--sl-spacing-large);
}

.box_child .module-divider {
    border: 1px solid var(--theme-divider-color, #e5e7eb);
    opacity: 0.7;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    width: 92%;
}

.box_child .header {
    display: flex;
    position: relative;
    margin-top: -20px;
    width: 92%;
    justify-content: space-between;
    align-self: center;
}

.box_child .rank_tab {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.box_child .rank_tab .tab_btn {
    padding: 4px 15px;
    background-color: var(--card-bg, #fff);
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.box_child .rank_tab .tab_btn.active {
    background-color: #2c85cf;
    color: #fff;
}

.box_child .rank_tab .tab_btn + .tab_btn {
    margin-left: 12px;
}

.box_child .rank_tab .tab_btn:hover {
    background-color: rgba(44, 133, 207, 0.8);
    color: #fff;
}

.box_child .main-title {
    position: relative;
    top: 20px;
    height: 68px;
}

.box_child .product-collection {
    margin-top: 0px;
}

@media (max-width: 767px) {
    .box_child {
        overflow-x: hidden;
    }
    .box_child .header {
        flex-flow: column wrap;
    }
    .box_child .module-divider {
        display: none;
    }
    .box_child .main-title {
        margin: 0px auto;
    }
}

