:root {
  --ink: #171a1f;
  --muted: #6d7178;
  --line: #d8d0c2;
  --navy: #12263f;
  --navy-soft: #1b3a5c;
  --gold: #a8844a;
  --red: #c0392b;
  --green: #1f6b4a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 支付页：金额 + 收款方 + 按钮 ===== */

.pay-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.pay-amount {
  font-size: clamp(52px, 11vw, 76px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pay-payee {
  margin: 12px 0 40px;
  color: var(--muted);
  font-size: clamp(16px, 3.5vw, 18px);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pay-button {
  width: min(400px, 100%);
  min-height: 58px;
  padding: 15px 24px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(17px, 4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 160ms ease;
}

.pay-button:hover {
  background: var(--navy-soft);
}

.pay-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.pay-button:disabled {
  background: #9aa0a8;
  cursor: not-allowed;
}

.pay-hint {
  margin: 16px 0 0;
  min-height: 1.6em;
  color: var(--muted);
  font-size: clamp(13px, 3vw, 14px);
  font-variant-numeric: tabular-nums;
}

.pay-hint.error {
  color: var(--red);
}

.pay-status {
  margin: 0;
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 600;
}

.pay-status.success {
  color: var(--green);
}

.pay-status.danger {
  color: var(--red);
}

.pay-status.muted,
.pay-status.pending {
  color: var(--muted);
}

/* ===== 落地页 ===== */

.landing-title {
  margin: 0;
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 3.5vw, 17px);
}

/* ===== 错误页：X 圆圈 + 中文标题 + 英文底层错误码 ===== */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.error-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.error-icon {
  flex: 0 0 auto;
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.error-title {
  margin: 0;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.error-code {
  margin: 16px 0 0;
  color: #b3b8bf;
  font-family: var(--mono);
  font-size: clamp(13px, 3vw, 14px);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (prefers-reduced-motion: reduce) {
  .pay-button {
    transition: none;
  }
}
