/* 查看联系方式付费弹窗 — PC 622px（对齐设计稿） */

.apt-contact-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.apt-contact-pay-modal.is-open {
  display: flex;
}

body.apt-contact-pay-modal-open {
  overflow: hidden;
}

.apt-contact-pay-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.apt-contact-pay-modal__dialog {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 622px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 40px;
}

.apt-contact-pay-modal--h5 {
  display: none;
}

.apt-contact-pay-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.apt-contact-pay-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 24px;
  width: 100%;
  padding: 64px 48px 0;
}

.apt-contact-pay-modal__title {
  align-self: stretch;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: inherit;
  font-size: 40px;
  line-height: 56px;
  font-weight: 500;
  color: var(--primary, #ec4899);
  word-wrap: break-word;
}

.apt-contact-pay-modal__rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 18px;
  width: 100%;
}

.apt-contact-pay-modal__row {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  min-height: 38px;
  height: 38px;
}

.apt-contact-pay-modal__row-label {
  font-size: 28px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.9);
  word-wrap: break-word;
}

.apt-contact-pay-modal__row-balance {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.apt-contact-pay-modal__row-value {
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
  text-align: justify;
  word-wrap: break-word;
}

.apt-contact-pay-modal__row-value--price {
  color: var(--primary, #ec4899);
}

.apt-contact-pay-modal__recharge {
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  color: #ffa000;
  text-align: justify;
  word-wrap: break-word;
  text-decoration: none;
  cursor: pointer;
}

.apt-contact-pay-modal__recharge:hover {
  opacity: 0.85;
}

.apt-contact-pay-modal__footer {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 24px;
  width: 100%;
  padding: 48px;
}

.apt-contact-pay-modal__pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 526px;
  min-height: 88px;
  height: 88px;
  padding: 22px 48px;
  border: none;
  border-radius: 1998px;
  background: var(--primary, #ec4899);
  color: #fff;
  font-family: inherit;
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
  text-align: center;
  word-wrap: break-word;
  cursor: pointer;
}

.apt-contact-pay-modal__pay:hover {
  opacity: 0.92;
}

.apt-contact-pay-modal__pay:disabled,
.apt-contact-pay-modal__pay.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.apt-detail-contact--isUnlocked .apt-detail-card__title[data-contact-pay-modal-open],
.apt-detail-contact--isUnlocked .apt-detail-section-title[data-contact-pay-modal-open] {
  cursor: pointer;
}

/* ===== H5: 底部抽屉（对齐设计稿） ===== */

@media (max-width: 767px) {
  .apt-contact-pay-modal {
    align-items: flex-end;
    padding: 0;
  }

  .apt-contact-pay-modal--h5 {
    display: block;
  }

  .apt-contact-pay-modal__dialog {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 18px 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #fff;
  }

  .apt-contact-pay-modal__handle {
    flex-shrink: 0;
    width: 36px;
    height: 5px;
    margin: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.2);
  }

  .apt-contact-pay-modal__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    gap: 18px;
    width: 100%;
    padding: 0;
  }

  .apt-contact-pay-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 18px;
    width: 100%;
    padding: 0;
  }

  .apt-contact-pay-modal__title {
    align-self: stretch;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9);
    text-align: center;
    word-wrap: break-word;
  }

  .apt-contact-pay-modal__rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 343px;
  }

  .apt-contact-pay-modal__row {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    height: auto;
  }

  .apt-contact-pay-modal__row-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.9);
    word-wrap: break-word;
  }

  .apt-contact-pay-modal__row-value {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9);
    text-align: justify;
    word-wrap: break-word;
  }

  .apt-contact-pay-modal__row-value--price {
    color: var(--primary, #ec4899);
  }

  .apt-contact-pay-modal__row-balance {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .apt-contact-pay-modal__recharge {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #ffa000;
    text-align: justify;
    word-wrap: break-word;
  }

  .apt-contact-pay-modal__footer {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 18px;
    width: 100%;
    padding: 0;
  }

  .apt-contact-pay-modal__pay {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 11px 24px;
    border-radius: 99px;
    background: var(--primary, #ec4899);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
  }

  .apt-contact-pay-modal__home-bar {
    display: none;
  }
}
