/* CSS 样式 */
.content-wrapper .banner {
    position: relative;
}
.content-wrapper .banner img {
    width: 100%;
    height: auto;
}
.content-wrapper .banner .banner-title {
    position: absolute;
    font-size: 36px;
    font-weight: 400;
    top: 50%;
    transform: translateY(-50%);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 1);
    left: 20%;
}

.tabs-container {
    position: relative;
    background: #FFF;
    height: 68px;
}
.tabs-container .btn-container {
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.tabs-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tabs-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
    height: 100%;
}
/* 隐藏滚动条 */
.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    align-items: center;
}

.tab {
    cursor: pointer;
    white-space: nowrap;
    margin-right: 56px;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    position: relative;
}
.tab::after {
    display: none;
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: rgba(1, 159, 232, 1);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}
.tab:last-child {
    margin-right: 0;
}
.tab:hover {
    font-weight: 700;
}
.tab.active {
    font-weight: 700;
}
.tab.active::after {
    display: block;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    cursor: pointer;
    z-index: 1;
}
.scroll-btn img {
    width: 100%;
}
.scroll-btn.left {
    left: -32px;
}
.scroll-btn.right {
    right: -32px;
}

/* 内容区域容器 */
.tab-contents {
    position: relative;
    margin-top: 30px;
    min-height: 300px;
    overflow: hidden;
    padding-bottom: 50px;
}

/* 单个内容区块 */
.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.content .product-container {
    width: calc(25% - 30px);
    margin-right: 30px;
    margin-top: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    box-sizing: border-box;
}
.content .product-container:hover{
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
}
.content .product-container:nth-child(4n) {
    margin-right: 0;
}
.content .product-container:nth-child(4n + 1) {
    margin-left: 15px;
}
.content .product-container .product-img {
    width: 220px;
    height: 220px;
    margin-bottom: 34px;
}
.content .product-container .product-title {
    width: 234px;
    text-align: center;
    margin-bottom: 19px;
    font-size: 20px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    margin-bottom: 28px;
}
.content .product-container .product-desc {
    width: 234px;
    font-size: 14px;
    font-weight: 300;
    line-height: 23px;
    margin-bottom: 28px;
    height: 46px;
}
.content .product-container .more-btn {
    width: 120px;
    height: 39px;
    border-radius: 39px;
    font-size: 14px;
    font-weight: 400;
    line-height: 39px;
    text-align: center;
    margin-bottom: 40px;
    cursor: pointer;
    border: 0.5px solid rgba(56, 56, 56, 1);
    box-sizing: border-box;
    color: rgba(56, 56, 56, 1);
}
.content .product-container .more-btn:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(1, 159, 232, 1);
    border: none;
}

.content.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0.1s;
}