/* 终极水平布局修复 */
#cat-slider-fixed {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
    display: block !important;
    padding-bottom: 15px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #3498db #f0f0f0 !important;
    -webkit-overflow-scrolling: touch !important;
    cursor: grab !important;
    position: relative !important;
}

#cat-slider-fixed .category-horizontal-wrapper {
    display: inline-block !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 100% !important;
    /* 强制足够宽度容纳所有item */
    min-width: 3570px !important; /* 17 items × (180px + 30px) */
}

.category-horizontal-item {
    display: inline-block !important;
    width: 180px !important;
    margin-right: 30px !important;
    vertical-align: top !important;
    float: none !important;
    flex: 0 0 auto !important;
}

/* 确保最后一个item没有右边距 */
.category-horizontal-item:last-child {
    margin-right: 0 !important;
}

/* 鼠标拖动样式 */
#cat-slider-fixed.grabbing {
    cursor: grabbing !important;
}

/* 滚动条样式 */
#cat-slider-fixed::-webkit-scrollbar {
    height: 8px !important;
}

#cat-slider-fixed::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

#cat-slider-fixed::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 4px !important;
}

#cat-slider-fixed::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}