/* seemb9 分类二级页 /category/{slug}/{id}.html – 参考 seemb4 category_branch */

.app-main.category-branch-page {
    width: 100%;
    background: #f5f5f5;
    padding-bottom: 40px;
    --branch-accent: var(--primary-color, #4066b8);
    --branch-border: #dfe4ed;
    --branch-muted: #666;
    --branch-text: #333;
}

.app-main.category-branch-page .branch-page-inner {
    padding-bottom: 8px;
}

.app-main.category-branch-page .branch-breadcrumb {
    padding-top: 14px;
}

.app-main.category-branch-page .branch-result-line {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--branch-text);
}

.app-main.category-branch-page .branch-result-count {
    margin-left: 6px;
    font-weight: 700;
    color: var(--branch-accent);
}

.app-main.category-branch-page .branch-panel {
    margin: 0 0 24px;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--branch-border);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.app-main.category-branch-page .branch-intro.branch-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 768px) {
    .app-main.category-branch-page .branch-intro.branch-panel {
        grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
        column-gap: 36px;
    }
}

.app-main.category-branch-page .branch-intro__col--visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.app-main.category-branch-page .branch-intro__media {
    width: 100%;
    max-width: 180px;
}

.app-main.category-branch-page .branch-intro__img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border: 1px solid var(--branch-border);
    border-radius: 4px;
    background: #fafafa;
}

.app-main.category-branch-page .branch-intro__img--placeholder {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    margin: 0 auto;
    background: linear-gradient(145deg, #f1f5f9, #e8eef5);
    border: 1px dashed var(--branch-border);
    border-radius: 4px;
}

.app-main.category-branch-page .branch-intro__title {
    margin: 0;
    max-width: 220px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #4a4a4a;
}

.app-main.category-branch-page .branch-intro__col--content {
    min-width: 0;
}

.app-main.category-branch-page .branch-intro__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    text-align: left;
    white-space: pre-line;
    word-break: break-word;
}

.app-main.category-branch-page .branch-section__title {
    margin: 0 0 18px;
    padding: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 2px solid var(--branch-border);
    color: #1a1a1a;
}

.app-main.category-branch-page .branch-section__title--parent {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.app-main.category-branch-page .branch-section__title-total {
    font-weight: 700;
    color: var(--branch-accent);
}

.app-main.category-branch-page .branch-section__title--decor {
    position: relative;
    padding-left: 16px;
}

.app-main.category-branch-page .branch-section__title--decor::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: var(--branch-accent);
}

.app-main.category-branch-page .branch-section--subcats .branch-sub-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 28px;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid #eee;
    list-style: none;
}

@media (min-width: 576px) {
    .app-main.category-branch-page .branch-section--subcats .branch-sub-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .app-main.category-branch-page .branch-section--subcats .branch-sub-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.app-main.category-branch-page .branch-sub-list__link {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.15s ease;
}

.app-main.category-branch-page .branch-sub-list__link:hover {
    color: var(--branch-accent);
    text-decoration: underline;
}

.app-main.category-branch-page .branch-sub-list__count {
    font-weight: 700;
    color: var(--branch-accent);
}

.app-main.category-branch-page .branch-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 576px) {
    .app-main.category-branch-page .branch-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .app-main.category-branch-page .branch-product-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.app-main.category-branch-page .branch-product-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    min-height: 100%;
    border-radius: 6px;
    border: 1px solid var(--branch-border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-main.category-branch-page .branch-product-card__link:hover {
    border-color: var(--branch-accent);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.app-main.category-branch-page .branch-product-card__img-wrap {
    width: 100%;
    max-width: 112px;
    margin: 0 auto 12px;
}

.app-main.category-branch-page .branch-product-card__img {
    display: block;
    width: 100%;
    max-height: 112px;
    margin: 0 auto;
    object-fit: contain;
}

.app-main.category-branch-page .branch-product-card__img--empty {
    width: 100%;
    aspect-ratio: 1;
    background: #f1f5f9;
    border-radius: 4px;
}

.app-main.category-branch-page .branch-product-card__pn {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-main.category-branch-page .branch-product-card__mfg {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--branch-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-main.category-branch-page .branch-product-card__price {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--branch-accent);
    font-weight: 600;
}

.app-main.category-branch-page .branch-mfg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .app-main.category-branch-page .branch-mfg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .app-main.category-branch-page .branch-mfg-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.app-main.category-branch-page .branch-mfg-grid__cell {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--branch-border);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.app-main.category-branch-page .branch-mfg-grid__cell:hover {
    border-color: var(--branch-accent);
    background: #fff;
}

.app-main.category-branch-page .branch-mfg-grid__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.app-main.category-branch-page .branch-mfg-grid__link:hover {
    color: var(--branch-accent);
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .app-main.category-branch-page {
        padding-bottom: 24px;
    }

    .app-main.category-branch-page .branch-panel {
        padding: 18px 16px;
    }
}
