:root{
  --bg:#f2f2f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border: rgba(17,24,39,.10);
  --shadow: 0 8px 24px rgba(17,24,39,.10);

  --blue:#1677ff;
  --green:#1f7a53;
  --greenBtn:#2e7d32;
  --tealBtn:#4a90a4;
  --danger:#e11d48;
  --ok:#16a34a;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a{color:inherit;text-decoration:none}
.wrap{max-width:520px;margin:0 auto;padding:16px 14px 120px}

.topIcon{
  width:34px;height:34px;border-radius:999px;
  background: var(--blue);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;
  margin: 8px 0 14px;
}

.card{
  background: var(--card);
  border-radius:14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow:hidden;
}

.amountBox{
  padding:14px 14px 12px;
}
.amountPlaceholder{
  color:#9ca3af;
  font-size:14px;
  margin-bottom:8px;
}
.amountRow{
  display:flex;
  align-items:flex-end;
  gap:6px;
}
.yen{
  font-size:22px;
  color:#6b7280;
  padding-bottom:2px;
}
.amountInput{
  border:0;
  outline:none;
  background:transparent;
  font-size:34px;
  line-height:1;
  width:100%;
  font-weight:700;
  color: #111827;
}
.divider{
  height:1px;
  background: rgba(17,24,39,.08);
}
.remarkRow{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 14px 12px;
  color:#6b7280;
  font-size:13px;
}
.remarkBtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  color:#6b7280;
}
.remarkInput{
  display:none;
  width:100%;
  margin-top:8px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(17,24,39,.10);
  outline:none;
  font-size:14px;
}

.centerNote{
  text-align:center;
  color:#9ca3af;
  font-size:13px;
  padding: 14px 0;
}

.keypadDock{
  position: fixed;
  left:0;right:0;bottom:0;
  background:#fff;
  border-top: 1px solid rgba(17,24,39,.10);
  padding-bottom: env(safe-area-inset-bottom);
}
.keypadWrap{
  max-width:520px;
  margin:0 auto;
  padding: 0 0 0;
}
.keypad{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 64px;
  gap: 1px;
  background: rgba(17,24,39,.08);
}
.key{
  background:#fff;
  border:0;
  font-size:26px;
  font-weight:500;
  color:#111827;
}
.key:active{background:#f3f4f6}
.keySmall{
  font-size:22px;
  color:#111827;
}
.keyDel{
  font-size:20px;
  color:#111827;
}
.keyConfirm{
  grid-row: 1 / span 4;
  grid-column: 4;
  background: var(--blue);
  color:#fff;
  font-size:18px;
  font-weight:700;
  line-height:1.1;
}
.keyConfirm:active{filter: brightness(.95)}

.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 280px;
  background: rgba(17,24,39,.85);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  max-width: 86%;
  display:none;
}

.seg{
  display:flex;
  gap:0;
  border-radius:12px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background:#fff;
}
.seg button{
  flex:1;
  padding:10px 12px;
  border:0;
  background:transparent;
  font-weight:700;
  color:#6b7280;
}
.seg button.active{
  background: rgba(22,119,255,.10);
  color: var(--blue);
}

.wxHeader{
  background: var(--green);
  color:#fff;
  padding: 18px 14px 22px;
}
.wxHeaderTitle{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:22px;
  font-weight:800;
  letter-spacing:.5px;
}
.wxLogo{
  width:54px;height:54px;border-radius:999px;
  background: rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
}
.wxBody{
  padding: 14px;
  background: #f3f4f6;
  min-height: 320px;
}
.wxPanel{
  background:#e5e7eb;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(17,24,39,.10);
}
.wxMoney{
  font-size:36px;
  font-weight:900;
  margin: 0 0 8px;
}
.wxMeta{
  color:#374151;
  font-size:13px;
  line-height:1.8;
}
.wxBtns{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wxBtn1{
  border:0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight:800;
  color:#fff;
  background: var(--greenBtn);
}
.wxBtn2{
  border:0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight:800;
  color:#fff;
  background: var(--tealBtn);
}
.wxBtn1:active,.wxBtn2:active{filter:brightness(.95)}

.modalMask{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.modal{
  width: min(420px, 100%);
  background:#fff;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}
.modalBody{
  padding: 16px 14px;
  color:#111827;
  font-weight:650;
}
.modalActions{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  padding: 12px 14px 14px;
}
.modalActions button{
  border:0;
  background:transparent;
  font-weight:800;
  font-size:15px;
  color: var(--blue);
}
.modalActions .cancel{color:#6b7280}

.aliPage{
  background:#f3f4f6;
  border-radius:14px;
  border:1px solid var(--border);
  overflow:hidden;
}
.aliTopBar{
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  background:#fff;
  border-bottom:1px solid rgba(17,24,39,.08);
}
.aliContent{
  padding:14px;
  min-height:260px;
}
.aliCard{
  background:#fef3c7;
  border-radius:10px;
  padding:12px;
  color:#7c2d12;
}
.aliMask{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  align-items:flex-end;
}
.aliSheet{
  width:100%;
  background:#fff;
  border-radius:18px 18px 0 0;
  box-shadow:0 -10px 30px rgba(0,0,0,.22);
  overflow:hidden;
}
.aliSheetHead{
  padding:10px 14px 6px;
}
.aliClose{
  border:0;background:transparent;
  color:#6b7280;font-size:24px;line-height:1;
}
.aliMerchant{
  text-align:center;
  color:#6b7280;
  font-weight:700;
  margin-top:2px;
}
.aliAmt{
  text-align:center;
  font-size:50px;
  font-weight:900;
  margin:6px 0 10px;
}
.aliLine{
  border-top:1px solid rgba(17,24,39,.08);
  padding:12px 14px;
}
.aliPayRow{
  display:flex;justify-content:space-between;align-items:center;
  color:#6b7280;
}
.aliBank{
  margin-top:10px;
  background:#faf5f0;
  border-radius:10px;
  padding:10px 12px;
  display:flex;justify-content:space-between;align-items:center;
}
.aliBankName{font-weight:700}
.aliPwd{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  padding:0 14px 12px;
}
.aliPwdCell{
  height:42px;
  border-radius:8px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:900;
}
.aliKeys{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 60px;
  gap:1px;
  background: rgba(17,24,39,.08);
}
.aliKey{
  border:0;background:#fff;font-size:38px;color:#111827;font-weight:500;
}
.aliKey:active{background:#f3f4f6}
.aliKeyDel{font-size:22px}

.footer{margin-top:14px;color:var(--muted);font-size:12px;text-align:center}

