:root {
  color-scheme: light;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --ink: #14151a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f5f6f8;
  --white: #ffffff;
  --red: #e11d48;
  --red-dark: #9f1239;
  --gold: #facc15;
  --green: #15803d;
  --shadow: 0 18px 48px rgba(15, 18, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button {
  font: inherit;
}

.pay-page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 16px 112px;
}

.pay-hero {
  padding: 22px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #121318 0%, #2a1018 54%, #6f102b 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.pay-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.product-panel,
.pay-tips {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  background: #ffe4e6;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-option {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  background: #fbfbfc;
  cursor: pointer;
}

.product-option.active {
  border-color: var(--red);
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: var(--white);
}

.product-option.active .radio-dot {
  border: 6px solid var(--red);
}

.product-name {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.product-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.product-price {
  color: var(--red);
  font-size: 22px;
  font-weight: 1000;
  white-space: nowrap;
}

.pay-tips p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.pay-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 36px rgba(15, 18, 28, 0.12);
  backdrop-filter: blur(16px);
}

.pay-bar div {
  display: grid;
  gap: 2px;
}

.pay-bar span {
  color: var(--muted);
  font-size: 12px;
}

.pay-bar strong {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

.pay-bar button {
  min-width: 150px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  font-weight: 1000;
  background: var(--red);
  cursor: pointer;
}

.pay-bar button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--white);
  text-align: center;
  background: var(--green);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

@media (max-width: 380px) {
  .product-option {
    grid-template-columns: 20px 1fr;
  }

  .product-price {
    grid-column: 2;
  }
}
