/* payment.css - 网页版微信扫码支付 */

#page-payment {
  max-width: 440px;
  padding-top: 72px;
}

.pay-wrapper {
  padding: 0 16px 40px;
}

/* 订单摘要 */
.pay-order {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.pay-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.pay-order-label {
  font-size: 17px;
  font-weight: 700;
  color: #0a2a5e;
}

.pay-order-no {
  font-size: 12px;
  color: #aaa;
}

.pay-order-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.pay-row span:first-child {
  color: #888;
}

.pay-row span:last-child {
  color: #1e293b;
  font-weight: 600;
}

.pay-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

.pay-row.pay-total {
  padding-top: 14px;
  border-top: 2px solid #f0f0f0;
}

.pay-row.pay-total span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: #0a2a5e;
}

.pay-price {
  font-size: 28px !important;
  color: #ff6b6b !important;
  font-weight: 800;
}

/* 二维码区 */
.pay-qr {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-align: center;
}

.pay-qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #0a2a5e;
}

.pay-qr-price {
  font-size: 20px;
  color: #e65100;
}

.pay-qr-body {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.pay-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

/* spinner */
.pay-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(26,95,180,0.15);
  border-top-color: #1a5fb4;
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}

@keyframes pay-spin {
  to { transform: rotate(360deg); }
}

.pay-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 2px solid #e8e8e8;
  margin: 0 auto 12px;
}

.pay-qr-actions {
  margin-top: 12px;
}

.pay-qr-download {
  font-size: 13px;
  color: #1a5fb4;
  text-decoration: none;
}

.pay-qr-tip {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}

/* 底部按钮 */
.pay-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-btn-done {
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
}

.pay-btn-done:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay-btn-cancel {
  height: 44px;
  border-radius: 10px;
  background: transparent;
  color: #999;
  font-size: 14px;
  border: 1px solid #ddd;
  cursor: pointer;
  width: 100%;
}

.pay-btn-primary {
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a5fb4, #2c82c9);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
