/* 多H云支付渠道卡片 + 扫码弹窗 */
.duoh-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
@media (min-width: 560px) {
  .duoh-pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.duoh-pay-methods--dense {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.duoh-pay-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  user-select: none;
  text-align: left;
}
.duoh-pay-item:hover:not(.is-off) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.duoh-pay-item.is-on {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 1px #1e3a5f;
  background: #f4f7fb;
}
.duoh-pay-item.is-off {
  opacity: .45;
  cursor: not-allowed;
}
.duoh-pay-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.duoh-pay-ico.wechat { background: #07c160; }
.duoh-pay-ico.alipay { background: #1677ff; }
.duoh-pay-ico.paypal { background: #003087; }
.duoh-pay-ico.crypto { background: #f7931a; }
.duoh-pay-ico.card,
.duoh-pay-ico.unionpay,
.duoh-pay-ico.apple,
.duoh-pay-ico.google { background: #1a1f71; }
.duoh-pay-meta { min-width: 0; }
.duoh-pay-name {
  font-size: .9rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.25;
}
.duoh-pay-sub {
  font-size: .72rem;
  color: #64748b;
  margin-top: .15rem;
}
.duoh-pay-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
}
.duoh-pay-item.is-on .duoh-pay-check {
  border-color: #1e3a5f;
  background: #1e3a5f;
}
.duoh-pay-item.is-on .duoh-pay-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.duoh-pay-empty {
  font-size: .88rem;
  color: #94a3b8;
  padding: .75rem 0;
}

/* Modal */
.duoh-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: duohPayFade .18s ease-out;
}
.duoh-pay-overlay[hidden] { display: none !important; }
@keyframes duohPayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.duoh-pay-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  overflow: hidden;
  animation: duohPayPop .22s cubic-bezier(.2, .9, .2, 1);
}
@keyframes duohPayPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.duoh-pay-modal-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem .85rem;
  border-bottom: 1px solid #eef2f7;
}
.duoh-pay-modal-hd h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.duoh-pay-modal-hd p {
  margin: .3rem 0 0;
  font-size: .82rem;
  color: #64748b;
  line-height: 1.45;
}
.duoh-pay-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.duoh-pay-close:hover { background: #e2e8f0; }
.duoh-pay-modal-bd {
  padding: 1.25rem 1.25rem 1.4rem;
  text-align: center;
}
.duoh-pay-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #c2410c;
  letter-spacing: -.02em;
  margin: 0 0 .35rem;
}
.duoh-pay-hint {
  font-size: .88rem;
  color: #334155;
  margin: 0 0 1rem;
}
.duoh-pay-qr-wrap {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  line-height: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.duoh-pay-qr-wrap canvas,
.duoh-pay-qr-wrap img {
  display: block;
  width: 220px !important;
  height: 220px !important;
}
.duoh-pay-order {
  margin: 1rem 0 0;
  font-size: .78rem;
  color: #94a3b8;
  word-break: break-all;
  line-height: 1.5;
}
.duoh-pay-wait {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  font-size: .82rem;
  color: #07c160;
  font-weight: 600;
}
.duoh-pay-wait::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #07c160;
  animation: duohPayPulse 1.2s ease-in-out infinite;
}
@keyframes duohPayPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
body.duoh-pay-lock { overflow: hidden; }

.duoh-pay-extra { margin-top: 1rem; text-align: left; }
.duoh-pay-crypto { display: grid; gap: .65rem; }
.duoh-pay-crypto-row {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .85rem; color: #64748b;
}
.duoh-pay-crypto-row b { color: #0f172a; font-weight: 650; }
.duoh-pay-crypto-addr,
.duoh-pay-crypto-amt {
  display: flex; gap: .5rem; align-items: stretch;
}
.duoh-pay-crypto-addr code,
.duoh-pay-crypto-amt code {
  flex: 1; min-width: 0; font-size: .72rem; line-height: 1.4;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: .55rem .65rem; word-break: break-all; color: #0f172a;
}
.duoh-pay-crypto-amt code {
  font-size: 1.05rem; font-weight: 800; color: #c2410c; text-align: center;
}
.duoh-pay-copy {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 10px;
  padding: 0 .75rem; font: inherit; font-size: .78rem; font-weight: 650;
  color: #1e3a5f; cursor: pointer; white-space: nowrap;
}
.duoh-pay-copy:hover { background: #f1f5f9; }
.duoh-pay-crypto-warn {
  margin: 0; font-size: .78rem; color: #b45309; line-height: 1.45;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: .55rem .7rem;
}
