/* 前台手机分类：仅在 768px 及以下启用；电脑端保留原来的横向列表。 */
.cat-toggle { display: none; }
@media (max-width: 768px) {
  .cat-area .cat-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .cat-area .cat-list:not(.cat-expanded) > .cat-item:nth-child(n+9) { display: none; }
  .cat-area .cat-list > .cat-item {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: 12px;
    border-radius: 10px;
  }
  .cat-area .cat-toggle:not([hidden]) {
    display: block;
    width: 100%;
    padding: 10px 8px;
    margin-top: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    background: rgba(127,127,127,0.08);
    border: 1px solid rgba(127,127,127,0.22);
    border-radius: 9px;
    text-align: center;
  }
  .cat-area .cat-toggle span { margin-left: 6px; font-size: 16px; }
}
