/* v0.68 手机端分类页（方案D）：左侧一级 + 右侧运营位 / 二级宫格 / 三级展开 / 商品列表 */
.zcm-mcat { min-height: 100vh; background: #f5f7fa; padding-bottom: 62px; }

/* v2.23 顶栏改用与首页一致的 jbj-header / jbj-mobile-search（见 mobile_category.php）；
   本页任意宽度下保持搜索条可见（jbj-mobile-search 默认 ≤959px 才显示） */
.zcm-mcat .jbj-mobile-search { display: flex; }
.zcm-mcat__side { top: 60px; max-height: calc(100vh - 60px); }
@media (min-width: 960px) { .zcm-mcat__side { top: 64px; max-height: calc(100vh - 64px); } }

.zcm-mcat__body { display: flex; align-items: flex-start; }
.zcm-mcat__side { width: 88px; flex: 0 0 88px; background: #fff; border-right: 1px solid #eef0f4; position: sticky; top: 54px; max-height: calc(100vh - 54px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.zcm-mcat__side-item { padding: 13px 6px 11px; text-align: center; color: #5c6675; position: relative; cursor: pointer; border-bottom: 1px solid #f6f7f9; }
.zcm-mcat__side-item:last-child { border-bottom: 0; }
.zcm-mcat__side-item.is-active { background: rgba(var(--theme-primary-rgb), .08); color: var(--theme-primary); }
.zcm-mcat__side-item.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--theme-primary); }
.zcm-mcat__side-ic { width: 34px; height: 34px; margin: 0 auto 5px; border-radius: 50%; background: #f1f4f8; color: #7b8494; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zcm-mcat__side-ic img { width: 100%; height: 100%; object-fit: cover; }
.zcm-mcat__side-item.is-active .zcm-mcat__side-ic { background: var(--theme-primary); color: #fff; }
.zcm-mcat__side-name { font-size: 12.5px; line-height: 1.3; }
.zcm-mcat__side-num { display: block; margin-top: 2px; font-size: 10px; color: #b3bac6; }
.zcm-mcat__side-item.is-active .zcm-mcat__side-num { color: rgba(var(--theme-primary-rgb), .75); }

.zcm-mcat__main { flex: 1; min-width: 0; padding: 12px 12px 20px; }
.zcm-mcat__banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; margin-bottom: 12px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #2b3a67, #4a5fa5); overflow: hidden; position: relative; }
.zcm-mcat__banner-txt { min-width: 0; }
.zcm-mcat__banner-txt h2 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.zcm-mcat__banner-txt p { margin: 3px 0 0; font-size: 11.5px; opacity: .85; line-height: 1.5; }
.zcm-mcat__banner-tag { flex: 0 0 auto; font-size: 24px; font-weight: 800; opacity: .28; }

.zcm-mcat__crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; font-size: 11.5px; color: #8b94a4; }
.zcm-mcat__crumbs b { color: var(--theme-primary); font-weight: 600; }
.zcm-mcat__crumbs i { font-style: normal; opacity: .6; }

.zcm-mcat__block { margin-bottom: 12px; }
.zcm-mcat__block-title { font-size: 12.5px; font-weight: 600; color: #5c6675; margin-bottom: 8px; }
.zcm-mcat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.zcm-mcat__cell { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #eef0f4; border-radius: 12px; background: #fff; cursor: pointer; transition: .16s ease; }
.zcm-mcat__cell.is-active { border-color: rgba(var(--theme-primary-rgb), .35); background: rgba(var(--theme-primary-rgb), .08); box-shadow: 0 3px 10px rgba(var(--theme-primary-rgb), .12); }
.zcm-mcat__cell-ic { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #f5f7fb; border: 1px solid #f0f2f6; color: #8b95a5; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zcm-mcat__cell-ic img { width: 100%; height: 100%; object-fit: cover; }
.zcm-mcat__cell.is-active .zcm-mcat__cell-ic { background: rgba(var(--theme-primary-rgb), .08); border-color: rgba(var(--theme-primary-rgb), .22); }
.zcm-mcat__cell-txt { min-width: 0; }
.zcm-mcat__cell-txt p { font-size: 12.5px; color: #1f2937; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zcm-mcat__cell-txt span { display: block; font-size: 10.5px; color: #a4acba; margin-top: 2px; }
.zcm-mcat__cell-arrow { flex: 0 0 auto; color: #c3c9d6; font-size: 14px; }
.zcm-mcat__cell.is-active .zcm-mcat__cell-arrow { color: var(--theme-primary); }

.zcm-mcat__third { margin-bottom: 12px; }
.zcm-mcat__third-inner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; overflow: hidden; }
.zcm-mcat__third.is-open .zcm-mcat__third-inner { grid-template-rows: 1fr; }
.zcm-mcat__third-inner > div { min-height: 0; }
/* v0.71：三级分类 = 图标 + 名称卡片（与电脑端展开样式一致），自适应列数 */
.zcm-mcat__third-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; padding: 2px; }
.zcm-mcat__third-item { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 9px 4px 7px; border-radius: 10px; background: #fff; border: 1px solid #eef0f4; color: #5c6675; cursor: pointer; text-align: center; transition: .16s ease; }
.zcm-mcat__third-item.is-active { background: rgba(var(--theme-primary-rgb), .08); border-color: rgba(var(--theme-primary-rgb), .35); color: var(--theme-primary); font-weight: 600; box-shadow: 0 3px 10px rgba(var(--theme-primary-rgb), .12); }
.zcm-mcat__third-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f1f4f8; color: #7b8494; font-size: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zcm-mcat__third-ic img { width: 100%; height: 100%; object-fit: cover; }
.zcm-mcat__third-item.is-active .zcm-mcat__third-ic { background: var(--theme-primary); color: #fff; }
.zcm-mcat__third-name { max-width: 100%; font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zcm-mcat__goods-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #5c6675; margin: 4px 0 8px; }
.zcm-mcat__goods { min-height: 80px; }
.zcm-mcat__hint { padding: 26px 0; text-align: center; font-size: 12.5px; color: #a4acba; }
.zcm-mcat__more { display: block; width: 100%; margin-top: 12px; padding: 10px 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #5c6675; font-size: 13px; }
.zcm-mcat__more:disabled { opacity: .55; }

/* v0.70：商品区 = 2 列紧凑宫格（goods-grid cols-2），类型角标左上角（复用首页 jbj-type-badge） */
.zcm-mcat__goods { min-height: 80px; }
.zcm-mcat__goods .goods-grid { gap: 10px; }
.zcm-mcat__goods .goods-info { padding: 9px 10px 10px; }
.zcm-mcat__goods .goods-title { height: auto; min-height: 38px; margin-bottom: 8px; font-size: 13px; line-height: 19px; }
.zcm-mcat__goods .goods-id-tags { gap: 5px; margin: 0 0 8px; }
.zcm-mcat__goods .goods-id-tag { padding: 2px 7px; font-size: 10.5px; line-height: 15px; }
.zcm-mcat__goods .goods-id-tag .dc-tag-balance { font-size: 10.5px; padding: 2px 7px; line-height: 15px; }
.zcm-mcat__goods .price-current { font-size: 16px; }
.zcm-mcat__goods .price-current .price-suffix { font-size: 11px; }
.zcm-mcat__goods .buy-btn { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 8px; background: var(--theme-primary, #2196F3); color: #fff; font-size: 14px; }
.zcm-mcat__goods .jbj-type-badge { top: 6px; left: 6px; padding: 3px 8px 3px 6px; font-size: 11px; letter-spacing: .5px; gap: 3px; }
.zcm-mcat__goods .jbj-type-badge .fa { font-size: 10px; }
.zcm-mcat__goods .goods-flash-badge { top: 6px; right: 6px; }
.zcm-mcat__goods .dc-mobile-category-empty { padding: 26px 0; text-align: center; color: #a4acba; font-size: 12.5px; }
.zcm-mcat__goods .dc-mobile-category-empty img { width: 76px; opacity: .5; margin-bottom: 6px; }

@media (min-width: 480px) {
    .zcm-mcat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zcm-mcat__side { width: 104px; flex: 0 0 104px; }
}

/* v3.33 禁售软状态：暂停下单按钮灰化 */
.zcm-mcat__goods .buy-btn.buy-btn-paused { background: #c3c9d4; cursor: not-allowed; }
