/* ==========================================================================
   转账系统 · 设计系统
   无构建步骤：所有主题通过 CSS 变量下发，分站品牌色由布局注入 --brand。
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-ink: #ffffff;

  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e5e7eb;
  --line-strong: #d3d7de;

  --ink: #16181d;
  --ink-2: #4b5158;
  --ink-3: #767d87;
  --ink-4: #9aa1ab;

  --ok: #0f9960;
  --ok-bg: #e7f6ee;
  --warn: #b7791f;
  --warn-bg: #fdf4e3;
  --bad: #c53030;
  --bad-bg: #fdecec;
  --info: #2563eb;
  --info-bg: #e8f0fe;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 2px rgba(16, 20, 32, .05), 0 1px 3px rgba(16, 20, 32, .04);
  --shadow-2: 0 4px 12px rgba(16, 20, 32, .07), 0 1px 3px rgba(16, 20, 32, .05);
  --shadow-3: 0 18px 48px rgba(16, 20, 32, .14);

  --sidebar: #12151f;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 控制台骨架 */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  flex: 0 0 232px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #cdd2de;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { min-width: 0; }
.brand__name {
  font-size: 14.5px; font-weight: 650; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__sub { font-size: 11.5px; color: #7d8698; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__label {
  padding: 16px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #616b7d;
  text-transform: uppercase;
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: #b9c0ce;
  font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav__item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav__item.is-active {
  background: color-mix(in srgb, var(--brand) 88%, #000 12%);
  color: #fff;
  font-weight: 600;
}
.nav__item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.nav__item span, .nav__item { min-width: 0; }

.sidebar__foot { margin-top: auto; padding-top: 16px; }
.who {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
}
.who__avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 75%, #fff 25%);
  color: #fff; font-size: 12px; font-weight: 700;
}
.who__name { font-size: 13px; color: #fff; line-height: 1.3; }
.who__role { font-size: 11px; color: #7d8698; }
.who__out {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: #7d8698; padding: 4px; border-radius: 6px; display: grid; place-items: center;
}
.who__out:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.topbar__title { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.topbar__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.content { padding: 24px 28px 56px; max-width: 1240px; width: 100%; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    flex: none; height: auto; position: static; width: 100%;
    flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 12px;
  }
  .brand { padding: 0 8px 0 4px; }
  .brand__sub { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav__label { display: none; }
  .nav__item { white-space: nowrap; }
  .sidebar__foot { margin: 0 0 0 auto; padding: 0; }
  .who__name, .who__role { display: none; }
  .topbar { padding: 14px 16px; }
  .content { padding: 16px 16px 48px; }
}

/* ---------------------------------------------------------------- 卡片 / 版块 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card__title { font-size: 14.5px; font-weight: 650; }
.card__desc { font-size: 12.5px; color: var(--ink-3); }
.card__actions { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; align-items: center; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot {
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex; gap: 10px; align-items: center;
}

.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > form, .card__foot > form { flex: 0 0 auto; }
.row--end { justify-content: flex-end; }
.spacer { margin-left: auto; }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- 指标卡 */
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.stat__label {
  font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.stat__value {
  margin-top: 6px;
  font-size: 25px; font-weight: 650; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.stat__meta { margin-top: 4px; font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.stat--accent { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.stat--accent .stat__value { color: var(--brand); }

/* ---------------------------------------------------------------- 状态徽章 */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}
.chip--wait   { color: #1d4ed8; background: var(--info-bg); border-color: #cfdefd; }
.chip--frozen { color: #5b21b6; background: #f1ebfe; border-color: #ded0fc; }
.chip--busy   { color: #92400e; background: var(--warn-bg); border-color: #f6e0b3; }
.chip--ok     { color: #0b7a4d; background: var(--ok-bg); border-color: #c3e8d5; }
.chip--bad    { color: #b02525; background: var(--bad-bg); border-color: #f6cccc; }
.chip--dead   { color: #5b636e; background: #f1f2f4; border-color: #e2e4e8; }
.chip--test   { color: #92400e; background: var(--warn-bg); border-color: #f6e0b3; }
.chip--live   { color: #0b7a4d; background: var(--ok-bg); border-color: #c3e8d5; }
.chip--plain  { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }
.chip--plain::before { display: none; }
.chip--busy::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.btn:hover { background: var(--surface-2); border-color: #bfc5ce; text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn--primary {
  background: var(--brand); border-color: transparent; color: var(--brand-ink);
  box-shadow: 0 1px 2px rgba(16, 20, 32, .12);
}
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000 12%); border-color: transparent; }

.btn--danger { color: var(--bad); border-color: #f0c4c4; background: #fff; }
.btn--danger:hover { background: var(--bad-bg); border-color: #e5a9a9; }

.btn--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: #eceef1; }

.btn--lg { padding: 13px 22px; font-size: 15.5px; border-radius: 10px; }
.btn--sm { padding: 5px 10px; font-size: 12.5px; }
.btn--block { width: 100%; white-space: normal; }
.btn svg { width: 15px; height: 15px; flex: 0 0 15px; }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__label .req { color: var(--bad); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.field__error { font-size: 12px; color: var(--bad); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 9px 11px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #e0a0a0; }
.input--mono { font-family: var(--mono); font-size: 13px; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23767d87' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.input-amount { position: relative; }
.input-amount .input {
  padding-left: 30px;
  font-size: 22px; font-weight: 650; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  padding-top: 10px; padding-bottom: 10px;
}
.input-amount__sign {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 600; color: var(--ink-3); pointer-events: none;
}

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 38px; height: 22px; border-radius: 999px;
  background: #d3d7de; position: relative; transition: background .18s;
  flex: 0 0 38px;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch__text { font-size: 13.5px; }

.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.filters {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.filters .input, .filters .select { width: auto; min-width: 130px; }

/* 分段控件（环境切换等） */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: #eceef1; border-radius: 9px;
}
.segmented__item {
  padding: 5px 12px; border-radius: 7px; border: 0;
  background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
}
.segmented__item:hover { color: var(--ink); text-decoration: none; }
.segmented__item.is-active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ---------------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 600; font-size: 12px;
  letter-spacing: .03em; color: var(--ink-3);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f1f3;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.table .mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.table .shrink { width: 1%; white-space: nowrap; }

.amount { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.01em; }
.amount--dim { color: var(--ink-3); font-weight: 500; }

.empty {
  padding: 56px 24px; text-align: center; color: var(--ink-3);
}
.empty__icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-4);
}
.empty__title { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.empty__desc { font-size: 13px; margin-top: 4px; }

.pager { display: flex; justify-content: center; padding: 16px; }
.pager nav { display: flex; gap: 6px; align-items: center; }
.pager svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 提示条 */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid;
  line-height: 1.6;
}
.alert__icon { flex: 0 0 18px; margin-top: 1px; }
.alert__icon svg { width: 18px; height: 18px; }
.alert--ok   { color: #0b6b45; background: var(--ok-bg); border-color: #c3e8d5; }
.alert--bad  { color: #9b2323; background: var(--bad-bg); border-color: #f6cccc; }
.alert--warn { color: #7c5410; background: var(--warn-bg); border-color: #f6e0b3; }
.alert--info { color: #1b4bad; background: var(--info-bg); border-color: #cfdefd; }
.alert ul { margin: 4px 0 0; padding-left: 16px; list-style: disc; }

.note {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.65;
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
}

/* ---------------------------------------------------------------- 描述列表 */
.dl { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.dl > dt {
  padding: 9px 0; font-size: 13px; color: var(--ink-3);
  border-bottom: 1px solid #f0f1f3;
}
.dl > dd {
  padding: 9px 0; font-size: 13.5px; margin: 0;
  border-bottom: 1px solid #f0f1f3;
  word-break: break-all;
}
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: 0; }
@media (max-width: 620px) {
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl > dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------------------------------------------------------------- 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding: 0 0 18px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -22px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong);
}
.timeline__item--ok .timeline__dot { border-color: var(--ok); background: var(--ok); }
.timeline__item--bad .timeline__dot { border-color: var(--bad); background: var(--bad); }
.timeline__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline__title { font-size: 13.5px; font-weight: 600; }
.timeline__time { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.timeline__body { font-size: 13px; color: var(--ink-2); margin-top: 2px; word-break: break-word; }

/* ---------------------------------------------------------------- 复制链接 */
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--mono); font-size: 12.5px;
  padding: 9px 11px; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.copybox input:focus { outline: 0; border-color: var(--brand); }

.qr { display: grid; place-items: center; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- 登录页 */
.auth {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(1100px 520px at 12% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(900px 460px at 92% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 62%),
    var(--canvas);
}
.auth__card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 32px 28px 26px;
}
.auth__mark {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  font-size: 19px; font-weight: 700; overflow: hidden;
}
.auth__mark img { width: 100%; height: 100%; object-fit: cover; }
.auth__title { font-size: 20px; font-weight: 650; margin-top: 18px; letter-spacing: -.02em; }
.auth__desc { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.auth__foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--ink-4); }

/* ---------------------------------------------------------------- 领取页 */
.claim {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #fcfdfe;
}
.claim__inner {
  flex: 1 1 auto;
  width: 100%; max-width: 420px;
  margin: 0 auto; padding: 22px 16px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.claim__brand {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 6px 0 10px;
}

.claim__foot {
  margin-top: auto; padding-top: 28px;
  text-align: center; font-size: 12px; color: var(--ink-4);
}.claim__brand-mark {
  width: 26px; height: 26px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  font-size: 12px; font-weight: 700;
}
.claim__brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.claim__brand-name { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* 状态回执卡：状态图标 → 标题 → 副标题 → 付款方 → 金额 → 备注 → 操作 */
.rcpt {
  padding: 34px 22px 26px;
  text-align: center;
}

.rcpt__icon {
  width: 56px; height: 56px; margin: 0 auto 15px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.rcpt__icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.rcpt__icon svg.icon--clock-hands { width: 42px; height: 42px; }
.rcpt__icon--wait   { background: #00b578; }
.rcpt__icon--ok     { background: #1677ff; }
.rcpt__icon--busy   { background: #1677ff; }
.rcpt__icon--back   { background: #ff8f1f; }
.rcpt__icon--dead   { background: #b0b6bf; }
.rcpt__icon--bad    { background: #e5484d; }
.rcpt__icon--frozen { background: #8b5cf6; }
.rcpt__icon--busy svg { animation: rcpt-spin 1.6s linear infinite; }
@keyframes rcpt-spin { to { transform: rotate(360deg); } }

.rcpt__title { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.rcpt__sub {
  margin-top: 8px;
  font-size: 12.5px; color: var(--ink-3); line-height: 1.65;
}

.rcpt__payer { margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.rcpt__payer b { color: var(--ink); font-weight: 600; }

.rcpt__amount {
  margin-top: 8px;
  font-size: 36px; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.rcpt__amount .cny { font-size: 22px; font-weight: 600; margin-right: 2px; vertical-align: .08em; }
.rcpt--dead .rcpt__amount { color: var(--ink-4); }

/* 备注是用户自由输入，可能是一长串无空格字符，必须能断 */
.rcpt__note { margin-top: 10px; font-size: 12.5px; color: var(--ink-4); overflow-wrap: anywhere; }

.rcpt__meta {
  margin-top: 26px; text-align: left;
  display: flex; flex-direction: column; gap: 13px;
}
.rcpt__meta-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.rcpt__meta-row dt { color: var(--ink-3); flex: 0 0 auto; margin-left: 45px; }
.rcpt__meta-row dd { margin: 0; color: var(--ink); text-align: right; word-break: break-all; }

.rcpt__cta { margin-top: 6px; text-align: center; }
.rcpt__alt { margin-top: 16px; }
.rcpt__hint { margin-top: 10px; font-size: 12.5px; color: var(--bad); line-height: 1.6; }

/* 收款人主动退回：跟在提示句同一行后面的蓝色文字超链接，同字号 */
.rcpt__return-link { color: #1677ff; text-decoration: underline; }
.rcpt__return-link:hover { color: #0e63d9; }

.btn--pill { border-radius: 999px; }

/* hidden 是语义属性，但 .alert/.rcpt__cta 等类的 display 会覆盖 UA 默认样式，统一兜底 */
[hidden] { display: none !important; }


/* 领取页主按钮：居中、非铺满、小圆角（参考微信转账页） */
.btn--cta {
  min-width: 200px;
  padding: 12px 34px;
  font-size: 15.5px;
  border-radius: 8px;
}

/* 领取页主按钮配色：支付宝蓝 */
.claim .btn--primary { background: #1677ff; }
.claim .btn--primary:hover { background: #0e63d9; }

.divider-or {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-4);
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}

.disclosure > summary {
  cursor: pointer; list-style: none;
  font-size: 13px; color: var(--ink-2); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.6px solid var(--ink-4); border-bottom: 1.6px solid var(--ink-4);
  transform: rotate(45deg); transition: transform .15s;
}
.disclosure[open] > summary::after { transform: rotate(-135deg); }
.disclosure__body { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }

.claim__foot {
  text-align: center; font-size: 11.5px; color: var(--ink-4);
  padding: 8px 18px 24px; line-height: 1.7;
}

/* ---------------------------------------------------------------- 杂项 */
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }
.text-ok { color: var(--ok); }
.text-bad { color: var(--bad); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-3 { margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 999px;
  background: #16181d; color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 200;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
