/* 产品分类栏 — 左图右文，项间竖线分隔 */
.product-category-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto var(--space-6);
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.product-category-bar__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}

.product-category-bar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #d5d8de;
}

.product-category-bar__item:hover {
  background: rgba(43, 124, 211, 0.06);
}

.product-category-bar__item.is-active {
  background: var(--color-primary-light);
}

.product-category-bar__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #8a9199;
  transition: color 0.25s ease;
}

.product-category-bar__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  opacity: 0.72;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.product-category-bar__item:hover .product-category-bar__icon img {
  opacity: 0.9;
}

.product-category-bar__item.is-active .product-category-bar__icon img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(36%) sepia(85%) saturate(1200%) hue-rotate(186deg)
    brightness(95%) contrast(92%);
}

.product-category-bar__item.is-active .product-category-bar__icon {
  color: var(--color-primary);
}

.product-category-bar__label {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.product-category-bar__item.is-active .product-category-bar__label {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .product-category-bar {
    flex-direction: column;
    max-width: 100%;
  }

  .product-category-bar__item {
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
  }

  .product-category-bar__item:not(:last-child)::after {
    right: 8%;
    left: 8%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
  }

  .product-category-bar__icon {
    width: 44px;
    height: 44px;
  }

  .product-category-bar__icon img {
    width: 44px;
    height: 44px;
  }

  .product-category-bar__label {
    font-size: var(--text-sm);
    white-space: normal;
  }
}

/* 新闻分类栏 — 纯文字标签 */
.news-category-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto var(--space-6);
  background: transparent;
  flex-shrink: 0;
}

.news-category-bar__item {
  flex: 1;
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border: none;
  background: transparent;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

.news-category-bar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #d5d8de;
}

.news-category-bar__item:hover {
  background: rgba(43, 124, 211, 0.06);
  color: var(--color-primary);
}

.news-category-bar__item.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .news-category-bar {
    flex-direction: column;
    max-width: 100%;
  }

  .news-category-bar__item {
    text-align: left;
    padding: var(--space-3) var(--space-4);
  }

  .news-category-bar__item:not(:last-child)::after {
    right: 8%;
    left: 8%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
  }
}
