/*
 * Narrow-screen adaptation for the restored legacy frontend.
 * Desktop rules stay in the original stylesheets so the 1200px reference
 * layout remains unchanged.
 */
@media (min-width: 1240px) {
  .index_slid .banner_bd li {
    position: relative;
    height: 588px;
    overflow: hidden;
  }

  .index_slid .banner_bd li > a,
  .index_slid .banner_bd picture {
    display: block;
    width: 100%;
    height: 588px;
  }

  .index_slid .banner_bd img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto !important;
    max-width: none !important;
    min-height: 588px;
    transform: translateX(-50%);
  }
}

@media (max-width: 1239px) {
  html,
  body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .w1200,
  .w1000,
  .wp {
    width: auto !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  img {
    max-width: 100%;
  }

  /* Header: keep all primary routes visible and make the row scrollable. */
  .header_top,
  .sousuo,
  .nav_xiala,
  .floating_ck,
  .floating-commerce,
  .floating-wechat,
  .float_mask {
    display: none !important;
  }

  .haeder,
  .header_bottom {
    height: auto !important;
  }

  .haeder > .w1200 {
    margin: 0 !important;
  }

  .header_bottom {
    padding: 10px 0 0;
  }

  .header_bottom > .lf {
    float: none !important;
    width: auto !important;
    padding: 0 16px 8px;
    text-align: center;
  }

  .header_bottom > .lf a,
  .header_bottom > .lf img {
    display: inline-block;
  }

  .header_bottom > .lf a img {
    width: auto;
    max-width: 190px;
    max-height: 54px;
    margin-top: 0;
  }

  .nav1 {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav1::-webkit-scrollbar {
    display: none;
  }

  .nav1 .nav {
    display: flex !important;
    float: none;
    width: max-content !important;
    min-width: 100%;
    height: 48px;
    margin: 0 !important;
    padding: 0 8px;
    justify-content: center;
  }

  .nav1 .nav > li {
    flex: 0 0 auto;
    float: none !important;
    width: auto;
    height: 48px;
  }

  .nav1 .nav > li > a {
    width: auto;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    white-space: nowrap;
  }

  .nav1 .nav > li > a span {
    float: none;
    margin: 0;
  }

  .nav1 .nav > li > a i {
    display: none !important;
  }

  /* Home carousel is static on touch-sized layouts; desktop keeps autoplay. */
  .index_slid,
  .index_slid .bd,
  .index_slid .bd > ul,
  .index_slid .bd > ul > li,
  .index_slid .bd picture,
  .index_slid .bd img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .index_slid {
    height: auto !important;
  }

  .index_slid .bd > ul {
    position: static !important;
    left: auto !important;
  }

  .index_slid .bd > ul > li {
    display: none;
    float: none !important;
  }

  .index_slid .bd > ul > li:first-child {
    display: block;
  }

  .index_slid .bd img {
    display: block;
    height: auto !important;
    object-fit: cover;
  }

  .index_slid .hd {
    display: none;
  }

  /* Home content grids. */
  .main,
  .news,
  .rexiao,
  .solute,
  .remenqiy {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .mai_h3 {
    font-size: 26px;
  }

  .mai_p {
    font-size: 16px;
  }

  .maiiio,
  .rexia,
  .solut,
  .qiye {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .maiiio > .mao,
  .rexia > a,
  .solut > dl,
  .qiye > a {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  .maiiio > .mao {
    display: flex;
    padding: 14px;
  }

  .maiiio > .mao > .lf {
    flex: 0 0 40px;
  }

  .maiiio > .mao > .rt {
    float: none;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding-left: 12px;
  }

  .maiiio .mao .rt p {
    width: auto;
  }

  .rexia > a {
    padding: 30px 20px;
  }

  .solut > dl img,
  .qiye > a img {
    width: 100% !important;
    height: auto !important;
  }

  .qiye > a .few {
    width: 100%;
    height: 100%;
  }

  .news_pp ul {
    float: none;
    width: auto;
    margin: 30px 0 0;
  }

  .news_pp ul h3,
  .news_pp ul h3 a,
  .news_pp ul li,
  .news_pp ul li a {
    width: auto;
    max-width: 100%;
  }

  /* Inner pages become a single readable column. */
  .mai {
    margin-top: 0;
    padding: 22px 0 38px;
  }

  .mai_lf {
    display: none !important;
  }

  .mai_rt,
  .main_rt {
    float: none !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
  }

  .main_title {
    margin-bottom: 35px;
  }

  .main_tit,
  .main_two .pro_a,
  .richtext {
    width: auto !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
  }

  .main_tit p,
  .main_tit div,
  .main_tit ul,
  .richtext p,
  .richtext div,
  .richtext ul,
  .main_two .pro_a p,
  .main_two .pro_a div,
  .main_two .pro_a ul {
    max-width: 100%;
  }

  .main_tit p {
    width: auto !important;
  }

  .main_tit img,
  .main_two .pro_a img,
  .richtext img {
    max-width: 100% !important;
    height: auto !important;
  }

  .main_tit table,
  .main_two .pro_a table,
  .richtext table {
    width: auto !important;
    max-width: 100% !important;
  }

  .main_tit iframe,
  .main_two .pro_a iframe,
  .richtext iframe,
  .main_tit video,
  .main_two .pro_a video,
  .richtext video,
  .main_tit embed,
  .main_two .pro_a embed,
  .richtext embed {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin-left: auto;
    margin-right: auto;
  }

  .main_tit pre,
  .main_two .pro_a pre,
  .richtext pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .crumb,
  .article-meta,
  .public-title,
  .rebuild-detail {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .search-list article > a {
    min-width: 0;
  }

  .search-list article > a > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .legacy-contact .main_tit table {
    float: none !important;
    width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 14px;
  }

  .legacy-contact .main_tit td,
  .legacy-contact .main_tit th {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .pott {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pott > a {
    float: none;
    width: auto;
    margin: 0;
    padding: 30px 18px;
  }

  .pott a dt img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .news_list .news_lf {
    width: 32%;
  }

  .news_list .news_lf img {
    width: 100%;
    height: auto;
  }

  .news_list .news_rt {
    width: 65%;
  }

  /* Product details and recommendations. */
  .main_one {
    margin-top: 24px;
  }

  .main_one .sild_nav_a {
    display: none;
  }

  #nav_one .pro_a,
  .main_one .pro_a {
    float: none;
    width: 100%;
  }

  .main_one .pro_son_a_lf {
    width: 45%;
  }

  .main_one .produ {
    width: 52%;
  }

  .main_one .pro_son_a img {
    max-width: 100%;
    height: auto;
    margin-top: 35px;
  }

  .main_one .aa {
    margin-top: 35px;
  }

  .main_two {
    width: auto !important;
  }

  .sild_nav {
    display: block;
    height: auto !important;
    overflow: visible;
  }

  .sild_nav > ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100% !important;
    height: auto !important;
  }

  .sild_nav li,
  .uref li.current {
    float: none !important;
    width: auto !important;
    min-width: 0;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 4px !important;
    text-align: center;
  }

  .picScroll-left1,
  .picScroll-left1 .bd,
  .pic_lis_a {
    width: auto !important;
    max-width: 100%;
  }

  .picScroll-left1 .hd {
    display: none;
  }

  .pic_lis_a {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .pic_lis_a li {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .pic_lis_a li img {
    width: 100%;
    max-width: 147px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .success .ssdd {
    width: 100% !important;
  }

  .success .ssdd > .pp {
    width: 35% !important;
  }

  .success .ssdd > .case-cover {
    left: 32% !important;
    width: 68% !important;
  }

  .success .case-cover > a {
    width: 100% !important;
  }

  .up_down {
    width: auto;
  }

  .up_down p {
    width: 48%;
  }

  .hzsh ul {
    float: none;
    width: auto;
    margin: 15px 0;
  }

  .page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .footer_top_lf {
    display: none !important;
  }

  .footer_top_rt {
    float: none !important;
    width: 280px;
    margin: 0 auto !important;
  }

  .footer_boot .spann > span {
    float: none;
    display: block;
    text-align: center;
    line-height: 24px;
  }

  .bitew {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .bitew li {
    float: none;
    margin: 0;
  }

  .sitemap-page ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .w1200,
  .w1000,
  .wp {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .nav1 .nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100% !important;
    min-width: 0;
    height: auto;
    padding: 0 4px 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav1 .nav > li {
    width: auto;
    min-width: 0;
  }

  .nav1 .nav > li > a {
    display: block;
    width: 100%;
    padding: 0 4px !important;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rebuild-search > form {
    width: 100%;
  }

  .search-list article > a {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .search-list img {
    width: 88px !important;
    height: 72px !important;
    margin-right: 0 !important;
  }

  .search-list h2 {
    font-size: 16px;
    line-height: 1.45;
  }

  .search-list p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mai_h3 {
    font-size: 23px;
  }

  .mai_p {
    font-size: 14px;
    line-height: 24px;
  }

  .maiiio,
  .rexia,
  .solut,
  .qiye,
  .pott {
    grid-template-columns: 1fr;
  }

  .news_pp ul li {
    height: auto;
    min-height: 38px;
    padding: 8px 0;
    line-height: 22px;
  }

  .news_pp ul li a {
    display: block;
    padding-right: 0;
  }

  .news_pp ul li span.rt {
    float: none;
    display: block;
  }

  .news_list .news_lf,
  .news_list .news_rt {
    float: none;
    width: 100%;
  }

  .news_list .news_rt {
    padding-top: 15px;
  }

  .main_one .pro_son_a_lf,
  .main_one .produ {
    float: none;
    width: 100%;
  }

  .main_one .pro_son_a img {
    margin: 24px auto;
  }

  .produ h3,
  .produ_title,
  .ruhe {
    font-size: 22px;
  }

  .aa a {
    width: 130px;
    font-size: 16px;
  }

  .tado {
    margin: 0 8px;
  }

  .pic_lis_a {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .success .ssdd {
    height: auto;
    margin-bottom: 18px;
  }

  .success .ssdd > .pp {
    position: relative;
    width: 100% !important;
    height: auto;
    min-height: 150px;
    background-size: cover;
  }

  .success .ssdd > .case-cover {
    position: static;
    width: 100% !important;
  }

  .success .case-cover > a {
    height: 210px;
  }

  .up_down p {
    float: none;
    width: 100%;
    margin: 8px 0;
  }

  .legacy-contact .main_tit td,
  .legacy-contact .main_tit p {
    font-size: 13px;
    line-height: 1.7;
  }

  .footer {
    padding-top: 34px;
  }

  .footer_top_rt {
    max-width: 100%;
  }

  .footer_top_rt .rt_to .rt {
    float: none;
    width: auto;
  }

  .footer_boot .spann .rt a {
    display: inline-block;
    margin: 3px 5px;
  }

  .sitemap-page ul {
    grid-template-columns: 1fr;
  }
}
