/* Company-scoped responsive repairs. Captured desktop design remains unchanged. */
/* The source capture contains a transient 1275px sticky-navigation width.
   Constrain the navigation at every size, including tablet widths above 768px. */
body[data-company-id="junxin"] > nav {
  position: static !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
}

/* The original script slides this hidden control outside the viewport. With
   that script removed, a hidden translated fixed element can widen the page. */
body[data-company-id="junxin"] .footSidebar li.topJump:not(.show) { display: none; }

@media (max-width: 768px) {
  /* The captured 国研 template has fixed 1200/1240px content containers.
     Give its existing brand, search, navigation, query and footer real mobile flow. */
  body[data-company-id="guoyan"] {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-company-id="guoyan"] #__nuxt,
  body[data-company-id="guoyan"] #__layout,
  body[data-company-id="guoyan"] #__layout > div {
    box-sizing: border-box;
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0;
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
  }

  body[data-company-id="guoyan"] .Header,
  body[data-company-id="guoyan"] .Header .headerInfo {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto;
  }

  body[data-company-id="guoyan"] .Header .headerInfo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 18px 16px;
    margin: 0;
  }

  body[data-company-id="guoyan"] .Header .headerInfo .fud-logo {
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    gap: 8px;
  }

  body[data-company-id="guoyan"] .Header .headerInfo .fud-logo > a {
    display: block;
    min-width: 0;
    flex: 0 1 190px;
  }

  body[data-company-id="guoyan"] .Header .headerInfo .fud-logo .logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin-right: 0;
  }

  body[data-company-id="guoyan"] .Header .topCards { flex: 0 0 auto; }
  body[data-company-id="guoyan"] .Header .topCards .cardsCans { margin-right: 0; }
  body[data-company-id="guoyan"] .Header .headerInfo .service-hotline { display: none; }

  body[data-company-id="guoyan"] .Header .headerInfo .search-box {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    margin: 0;
  }

  body[data-company-id="guoyan"] .Header .headerInfo .search-box .search-input {
    width: calc(100% - 61px);
    min-width: 0;
  }

  body[data-company-id="guoyan"] .Header .search-input .el-input,
  body[data-company-id="guoyan"] .Header .search-input .el-input__inner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 40px;
  }

  body[data-company-id="guoyan"] .Header .headerInfo .search-box .search-result {
    width: calc(100% + 4px);
    max-width: calc(100% + 4px);
  }

  body[data-company-id="guoyan"] .Nav {
    width: 100%;
    height: auto;
    min-height: 40px;
  }

  body[data-company-id="guoyan"] .Nav .main_center {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  body[data-company-id="guoyan"] .Nav .nav-main {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 14px;
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li {
    box-sizing: border-box;
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    height: auto;
    border-right: 1px solid rgb(255 255 255 / 16%);
    border-bottom: 1px solid rgb(255 255 255 / 16%);
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li:last-child:nth-child(odd) {
    flex-basis: 100%;
    width: 100%;
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li > .nav-item,
  body[data-company-id="guoyan"] .Nav .nav-main > li > .nav-item a {
    width: 100%;
    min-height: 40px;
    height: auto;
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li > .nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    font-size: 14px;
  }

  body[data-company-id="guoyan"] .Nav .main_center .tran { display: none; }

  body[data-company-id="guoyan"] .Nav .nav-main > li .Multistage,
  body[data-company-id="guoyan"] .Nav .nav-main > li .second-level {
    position: static;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }

  body[data-company-id="guoyan"] .Nav .multistage-second-ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li .second-level li {
    height: auto;
    min-height: 36px;
    line-height: 1.6;
    padding: 6px 0;
  }

  body[data-company-id="guoyan"] .Nav .nav-main > li .second-level li a { font-size: 14px; }

  body[data-company-id="guoyan"] .query-report {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 32px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body[data-company-id="guoyan"] .query-report .query-report-bg,
  body[data-company-id="guoyan"] .query-report .query-report-bg .main_center {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0;
  }

  body[data-company-id="guoyan"] .query-report .query-report-bg .main_center .query-form {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 680px !important;
    min-width: 0;
    margin: 0 auto;
    padding: 32px 20px 26px;
  }

  body[data-company-id="guoyan"] .query-report .query-form .query-form-title {
    font-size: 36px !important;
    line-height: 1.35;
  }

  body[data-company-id="guoyan"] .query-report .query-form .input {
    width: 100%;
    min-width: 0;
    margin: 28px 0 24px !important;
  }

  body[data-company-id="guoyan"] .query-report .input .el-input__inner {
    height: 58px;
    font-size: 20px;
  }

  body[data-company-id="guoyan"] .query-report .input .el-input__inner::placeholder { font-size: 20px; }

  body[data-company-id="guoyan"] .query-report .query-form .query-form-submit {
    height: 58px !important;
    min-height: 58px;
    padding: 0;
    margin-bottom: 20px !important;
    line-height: 58px !important;
    font-size: 22px !important;
  }

  body[data-company-id="guoyan"] .query-report .query-form .report-warning {
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
  }

  body[data-company-id="guoyan"] .Footer {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 28px 16px;
  }

  body[data-company-id="guoyan"] .Footer .footer-main,
  body[data-company-id="guoyan"] .Footer .footer-main .company-branch ul {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .footer-main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 0;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .footer-main-row .row-box {
    width: 33.333%;
    min-width: 0;
    padding-right: 10px;
    font-size: 14px;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .footer-main-row .row-box:first-child {
    flex: 0 0 100%;
    width: 100%;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .two-row .row-box .flex_column {
    height: auto;
    flex-wrap: nowrap;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .two-row .row-box .flex_column li {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  body[data-company-id="guoyan"] .Footer .footer-main .two-row .contact-info p { line-height: 1.9; }
  body[data-company-id="guoyan"] .Footer .footer-main .fud-info .flex_left { flex-wrap: wrap; }
  body[data-company-id="guoyan"] .Footer .footer-main .fud-info .beian a.gaba { margin-left: 0; }

  /* 军信 already has native <=1040px mobile rules. Repair the local query
     button width without changing its original branding or content. */
  body[data-company-id="junxin"] .footSidebar { display: none !important; }

  body[data-company-id="junxin"] > nav .w1440 {
    width: 100% !important;
    min-width: 0;
    padding: 0;
  }

  body[data-company-id="junxin"] > nav .navUl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
  }

  body[data-company-id="junxin"] > nav .navUl > li {
    flex: 0 0 25%;
    width: 25% !important;
    min-width: 0;
    margin-left: 0;
  }

  body[data-company-id="junxin"] .seaForm[data-verification-form] {
    box-sizing: border-box;
    width: 342px !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0;
    position: relative;
  }

  body[data-company-id="junxin"] .seaForm[data-verification-form] .seainfo {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: 48px;
    padding: 0 56px 0 8px;
  }

  body[data-company-id="junxin"] .seaForm[data-verification-form] .seasub {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    padding: 0;
  }
}
