/*
 * @Description   书籍过滤
 * @Author        Alex_McAvoy
 * @Date          2026-03-13 14:04:44
 */
.filterPanel {
  margin-top: 8px;
  padding: 10px;
  background: rgba(240, 240, 240, 0.9);
  border: 1px solid #d5d5d5;
  border-radius: 10px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.subOptionsWrapper {
  margin-top: 8px;
}

.options .option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  color: #555;
  background: #e2e2e2;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.options .option:hover {
  background: #d4d4d4;
  border-color: #b5b5b5;
  color: #333;
  transform: translateY(-1px);
}

.options .option.active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.options .option .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.options .option.active .count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.subOptions {
  margin-top: 0;
  background: transparent;
}

.options.splitOptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.options.splitOptions .optionGroup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.options.splitOptions .mediaFilterGroup {
  justify-content: flex-start;
}

.options.splitOptions .groupModeGroup {
  justify-content: flex-end;
  margin-left: auto;
}

.bookGroupSection {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0;
}

.bookGroupTitle {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.bookGroupTitle .count {
  margin: 0 10px;
  padding: 0 10px;
  vertical-align: 3px;
  font-size: 24px;
  font-weight: normal;
  border-radius: 15px;
  background: #ddd;
  color: #666;
}

.bookGroupContent {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}

.bookGroupContent .book {
  flex: 0 0 160px;
  box-sizing: border-box;
}

.options.subOptions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.options.subOptions>.option {
  flex-shrink: 0;
}

.options.subOptions #pageCategoryGroupOptions,
.options.subOptions #wordCategoryGroupOptions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.options.categoryDetailOptions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 2px;
}

.options.categoryDetailOptions .option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  color: #555;
  background: #e2e2e2;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.options.categoryDetailOptions .option:hover {
  background: #d4d4d4;
  border-color: #b5b5b5;
  color: #333;
  transform: translateY(-1px);
}

.options.categoryDetailOptions .option.active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.options.categoryDetailOptions .option .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.options.categoryDetailOptions .option.active .count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}