/**
 * 栏目/搜索列表页：分类头、子分类、排序标签、分页说明辅助、cleafix
 * 与 list-page-addon.css（分页主样式）配合使用；勿再写入页面模板 <style>。
 */
.nj-cat-head__meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.5rem 0 0.75rem;
}

.nj-cat-head .hn__search--lux {
  max-width: 36rem;
  margin-top: 0.75rem;
}

.nj-pager__meta-hint {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.nj-subcats--lux {
  margin: 0 0 1.15rem;
}

.nj-subcats__shell {
  position: relative;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.05rem;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 45%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px -18px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.nj-subcats__shell:after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.22), transparent);
  pointer-events: none;
}

.nj-subcats__head {
  display: flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0;
}

.nj-subcats__head-line {
  flex-shrink: 0;
  width: 3px;
  height: 15px;
  margin-right: 0.55rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #7dd3fc, #2563eb, #1e40af);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
}

.nj-subcats__head-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #64748b;
}

.nj-subcats__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nj-subcats__item {
  margin: 0 0.5rem 0.5rem 0;
}

.nj-subcats__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #334155;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nj-subcats__list a:hover {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.nj-subcats__item.is-active a {
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 48%, #1d4ed8 100%);
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: none;
}

.nj-subcats__item.is-active a:hover {
  color: #fff;
  transform: none;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nj-subcats__list a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .nj-subcats__shell {
    padding: 0.85rem 0.9rem 0.9rem;
    border-radius: 14px;
  }

  .nj-subcats__list a {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}

.nj-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.nj-sort-tabs li {
  margin: 0 0.5rem 0.5rem 0;
}

.nj-sort-tabs a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1e40af;
  text-decoration: none;
  font-size: 0.875rem;
  vertical-align: middle;
}

.nj-sort-tabs a:hover {
  background: rgba(37, 99, 235, 0.08);
}

.nj-sort-tabs li.active a {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cleafix:before,
.cleafix:after {
  content: "";
  display: table;
}

.cleafix:after {
  clear: both;
}
