/* 移动端适配 - 覆盖 umi.css 中的固定宽度，消除横向溢出 */

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

#root {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* 凡小于桌面最小宽度的视口，一律按流式布局 */
@media (max-width: 1399px) {
  .container___3-7p6 {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .header___1E4MV .headerContent___176Qp,
  .content___1lKzc {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .bannerWrap___38Ikp,
  .myBankWrap___2yxzf,
  .actionWrap___guideSvc {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bannerWrap___38Ikp .agreementBtn___2hw_N {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bannerWrap___38Ikp .listAdvantage___2vDlk {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer___EYp7z .footerContent___3Kq2E,
  .copyright___1RH6W {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ---------- 平板 ---------- */
@media (max-width: 1200px) {
  .bannerWrap___38Ikp .maxAmt___2omWm {
    font-size: 72px !important;
    line-height: 1.1 !important;
    height: auto !important;
  }

  .bannerWrap___38Ikp .agreementBtn___2hw_N {
    max-width: 480px !important;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  .header___1E4MV {
    height: auto !important;
    min-height: 52px;
    line-height: normal !important;
    padding: 10px 0 !important;
    width: 100% !important;
    background: transparent !important;
    background-image: none !important;
  }

  .header___1E4MV .headerContent___176Qp {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 8px 12px !important;
    padding: 0 12px !important;
    align-items: center !important;
  }

  .navigationBox___1yMNZ {
    display: contents !important;
  }

  .logoBox___WGNkU {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .userBox___3HRGo {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
  }

  .navigation___1bOcJ {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 4px;
  }

  .navigation___1bOcJ::-webkit-scrollbar {
    display: none;
  }

  .navigation___1bOcJ a {
    margin: 0 4px !important;
    flex-shrink: 0;
  }

  .navigationItem___3Y1L4 {
    font-size: 13px !important;
    white-space: nowrap;
  }

  .userName___1vTUS {
    margin-left: 12px !important;
  }

  .help___JcujA span,
  .userName___1vTUS span {
    display: none;
  }

  .content___1lKzc {
    padding-left: 12px !important;
    padding-right: 12px !important;
    background: transparent !important;
  }

  .bannerWrap___38Ikp {
    min-height: auto !important;
    padding: 20px 12px 32px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .bannerWrap___38Ikp .title___3JAWJ {
    margin-top: 24px !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-align: center;
    width: 100%;
  }

  .bannerWrap___38Ikp .maxAmt___2omWm {
    font-size: clamp(36px, 11vw, 52px) !important;
    height: auto !important;
    margin-top: 8px !important;
    line-height: 1.15 !important;
    text-align: center;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .bannerWrap___38Ikp .maxAmt___2omWm:after {
    display: none !important;
  }

  .bannerWrap___38Ikp .agreementText___3xTLi {
    width: 100%;
    text-align: center;
  }

  .bannerWrap___38Ikp .agreementBtn___2hw_N {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    margin-top: 8px !important;
    font-size: 16px !important;
    line-height: 48px !important;
    border-radius: 24px !important;
  }

  .bannerWrap___38Ikp .listAdvantage___2vDlk {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 24px !important;
    gap: 14px !important;
    padding: 0 4px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .bannerWrap___38Ikp .listAdvantage___2vDlk > div {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  .bannerWrap___38Ikp .listAdvantage___2vDlk img {
    width: 32px !important;
    margin-right: 10px !important;
    flex-shrink: 0;
  }

  .myBankWrap___2yxzf {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 24px 12px 20px !important;
    background: #fff !important;
    background-image: none !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(22, 119, 255, 0.1) !important;
    position: relative;
    z-index: 1;
  }

  .actionWrap___guideSvc {
    margin-bottom: 24px !important;
    border-radius: 0 0 16px 16px !important;
  }

  .myBankWrap___2yxzf .title___1_7OU {
    font-size: 18px !important;
    line-height: 1.45 !important;
    padding: 0 4px;
  }

  .myBankWrap___2yxzf .desc___Q78FQ {
    margin-top: 12px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .bannerWrap___2OJP3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
    width: 100% !important;
  }

  .bannerWrap___2OJP3 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px;
  }

  .footer___EYp7z {
    width: 100% !important;
    overflow: hidden;
  }

  .footer___EYp7z .footerContent___3Kq2E {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin: 36px auto 20px !important;
  }

  .footer___EYp7z .footerLeft___2EWq4,
  .footer___EYp7z .footerContact___19lWT,
  .footer___EYp7z .footerMiddle___3PwTf,
  .footer___EYp7z .footerRight___mgrso {
    width: 100% !important;
  }

  .footer___EYp7z .phoneNum___2bDMe {
    line-height: 1.6 !important;
    white-space: pre-line;
  }

  .copyright___1RH6W {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 28px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    opacity: 0.65;
  }

  .ant-modal-root .ant-modal {
    width: calc(100vw - 32px) !important;
    max-width: 400px !important;
    margin: 16px auto !important;
    top: 0 !important;
    transform-origin: center center !important;
  }

  .modalContainer___1b8du {
    flex-direction: column !important;
    height: auto !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .modalContainer___1b8du .modalLeft___13Qka {
    display: none !important;
  }

  .modalContainer___1b8du .modalRight___W39Ja {
    padding: 20px 16px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .modalContainer___1b8du .logoList___EZLn4 {
    width: 100% !important;
  }

  .modalContainer___1b8du .logoBox___bSEbS {
    height: auto !important;
    min-height: 56px;
    padding: 12px 0 !important;
  }

  .modalContainer___1b8du .logoLeft___vH6f_ {
    flex: 1;
    min-width: 0;
  }

  .ant-modal-wrap {
    padding: 16px !important;
    align-items: flex-start !important;
  }

  body.ant-modal-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .ant-modal-root .ant-modal {
    width: 800px !important;
  }
}

@media (max-width: 480px) {
  .header___1E4MV .logoBox___WGNkU .logo___R8PNJ {
    width: 130px !important;
    height: 20px !important;
    background-size: contain !important;
  }

  .bannerWrap___38Ikp .maxAmt___2omWm {
    font-size: 32px !important;
  }
}
