﻿:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #14213d;
  --muted: #6b7280;
  --line: rgba(20, 33, 61, 0.1);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 24px 80px rgba(37, 99, 235, 0.18);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.18), transparent 30rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
}

.hero-panel,
.pay-card,
.success-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 48px;
  border-radius: 36px;
}

.hero-panel::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(20, 184, 166, 0.24));
  content: "";
}

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

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

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

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

h2 {
  font-size: 30px;
}

.hero-copy {
  max-width: 580px;
  margin: 84px 0 0;
  color: #475569;
  font-size: 20px;
  line-height: 1.75;
}

.feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 70px;
}

.feature-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-card strong,
.feature-card span {
  display: block;
}

.feature-card strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card span {
  color: var(--muted);
  font-size: 14px;
}

.pay-card {
  padding: 34px;
  border-radius: 32px;
  background: var(--panel-strong);
}

.card-header {
  margin-bottom: 30px;
}

.pay-form {
  display: grid;
  gap: 14px;
}

.field-label {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.amount-input {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.amount-input:focus-within {
  border-color: rgba(37, 99, 235, 0.64);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.amount-input span {
  color: var(--primary);
  font-size: 26px;
  font-weight: 900;
}

.amount-input input {
  width: 100%;
  border: 0;
  outline: none;
  margin-left: 12px;
  color: var(--text);
  background: transparent;
  font-size: 30px;
  font-weight: 800;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.method-option {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 112px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.method-option:hover,
.method-option.active {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.55);
  color: var(--text);
  background: #eef6ff;
}

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.alipay {
  background: linear-gradient(135deg, #1677ff, #69b1ff);
}

.wxpay {
  background: linear-gradient(135deg, #07c160, #46d88a);
}

.qqpay {
  background: linear-gradient(135deg, #12b7f5, #4f46e5);
}

.primary-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.34);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.qr-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  border-radius: 24px;
  background: #f8fbff;
}

.qr-panel.hidden {
  display: none;
}

.qr-box {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-box img {
  max-width: 128px;
  max-height: 128px;
}

.qr-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.qr-info p:not(.qr-title) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.link-btn {
  min-height: 42px;
  padding: 0 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.09);
}

.success-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.success-card {
  width: min(480px, 100%);
  padding: 42px;
  border-radius: 34px;
  text-align: center;
  background: #fff;
}

.success-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, #16a34a, #14b8a6);
  box-shadow: 0 20px 42px rgba(22, 163, 74, 0.28);
}

.success-copy {
  margin: 16px 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.success-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--muted);
  background: #f8fafc;
}

.success-meta strong {
  color: var(--text);
  word-break: break-all;
}

.success-btn {
  margin-top: 0;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-copy {
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero-panel,
  .pay-card,
  .success-card {
    padding: 24px;
    border-radius: 26px;
  }

  .feature-grid,
  .method-grid,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .method-option {
    min-height: 86px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    padding: 14px 16px;
  }

  .qr-box {
    width: 100%;
  }
}
