/* Mobile layout for the HuiShi Scanner application landing page. */

.mobile-download-bar,
.mobile-wechat-tip,
.application-store-downloads,
.application-download-qr__mobile-label,
.downloadCodeCaption {
  display: none;
}

.applicationBody .scanCodeDownload > .application-download-qr {
  max-width: 145px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.applicationBody .application-download-qr__image {
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .applicationBody,
  .applicationBody * {
    box-sizing: border-box;
  }

  .applicationBody,
  .applicationBody .applicationBanner,
  .applicationBody .DetailedModule,
  .applicationBody .DownloadModule {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
  }

  .applicationBody .DetailedModule dl,
  .applicationBody .DownloadModule .centralization {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .applicationBody {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .applicationBody .applicationBanner {
    position: relative;
    height: auto;
    min-height: 470px;
    padding: 86px 18px 38px;
    overflow: hidden;
    background-color: #eaf3ff;
    background-image: none !important;
  }

  .applicationBody .bannerTXT,
  #mobile_1 .applicationBody .bannerTXT {
    position: relative;
    top: auto;
    left: auto !important;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .applicationBody .bannerTXT .description {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    height: auto;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 26px;
    white-space: nowrap;
    background: linear-gradient(90deg, #4687f7 0%, rgba(70, 135, 247, .14) 100%);
    border-radius: 5px;
  }

  .applicationBody .bannerTXT .description span {
    margin: 0 7px 0 0;
  }

  .applicationBody .bannerTXT h2 {
    margin-top: 12px;
    font-size: 32px;
    line-height: 1.28;
    letter-spacing: -.5px;
  }

  .applicationBody .bannerTXT > p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.65;
    color: #526176;
  }

  .applicationBody .bannerTXT .scanCodeDownload {
    display: grid !important;
    width: 100%;
    max-width: 360px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    margin: 18px auto 0;
    padding: 0;
  }

  .applicationBody .bannerTXT .scanCodeDownload > .application-download-qr {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 136px;
    padding: 0;
    flex-direction: column;
    border: 1px solid #3d89f7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(46, 115, 213, .09);
    overflow: hidden;
  }

  .applicationBody .bannerTXT .application-download-qr__image {
    display: flex;
    min-height: 0;
    padding: 7px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0;
  }

  .applicationBody .bannerTXT .application-download-qr__image img {
    display: block;
    width: 100%;
    max-width: 96px;
    height: auto;
  }

  .applicationBody .bannerTXT .application-download-qr p {
    display: none;
  }

  .applicationBody .bannerTXT .application-download-qr__mobile-label {
    display: block;
    flex: 0 0 29px;
    width: 100%;
    color: #fff;
    background: #3c88f6;
    font-size: 12px;
    line-height: 29px;
    text-align: center;
  }

  .applicationBody .bannerTXT .application-store-downloads {
    display: contents;
  }

  .applicationBody .bannerTXT .application-store-download {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
  }

  .applicationBody .bannerTXT .application-store-download__card {
    display: flex;
    width: 100%;
    height: 112px;
    padding: 12px 5px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #3d89f7;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 18px rgba(46, 115, 213, .09);
  }

  .applicationBody .bannerTXT .application-store-download__icon {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
  }

  .applicationBody .bannerTXT .application-store-download__icon--ios {
    filter: brightness(0);
  }

  .applicationBody .bannerTXT .application-store-download__icon--android {
    filter: brightness(0) saturate(100%) invert(68%) sepia(49%) saturate(572%) hue-rotate(70deg) brightness(101%) contrast(90%);
  }

  .applicationBody .bannerTXT .application-store-download strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .applicationBody .bannerTXT .application-store-download button {
    display: flex;
    width: min(100%, 74px);
    min-height: 28px;
    padding: 4px 9px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: #3c88f6;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
  }

  .applicationBody .bannerTXT .application-store-download button span {
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M6 19h12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M6 19h12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .applicationBody .bannerTXT .application-store-download button:active {
    background: #2675e8;
    transform: scale(.97);
  }

  .applicationBody .bannerTXT .application-store-download small {
    margin-top: 7px;
    color: #263342;
    font-size: 12px;
    font-weight: 600;
    line-height: 17px;
  }

  .applicationBody .DetailedModule {
    margin-top: 0;
    padding-top: 36px;
  }

  .applicationBody .DetailedModule > h3,
  .applicationBody .DetailedModule > h5 {
    padding-right: 18px;
    padding-left: 18px;
  }

  .applicationBody .DetailedModule > h3 {
    font-size: 26px;
    line-height: 1.4;
  }

  .applicationBody .DetailedModule > h5 {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
  }

  .applicationBody .DetailedModule section {
    border-top: 1px solid #edf1f7;
  }

  .applicationBody .DetailedModule section:nth-of-type(odd) {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  }

  .applicationBody .DetailedModule dl {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 18px 34px;
  }

  .applicationBody .DetailedModule dt,
  .applicationBody .DetailedModule dd {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .applicationBody .DetailedModule dd {
    order: 1;
    align-self: auto;
  }

  .applicationBody .DetailedModule dt {
    order: 2;
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .applicationBody .DetailedModule dl img {
    width: 100%;
    height: auto;
  }

  .applicationBody .DetailedModule dl .tabBox {
    margin-bottom: 10px;
  }

  .applicationBody .DetailedModule dl .tabBox span {
    display: inline-block;
    padding: 4px 13px;
    font-size: 13px;
  }

  .applicationBody .DetailedModule dl h4 {
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.4;
  }

  .applicationBody .DetailedModule dl p {
    font-size: 15px;
    line-height: 1.8;
    color: #5d6878;
    overflow-wrap: anywhere;
  }

  .applicationBody .DownloadModule {
    display: block;
    padding: 38px 18px 42px;
    background: linear-gradient(145deg, #eef5ff 0%, #f9fbff 58%, #e8f2ff 100%);
  }

  .applicationBody .DownloadModule .centralization {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 0;
    text-align: center;
  }

  .applicationBody .DownloadModule h3 {
    font-size: 26px;
    line-height: 1.35;
  }

  .applicationBody .DownloadModule h5 {
    max-width: 430px;
    margin: 9px auto 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .applicationBody .downloadCode {
    display: block !important;
    width: min(62vw, 220px);
    margin: 0 auto;
    padding: 10px 10px 8px;
    border: 1px solid #deebfb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(43, 103, 177, .12);
  }

  .applicationBody .downloadCode img {
    display: block;
    width: 100%;
    height: auto;
  }

  .applicationBody .downloadCodeCaption {
    display: block;
    margin: 7px 0 0;
    color: #607089;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  .applicationBody .mobile-download-bar {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100vw !important;
    max-width: none !important;
    min-height: 62px;
    margin: 0;
    padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid #d8eafb;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -8px 28px rgba(31, 76, 128, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .applicationBody .mobile-download-bar:active {
    background: rgba(248, 251, 255, .98);
    box-shadow: 0 -5px 18px rgba(49, 119, 181, .1);
  }

  .applicationBody .mobile-download-bar__icon {
    display: none;
  }

  .applicationBody .mobile-download-bar__icon::before {
    content: "";
    position: absolute;
    inset: 7px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .applicationBody .mobile-download-bar__icon::after {
    display: none;
  }

  .applicationBody .mobile-download-bar__text {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(90deg, #4893fb 0%, #347fe9 100%);
    box-shadow: 0 5px 14px rgba(52, 127, 233, .25);
    text-align: center;
  }

  .applicationBody .mobile-download-bar__text strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
  }

  .applicationBody .mobile-download-bar__text small {
    display: none;
  }

  .applicationBody .mobile-download-bar__loading {
    display: none;
  }

  .applicationBody .mobile-download-bar.is-loading .mobile-download-bar__normal {
    display: none;
  }

  .applicationBody .mobile-download-bar.is-loading .mobile-download-bar__loading {
    display: block;
  }

  .applicationBody .mobile-download-bar.is-loading .mobile-download-bar__icon {
    display: none;
  }

  .applicationBody .mobile-download-bar.is-loading .mobile-download-bar__icon::before,
  .applicationBody .mobile-download-bar.is-loading .mobile-download-bar__icon::after {
    display: none;
  }

  .applicationBody .mobile-wechat-tip {
    position: fixed;
    inset: 0;
    z-index: 10060;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 16px;
    background: rgba(9, 20, 36, .72);
  }

  .applicationBody .mobile-wechat-tip.is-open {
    display: flex;
  }

  .applicationBody .mobile-wechat-tip__card {
    position: relative;
    width: min(100%, 360px);
    padding: 22px 20px 18px;
    border-radius: 16px;
    color: #27364b;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
  }

  .applicationBody .mobile-wechat-tip__card::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 22px;
    width: 24px;
    height: 24px;
    border-radius: 4px 0 0;
    background: #fff;
    transform: rotate(45deg);
  }

  .applicationBody .mobile-wechat-tip__card strong {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 1.4;
  }

  .applicationBody .mobile-wechat-tip__card p {
    position: relative;
    margin-top: 8px;
    color: #5e6b7d;
    font-size: 14px;
    line-height: 1.7;
  }

  .applicationBody .mobile-wechat-tip__close {
    position: relative;
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    background: #0878dc;
  }

  .applicationBody.wechat-tip-open {
    overflow: hidden;
  }
}

@keyframes application-download-spin {
  to { transform: rotate(360deg); }
}

@media screen and (max-width: 420px) {
  .applicationBody .applicationBanner {
    min-height: 420px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .applicationBody .bannerTXT h2 {
    font-size: 28px;
  }

  .applicationBody .DetailedModule > h3,
  .applicationBody .DownloadModule h3 {
    font-size: 24px;
  }

  .applicationBody .DetailedModule dl {
    padding-right: 16px;
    padding-left: 16px;
  }
}
