/* 子分类样式 */

/* 调整分类容器的下边距 */
#categoriesContainer > div.mb-5 {
  margin-bottom: 1rem !important; /* 约32px，覆盖Bootstrap的mb-5 */
}

/* 子分类标签导航 */
.subcategory-tags {
  margin: 1rem 0 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subcategory-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.2rem;
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.subcategory-tag:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
}

.subcategory-tag .tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: white;
}

/* 有背景时的子分类标签样式 */
body:not(.bg-none) .subcategory-tag {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

body:not(.bg-none) .subcategory-tag:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

/* 有背景时的子分类标签激活状态 */
body:not(.bg-none) .subcategory-tag.active {
  background-color: rgba(112, 73, 240, 0.2);
}

/* 子分类区域 */
.subcategory-container {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
}

.subcategory-heading {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.category-breadcrumb {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  margin-right: 0.75rem;
}

.category-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  text-decoration: underline;
}

.category-breadcrumb i {
  margin: 0 0.3rem;
  font-size: 0.7rem;
}

/* 在移动设备上减小缩进 */
@media (max-width: 768px) {
  .subcategory-container {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
}
