/* AUO-LCD mobile responsive patch v1.0
 * Load after public.css and style.css.
 */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

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

  /* Remove the desktop site's fixed 1200px canvas. */
  .head_logo, .bottom_box, .bottom_footer,
  .slideBoxs, .product_box, .case_box, .news_box, .chanpin_box,
  .ny_bannerabout, .ny_aboutbox {
    min-width: 0 !important;
    width: 100% !important;
  }

  .head_logomid, .bottom_middle, .footer_mid,
  .product_middle, .case_middle, .news_middle, .chanpin_middle,
  .sousuomid, .ny_aboutmid, .ny_newsdimg,
  .ny_aboutmid .nr, .mianbaoxies {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Header and touch-friendly mobile navigation. */
  .head_logomid { position: relative; min-height: 76px; padding-top: 8px; }
  .logo { float: none !important; }
  .logo img {
    float: none !important;
    width: 132px !important;
    height: auto !important;
    margin: 8px 0 !important;
  }
  .navtop, .head_call { display: none !important; }
  .zhongyingwen {
    position: absolute !important;
    top: 22px; right: 62px;
    float: none !important;
    margin: 0 !important;
  }
  .auo-menu-toggle {
    position: absolute;
    top: 15px; right: 16px;
    width: 42px; height: 42px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #0b7194;
    font-size: 0;
    cursor: pointer;
    z-index: 10003;
  }
  .auo-menu-toggle::before,
  .auo-menu-toggle::after,
  .auo-menu-toggle span {
    content: "";
    position: absolute;
    left: 10px;
    width: 20px; height: 2px;
    background: currentColor;
  }
  .auo-menu-toggle::before { top: 12px; }
  .auo-menu-toggle span { top: 19px; }
  .auo-menu-toggle::after { top: 26px; }
  .auo-menu-toggle[aria-expanded="true"] span { opacity: 0; }
  .auo-menu-toggle[aria-expanded="true"]::before { top: 19px; transform: rotate(45deg); }
  .auo-menu-toggle[aria-expanded="true"]::after { top: 19px; transform: rotate(-45deg); }

  #nav.nav {
    display: none;
    float: none !important;
    clear: both;
    width: calc(100% + 32px) !important;
    margin: 0 -16px !important;
    padding: 8px 16px 16px !important;
    background: #fff;
    border-top: 1px solid #eee;
    line-height: normal !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.1);
    position: relative !important;
    z-index: 10002 !important;
  }
  #nav.nav.auo-nav-open { display: block !important; }
  #nav.nav .nLi {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    border-bottom: 1px solid #eee;
  }
  #nav.nav .nLi h3 { float: none !important; margin: 0; }
  #nav.nav .nLi h3 > a {
    display: block !important;
    padding: 13px 36px 13px 4px !important;
    line-height: 22px !important;
    font-size: 15px !important;
  }
  #nav.nav .nLi:has(.sub) > h3 { position: relative; }
  #nav.nav .nLi:has(.sub) > h3::after {
    content: "+";
    position: absolute; right: 7px; top: 10px;
    color: #0b7194; font-size: 22px;
  }
  #nav.nav .nLi.auo-sub-open > h3::after { content: "−"; }
  #nav.nav .sub {
    display: none !important;
    position: static !important;
    width: 100% !important;
    padding: 0 0 8px 12px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #f7f9fa !important;
  }
  #nav.nav .nLi.auo-sub-open > .sub { display: block !important; }
  #nav.nav .sub li { width: 100% !important; height: auto !important; }
  #nav.nav .sub a { display: block; padding: 10px 8px; line-height: 20px; }

  /* Banner keeps its source image and crops it cleanly on phones. */
  .slideBoxs, .slideBoxs .bd, .slideBoxs .bd li { height: 42vw !important; min-height: 170px; max-height: 300px; }
  .slideBoxs .bd li a {
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  .slideBoxs .hd { bottom: 10px !important; }
  .slideBoxs .hd ul { width: 100% !important; }
  .slideBoxs .hd ul li { width: 10px !important; height: 10px !important; }

  /* Keyword strip and section headings. */
  .sousuomid { padding-top: 16px !important; padding-bottom: 16px !important; }
  .sousuomid ul, .sousuomid li { width: 100% !important; }
  .remengjc { line-height: 1.9; }
  .remengjc span { display: inline !important; }
  .cp { width: min(74vw, 360px) !important; margin: 28px auto 20px !important; }
  .cp img { width: 100% !important; height: auto !important; }

  /* Home product categories. */
  .product_middle { margin-bottom: 24px !important; }
  .product_middle .swiper-container,
  .product_middle .swiper-wrapper,
  .product_middle .swiper-slide { width: 100% !important; height: auto !important; }
  .product_middle .swiper-slide > ul,
  .product_middle ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product_middle ul .product_one {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 132px;
    margin: 0 !important;
    padding: 10px 6px;
  }
  .product_one img { max-width: 100%; height: 82px !important; object-fit: contain; }
  .powenzi { line-height: 1.35; overflow-wrap: anywhere; }

  /* Case and news columns stack. */
  .case_middle, .news_middle { margin-bottom: 30px !important; }
  .case_middle > ul,
  .news_middle .aboutbox,
  .news_middle .qiyedt {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 14px !important;
  }
  .case_middle > ul {
    padding: 8px 0 10px !important;
    min-height: 0 !important;
  }
  .case_xinpin { width: 100% !important; padding-left: 14px !important; }
  .case_tuwen { overflow: hidden; padding: 10px; }
  .case_tuwen img { max-width: 38%; height: auto !important; margin-right: 12px !important; }
  .case_tuwen h3,
  .case_tuwen h5 {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.5 !important;
    margin-right: 10px !important;
  }
  .case_middle .newsnews {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 12px !important;
    line-height: normal !important;
  }
  .case_middle .newsnews a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 6px 0 !important;
    line-height: 1.45 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
  }
  .news_middle .aboutbox .news_img img,
  .news_middle .qiyedt .news_img img { width: 100% !important; height: auto !important; }
  .newsnewsone {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100% !important;
    height: auto !important;
    min-height: 30px;
    overflow: visible !important;
  }
  .newsnewsone a {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none !important;
    height: auto !important;
    line-height: 1.45 !important;
    padding: 5px 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .newsnewsone span {
    flex: 0 0 82px;
    float: none !important;
    text-align: right;
    line-height: 1.45 !important;
    padding: 5px 0 !important;
  }

  /* Product showcase: horizontal swipe is reliable on touch screens. */
  .chanpin_middle { padding-top: 28px !important; }
  .chanpinzs { font-size: 22px !important; }
  .nrs, .parBds, .slideBoxssd {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .slideBoxssd > ul {
    display: flex !important;
    gap: 12px;
    width: 100% !important;
    transform: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 16px !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }
  .slideBoxssd > ul > li {
    float: none !important;
    flex: 0 0 72%;
    width: auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
  .slideBoxssd .sPrev, .slideBoxssd .sNext { display: none !important; }
  .chanpin_box, .chanpin_middle {
    height: auto !important;
    min-height: 0 !important;
  }
  .chanpin_middle { padding-bottom: 8px !important; }

  /* Inner pages: sidebar above content, content fills screen. */
  .ny_aboutleft, .ny_aboutright,
  .ny_newsbox, .ny_newdetails, .ny_pdetail, .page, .ny_pleft,
  .mianbaoxie, #hear, .pdtuwen, #contentop li {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .ny_aboutleft { margin-top: 18px !important; }
  .ny_aboutright { margin-top: 10px !important; }
  .ny_newsone, .ny_newsone img { float: none !important; width: 100% !important; height: auto !important; margin: 0 0 12px !important; }
  .ny_newsdimg img, .ny_aboutjianjie img { float: none !important; width: 100% !important; height: auto !important; margin: 12px 0 !important; }
  .nyproduct_one { width: calc(50% - 6px) !important; margin: 0 12px 12px 0 !important; }
  .nyproduct_one:nth-child(even) { margin-right: 0 !important; }
  .ny_pimg { width: 100% !important; height: auto !important; aspect-ratio: 1; }
  .ny_pxh a { width: calc(100% - 16px) !important; margin: 8px !important; height: auto !important; min-height: 34px; line-height: 1.3 !important; padding: 8px 5px; }
  .slideBoxss { float: none !important; width: 100% !important; height: auto !important; margin: 16px 0 !important; }
  .slideBoxss .bd, .slideBoxss .bd li { width: 100% !important; height: auto !important; min-height: 280px; }
  .slideright { float: none !important; width: 100% !important; }
  .page { padding: 18px 12px 28px !important; }
  .ny_pdlefts, .ny_pdrights { float: none !important; width: 100% !important; margin: 0 !important; }
  table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; }
  iframe, video { max-width: 100% !important; }

  /* Footer and floating contact tools. */
  .bottom_middle { margin: 0 auto !important; padding-top: 28px !important; padding-bottom: 22px !important; }
  .bottom_middle > .fl, .lastbox { float: none !important; width: 100% !important; }
  .bottom_ft { float: none !important; width: 100% !important; padding: 24px !important; }
  .bottom_middle .two { width: 100% !important; }
  .bottom_footers, .bottoms, .bottoms_con { float: none !important; width: 100% !important; margin: 0 0 20px !important; }
  .bottoms img { float: none !important; }
  .footer_mid { padding-top: 14px !important; padding-bottom: 14px !important; }
  .footer_mid p { line-height: 1.8 !important; text-align: center; }
  .seo-internal-links { margin: 20px 16px !important; padding: 18px !important; }
  .seo-internal-links ul { display: block !important; }
  .seo-internal-links li { min-width: 0 !important; }
  .side-share.show-text { right: 8px !important; transform: scale(.88); transform-origin: right center; }
}

@media (max-width: 480px) {
  .nyproduct_one { float: none !important; width: 100% !important; margin-right: 0 !important; }
  .slideBoxssd > ul > li { flex-basis: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
