/* =========================================================
   站点顶栏 / 底栏自适应：避免不同分辨率下换行、挤压、显示不全
   ========================================================= */

/* ---------- Header ---------- */
.seo-theme .theme-main-menu .container {
  box-sizing: border-box;
}

.seo-theme .theme-main-menu .main-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

.seo-theme .theme-main-menu .logo.logoB,
.seo-theme .theme-main-menu .logoB {
  float: none !important;
  width: auto !important;
  max-width: none;
  -webkit-flex: 0 1 auto;
  flex: 0 1 auto;
  min-width: 0;
}

.seo-theme .theme-main-menu .logoB a {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap;
  text-decoration: none;
}

.seo-theme .theme-main-menu .logoB .logoPic {
  float: none !important;
  display: block;
  width: auto !important;
  height: 42px;
  max-width: 145px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  object-fit: contain;
}

.seo-theme .theme-main-menu .logoB em {
  float: none !important;
  display: inline-block;
  width: 0;
  height: 28px;
  margin: 0 14px;
  border-left: 2px solid #d8deff;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.seo-theme .theme-main-menu .logoB span {
  display: inline-block;
  height: auto;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  font-size: 16px;
}

.seo-theme .theme-main-menu .menu-wrapper {
  float: none !important;
  position: relative;
  width: auto !important;
  max-width: none;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.seo-theme .theme-main-menu #mega-menu-holder {
  width: auto;
  max-width: 100%;
}

.seo-theme .theme-main-menu #mega-menu-holder > ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.seo-theme .theme-main-menu #mega-menu-holder > ul > li {
  float: none !important;
  display: block;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  position: relative;
}

.seo-theme .theme-main-menu #mega-menu-holder > ul > li > a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 16px;
  line-height: 32px;
  box-sizing: border-box;
}

.seo-theme .theme-main-menu #mega-menu-holder > ul > li.nav_mine > a {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.seo-theme .theme-main-menu .nav_mine img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.default-footer.seo-footer .container {
  box-sizing: border-box;
}

.default-footer.seo-footer .top-footer.site-footer-row,
.default-footer.seo-footer .top-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 16px 24px;
  margin-left: 0;
  margin-right: 0;
}

.default-footer.seo-footer .top-footer > [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.default-footer.seo-footer .footer-logo {
  -webkit-flex: 1 1 46%;
  flex: 1 1 46%;
  min-width: 0;
}

.default-footer.seo-footer .footer-list,
.default-footer.seo-footer .footer-latest-news {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  text-align: center;
  min-width: 160px;
}

.default-footer.seo-footer .footer-qr-col {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 180px;
}

.default-footer.seo-footer .footer-qr-text {
  width: 100%;
  min-height: 44px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
}

.default-footer.seo-footer .footer-qr-media {
  margin-top: 10px;
  width: 112px;
  height: 112px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.default-footer.seo-footer .footer-mtxt {
  margin: 0 0 4px !important;
  white-space: nowrap;
  font-size: 14px !important;
  line-height: 20px;
  height: 20px;
}

.default-footer.seo-footer .footer_ma1,
.default-footer.seo-footer .footer_ma2 {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0;
  object-fit: contain;
}

.default-footer.seo-footer .footer_logo {
  display: block;
  width: auto !important;
  height: 44px;
  max-width: 160px;
  margin-top: 8px;
  object-fit: contain;
}

.default-footer.seo-footer .footer-copy {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.default-footer.seo-footer .footer-copy p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.default-footer.seo-footer .footer-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px 14px;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.default-footer.seo-footer .footer-links a,
.default-footer.seo-footer .footer-beian a {
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  text-decoration: none;
}

.default-footer.seo-footer .footer-links a:hover,
.default-footer.seo-footer .footer-beian a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.85);
}

.default-footer.seo-footer .footer-beian {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
}

.default-footer.seo-footer .footer-beian-icon {
  width: 18px !important;
  height: 18px !important;
  float: none !important;
  margin: 0 !important;
  display: block;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.default-footer.seo-footer .top-footer .mobile_show {
  width: 100%;
  -webkit-flex: 0 0 100%;
  flex: 0 0 100%;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 1400px) {
  .seo-theme .theme-main-menu #mega-menu-holder > ul > li > a {
    padding: 8px 18px;
    font-size: 17px;
  }
  .seo-theme .theme-main-menu .logoB span {
    max-width: 260px;
    font-size: 17px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .seo-theme .theme-main-menu .logoB .logoPic {
    height: 38px;
    max-width: 130px;
  }
  .seo-theme .theme-main-menu .logoB em {
    margin: 0 10px;
    height: 24px;
  }
  .seo-theme .theme-main-menu .logoB span {
    max-width: 180px;
    font-size: 15px;
  }
  .seo-theme .theme-main-menu #mega-menu-holder > ul > li > a {
    padding: 8px 10px;
    font-size: 15px;
  }
  .seo-theme .theme-main-menu .nav_mine img {
    width: 36px;
    height: 36px;
  }
  .default-footer.seo-footer .footer_ma1,
  .default-footer.seo-footer .footer_ma2 {
    width: 100px;
    height: 100px;
  }
  .default-footer.seo-footer .footer-qr-media {
    width: 100px;
    height: 100px;
  }
  .default-footer.seo-footer .footer-mtxt {
    font-size: 13px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* 中等宽度：隐藏 slogan，优先保证菜单单行完整 */
  .seo-theme .theme-main-menu .logoB em,
  .seo-theme .theme-main-menu .logoB span {
    display: none !important;
  }
  .seo-theme .theme-main-menu .logoB .logoPic {
    height: 34px;
    max-width: 110px;
  }
  .seo-theme .theme-main-menu #mega-menu-holder > ul > li > a {
    padding: 6px 7px;
    font-size: 14px;
  }
  .seo-theme .theme-main-menu .nav_mine img {
    width: 32px;
    height: 32px;
  }
  .seo-theme .theme-main-menu .menu-wrapper {
    width: auto !important;
  }
  .default-footer.seo-footer .footer-list,
  .default-footer.seo-footer .footer-latest-news {
    min-width: 120px;
  }
  .default-footer.seo-footer .footer_ma1,
  .default-footer.seo-footer .footer_ma2 {
    width: 92px;
    height: 92px;
  }
  .default-footer.seo-footer .footer-qr-media {
    width: 92px;
    height: 92px;
  }
  .default-footer.seo-footer .footer-qr-col {
    width: 150px;
  }
  .default-footer.seo-footer .footer-mtxt {
    font-size: 12px !important;
    white-space: nowrap;
  }
  .default-footer.seo-footer .footer-copy,
  .default-footer.seo-footer .footer-copy p {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .seo-theme .theme-main-menu .main-container {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .default-footer.seo-footer .top-footer.site-footer-row,
  .default-footer.seo-footer .top-footer {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
  }
  .default-footer.seo-footer .footer-logo {
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    text-align: center;
  }
  .default-footer.seo-footer .footer_logo {
    margin-left: auto;
    margin-right: auto;
  }
  .default-footer.seo-footer .footer-links,
  .default-footer.seo-footer .footer-beian {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }
  .default-footer.seo-footer .footer-list,
  .default-footer.seo-footer .footer-latest-news {
    -webkit-flex: 1 1 40%;
    flex: 1 1 40%;
    min-width: 140px;
  }
}
