.category-container {
  margin: 15px 0;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.category-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.category-btn {
  padding: 6px 12px;
  margin-right: 10px;
  border-radius: 20px;
  background-color: #f5f5f5;
  color: #333;
  border: none;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.category-btn.active {
  background-color: var(--maincolor);
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .category-btn {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (min-width: 769px) {
  .category-container {
    padding: 0 10px;
  }
  .category-btn {
    padding: 8px 16px;
    font-size: 15px;
  }
}