.pca-wrap {
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.pca-title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.pca-list,
.pca-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pca-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* 确保蓝底高亮优先级够高（盖过主题默认样式） */
.pca-wrap .pca-item.is-active > .pca-row.pca-parent-btn,
.pca-wrap .pca-item.is-active > .pca-row.pca-parent-link {
  background: #045cb4 !important;
  color: #fff !important;
}

/* 一级：左文字，右箭头 */
.pca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.pca-row:hover .pca-name {
  text-decoration: underline;
}

.pca-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pca-name {
  line-height: 1.35;
}

.pca-count {
  opacity: 0.65;
  font-size: 0.9em;
  white-space: nowrap;
}

/* 右侧箭头：默认向下，展开后向上 */
.pca-arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 2px;
  opacity: 0.75;
}

.pca-item.is-open > .pca-row .pca-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* 当前一级（含：正在看其子分类时）高亮 */
.pca-item.is-active > .pca-row {
  background: #045cb4;
  color: #fff;
}

.pca-item.is-active > .pca-row:hover .pca-name {
  text-decoration: none;
}

.pca-item.is-active > .pca-row .pca-count,
.pca-item.is-active > .pca-row .pca-arrow {
  opacity: 1;
  color: #fff;
  border-color: #fff;
}

/* 二级缩进 */
.pca-children {
  padding: 4px 0 10px 14px;
}

.pca-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  text-decoration: none;
  color: inherit;
}

.pca-child-link:hover .pca-name {
  text-decoration: underline;
}

.pca-child.is-current .pca-child-link,
.pca-child.is-current .pca-name {
  font-weight: 600;
  text-decoration: underline;
}

.pca-item.is-open > .pca-children {
  display: block;
}
