:root {
  --bg: #f6f7f8;
  --panel: #ffffff;
  --text: #18212f;
  --muted: #687386;
  --line: #e6e9ee;
  --primary: #0f7b6c;
  --primary-strong: #075f55;
  --accent: #e85d3f;
  --soft: #edf7f5;
  --shadow: 0 12px 34px rgba(18, 31, 49, .1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button {
  font: inherit;
}

.pay-shell {
  width: min(480px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 14px 0 24px;
}

.pay-header,
.amount-card,
.pay-card,
.pay-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(18, 31, 49, .06);
}

.pay-header {
  padding: 16px;
}

.pay-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pay-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.pay-brand strong,
.pay-brand span {
  display: block;
}

.pay-brand strong {
  font-size: 18px;
}

.pay-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.order-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
}

.order-chip span {
  color: var(--muted);
  font-size: 13px;
}

.order-chip button {
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  cursor: pointer;
}

.amount-card {
  margin-top: 12px;
  padding: 22px 16px;
  text-align: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cny-amount {
  margin-top: 6px;
  color: var(--accent);
}

.cny-amount small {
  margin-right: 4px;
  font-size: 28px;
  font-weight: 800;
}

.cny-amount strong {
  font-size: 50px;
  line-height: 1;
}

.usdt-row {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 12px;
}

.usdt-row span {
  color: var(--muted);
  font-size: 13px;
}

.usdt-row strong {
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
}

.usdt-row small {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--muted);
}

.pay-card {
  margin-top: 12px;
  padding: 15px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 800;
}

.section-title svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid #f1f3f5;
}

.detail-line span {
  color: var(--muted);
  font-size: 13px;
}

.detail-line strong {
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 13px;
}

.product-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: #fafbfc;
}

.product-line strong,
.product-line span {
  display: block;
}

.product-line span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-line b {
  white-space: nowrap;
  color: var(--accent);
}

.pay-actions {
  margin-top: 12px;
  padding: 15px;
}

.payment-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.payment-button:active {
  transform: translateY(1px);
}

.pay-actions p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.pay-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1677a8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.pay-actions a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
