:root {
  --ink: #171813;
  --muted: #6b6f64;
  --line: #dfe1d8;
  --paper: #f3f4ed;
  --surface: #fff;
  --green: #2e7352;
  --blue: #1769aa;
  --shadow: 0 18px 48px rgba(32, 37, 25, 0.08);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 226, 130, 0.28), transparent 24rem),
    linear-gradient(rgba(22, 23, 19, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 23, 19, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

button { font: inherit; }

.topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(243, 244, 237, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e8d691;
  border-radius: 12px;
  background: #fff2ca;
  font-size: 20px;
}

.back-link {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 54px;
}

.intro {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.intro > p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid #d9e8dc;
  border-radius: 999px;
  background: #f6fbf7;
  color: var(--green);
}

.promise > span { color: #e0245e; font-size: 16px; }
.promise p { margin: 0; font-size: 12px; }

.support-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(480px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.payment-panel {
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.crypto-panel {
  display: flex;
  flex-direction: column;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 4px 0 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.method-tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #1265b0;
  font-size: 10px;
  font-weight: 850;
}

.method-tag.neutral { background: #eff0ea; color: var(--muted); }

.panel-copy {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.alipay-image-wrap {
  overflow: hidden;
  border: 1px solid #d8e7fb;
  border-radius: 16px;
  background: #1f7bf2;
}

.alipay-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.quiet {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.wallet-list {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafbf7;
}

.wallet-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.coin {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.coin.sol { background: linear-gradient(145deg, #7444ff, #0dbd91); }
.coin.eth { background: linear-gradient(145deg, #5068bb, #8798dc); }
.coin.btc { background: linear-gradient(145deg, #f7931a, #e37200); }

.wallet-head h3,
.wallet-head p { margin: 0; }
.wallet-head h3 { font-size: 15px; }
.wallet-head p { margin-top: 3px; color: var(--muted); font-size: 10px; }

.wallet-card code {
  display: block;
  overflow-wrap: anywhere;
  margin: 13px 0 11px;
  padding: 10px 11px;
  border: 1px solid #e4e6dd;
  border-radius: 9px;
  background: #fff;
  color: #30322c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
}

.wallet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.wallet-actions button,
.wallet-actions a {
  font-size: 10px;
  font-weight: 800;
}

.wallet-actions button {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.wallet-actions button:hover { background: #30322c; }
.wallet-actions button.copied { border-color: var(--green); background: var(--green); }
.wallet-actions a { color: var(--blue); text-decoration: none; }
.wallet-actions a:hover { text-decoration: underline; }

.thanks {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #eadca9;
  border-radius: 18px;
  background: #fff7d8;
}

.thanks > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #b65b4f;
  font-size: 18px;
}

.thanks h2,
.thanks p { margin: 0; }
.thanks h2 { font-size: 15px; }
.thanks p { margin-top: 4px; color: #745f28; font-size: 11px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 750;
}

.toast[hidden] { display: none; }

@media (max-width: 840px) {
  main { padding-top: 42px; }
  .support-grid { grid-template-columns: 1fr; }
  .payment-panel { height: auto; }
  .alipay-panel { max-width: 560px; margin: 0 auto; }
  .wallet-list { grid-template-rows: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 10px 12px; }
  .brand strong { font-size: 13px; }
  .back-link { padding: 7px 10px; font-size: 10px; }
  main { width: min(100% - 20px, 1120px); padding: 34px 0; }
  .intro { margin-bottom: 25px; }
  .intro h1 { font-size: 37px; }
  .intro > p { font-size: 13px; }
  .promise { align-items: flex-start; border-radius: 14px; text-align: left; }
  .payment-panel { padding: 17px; border-radius: 18px; }
  .wallet-actions { align-items: flex-start; flex-direction: column; }
  .wallet-actions button { width: 100%; }
  .thanks { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
