/* 内页片头：原站样式挂在具体组件 ID 上，这里补一层类选择器，保证轮播叠放并自动切换 */
.c_portalResEbizads_banner-01001 .subpage_ad {
    position: relative;
    height: 350px !important;
    overflow: hidden;
    background: #F2F4FC;
}
.c_portalResEbizads_banner-01001 .subpage_ad > .bgimg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: no-repeat center / cover;
    opacity: 0;
    transition: opacity .7s ease;
    z-index: 1;
}
.c_portalResEbizads_banner-01001 .subpage_ad > .pcitem.is-on {
    opacity: 1;
    z-index: 2;
}
.c_portalResEbizads_banner-01001 .subpage_ad > .text,
.c_portalResEbizads_banner-01001 .mobitem {
    display: none !important;
}
@media only screen and (max-width: 768px) {
    .c_portalResEbizads_banner-01001 .subpage_ad {
        height: 30vh !important;
        min-height: 160px;
    }
    .c_portalResEbizads_banner-01001 .subpage_ad > .pcitem {
        display: none !important;
    }
    .c_portalResEbizads_banner-01001 .subpage_ad > .mobitem.is-on {
        display: block !important;
        opacity: 1;
        z-index: 2;
    }
}

/* 产品详情主图固定在左侧，正文图不超过内容宽度 */
.c_portalResProduct_detail-01001006 .p_imagesA .p_images,
.c_portalResProduct_detail-01001006 .p_imagesA .p_images .p_image {
    width: 500px;
    height: 500px;
}
.c_portalResProduct_detail-01001006 .p_imagesA .p_images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.c_portalResProduct_detail-01001006 .p_ProInfo {
    flex: 1;
    min-width: 0;
}
.c_portalResProduct_detail-01001006 .p_DescribeContent img {
    max-width: 100%;
    height: auto;
}
.c_portalResProduct_detail-01001006 .d_DecTab.active {
    width: 100% !important;
}
@media screen and (max-width: 768px) {
    .c_portalResProduct_detail-01001006 .p_imagesA .p_images,
    .c_portalResProduct_detail-01001006 .p_imagesA .p_images .p_image {
        width: 100%;
        height: auto;
        max-width: 500px;
        min-height: 220px;
    }
}
/* 原站 data-vhide100p 会藏掉推荐区，这里按渲染结果对齐 */
#w_common_text-1622768968294,
#w_fline-1622768991321,
#c_portalResProduct_list-1622715133123 {
    display: none !important;
}

/* 单列内容区不要吃到默认双栏 50% 宽度 */
.w_grid-001 > .w_grid > .p_gridbox > .p_gridCell:only-child {
    width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
}

/* 面包屑定位图标只走 ::before，避免标签里再写一个房子字符叠上去 */
.c_portalResBreadcrumb_nav-01001 .p_breadcrumbList span.weizhi > .iconfont {
    overflow: hidden;
    color: transparent;
}

/* 列表分页贴近原站 */
.qbs-pager {
    clear: both;
    text-align: center;
    padding: 10px 0 40px;
}
.qbs-pager .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.qbs-pager .pagination > li > a,
.qbs-pager .pagination > li > span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    float: none;
}
.qbs-pager .pagination > .active > a,
.qbs-pager .pagination > .active > span,
.qbs-pager .pagination > .active > a:hover {
    background: #30329F;
    border-color: #30329F;
    color: #fff;
}

/* 加盟页循环格子：原站样式挂在具体 ID 上，这里补一层兜底，避免漏 ID 时图标撑满整行 */
#w_grid-1622791418922 > div > .p_gridbox > .p_gridCell,
#w_grid-1622791727818 > div > .p_gridbox > .p_gridCell {
    width: 25%;
    float: left;
}
#w_grid-1622791418922 .w_fimg-000,
#w_grid-1622791727818 .w_fimg-000 {
    width: 100%;
    max-width: 50px;
    min-height: 50px;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (min-width: 1025px) {
    #w_grid-1623736354934 > div > .p_gridbox > .p_gridCell,
    #w_grid-1623738230871 > div > .p_gridbox > .p_gridCell {
        width: 19.2%;
        float: left;
    }
}

/* 窄屏加盟支持卡片改为两列，避免五列宽度把标题挤成逐字换行。 */
@media only screen and (max-width: 768px) {
    #w_grid-1623736354934 > div > .p_gridbox,
    #w_grid-1623738230871 > div > .p_gridbox {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    #w_grid-1623736354934 > div > .p_gridbox > .p_gridCell,
    #w_grid-1623738230871 > div > .p_gridbox > .p_gridCell {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
    }
}

@media only screen and (max-width: 420px) {
    #w_grid-1623736354934 > div > .p_gridbox,
    #w_grid-1623738230871 > div > .p_gridbox {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 关于页视频位、联系我们右侧共用配图 */
#w_fvideo-1684736176317 .w_fvideo:before {
    content: none;
    display: none;
}
#w_fvideo-1684736176317 .w_fvideo .p_aboutSideImg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
#w_grid-1583497015540 > div > .p_gridbox {
    display: flex;
    align-items: center;
}
#c_portalResPublic_codeContainer-15834970207007216 {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#c_portalResPublic_codeContainer-15834970207007216 .p_aboutSideBox {
    width: 86%;
    max-width: 480px;
    height: auto;
    margin: 12px auto;
}
#c_portalResPublic_codeContainer-15834970207007216 .p_aboutSideImg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 小屏列表标题保持在卡片内，并允许完整换行。 */
@media only screen and (max-width: 768px) {
    .p_articles.newLi .porBbox .leftBox {
        width: 100% !important;
        min-width: 0 !important;
    }
    .p_articles.newLi .porBbox .p_title.newTitle {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
        line-height: 1.4 !important;
    }
}
