/* Adapt the retained theme to small screens without moving the page off-canvas. */
html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

#container_foot .link {
  width: min(1170px, calc(100% - 40px));
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1199px) {
  #container_head {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 64px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }
  #container_head .center65 {
    width: 100%;
    max-width: 960px;
    padding: 0 16px;
  }
  #container_head .row {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0;
  }
  #container_head .site-brand {
    flex: 1;
    min-width: 0;
    padding: 0 16px 0 0;
  }
  #container_head .center65 .logo {
    float: none;
    max-width: 280px;
    margin: 0;
    padding: 0;
  }
  #container_head .center65 .logo a {
    height: 44px !important;
    padding: 0 !important;
  }
  #container_head .site-nav {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
  }
  #container_head .pd20 { display: none; }
  #container_head nav.navbar.bootsnav {
    position: static;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  #container_head nav.navbar.bootsnav .navbar-header {
    float: none;
    margin: 0;
    padding: 0;
  }
  #container_head nav.navbar.bootsnav .navbar-toggle {
    display: block;
    position: static;
    float: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    color: #1e549a;
    border: 1px solid #d9e2ed;
    border-radius: 4px;
  }
  #container_head #navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto !important;
    margin: 0;
    padding: 0 16px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .12);
  }
  #container_head #navbar-menu.collapse { display: none !important; }
  #container_head #navbar-menu.collapse.in { display: block !important; }
  #container_head nav.navbar.bootsnav .navbar-nav {
    float: none !important;
    width: 100%;
    margin: 0;
    padding: 8px 0;
  }
  #container_head nav.navbar.bootsnav ul.nav > li { float: none; }
  #container_head nav.navbar.bootsnav ul.nav > li > a {
    display: block;
    margin: 0;
    padding: 14px 12px;
    font-size: 16px;
    line-height: 22px;
  }
  #container_head .nav > li::after { height: 2px; }
}

