component-tabs .section-best-sellers_tabs_head-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8%;
}

component-tabs .tabs-head {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
}

component-tabs .tabs-head.justify-content-center {
    justify-content: center;
}

component-tabs .tabs-head .tabs-head_item {
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: 0 0;
    border: none;
    color: #000;
    margin-bottom: calc(-1* 1px);
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    height: 52px;
    padding: 12px 16px 9px;
}

component-tabs .tabs-head .tabs-head_item.active {
    border-bottom: 3px solid var(--theme-color);
    color: var(--theme-color);
}

component-tabs .tabs-pane.fade {
    transition: opacity .15s linear;
}

component-tabs .tabs-pane.fade:not(.show) {
    opacity: 0;
}

component-tabs .tabs-content>.tabs-pane {
    display: none;
}

component-tabs .tabs-content>.active {
    display: block;
}

component-tabs .tabs-pane.auto-width {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  component-tabs .section-best-sellers_tabs_head-wrapper {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  /* 隐藏滚动条 */
  component-tabs .section-best-sellers_tabs_head-wrapper::-webkit-scrollbar {
    display: none;
  }

  component-tabs .tabs-head {
    flex-wrap: nowrap;
    /*justify-content: space-between !important;*/
    padding: 0;
    width: auto;
    min-width: 100%;
  }

  component-tabs .tabs-head .tabs-head_item {
    font-size: 16px;
    line-height: 22px;
    height: 40px;
    padding: 9px 12px;
    white-space: nowrap;
    flex: 0 0 auto;
    color: rgba(14, 14, 14, 0.5);
  }

  /* 调整选项卡内容区域 */
  component-tabs .tabs-content {
    padding: 0 12px;
    margin-top: 20px;
  }

  /* 商品卡片容器适配 */
  component-tabs .tabs-content .tabs-pane {
    padding: 0;
  }

  component-tabs .tabs-pane.auto-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}