:root {
  --bg: #f3efe5;
  --ink: #241d18;
  --muted: #756b60;
  --panel: rgba(255, 252, 244, 0.92);
  --line: rgba(36, 29, 24, 0.12);
  --gold: #b07a2b;
  --green: #157f4f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(176, 122, 43, 0.18), transparent 30rem),
    linear-gradient(135deg, #efe6d2 0%, #f8f4ea 48%, #e7ddc8 100%);
}

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.hero { max-width: 760px; margin-bottom: 32px; }
.eyebrow { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0; font-size: clamp(40px, 8vw, 84px); line-height: 0.95; }
.sub { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.8; }

.panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(76, 53, 20, 0.14);
  padding: 22px;
}

.form, .result { background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
label { display: block; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
input, select {
  width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 15px; font: inherit; font-size: 17px; color: var(--ink); background: #fffdf8;
}
button {
  width: 100%; border: 0; border-radius: 18px; padding: 15px 18px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fffaf0; background: #241d18;
}
.wechat-pay-btn { margin-top: 10px; background: #15803d; }
.ghost { margin-top: 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.message { min-height: 22px; color: var(--muted); }
.message.error { color: #a83232; }
.result { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; }
.hidden { display: none; }
.qr-wrap { background: #fff; border-radius: 24px; padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.qr-wrap img { display: block; width: 100%; height: auto; }
.status { display: inline-block; color: #8a5e20; background: rgba(176,122,43,.12); border-radius: 999px; padding: 8px 12px; }
.status.paid { color: var(--green); background: rgba(21,127,79,.12); }
h2 { font-size: 34px; margin: 18px 0 8px; }
.hint { color: var(--muted); line-height: 1.7; }

@media (max-width: 820px) {
  .shell { padding: 32px 0; }
  .panel, .result { grid-template-columns: 1fr; }
  .result { justify-items: stretch; }
}
