.category {
  width: 92%;
  padding-top: 20px;
  text-align: center;
  margin: 0 auto;
  overflow-x: auto; /* 启用水平滚动 */
  white-space: nowrap; /* 防止内容换行 */
  -ms-overflow-style: none;  /* IE和Edge浏览器隐藏滚动条 */
  scrollbar-width: none;  /* Firefox浏览器隐藏滚动条 */
}

/* 对于Chrome, Safari和Opera浏览器隐藏滚动条 */
.category::-webkit-scrollbar {
  display: none;
}

.category a {
  display: inline-block;
  margin-right: 10px;
  text-decoration: none;
  border: none; 
  border-radius: 10px;
  background-color: #f2f2f2; 
  color: black;
  padding: 6px 10px 6px 10px; 
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.category a.selected {
  background-color: black; 
  color: white;
}

.category a:hover {
  background-color: #e5e5e5; 
}