.pay-body {
  background: linear-gradient(165deg, #e8f3ff 0%, #f5f7fa 45%, #fff 100%);
  color: #1f2937;
}

.pay-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.pay-header {
  text-align: center;
  margin: 1.5rem 0 1.25rem;
}

.pay-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1677ff;
}

.pay-sub {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.pay-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pay-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.pay-amount-input {
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  color: #111827;
}

.pay-subject-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.pay-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 1.05rem;
  display: block;
  text-align: center;
  text-decoration: none;
}

.pay-hint {
  margin-top: 1rem;
  text-align: center;
}

.pay-form-error {
  color: #ff4d4f;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.75rem;
}

#view-wait .status.pending {
  color: #d48806;
  background: #fffbe6;
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
}

.pay-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #faad14;
  border-top-color: transparent;
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}

@keyframes pay-spin {
  to {
    transform: rotate(360deg);
  }
}

.pay-wait-tip {
  color: #374151 !important;
  line-height: 1.5;
}

#view-done h2,
#view-error h2 {
  color: #111827;
}

#view-done .hint,
#view-error .hint {
  color: #4b5563 !important;
}

.pay-center {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.pay-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.pay-icon.success {
  background: rgba(82, 196, 26, 0.15);
  color: #52c41a;
}

.pay-icon.error {
  background: rgba(255, 77, 79, 0.15);
  color: #ff4d4f;
}

.pay-status-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.pay-back {
  margin-top: 1rem;
  width: 100%;
}

.wx-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
}

.wx-mask[hidden] {
  display: none !important;
}

.wx-card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem;
  max-width: 320px;
}

.wx-card .hint {
  color: #666;
}