@media (max-width: 991px) {
  .center65, .center75, .center80 {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  body #banner .swiper-container { height: clamp(160px, 40vw, 320px); }
  #banner .swiper-button-next, #banner .swiper-button-prev {
    --swiper-navigation-size: 24px;
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
  #banner .swiper-button-next { right: 0; }
  #banner .swiper-button-prev { left: 0; }

  #about, #page, #product, #service, #coop, #zili { padding-top: 0; }
  #about .container, #product .container, #news .container {
    width: 100%;
    padding: 32px 20px 48px;
  }
  #about .container .wrapper, #product .container .wrapper, #news .container .wrapper {
    width: 100%;
    max-width: 680px;
    padding: 0;
  }
  #about .top-about .T-about, #page .top-page .T-page { padding-top: 32px; }
  #about .container .wrapper .top-title,
  #product .container .wrapper .top-product .T-product .top-title,
  #about .top-about .T-about h1, #page .top-page .T-page h3,
  #service .top-service .T-service h3, #coop .top-coop .T-coop h3,
  #news .container .wrapper .top-title {
    height: auto;
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.25;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
  }
  #about .container .wrapper .top-title span,
  #product .container .wrapper .top-product .T-product .top-title span,
  #about .top-about .T-about h1 span, #page .top-page .T-page h3 span {
    width: 80px;
    margin-top: 16px;
  }
  #about .container .wrapper .bottom-about1,
  #about .container .wrapper .bottom-about1:hover {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    overflow: hidden;
    background: #1e549a;
    border-radius: 6px;
  }
  #about .container .wrapper .bottom-about1::before,
  #about .container .wrapper .bottom-about1::after { display: none; }
  #about .container .wrapper .bottom-about1 .img,
  #about .container .wrapper .bottom-about1:hover .img {
    order: 0;
    float: none;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
  }
  #about .container .wrapper .bottom-about1 .img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }
  #about .container .wrapper .bottom-about1 .text {
    order: 1;
    float: none;
    width: 100%;
    height: auto;
    padding: 24px;
  }
  #about .container .wrapper .bottom-about1 .text p,
  #about .container .wrapper .bottom-about1:hover .text p {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: .2px;
    text-align: left !important;
  }
  #about .container .wrapper .bottom-about1 .text a,
  #about .container .wrapper .bottom-about1:hover .text a {
    width: auto;
    min-height: 44px;
    margin-top: 16px;
    padding: 12px 0;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
  }
  #about .container .wrapper .bottom-about1 .text a::after,
  #about .container .wrapper .bottom-about1:hover .text a::after { display: none; }

  #product .container .wrapper .bottom-product { margin-top: 24px; }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-img {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
  }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-img img {
    display: block;
    height: 280px;
    object-fit: contain;
    transform: none;
  }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-content {
    float: none;
    width: 100%;
    height: auto;
    padding: 24px;
  }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-content h4 {
    font-size: 24px;
    line-height: 1.35;
  }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-content h4,
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-content p { transform: none; }
  #product .container .wrapper .bottom-product .product-wrapper .product-slide .product-content .product-link a {
    width: auto;
    min-width: 110px;
    margin-top: 16px;
  }
  #about .bottom-about .C-about, #page .bottom-page .C-page { padding: 16px 20px 40px; }
  #about .bottom-about .C-about .img-about, #page .bottom-page .C-page .img-page,
  #about .bottom-about .C-about .txt-about, #page .bottom-page .C-page .txt-page {
    float: none;
    width: 100%;
    margin-bottom: 24px;
  }
  #about .bottom-about .C-about .img-about img, #page .bottom-page .C-page .img-page img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 360px;
    margin: auto;
  }
  #service .top-service, #service .bottom-service { padding: 32px 0; }
  #service .bottom-service .C-service { width: 100%; }
  #service .bottom-service .C-service h3 {
    height: auto;
    line-height: 1.4;
    margin-bottom: 24px;
  }
  #service .bottom-service .C-service .serviceList li,
  #service .bottom-service .C-service .serviceList li:nth-child(2n) {
    float: none;
    width: 100%;
    height: auto;
    min-height: 140px;
    box-sizing: border-box;
    padding: 24px 0 24px 88px;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  #service .bottom-service .C-service .serviceList li span,
  #service .bottom-service .C-service .serviceList li:nth-child(2n) span {
    top: 24px;
    left: 0;
    transform: scale(.65);
    transform-origin: top left;
  }
  #contact .contact-content { padding: 32px 20px 48px; }
  #contact .contact-content .contact-border { margin: 0 auto 24px; }
  #contact .contact-content .contact-txt p { overflow-wrap: anywhere; }
  #contact .contact-content .contact-txt .title,
  #contact .contact-content .contact-txt .address,
  #contact .contact-content .contact-txt .phone { font-size: 28px; line-height: 1.4; letter-spacing: 0; }
  #contact .contact-content .contact-txt .txt { font-size: 18px; letter-spacing: 0; }

  #coop .top-coop { padding: 32px 0 0; }
  #coop .top-coop .T-coop, #coop .bottom-coop { width: 100%; }
  #coop .bottom-coop > div { text-indent: 0 !important; }
  #coop .bottom-coop img { display: block; margin: 0 auto; }

  /* CMS rich text can carry fixed image/table dimensions from the old editor. */
  #about img, #page img, #coop img, #contact img { max-width: 100%; height: auto; }
  #about table, #page table, #coop table, #contact table {
    max-width: 100%;
    width: 100% !important;
    table-layout: fixed;
    overflow-wrap: anywhere;
  }
  #coop .bottom-coop, #page .txt-page, #about .txt-content, #contact .contact-txt { overflow-wrap: anywhere; }

  #container_foot .link {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    border-radius: 0;
  }
  #container_foot .link .link-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #container_foot .link .link-box::after { display: none; }
  #container_foot .link .link-box .link-list {
    float: none;
    width: auto;
    font-size: 15px;
    line-height: 24px;
  }
  #container_foot .link .link-box .link-list a { display: block; padding: 10px 4px; }
  #container_foot .foot-content { width: 100%; padding: 32px 20px; }
  #container_foot .foot-content .foot-contact { float: none; width: 100%; }
  #container_foot .foot-content .foot-contact img { max-width: 100%; }
  #container_foot .foot-content .foot-contact .content p { line-height: 1.7; overflow-wrap: anywhere; }
}
