
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f5f5f5;
}
.app-container {
  width: 100%;
  min-height: 100vh;
}

.payment-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}
.loading-page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-card {
  padding: 18px 24px;
  border-radius: 16px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.payment-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}
.payment-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 14px;
}
.merchant-name {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}
.topbar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}
.payment-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.payment-card {
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-logo-fallback {
  border-radius: 12px;
  background: linear-gradient(135deg, #1677ff, #7dd3fc);
}
.brand-texts {
  min-width: 0;
  flex: 1;
}
.brand-title,
.brand-subtitle {
  margin: 0;
}
.brand-title {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.brand-subtitle {
  margin-top: 3px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}
.channel-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.7;
}
.order-no,
.order-code,
.payee-text,
.scan-tip {
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
}
.detail-label {
  color: #374151;
}
.detail-value {
  color: #111827;
  word-break: break-all;
}
.detail-copy {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1677ff;
  font-size: 12px;
  cursor: pointer;
}
.open-button,
.copy-pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.open-button:disabled,
.copy-pay-button:disabled,
.copy-pay-button--disabled {
  background: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
}
.copy-pay-button:not(:disabled):active {
  opacity: 0.88;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.bank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  text-decoration: none;
}
.bank-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.bank_app {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  padding: 20px 0;
}
.bank_app a {
  display: flex;
  box-sizing: border-box;
  width: 45%;
  align-items: center;
  justify-content: center;
  margin: 0 2.5% 10px;
  border: 1px solid #ddd;
}
.bank_app a img {
  max-width: 100%;
}
.guide-stack,
.tutorial-images {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.guide-stack-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.guide-image,
.tutorial-image,
.search-guide-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.tutorial-image {
  border: 1px solid #e5e7eb;
  background: #fff;
}
.tutorial-section {
  width: 100%;
  max-width: 560px;
  margin: 20px auto 0;
}
.tutorial-title {
  margin: 0 0 10px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.digital-yuan-guide {
  margin-top: 20px;
}
.digital-yuan-guide-title {
  margin: 0;
  color: #dc2626;
  font-size: 18px;
  font-weight: 800;
}
.digital-yuan-guide-summary {
  margin: 10px 0 0;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}
.digital-yuan-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  margin-top: 18px;
}
.digital-yuan-guide-item {
  min-width: 0;
  margin: 0;
}
.digital-yuan-guide-item figcaption {
  min-height: 44px;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}
.digital-yuan-guide-item figcaption span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}
.digital-yuan-guide-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.payment-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}
.side-title {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}
.guide-list {
  margin: 14px 0 0;
  padding-left: 5px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.8;
  list-style: none;
}
.account-prefix-warning {
  color: #dc2626;
}
.wechat-guide {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbea;
}
.wechat-guide-title {
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}
.wechat-guide-text {
  margin-top: 6px;
  color: #a16207;
  font-size: 13px;
  line-height: 1.7;
}
.qq-red-packet-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.qq-red-packet-step {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.qq-red-packet-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  font-size: 15px;
}
.qq-red-packet-step-title span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}
.qq-red-packet-step p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.qq-red-packet-upload {
  display: grid;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  place-items: center;
}
.qq-red-packet-upload.is-disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
.qq-red-packet-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.qq-red-packet-error,
.qq-red-packet-submitted {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.qq-red-packet-error {
  color: #dc2626;
}
.qq-red-packet-submitted {
  color: #15803d;
  font-weight: 600;
}
.password-red-packet-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.password-red-packet-step {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.password-red-packet-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  font-size: 15px;
}
.password-red-packet-step-title span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}
.password-red-packet-step p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.password-red-packet-input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  color: #111827;
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
}
.password-red-packet-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.password-red-packet-input:disabled {
  background: #f1f5f9;
  color: #64748b;
}
.password-red-packet-error,
.password-red-packet-submitted {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.password-red-packet-error {
  color: #dc2626;
}
.password-red-packet-submitted {
  color: #15803d;
  font-weight: 600;
}
@media (min-width: 960px) {
  .payment-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
  }
}

[hidden]{display:none!important}.modal-open{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.binding-group{display:contents}.connection-status{margin-top:14px;color:#92400e;font-size:13px;line-height:1.7}.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:1200;padding:10px 18px;border-radius:6px;background:#16a34a;color:#fff;font-size:14px;pointer-events:none}.toast.is-error{background:#dc2626}[data-copy],button{cursor:pointer}a.pay-button{display:flex;align-items:center;justify-content:center;text-decoration:none;background:var(--primary)}a[aria-disabled=true]{background:#d1d5db;pointer-events:none}#name-form{display:contents}#name-error:empty,#special-error:empty,#special-feedback:empty{display:none}.qrcode-svg>svg{display:block;width:100%;height:100%}.qrcode-container>img{width:100%;height:100%;object-fit:contain}#payment-controls{display:contents}
