/* CategorySidebarItem 组件样式 */
.category-sidebar-item {
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: #f5f5f5;
  color: #222427;
  padding: 20rpx 0;
  font-size: 26rpx;
}

.category-sidebar-item.active {
  position: relative;
  background: white;
}

.category-sidebar-item.active::before {
  content: '';
  position: absolute;
  width: 6rpx;
  height: 48rpx;
  background-color: #fa4126;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 64rpx;
}

.category-sidebar-item__text {
  width: 136rpx;
  height: 60rpx;
  padding: 8rpx 0;
  line-height: 1.4;
  text-align: center;
  font-size: 28rpx;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
  overflow: visible;
}

.category-sidebar-item.active .category-sidebar-item__text {
  background-color: white;
  border-radius: 36rpx;
  color: #fa4126;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-right-radius {
  border-top-right-radius: 16rpx;
}

.bottom-right-radius {
  border-bottom-right-radius: 16rpx;
}

.category-sidebar-item-container {
  background-color: white;
}

/* 禁用状态 */
.category-sidebar-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 悬停效果 */
.category-sidebar-item--hover {
  opacity: 0.7;
}