:root {
  --bg-0: #04110d;
  --bg-1: #071b17;
  --bg-2: #0b2420;
  --card: rgba(8, 22, 20, 0.78);
  --card-strong: rgba(10, 28, 25, 0.92);
  --line: rgba(152, 255, 220, 0.14);
  --line-strong: rgba(152, 255, 220, 0.24);
  --text: #effaf6;
  --muted: rgba(220, 239, 233, 0.72);
  --subtle: rgba(220, 239, 233, 0.5);
  --accent: #35e0a0;
  --accent-2: #7cf1c2;
  --warn: #ffc857;
  --danger: #ff6d7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(53, 224, 160, 0.16), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(124, 241, 194, 0.14), transparent 24%),
    radial-gradient(circle at 30% 92%, rgba(255, 200, 87, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 44%, #020706 100%);
  color: var(--text);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px 16px 132px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92), transparent 76%);
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.68;
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}

.ambient-a {
  width: 240px;
  height: 240px;
  top: -60px;
  left: -80px;
  background: rgba(53, 224, 160, 0.24);
}

.ambient-b {
  width: 180px;
  height: 180px;
  top: 170px;
  right: -40px;
  background: rgba(124, 241, 194, 0.16);
  animation-delay: -3s;
}

.ambient-c {
  width: 260px;
  height: 260px;
  bottom: 60px;
  left: 22%;
  background: rgba(255, 200, 87, 0.08);
  animation-delay: -6s;
}

.checkout-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.hero,
.info-card,
.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 30, 27, 0.92), rgba(7, 19, 17, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 22px;
  border-radius: 28px;
}

.hero::after,
.info-card::after,
.summary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%);
  pointer-events: none;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(53, 224, 160, 0.2), rgba(124, 241, 194, 0.08));
  border: 1px solid rgba(124, 241, 194, 0.24);
  color: var(--accent-2);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dd,
dt {
  margin: 0;
}

h1 {
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.08;
}

.secure-pill {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(53, 224, 160, 0.12);
  border: 1px solid rgba(53, 224, 160, 0.26);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.amount-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(53, 224, 160, 0.14), rgba(124, 241, 194, 0.06));
  border: 1px solid rgba(124, 241, 194, 0.2);
}

.muted-label,
.card-tip,
.info-list dt,
.step p,
.security-grid p,
.bar-label {
  color: var(--muted);
}

.amount-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 6px;
}

.amount-symbol {
  padding-bottom: 6px;
  color: var(--accent-2);
  font-size: 20px;
  font-weight: 700;
}

.amount-value {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.amount-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.amount-meta strong {
  color: var(--text);
  font-size: 20px;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.info-card,
.summary-card {
  border-radius: 24px;
  padding: 20px;
}

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

.card-head h2,
.summary-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.card-tip {
  font-size: 12px;
}

.ghost-btn,
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ghost-btn {
  border: 1px solid rgba(124, 241, 194, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ghost-btn:hover,
.pay-btn:hover,
.method-item:hover {
  transform: translateY(-1px);
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-list dt {
  font-size: 12px;
  margin-bottom: 6px;
}

.info-list dd {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.method-item.is-active {
  background: linear-gradient(135deg, rgba(53, 224, 160, 0.18), rgba(53, 224, 160, 0.08));
  border-color: rgba(124, 241, 194, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.method-fixed {
  cursor: default;
}

.method-fixed:hover {
  transform: none;
}

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

.method-icon.wechat {
  background: linear-gradient(135deg, #08bd5a, #10a85a);
}

.method-copy {
  display: grid;
  gap: 4px;
}

.method-copy strong {
  font-size: 16px;
}

.method-copy small {
  color: var(--subtle);
  font-size: 12px;
}

.method-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(53, 224, 160, 0.14);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.summary-card {
  margin-top: 18px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.step.is-done span,
.step.is-active span {
  background: rgba(53, 224, 160, 0.16);
  border-color: rgba(53, 224, 160, 0.28);
  color: var(--accent-2);
}

.step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.step p {
  font-size: 13px;
  line-height: 1.65;
}

.security-card {
  padding-bottom: 18px;
}

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

.security-grid > div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.security-grid h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.security-grid p {
  font-size: 13px;
  line-height: 1.7;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pay-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(3, 12, 10, 0.92);
  border-top: 1px solid rgba(124, 241, 194, 0.15);
  backdrop-filter: blur(18px);
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bar-amount {
  text-align: right;
}

.bar-amount span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 2px;
}

.bar-amount strong {
  font-size: 20px;
}

.pay-btn {
  min-width: 140px;
  background: linear-gradient(135deg, #18d47a, #4df1b1);
  color: #04130f;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(24, 212, 122, 0.2);
}

.pay-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(100%, 420px);
  border-radius: 26px;
  padding: 26px 22px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 28, 25, 0.98), rgba(6, 18, 16, 0.98));
  border: 1px solid rgba(124, 241, 194, 0.18);
  box-shadow: var(--shadow);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(53, 224, 160, 0.16);
  border: 1px solid rgba(53, 224, 160, 0.28);
  color: var(--accent-2);
  font-size: 24px;
  font-weight: 800;
}

.modal-card h2 {
  font-size: 22px;
}

.modal-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .ghost-btn,
.modal-actions .pay-btn {
  flex: 1;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.08);
  }
}

@media (max-width: 860px) {
  .order-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .amount-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .amount-meta {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 14px 12px 120px;
  }

  .hero,
  .info-card,
  .summary-card {
    border-radius: 22px;
    padding: 18px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .secure-pill {
    margin-top: 4px;
  }

  .amount-value {
    font-size: 42px;
  }

  .method-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .method-tag {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .pay-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bar-right {
    justify-content: space-between;
  }

  .pay-btn {
    min-width: 118px;
  }
}
