.banner {
    height: 580px;
    background: url(../images/szzf/banner2.jpg) no-repeat;
    background-size: 100% 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 固定状态样式 - 显示所有8个按钮，不添加滚动条 */
.szzf-product-switch.sticky {
    overflow: hidden;
    padding: 0 auto;
}

/* sticky 状态下，调整 track 的间距和宽度 */
.szzf-product-switch.sticky .szzf-product-switch-track {
    gap: 32px;
    width: auto;
    justify-content: flex-start;
    /* 重置 transform，确保所有按钮都可见 */
    transform: translateX(0) !important;
    margin-left: -38px;
}

/* sticky 状态下，按钮宽度跟随文字，自然间距 */
.szzf-product-switch.sticky .szzf-product-switch-track button {
    flex: 0 0 auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 12px 20px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

