:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #657086;
  --line: #dde4ef;
  --blue: #1677ff;
  --blue-strong: #0b5fd3;
  --green: #17a673;
  --amber: #f5a524;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(22, 119, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #f7f2e8 100%);
}

button,
input,
textarea {
  font: inherit;
}

.payment-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1.14fr);
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.brand-panel,
.checkout-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 228, 239, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(9, 28, 60, 0.84), rgba(22, 119, 255, 0.56)),
    url("./assets/service-pattern.svg") center/cover;
  z-index: -1;
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel .eyebrow,
.brand-panel h1,
.brand-panel .lead,
.trust-grid strong,
.trust-grid span {
  color: #fff;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead {
  max-width: 520px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.trust-grid {
  display: grid;
  gap: 12px;
}

.trust-grid div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.86;
}

.checkout-panel {
  padding: 30px;
  border-radius: 8px;
}

.checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue-strong);
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  min-height: 238px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.plan-card:hover,
.plan-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(22, 119, 255, 0.16);
  transform: translateY(-1px);
}

.plan-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.plan-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 18px;
}

.plan-card b {
  display: block;
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-card li + li {
  margin-top: 3px;
}

.plan-card em {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
  font-size: 20px;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: #344057;
  font-size: 14px;
  font-weight: 700;
}

.order-form label:last-child {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.summary {
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f6f9fc;
  border: 1px solid var(--line);
}

.summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.summary > strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 17px;
}

.text-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.pay-box {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.qr-frame {
  width: 190px;
  aspect-ratio: 2 / 3;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pay-instructions p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.receiver-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: -4px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #344057;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.after-pay a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-button:hover {
  background: var(--blue-strong);
}

.secondary-button {
  margin-left: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.after-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.after-pay p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.after-pay a {
  color: #fff;
  background: var(--green);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .payment-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brand-panel {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .payment-shell {
    width: min(100% - 24px, 560px);
    padding: 18px 0;
  }

  .brand-panel,
  .checkout-panel {
    padding: 22px;
  }

  .plans,
  .order-form,
  .pay-box {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .qr-frame {
    width: min(230px, 100%);
  }

  .pay-box {
    justify-items: center;
    text-align: center;
  }

  .secondary-button {
    width: 100%;
    margin: 10px 0 0;
  }

  .primary-button {
    width: 100%;
  }

  .after-pay {
    display: grid;
  }

  .after-pay a {
    width: 100%;
  }
}
