/* ==========================================================================
   Site-Wide Mobile Responsiveness & Accessibility Enhancements
   Fixes mobile overlap, footer readability/links, mobile subnavs & tables
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Fix inline white CN language link becoming invisible on white scrolled header */
.headerDown .langBox .langBtn a,
.headerblack .langBox .langBtn a,
.headerUp .langBox .langBtn a {
  color: #333333 !important;
}

/* Fix mobile header navigation drawer & submenus (<= 991px) */
@media (max-width: 991px) {
  .header .nav {
    z-index: 999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  }

  .header .nav .list i {
    color: #333;
    padding-right: 10px;
    z-index: 20;
  }

  .header .nav .list .subNavMain {
    position: static !important;
    width: 100% !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .header .nav .list .subNav .navlist {
    padding: 8px 16px 12px !important;
  }

  .header .nav .list .subNav .navlist a {
    padding: 10px 4px !important;
    font-size: 15px !important;
    color: #374151 !important;
    border-bottom: 1px solid #eef2f6;
  }

  .header .nav .list .subNav .navlist a:last-child {
    border-bottom: none;
  }

  /* Fix Homepage Industry Applications card overlap on mobile/tablet */
  .industryApplicationsMain {
    background: linear-gradient(180deg, #071936 0%, #0d2b57 180px, #f5f7fa 180px, #f5f7fa 100%);
    padding-bottom: 40px;
  }

  .industryApplicationsMain .industryApplicationsBg {
    position: absolute;
    height: 220px !important;
    overflow: hidden;
  }

  .industryApplicationsMain .industryApplicationsBg .imgBox {
    position: relative !important;
    height: 220px !important;
  }

  .industryApplicationsMain .industryApplicationsBg .imgBox img {
    height: 220px !important;
  }

  .industryApplicationsMain .industryApplicationsTitleBox {
    position: relative !important;
    height: auto !important;
    pointer-events: auto !important;
  }

  .industryApplicationsMain .industryApplicationsTitleBox .industryApplicationsTitle {
    position: relative !important;
    height: auto !important;
    padding: 36px 0 24px !important;
  }

  .industryApplicationsMain .industryApplications {
    padding: 8px 0 12px !important;
    pointer-events: auto !important;
  }

  .industryApplicationsMain .industryApplications .list {
    position: relative !important;
    top: auto !important;
    margin-bottom: 24px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .industryApplicationsMain .industryApplications .list::after {
    pointer-events: none;
  }

  .industryApplicationsMain .industryApplications .list:last-child {
    margin-bottom: 0 !important;
  }

  /* Fix Mobile Footer: show category links, legal links & crisp contrast */
  .footer {
    padding: 36px 16px 24px !important;
    background-color: #061733 !important;
  }

  .footerDesc {
    display: block !important;
    color: rgba(255, 255, 255, 0.82) !important;
    padding-top: 12px !important;
  }

  .footerClass {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    padding-top: 24px !important;
  }

  .footerClass a {
    width: auto !important;
    margin: 0 !important;
    padding: 10px 6px !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  }

  .footerClass a i {
    opacity: 0.75 !important;
  }

  .foot {
    margin-top: 24px !important;
    height: auto !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    background: linear-gradient(90deg, #004c99, #0066cc) !important;
  }

  .foot .container {
    flex-direction: column !important;
    gap: 10px;
    text-align: center;
    padding: 0 !important;
  }

  .foot .copyright {
    color: #ffffff !important;
    font-size: 12.5px !important;
    line-height: 1.5;
  }

  .foot .footlink {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .foot .footlink a {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  /* Ensure Layui product spec tables scroll horizontally cleanly on mobile */
  .productTableBox,
  .productTableBox .layui-table-view,
  .productTableBox .layui-table-box {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .productTableBox .layui-table-page {
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Ensure images inside rich-text news / product details never overflow */
  .newsDetail img,
  .newsDetails img,
  .productDetailsMain img,
  .applicationDetails img,
  .aboutMain img {
    max-width: 100% !important;
    height: auto !important;
  }
}


/* --------------------------------------------------------------------------
   Official WeCom QR Code Block inside English Site Footer & Contact Us
   -------------------------------------------------------------------------- */
.footerWecom {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.footerWecomCard {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.footerWecomQr {
  width: 96px;
  height: 96px;
  padding: 5px;
  border-radius: 10px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.footerWecomQr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.footerWecomText {
  text-align: left;
  color: #ffffff;
}

.footerWecomTitle {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.footerWecomDesc {
  font-size: 13.5px;
  color: rgba(219, 234, 254, 0.95);
  line-height: 1.5;
}

.footerWecomSub {
  font-size: 12px;
  color: rgba(147, 197, 253, 0.85);
  margin-top: 4px;
  line-height: 1.4;
}

.contactServices.has-wecom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.contactServices.has-wecom .content {
  flex: 1;
  min-width: 0;
}

.contactWecomCard {
  flex-shrink: 0;
  width: 220px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(6, 20, 48, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.contactWecomQr {
  width: 152px;
  height: 152px;
  margin: 0 auto 12px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.contactWecomQr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.contactWecomTitle {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.contactWecomDesc {
  font-size: 12.5px;
  color: rgba(219, 234, 254, 0.9);
  line-height: 1.45;
}

@media (max-width: 991px) {
  .footerWecom {
    margin-top: 22px;
  }

  .footerWecomCard {
    width: 100%;
    max-width: 340px;
    padding: 12px 14px;
    gap: 14px;
  }

  .footerWecomQr {
    width: 84px;
    height: 84px;
  }

  .footerWecomTitle {
    font-size: 14.5px;
  }

  .footerWecomDesc {
    font-size: 12.5px;
  }

  .contactServices.has-wecom {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 26px 20px !important;
  }

  .contactServices.has-wecom .content {
    max-width: 100% !important;
  }

  .contactServices.has-wecom .contactServicesList {
    gap: 4px 24px;
  }

  .contactServices.has-wecom .contactServicesList .list {
    padding-right: 8px;
  }

  .contactWecomCard {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .contactWecomQr {
    width: 104px;
    height: 104px;
    margin: 0;
    flex-shrink: 0;
  }

  .contactWecomText {
    flex: 1;
    min-width: 0;
  }

  .contactWecomTitle {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .contactWecomDesc {
    font-size: 12.5px;
    line-height: 1.5;
  }
}
