/* ===== 页脚分类分组折叠 20261017 ===== */
/* 目的：648 个分类不再一字排开占 6 屏，改为按类目分组折叠 */

.footer-cat-list .fc-group {
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.footer-cat-list .fc-group:last-child { border-bottom: none; }

.footer-cat-list .fc-sum {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 4px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  user-select: none;
  transition: background .15s;
}
.footer-cat-list .fc-sum::-webkit-details-marker { display: none; }
.footer-cat-list .fc-sum:hover { background: rgba(100, 116, 139, .08); }

.footer-cat-list .fc-ico { font-size: 14px; flex-shrink: 0; }
.footer-cat-list .fc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 数量徽标 */
.footer-cat-list .fc-cnt {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: rgba(100, 116, 139, .1);
  border-radius: 9px;
  padding: 1px 7px;
}

/* 展开箭头 */
.footer-cat-list .fc-sum::after {
  content: '▸';
  font-size: 10px;
  color: #94a3b8;
  transition: transform .18s;
  flex-shrink: 0;
}
.footer-cat-list .fc-group[open] > .fc-sum::after { transform: rotate(90deg); }

/* 折叠区内的分类：紧凑两列 */
.footer-cat-list .fc-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 1px 4px;
  padding: 4px 0 8px 18px;
  max-height: 220px;
  overflow-y: auto;
}
.footer-cat-list .fc-items a {
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  padding: 0 4px;
}
.footer-cat-list .fc-items a:hover { color: var(--primary, #2563eb); background: rgba(37, 99, 235, .07); }

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .footer-cat-list .fc-sum { color: #cbd5e1; }
  .footer-cat-list .fc-items a { color: #94a3b8; }
}
