/* 产品搜索页样式 */

/* 搜索区域 */
.search-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #ff8500;
  box-shadow: 0 0 5px rgba(255, 133, 0, 0.2);
  outline: none;
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: #ff8500;
}

/* 筛选区域 */
.filter-container {
  display: flex;
  margin-bottom: 30px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.filter-item {
  margin-right: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter-label {
  margin-right: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

/* 排序箭头样式 */
.sort-arrows {
  display: flex;
  flex-direction: column;
  height: 16px;
  justify-content: space-between;
}

.arrow-up, .arrow-down {
  display: block;
  transition: all 0.2s ease;
  cursor: pointer;
}

.arrow-up:hover path,
.arrow-down:hover path {
  fill: #ff8500;
}

.arrow-up.active path,
.arrow-down.active path {
  fill: #ff8500;
}

/* 当前条件 */
.current-filters {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.current-filter-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.current-filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 13px;
}

.current-filter-tag .close-tag {
  margin-left: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #999;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
  .search-container {
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .filter-container {
    flex-direction: column;
  }

  .filter-item {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 576px) {
  .filter-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label {
    margin-bottom: 5px;
  }
} 