@media (max-width: 767px) {
  .wechat-float.open {
    inset: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
  }

  .wechat-float.open .wechat-card {
    width: min(92vw, 420px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: clamp(24px, 6vw, 34px);
    border-color: rgba(0, 160, 233, 0.9);
    box-shadow: 0 22px 76px rgba(0, 160, 233, 0.32);
  }

  .wechat-float.open .wechat-close {
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06);
  }

  .wechat-float.open .wechat-profile {
    grid-template-columns: 74px 1fr;
    gap: 16px;
    padding-right: 42px;
  }

  .wechat-float.open .wechat-profile img {
    width: 74px;
    height: 74px;
  }

  .wechat-float.open .wechat-profile strong {
    font-size: clamp(24px, 7vw, 34px);
  }

  .wechat-float.open .wechat-profile span {
    font-size: clamp(15px, 4vw, 18px);
  }

  .wechat-float.open .wechat-qr {
    width: min(68vw, 300px);
    height: min(68vw, 300px);
    margin: 28px auto 24px;
    border-width: 10px;
    border-radius: 14px;
  }

  .wechat-float.open .wechat-qr img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
  }

  .wechat-float.open .contact-cms-lines {
    margin: 0 auto 18px;
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    font-size: clamp(22px, 6vw, 30px) !important;
    line-height: 1.35 !important;
  }

  .wechat-float.open .contact-cms-lines {
    color: #fff;
    font-weight: 950;
    white-space: nowrap;
  }

  .wechat-float.open .wechat-card p {
    font-size: clamp(20px, 5.4vw, 28px);
    line-height: 1.35;
  }
}
