.search-container {
  margin: 15px 0;
  text-align: center;
}

.search-wrapper {
  position: relative;
  display: inline-block;
  width: 800px; /* 增加输入框长度 */
}

.search-input {
  padding: 6px 35px 6px 12px; /* 调整内边距 */
  height: 40px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background-color: #42b983;
  color: white;
  border: 1px solid #edfff7;

  border-radius: 0 4px 4px 0;
  padding: 0 8px; /* 减小按钮内边距 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; /* 减小按钮字体 */
}

.search-button:hover {
  background-color: #359c6d;
}
/* 分类区域 */
.category-filter {
  margin: 15px 0;
  padding: 10px;
  
  border-radius: 5px;
}

.filter-group {
  margin: 10px 0;
}

.filter-group h4 {
  margin: 0 0 10px 0;
  display: inline-block;
  margin-right: 15px;
}

.filter-btn {
  padding: 6px 12px;
  margin: 0 5px 5px 0;
  background-color: #e0e0e0;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #42b983;
  color: white;
}

.filter-btn.active {
  font-weight: bold;
}
/* 在 lightbox.css 中添加以下样式 */
.subcategories {
  padding-left: 20px;
  border-left: 2px solid #42b983;
  margin: 10px 0;
}

.parent-category {
  position: relative;
}

.parent-category::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.parent-category.active::after {
  transform: rotate(180deg);
}