:root {
  color-scheme: light;
  --blue: #1677ff;
  --blue-deep: #0864dc;
  --blue-soft: #eaf3ff;
  --ink: #172033;
  --muted: #667085;
  --line: #dce6f3;
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 26px 80px rgba(28, 66, 120, 0.14), 0 8px 24px rgba(28, 66, 120, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f5f9ff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(22, 119, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(61, 195, 255, 0.12), transparent 24rem),
    linear-gradient(155deg, #f9fcff 0%, #eef6ff 52%, #f8fbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: linear-gradient(rgba(22, 119, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 119, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.payment-card {
  width: min(100%, 468px);
  padding: 30px 28px 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 17px;
  color: white;
  background: linear-gradient(145deg, #2e8cff 0%, var(--blue) 55%, #075bd2 100%);
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.25);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.amount-line {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.amount-line strong {
  margin-left: 4px;
  color: #ee5f62;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.qr-panel {
  width: 100%;
  margin: 0;
  padding: 12px 12px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(39, 76, 125, 0.08);
}

.qr-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.qr-trigger {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.qr-trigger::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.qr-trigger:hover::after {
  border-color: rgba(22, 119, 255, 0.38);
  background: rgba(22, 119, 255, 0.035);
}

.qr-trigger:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.3);
  outline-offset: 3px;
}

.qr-action-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 9px 12px;
  color: white;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  background: rgba(8, 74, 166, 0.88);
  box-shadow: 0 8px 22px rgba(8, 74, 166, 0.24);
  backdrop-filter: blur(8px);
}

.qr-panel figcaption {
  margin-top: 8px;
  color: #7a8799;
  font-size: 12px;
}

.embedded-tip {
  margin-top: 14px;
  padding: 10px 12px;
  color: #805408;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  border: 1px solid #f3d597;
  border-radius: 13px;
  background: #fff8e8;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 0.64fr;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 15px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.28);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #2d8bff 0%, var(--blue) 58%, var(--blue-deep) 100%);
  box-shadow: 0 12px 25px rgba(22, 119, 255, 0.25);
}

.button-primary:hover {
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.32);
}

.button-primary svg {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-secondary {
  color: var(--blue-deep);
  border: 1px solid #c7dcfb;
  background: var(--blue-soft);
}

.button-secondary:hover {
  background: #deedff;
}

.status {
  min-height: 38px;
  margin: 11px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 17px 18px;
  color: #4e5d71;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  list-style: none;
  border: 1px solid #e4ebf4;
  border-radius: 17px;
  background: #fafcff;
}

.steps li {
  display: flex;
  align-items: center;
}

.steps span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--blue-soft);
}

.safety-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  color: #6b5d3d;
  text-align: left;
  border: 1px solid #eee2c5;
  border-radius: 15px;
  background: #fffaf0;
}

.safety-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #ab7a19;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.disclaimer {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 100%;
  margin: 0;
  padding: 0 20px;
  color: #8a97a9;
  font-size: 11px;
  text-align: center;
  transform: translateX(-50%);
}

.image-view-body {
  min-width: 280px;
}

.image-view-shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.image-view-card {
  width: min(100%, 440px);
  padding: 24px 18px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-view-card h1 {
  font-size: clamp(22px, 7vw, 29px);
}

.image-view-lead {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.image-view-original {
  display: block;
  width: min(100%, 375px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 35px rgba(39, 76, 125, 0.1);
}

.image-view-help {
  margin: 13px 4px 0;
  color: #57677b;
  font-size: 13px;
  line-height: 1.6;
}

.image-view-card .safety-note {
  margin-top: 16px;
}

@media (max-width: 520px) {
  .page-shell {
    display: block;
    padding-right: 10px;
    padding-left: 10px;
  }

  .payment-card {
    width: 100%;
    padding: 25px 18px 22px;
    border-radius: 25px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .disclaimer {
    position: static;
    padding-top: 14px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
