:root {
  --ink: #172b4d;
  --muted: #6b7f96;
  --line: #e6edf5;
  --brand: #1677ff;
  --ok: #15936b;
  --warn: #b66a12;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100svh;
  background: #f3f7fc radial-gradient(at 50% 0, #e3efff 0, rgba(0, 0, 0, 0) 60%);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.cashier-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 24px 18px;
}

.cashier-card {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px 22px;
  box-shadow: 0 18px 54px -26px rgba(72, 106, 154, .35);
}

.cashier-head { text-align: center; }
.cashier-amount { font-size: 20px; font-weight: 600; color: var(--ink); }
.cashier-amount b { font-size: 40px; font-weight: 700; margin-left: 4px; letter-spacing: -.01em; }
.cashier-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.cashier-meta {
  margin: 20px 0 0;
  padding: 12px 14px;
  background: #f7fafd;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}
.cashier-meta p { margin: 2px 0; display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; }
.cashier-meta .k { flex: none; font-style: normal; color: var(--muted); }
.cashier-meta span { color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-all; text-align: right; white-space: normal; min-width: 0; }
.cashier-meta .k + span { font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.cashier-form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cashier-form label { font-size: 13px; color: var(--muted); }
.cashier-form input {
  height: 46px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff;
}
.cashier-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }

button {
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity .2s, transform .06s;
}
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: #eef4fd; color: var(--brand); font-weight: 500; font-size: 14px; height: 42px; }

.cashier-state { text-align: center; padding: 26px 0 10px; }
.cashier-state > p { margin: 6px 0; }
.state-icon {
  width: 76px; height: 76px; margin: 0 auto 14px;
  border-radius: 24px; display: grid; place-items: center;
  font-size: 32px; font-weight: 600;
  color: var(--brand); background: #edf5ff;
}
.state-icon--ok, .cashier-state--ok .state-icon { color: var(--ok); background: #e9f8f1; }
.state-icon--auth { color: var(--brand); }
.muted { color: var(--muted); font-size: 13px; }

.spinner {
  width: 35px; height: 35px; margin: 0 auto 16px;
  border: 3px solid #cee2ff; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cashier-pay { text-align: center; padding-top: 20px; }
.cashier-pay-title { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cashier-qr {
  width: 220px; height: 220px; display: block; margin: 0 auto;
  border-radius: 14px; background: #fff;
  image-rendering: pixelated;
}
.cashier-pay button { margin-top: 14px; }
.cashier-tip { color: #c8102e; font-size: 12px; margin: 12px 0 0; }

.cashier-error { margin: 14px 0 0; color: #c8102e; font-size: 13px; text-align: center; }
.cashier-refresh { margin-top: 16px; }
.cashier-foot { margin: 16px 0 0; text-align: center; color: #9aa9bc; font-size: 11px; }
.cashier-loading { text-align: center; padding: 40px 24px; }
.cashier-loading p { margin: 0; color: var(--muted); }
.cashier-banned { color: var(--warn); text-align: center; }

/* 授权过渡页（与原站同名 class，便于对齐） */
.alipay-uid-auth {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100svh; padding: 24px 20px; text-align: center;
}
.alipay-uid-auth .brand {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #45617f;
  margin-bottom: 24px;
}
.alipay-uid-auth .brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.alipay-uid-auth .brand-mark svg { width: 19px; height: 19px; }
