/* Public site mobile polish (injected on HTML pages). */
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; }

@media (max-width: 1023px) {
  body { overflow-x: hidden; }

  [aria-label="Banner"] h1 {
    font-size: clamp(1.6rem, 7vw, 2.15rem) !important;
    line-height: 1.2 !important;
  }

  [aria-label="Banner"] .absolute.inset-x-0.bottom-10 {
    bottom: 4.5rem !important;
    justify-content: center;
  }

  [aria-label="Banner"] > .absolute.bottom-8 {
    bottom: 16px !important;
    right: 16px !important;
  }

  [data-brand-clients-strip] img {
    max-height: 36px;
    width: auto;
  }

  nav[aria-label="页脚导航"] > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem 1rem !important;
  }
  nav[aria-label="页脚导航"] > div > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  nav[aria-label="页脚导航"] a {
    white-space: normal !important;
  }

  input, select, textarea, button {
    font-size: 16px;
  }
  input, select, textarea {
    max-width: 100%;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bar {
    padding: 12px 16px;
  }
  .bar img { height: 22px; }
  .wrap {
    padding: 28px 16px 72px !important;
  }
  .wrap h1 { font-size: 26px !important; }
}

@media (max-width: 640px) {
  [aria-label="Banner"] .relative.flex {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 4.5rem !important;
    padding-bottom: 6.5rem !important;
  }

  header button[aria-label="菜单"] {
    margin-right: 2px;
  }
}

@media (max-width: 1023px) {
  .chat-widget {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .chat-bubble {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }
  .chat-panel {
    width: min(100vw - 24px, 380px);
    height: min(70dvh, 520px);
    bottom: 52px;
  }
}
