/* 支付遮罩层 + 领取权益页（对齐 qydj home/dist 的交互） */
/* v20261126fix4：改为 huiyuan 同款小浮层（原整屏米色遮罩）
   必须显式 right/bottom:auto，否则下面旧规则的 inset:0 会把浮层撑满屏。
   z-index 低于 .paid-modal(2147482950)，保证支付弹窗永远在上层。 */
.pay-veil {
  position: fixed;
  left: 50%; top: 50%;
  right: auto; bottom: auto;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 2147482940;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  max-width: 86vw;
  padding: 18px 16px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.76);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  will-change: opacity, transform;
}
.pay-veil.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.pay-veil__spin {
  display: block;
  width: 26px; height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #FFD85A;
  border-right-color: #FFD85A;
  animation: pay-veil-spin 0.72s linear infinite;
  will-change: transform;
}
@keyframes pay-veil-spin { to { transform: rotate(360deg); } }
.pay-veil__text {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .3px;
  text-align: center;
  white-space: nowrap;
}
.pay-veil__cancel {
  margin-top: 4px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #a5844e;
  font-size: 12px;
  line-height: 1.5;
}

.claim-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fce8db 0%, #fff6ef 55%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.claim-card {
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
  padding: 28px 22px 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(214, 162, 74, 0.18);
  text-align: center;
}
.claim-status {
  font-size: 19px;
  font-weight: 700;
  color: #3b2a12;
  margin-bottom: 14px;
}
.claim-phone {
  font-size: 14px;
  color: #8a5a1e;
  margin: 0 0 18px;
}
.claim-form { display: flex; flex-direction: column; gap: 12px; }
.claim-input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #f0d8bd;
  border-radius: 10px;
  background: #fffaf5;
  font-size: 16px;
  color: #3b2a12;
  outline: none;
}
.claim-input:focus { border-color: #f1311b; }
.claim-submit,
.claim-enter {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  line-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a3c, #f1311b);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.claim-submit:disabled { opacity: 0.6; cursor: default; }
.claim-enter { margin-top: 6px; }
.claim-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #b09070;
}
.claim-tip,
.claim-error {
  font-size: 15px;
  color: #8a5a1e;
  text-align: center;
}
.claim-back {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 26px;
  border-radius: 999px;
  background: #f1311b;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}

/* 专属权益地址 */
.claim-address {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f3e0c8;
  border-radius: 12px;
  background: #fffaf3;
  text-align: left;
}
.claim-address__label {
  font-size: 12px;
  font-weight: 600;
  color: #b07b2e;
  margin-bottom: 6px;
}
.claim-address__value {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #f1311b;
  text-decoration: underline;
  word-break: break-all;
}

/* 复制地址（次级按钮） */
.claim-copy {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  margin-top: 10px;
  padding: 0;
  border: 1px solid #ffb9a8;
  border-radius: 999px;
  background: #ffffff;
  color: #f1311b;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.claim-copy:active { background: #fff2ee; }

/* 领取说明（对齐 home/dist 的两条提示） */
.claim-notice {
  margin: 16px 0 0;
  text-align: left;
}
.claim-notice__item {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #b09070;
}
.claim-notice__dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e2b273;
}

/* ============================================================
 * 支付成功弹窗（v20261126）
 * 小程序收银台支付完成、返回浏览器时「返回即出」的引导弹层。
 * 刻意不宣称「支付成功」：文案是「点前往观看即可核对订单」。
 * ============================================================ */
.paid-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147482950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.38);
  -webkit-tap-highlight-color: transparent;
}
.paid-modal.is-open { display: flex; }

.paid-modal__card {
  width: 320px;
  max-width: 86vw;
  box-sizing: border-box;
  padding: 26px 20px 18px;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  animation: paid-modal-in 0.16s ease-out;
}
@keyframes paid-modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* 双气泡图标：纯 CSS 绘制，不使用微信官方 logo 资源 */
.paid-modal__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #07c160;
  overflow: hidden;
}
.paid-modal__icon i {
  position: absolute;
  display: block;
  background: #ffffff;
}
.paid-modal__icon i:nth-child(1) {
  left: 13px;
  top: 17px;
  width: 26px;
  height: 22px;
  border-radius: 11px;
}
.paid-modal__icon i:nth-child(2) {
  left: 29px;
  top: 28px;
  width: 21px;
  height: 18px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #07c160;
}

.paid-modal__text {
  margin: 0 0 20px;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
}

.paid-modal__actions {
  display: flex;
  gap: 10px;
}
.paid-modal__btn {
  flex: 1 1 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  line-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.paid-modal__btn--ghost {
  background: #f2f2f2;
  color: #333333;
}
.paid-modal__btn--primary {
  background: #07c160;
  color: #ffffff;
}
.paid-modal__btn:active { opacity: 0.86; }

/* 骨架态：本地查不到、正在等上游确认时先占位，避免用户「回来什么都没看到」 */
.paid-modal.is-loading .paid-modal__btn--primary {
  background: #9be3b9;
  pointer-events: none;
}

@media (max-width: 340px) {
  .paid-modal__card { padding: 22px 16px 16px; }
  .paid-modal__text { font-size: 13px; }
}
