/* 移动端 H5 - 校园蓝升级版 */
:root {
  --primary: #2f7ec0;
  --primary-light: #5a9bd4;
  --primary-dark: #1f5f9a;
  --primary-bg: #eaf3fb;
  --bg: #eef3f9;
  --white: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #2f9e6e;
  --danger: #d94841;
  --warning: #d48806;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(31,95,154,.07);
  --shadow-lg: 0 12px 32px rgba(31,95,154,.12);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 14px; line-height: 1.55;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(47,126,192,.12), transparent 55%),
    radial-gradient(80% 40% at 0% 10%, rgba(47,158,110,.06), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:active { opacity: .85; }

.m-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: #fff;
  background: linear-gradient(135deg, #1f5f9a 0%, #2f7ec0 55%, #4a8ec9 100%);
  box-shadow: 0 8px 24px rgba(31,95,154,.22);
}
.m-header h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.m-header a {
  color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2);
}

.m-body {
  padding: 14px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0));
  max-width: 640px; margin: 0 auto;
}

.m-card {
  background: var(--white); border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow);
  border: 1px solid rgba(226,232,240,.85);
}
.m-card h3 {
  margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.m-card-hd {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.m-card-hd h3 { margin: 0; }
.m-card-hd a { font-size: 12px; color: var(--primary); font-weight: 500; }

.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.m-stat {
  background: var(--white); border-radius: var(--radius); padding: 16px 12px; text-align: center;
  border: 1px solid rgba(226,232,240,.85); box-shadow: var(--shadow);
}
.m-stat .n { font-size: 24px; font-weight: 800; color: var(--primary-dark); letter-spacing: .3px; }
.m-stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.m-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid #f1f5f9;
}
.m-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.m-list-item:first-child { padding-top: 2px; }
.m-list-item .t { font-weight: 600; color: var(--text); }
.m-list-item .s { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; max-width: 640px; margin: 0 auto;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid #e8eef5;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 28px rgba(31,95,154,.08);
}
.m-tabbar a {
  flex: 1; text-align: center; color: #94a3b8; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 56px; padding: 8px 2px 6px; transition: color .15s;
  position: relative;
}
.m-tabbar a i { display: block; font-size: 19px; }
.m-tabbar a span { line-height: 1.2; }
.m-tabbar a.active { color: var(--primary-dark); font-weight: 700; }
.m-tabbar a.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary);
}

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; width: 100%;
  border-radius: 12px; border: none; color: #fff; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  background: linear-gradient(135deg, #1f5f9a, #2f7ec0 55%, #4a8ec9);
  box-shadow: 0 8px 18px rgba(47,126,192,.28);
}
.m-btn:active { transform: scale(.985); }
.m-btn:disabled { opacity: .65; box-shadow: none; cursor: not-allowed; }
.m-btn-outline {
  background: #fff; color: var(--primary-dark); border: 1.5px solid #b8d4ef;
  box-shadow: none;
}
.m-btn-sm { height: 32px; font-size: 12px; width: auto; padding: 0 12px; border-radius: 9px; box-shadow: none; }
.m-btn + .m-btn { margin-top: 10px; }

