/* ============================================================
 * pay.css · 艺元素全站统一付款弹窗样式 v1
 * 与首页母版一致：底部抽屉（手机友好）/ 桌面居中，浅暖金配色。
 * 只在弹层内部生效，用 .pay-mask 前缀隔离，不污染各页原有样式。
 * ============================================================ */
.pay-mask {
  position: fixed; inset: 0; z-index: 3000; display: none;
  background: rgba(43,36,24,0.62);
  align-items: flex-end; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pay-mask.on { display: flex; }
.pay-sheet {
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  box-sizing: border-box; color: #2b2418;
  background: #fcf8f1;
  border: 1px solid rgba(184,121,47,0.3); border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: payUp 0.22s ease-out;
  -webkit-overflow-scrolling: touch;
}
@keyframes payUp { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 600px) {
  .pay-mask { align-items: center; padding: 20px; }
  .pay-sheet { border-radius: 18px; }
}
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pay-title { font-size: 17px; font-weight: bold; color: #b8792f; line-height: 1.5; }
.pay-x {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.42); border: none; color: #5c5142; font-size: 15px; line-height: 1;
}
.pay-desc { font-size: 12px; color: rgba(92,81,66,0.78); line-height: 1.75; margin: 6px 0 12px; }
.pay-desc b { color: #b8792f; }
.pay-amt-box { text-align: center; padding: 4px 0 8px; }
.pay-amt { font-size: 36px; font-weight: bold; color: #b8792f; letter-spacing: 1px; line-height: 1.2; }
.pay-amt small { font-size: 15px; font-weight: normal; color: rgba(92,81,66,0.78); }
.pay-amt-note { font-size: 11px; color: rgba(92,81,66,0.9); margin-top: 2px; }
.pay-qr {
  width: 186px; height: 186px; display: block; margin: 4px auto 6px;
  border-radius: 10px; background: #f4efe6; object-fit: contain;
}
.wx-qr-box {
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
  margin: 4px auto 6px; border-radius: 10px; background: #fff; padding: 8px; box-sizing: border-box;
}
.wx-qr-box svg { width: 100%; height: 100%; display: block; }
.pay-tip { text-align: center; font-size: 12px; color: rgba(92,81,66,0.78); margin-bottom: 10px; line-height: 1.7; }
.pay-tip b { color: #b8792f; }
.pay-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.pay-copy {
  background: rgba(255,255,255,0.62); border: 1px solid rgba(184,121,47,0.20); color: #b8792f;
  border-radius: 8px; padding: 8px 14px; font-size: 12px; cursor: pointer;
}
.pay-no { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: rgba(92,81,66,0.9); text-align: center; }
.pay-wait { text-align: center; font-size: 12px; color: rgba(92,81,66,0.85); padding-top: 10px; line-height: 1.8; }
.pay-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  margin-right: 5px; animation: payDot 1.2s infinite;
}
@keyframes payDot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.pay-ok { text-align: center; padding: 20px 0 8px; }
.pay-ok .big { font-size: 20px; font-weight: bold; color: #6ee7a0; margin-bottom: 6px; }
.pay-ok .sm { font-size: 12px; color: rgba(92,81,66,0.85); line-height: 1.8; }
.pay-btn {
  display: block; width: 100%; margin-top: 14px; padding: 12px; cursor: pointer;
  border: none; border-radius: 10px; background: #b8792f; color: #ffffff;
  font-size: 15px; font-weight: bold; letter-spacing: 1px;
}
.pay-btn.gold { background: linear-gradient(135deg,#97601c,#b8792f); color: #ffffff; }
.pay-btn:disabled { opacity: .55; }
.pay-foot { margin-top: 12px; font-size: 11px; color: rgba(92,81,66,0.85); text-align: center; line-height: 1.9; }
.pay-steps {
  background: rgba(255,255,255,0.62); border: 1px solid rgba(184,121,47,0.18);
  border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 12.5px;
  color: rgba(43,36,24,0.94); line-height: 1.95;
}
.pay-steps b { color: #b8792f; }
.pay-note {
  margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.75;
  background: rgba(255,199,90,0.1); border: 1px dashed rgba(255,199,90,0.4); color: #a9701f;
}
