/* ==========================================================================
   首页分类标题 · 图标系统
   ========================================================================== */

.cat-heading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

/* 图标容器：圆角方块，带主题色底 */
.cat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: 0 0 30px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.cat-heading:hover .cat-ico {
  transform: scale(1.06);
}

.cat-ico svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* 分类名 */
.cat-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ap-text, #1d1d1f);
  line-height: 1.3;
}

/* 数量徽章 */
.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ap-text-3, #86868b);
  background: var(--ap-fill, rgba(0, 0, 0, 0.05));
  letter-spacing: 0;
}

.cat-count:empty {
  display: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 991.98px) {
  .cat-heading {
    gap: 8px !important;
  }

  .cat-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: 0 0 26px;
  }

  .cat-ico svg {
    width: 15px;
    height: 15px;
  }

  .cat-name {
    font-size: 16px;
  }

  .cat-count {
    height: 18px;
    min-width: 20px;
    font-size: 10.5px;
    padding: 0 6px;
  }
}