.m-input {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  padding: 0 14px; margin-bottom: 12px; font-size: 15px; outline: none;
  background: #f8fafc; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.m-input:focus {
  border-color: #7eb0dc; background: #fff;
  box-shadow: 0 0 0 3px rgba(47,126,192,.14);
}
textarea.m-input { height: 96px; padding: 12px 14px; resize: vertical; }
select.m-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 34px; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--primary-bg); color: var(--primary-dark);
}
.badge-ok { background: #e6f6ee; color: var(--success); }
.badge-warn { background: #fff7e6; color: var(--warning); }
.badge-err { background: #fdecea; color: var(--danger); }

.m-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 20px;
  background:
    radial-gradient(90% 50% at 80% 0%, rgba(74,142,201,.35), transparent 55%),
    linear-gradient(165deg, #1f5f9a 0%, #2f7ec0 42%, #eaf3fb 42.1%, #f5f8fc 100%);
}
.m-login-box {
  width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 30px 22px 24px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.m-login-logo {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px;
  background: linear-gradient(135deg, #2f7ec0, #1f5f9a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 10px 22px rgba(31,95,154,.28);
}
.m-login-box h2 { text-align: center; color: var(--primary-dark); margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.m-login-box > p { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.m-login-error {
  display: none; background: #fdecea; color: #c94c4c; border: 1px solid #f5c2c0;
  border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5;
  text-align: center; margin: 0 0 14px;
}
.m-login-tip { margin: 16px 0 0; font-size: 12px; color: #94a3b8; text-align: center; line-height: 1.5; }

.child-switch {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px;
  padding: 2px; scrollbar-width: none;
}
.child-switch::-webkit-scrollbar { display: none; }
.child-switch a {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(31,95,154,.04);
}
.child-switch a.active {
  background: linear-gradient(135deg, #2f7ec0, #1f5f9a); color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px rgba(47,126,192,.28);
}

.empty {
  text-align: center; color: #94a3b8; padding: 28px 12px; font-size: 13px;
}

.m-hero {
  background: linear-gradient(135deg, #1f5f9a 0%, #2f7ec0 50%, #5a9bd4 100%);
  color: #fff; border-radius: 18px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(31,95,154,.22); position: relative; overflow: hidden;
}
.m-hero::before, .m-hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none;
}
.m-hero::before { width: 140px; height: 140px; right: -36px; top: -48px; }
.m-hero::after { width: 80px; height: 80px; left: -20px; bottom: -30px; }
.m-hero .name { font-size: 21px; font-weight: 800; margin: 0 0 4px; position: relative; z-index: 1; }
.m-hero .meta { font-size: 13px; opacity: .92; position: relative; z-index: 1; }
.m-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.m-hero .chip {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 5px 11px; font-size: 12px;
}
.m-hero .chip strong { font-weight: 700; }

.m-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px 12px; border-radius: 14px; background: #f7fafc; color: var(--text);
  font-size: 12px; font-weight: 500; border: 1px solid #eef2f7;
  transition: transform .12s, background .12s;
}
.m-shortcut i {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #eaf3fb, #dceaf8); color: var(--primary-dark); font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.m-shortcut:active { transform: scale(.96); background: #eef6ff; }

.m-seg {
  display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding: 2px;
  scrollbar-width: none;
}
.m-seg::-webkit-scrollbar { display: none; }
.m-seg button, .m-seg a {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-size: 13px; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; font-weight: 500;
  box-shadow: 0 2px 8px rgba(31,95,154,.04);
}
.m-seg .on, .m-seg a.on {
  background: var(--primary-bg); color: var(--primary-dark); border-color: #b8d4ef; font-weight: 700;
}

.m-amount { font-weight: 800; color: var(--primary-dark); white-space: nowrap; font-size: 15px; }
.m-amount.pending { color: var(--warning); }

.m-menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid #f1f5f9; color: var(--text);
}
.m-menu-item:last-child { border-bottom: none; }
.m-menu-item i.icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #eaf3fb, #dceaf8); color: var(--primary-dark); font-size: 15px; flex-shrink: 0;
}
.m-menu-item .txt { flex: 1; min-width: 0; }
.m-menu-item .txt .t { font-weight: 600; }
.m-menu-item .txt .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-menu-item .arrow { color: #cbd5e1; font-size: 12px; }

.m-profile-head { display: flex; align-items: center; gap: 14px; }
.m-avatar {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, #2f7ec0, #1f5f9a);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(31,95,154,.25);
}
.m-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }

.m-kv { display: flex; flex-direction: column; }
.m-kv-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.m-kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.m-kv-row:first-child { padding-top: 0; }
.m-kv-row span { color: var(--muted); flex-shrink: 0; }
.m-kv-row strong { text-align: right; font-weight: 600; color: var(--text); word-break: break-all; }
.m-kv-row strong.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; }

.m-link-card { display: block; text-decoration: none; color: inherit; transition: transform .12s; }
.m-link-card:active { transform: scale(.99); }
.m-link-card .s { font-size: 12px; color: var(--muted); }

.m-profile-hero { padding: 18px 16px; }
.m-profile-hero .m-avatar {
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}
.m-profile-hero .name, .m-profile-hero .meta { color: #fff; }

.m-input-inline {
  width: 118px; margin: 0; height: 34px; padding: 0 28px 0 10px; font-size: 13px;
  border-radius: 9px;
}

button.m-shortcut {
  border: 0; font-family: inherit; cursor: pointer; width: 100%;
}

.m-card-balance {
  text-align: center; padding: 24px 14px;
  background: linear-gradient(145deg, #1f5f9a, #2f7ec0 50%, #4a8ec9); color: #fff;
  border-radius: 18px; margin-bottom: 12px; box-shadow: 0 12px 28px rgba(31,95,154,.22);
  position: relative; overflow: hidden;
}
.m-card-balance::after {
  content: ""; position: absolute; right: -20px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.m-card-balance .bal { font-size: 36px; font-weight: 800; margin: 8px 0 4px; letter-spacing: .5px; position: relative; z-index: 1; }
.m-card-balance .sub { font-size: 12px; opacity: .9; position: relative; z-index: 1; }

.m-quick-amt { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.m-quick-amt button {
  flex: 1; min-width: 64px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-family: inherit; cursor: pointer; font-size: 13px; font-weight: 500;
}
.m-quick-amt button.on { border-color: #7eb0dc; color: var(--primary-dark); background: var(--primary-bg); font-weight: 700; }

.m-fee-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.m-fee-item:last-child { border-bottom: none; }
.m-fee-item .actions { text-align: right; flex-shrink: 0; }
.m-fee-item .actions .m-btn { margin-top: 8px; }

@media (max-width: 360px) {
  .m-grid4 { gap: 6px; }
  .m-shortcut { font-size: 11px; padding: 10px 2px; }
  .m-shortcut i { width: 36px; height: 36px; font-size: 14px; }
}

/* Toast / Loading（移动端登录页也需要；JS 也会写内联样式作兜底） */
.toast-wrap {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 90% !important;
  max-width: 360px !important;
  pointer-events: none;
  box-sizing: border-box;
}
.toast {
  padding: 12px 16px !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
  box-sizing: border-box;
  pointer-events: auto;
  word-break: break-word;
}
.toast-success { background: var(--success) !important; }
.toast-error { background: var(--danger) !important; }
.toast-info { background: var(--primary) !important; }
.loading-mask {
  position: fixed; inset: 0; background: rgba(255,255,255,.55); z-index: 99990;
  display: none; align-items: center; justify-content: center;
}
.loading-mask.show { display: flex !important; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--primary-bg); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 公开缴费结果页 */
.pay-result-page { padding-bottom: 28px; }
.pay-result-hero {
  text-align: center;
  padding: 28px 16px 22px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef7f2 0%, #fff 70%);
  border: 1px solid #dff0e6;
  box-shadow: 0 2px 10px rgba(42,90,140,.05);
}
.pay-result-hero.is-pending {
  background: linear-gradient(180deg, #eef4fb 0%, #fff 70%);
  border-color: #d7e6f5;
}
.pay-result-hero.is-fail {
  background: linear-gradient(180deg, #fdf2f2 0%, #fff 70%);
  border-color: #f3d6d6;
}
.pay-result-icon {
  width: 72px; height: 72px; margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  animation: payPop .45s ease both;
}
.pay-result-hero.is-success .pay-result-icon { color: var(--success); background: rgba(47,158,110,.12); }
.pay-result-hero.is-pending .pay-result-icon { color: var(--primary); background: var(--primary-bg); }
.pay-result-hero.is-fail .pay-result-icon { color: var(--danger); background: rgba(201,76,76,.1); }
.pay-result-hero h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--text); }
.pay-result-amount {
  margin: 0 0 8px; font-size: 32px; font-weight: 700; letter-spacing: .5px;
  color: var(--primary-dark);
}
.pay-result-tip { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pay-result-rows { display: flex; flex-direction: column; gap: 0; }
.pay-result-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.pay-result-row:last-child { border-bottom: none; padding-bottom: 0; }
.pay-result-row:first-child { padding-top: 0; }
.pay-result-row span { color: var(--muted); flex-shrink: 0; }
.pay-result-row strong { text-align: right; font-weight: 600; color: var(--text); word-break: break-all; }
.pay-result-row strong.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; }
.pay-result-actions { margin-top: 4px; }
.pay-result-actions .m-btn + .m-btn { margin-top: 10px; }
@keyframes payPop {
  0% { transform: scale(.5); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* —— 公开缴费页 —— */
.ppay-page {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(58,127,193,.18), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(47,158,110,.08), transparent 50%),
    linear-gradient(180deg, #eaf3fb 0%, #f5f8fc 42%, #f5f8fc 100%);
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
}
.ppay-top {
  position: relative;
  padding: 18px 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, #1f5f9a 0%, #2f6fad 45%, #4a8ec9 100%);
  overflow: hidden;
}
.ppay-top::before,
.ppay-top::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.1);
}
.ppay-top::before { width: 160px; height: 160px; right: -40px; top: -50px; }
.ppay-top::after { width: 90px; height: 90px; left: -20px; bottom: -30px; }
.ppay-top-main { position: relative; z-index: 1; padding-right: 72px; }
.ppay-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; opacity: .88; letter-spacing: .3px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 10px;
}
.ppay-top h1 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: .4px;
  position: relative; z-index: 1;
}
.ppay-top-sub {
  margin: 0; font-size: 13px; line-height: 1.5; opacity: .9;
  position: relative; z-index: 1; max-width: 28em;
}
.ppay-login {
  position: absolute; top: 16px; right: 14px; z-index: 2;
  color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.ppay-login:active { opacity: .85; }

.ppay-body { padding: 0 14px; margin-top: -10px; position: relative; z-index: 2; max-width: 640px; margin-left: auto; margin-right: auto; }
.ppay-card {
  background: #fff; border-radius: 16px; padding: 16px 14px 8px;
  margin-bottom: 12px;
  box-shadow: 0 8px 28px rgba(31,95,154,.08);
  border: 1px solid rgba(226,232,240,.9);
  animation: ppayIn .35s ease both;
}
.ppay-fee-sec { animation-delay: .02s; }
.ppay-card + .ppay-card { animation-delay: .08s; }
@keyframes ppayIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ppay-empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.ppay-empty i { font-size: 28px; color: #94a3b8; margin-bottom: 10px; display: block; }

.ppay-sec-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.ppay-sec-hd h2 {
  margin: 0; font-size: 16px; font-weight: 700; color: #1e293b;
}
.ppay-sec-hd-accent h2 {
  position: relative; padding-bottom: 8px;
}
.ppay-sec-hd-accent h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px;
  border-radius: 2px; background: linear-gradient(90deg, #2f6fad, #5a9bd4);
}
.ppay-fee-meta { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.45; }
.ppay-fee-meta strong {
  display: block; font-size: 15px; font-weight: 700; color: #d94841; margin-top: 2px;
}

.ppay-fee-list { display: flex; flex-direction: column; gap: 10px; }
.ppay-fee-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 14px 12px; border-radius: 12px;
  border: 1.5px solid #e2e8f0; background: #fafcfe;
  font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ppay-fee-item.is-on {
  border-color: #3a7fc1; background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(58,127,193,.12);
}
.ppay-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 11px; background: #fff;
}
.ppay-fee-item.is-on .ppay-check {
  border-color: #2f6fad; background: #2f6fad; color: #fff;
}
.ppay-fee-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ppay-fee-txt strong { font-size: 15px; font-weight: 600; color: #1e293b; }
.ppay-fee-desc {
  font-style: normal; font-size: 12px; color: #94a3b8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ppay-fee-amt { font-size: 15px; font-weight: 700; color: #d94841; white-space: nowrap; }
.ppay-fee-note { margin: 10px 0 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.ppay-hero-line {
  margin: 12px 0 8px; padding-top: 10px; border-top: 1px dashed #e2e8f0;
  font-size: 12px; color: #2b6aa3; font-weight: 600;
}

.ppay-draft {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
  background: linear-gradient(90deg, #eef6ff, #f5faff); color: #2b6aa3; font-size: 12px;
}
.ppay-draft i { margin-right: 4px; opacity: .8; }
.ppay-draft button {
  border: 0; background: transparent; color: #64748b; font-size: 12px;
  font-family: inherit; padding: 0; cursor: pointer; white-space: nowrap;
}

.ppay-subhd {
  margin: 4px 0 2px; padding-top: 6px; font-size: 13px; font-weight: 600; color: #2b6aa3;
}
.ppay-fields { display: flex; flex-direction: column; }
.ppay-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}
.ppay-row:last-child { border-bottom: none; }
.ppay-label {
  flex: 0 0 96px; font-size: 14px; color: #334155; font-weight: 500;
}
.ppay-label i { color: #e11d48; font-style: normal; font-weight: 700; margin-left: 1px; }
.ppay-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  height: 40px; font-size: 15px; color: #0f172a; font-family: inherit;
  padding: 0; appearance: none;
}
.ppay-input::placeholder { color: #94a3b8; }
.ppay-textarea {
  height: auto; min-height: 72px; padding: 10px 0; resize: vertical; line-height: 1.5;
}
select.ppay-input {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2494a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right center / 10px;
  padding-right: 18px;
}
.ppay-hint { margin: 0 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.ppay-checkrow {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; font-size: 14px; color: #334155; border-bottom: 1px solid #eef2f7;
}
.ppay-checkrow input { margin-top: 3px; accent-color: #2f6fad; }

.ppay-foot-links {
  text-align: center; padding: 8px 0 16px; font-size: 13px;
}
.ppay-foot-links a { color: #2b6aa3; }
.ppay-spacer { height: 8px; }

.ppay-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(31,95,154,.08);
  max-width: 640px; margin: 0 auto;
}
.ppay-bar-amt { flex: 1; min-width: 0; }
.ppay-bar-amt span { display: block; font-size: 11px; color: #94a3b8; }
.ppay-bar-amt strong {
  display: block; font-size: 22px; font-weight: 700; color: #d94841; letter-spacing: .3px;
  line-height: 1.2; margin-top: 2px;
}
.ppay-bar-btn {
  flex: 0 0 auto; min-width: 132px; height: 46px; padding: 0 22px;
  border: 0; border-radius: 12px; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #2f6fad, #3a7fc1 60%, #4a8ec9);
  box-shadow: 0 8px 18px rgba(47,111,173,.28);
}
.ppay-bar-btn:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }
.ppay-bar-btn:active:not(:disabled) { transform: scale(.98); }

@media (max-width: 360px) {
  .ppay-label { flex-basis: 84px; font-size: 13px; }
  .ppay-bar-btn { min-width: 112px; font-size: 15px; }
}

