:root {
  --bg: #f3f1ec;
  --ink: #1c1917;
  --muted: #78716c;
  --card: #fffcf7;
  --line: #e7e0d5;
  --wx: #07c160;
  --ali: #1677ff;
  --accent: #b45309;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(900px 400px at 10% -10%, #fde68a55, transparent),
    radial-gradient(700px 360px at 110% 0%, #bbf7d055, transparent),
    var(--bg);
  color: var(--ink);
}
.wrap { width: min(880px, calc(100% - 32px)); margin: 48px auto 32px; flex: 1; }
.hint a, .hero-lead a { color: var(--accent); }
.brand { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: #1c1917; color: #fff; display: grid; place-items: center;
  font-weight: 700; letter-spacing: 0.04em;
}
.logo.pay { background: linear-gradient(135deg, #b45309, #f59e0b); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { margin: 0 0 8px; font-size: 20px; }
.muted { color: var(--muted); margin: 0; }
.mini { font-size: 12px; margin-top: 10px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.product { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.product-cover {
  background: linear-gradient(160deg, #1c1917, #44403c);
  color: #fde68a; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}
.price { font-size: 18px; margin: 16px 0; }
.price em { font-style: normal; font-size: 36px; font-weight: 700; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  text-decoration: none; font-weight: 600; margin-top: 16px;
}
.btn.primary { background: #1c1917; color: #fff; width: 100%; }
.btn.secondary {
  background: #fff; color: var(--ink); width: 100%;
  border: 1px solid var(--line);
}
.btn.ghost { background: #fff; border: 1px dashed var(--line); color: var(--ink); width: 100%; }
.hero h2 { font-size: 26px; line-height: 1.35; margin: 0 0 10px; }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.hero-lead { color: var(--muted); margin: 0; max-width: 40em; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-actions .btn { width: auto; min-width: 148px; }
.steps {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
}
.step b { display: block; color: var(--accent); font-size: 12px; margin-bottom: 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.feature { padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.site-foot {
  width: min(880px, calc(100% - 32px));
  margin: auto auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.site-foot p { margin: 0; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.order-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.order-line span { color: var(--muted); }
.amount-block { text-align: center; padding: 18px 0 8px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.qr-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; background: #fff;
}
.qr-card img { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-card iframe {
  width: 220px; height: 220px; border: 0; display: block; margin: 0 auto; background: #fff;
}
.qr-title { font-weight: 700; margin-bottom: 10px; }
.qr-card.wechat .qr-title { color: var(--wx); }
.qr-card.alipay .qr-title { color: var(--ali); }
.status { text-align: center; margin: 18px 0 0; font-weight: 600; }
.status.ok { color: var(--wx); }
.status.refund { color: var(--accent); }
#refund-box { margin-top: 8px; }
.hint { margin-top: 18px; color: var(--muted); font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 720px) {
  .product, .qr-grid, .features, .steps { grid-template-columns: 1fr; }
  .qr-card img { width: 200px; height: 200px; }
  .hero h2 { font-size: 22px; }
  .hero-actions .btn { width: 100%; }
  .wrap { margin-top: 28px; }
}
