* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #f5f6f8;
  --card: #fff;
  --line: #e8ebf0;
  --txt: #14181f;
  --sub: #8a92a0;
  --pri: #2f6bff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #e5484d;
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.wrap { width: 100%; max-width: 440px; padding: 22px 0 60px; }

.pane { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.brand { text-align: center; margin-bottom: 30px; }
.logo {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6bff, #5a8cff);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(47, 107, 255, .28);
}
h1 { font-size: 21px; font-weight: 650; margin: 0 0 8px; letter-spacing: .2px; }
.sub { font-size: 13.5px; color: var(--sub); margin: 0; line-height: 1.6; }
.sub b { color: var(--txt); font-weight: 600; }

.field { margin-bottom: 16px; }
input {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  letter-spacing: .6px;
  background: #fff;
  color: var(--txt);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
input::placeholder { color: #b6bcc8; letter-spacing: 0; font-size: 15px; }
input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--txt);
  font-size: 15.5px;
  font-weight: 550;
  cursor: pointer;
  transition: .18s;
  text-decoration: none;
  -webkit-appearance: none;
}
.btn:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary {
  background: var(--pri);
  border-color: var(--pri);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(47, 107, 255, .26);
}
.btn.primary:hover:not(:disabled) { background: #255ce0; border-color: #255ce0; color: #fff; }
.btn.lg { padding: 16px; font-size: 16.5px; }
.btn.ghost { background: #fff; }
.btn.sm { padding: 10px 12px; font-size: 13.5px; border-radius: 10px; }

.row { display: flex; gap: 10px; margin-top: 12px; }
.row .btn { flex: 1; }

.tip {
  font-size: 13px;
  color: var(--sub);
  margin-top: 14px;
  min-height: 20px;
  text-align: center;
  line-height: 1.55;
}
.tip.err { color: var(--err); }
.tip.ok { color: var(--ok); }

/* 支付 */
.qr-wrap {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 264px;
  border: 1.5px solid var(--line);
  margin-bottom: 20px;
}
.qr img { display: block; border-radius: 8px; }
.qr-loading {
  position: absolute;
  font-size: 13.5px;
  color: var(--sub);
}
.qr-fallback {
  font-size: 13px;
  color: var(--err);
  text-align: center;
  word-break: break-all;
  padding: 12px;
}
.qr-fallback small { color: var(--sub); font-size: 11px; word-break: break-all; }

.pay-info {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  margin-bottom: 20px;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
}
.pay-row span { color: var(--sub); }
.pay-row b { font-size: 19px; color: var(--pri); font-weight: 700; }
.pay-row code { font-size: 12.5px; color: var(--sub); font-family: ui-monospace, Menlo, Consolas, monospace; }

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(47, 107, 255, .07);
  color: var(--pri);
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 14px;
}
.progress.err { background: rgba(229, 72, 77, .08); color: var(--err); }
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* 结果 */
.result-icon {
  width: 76px; height: 76px;
  margin: 30px auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 300;
  color: #fff;
  background: var(--ok);
  box-shadow: 0 10px 30px rgba(22, 163, 74, .3);
  animation: pop .4s cubic-bezier(.2, .9, .3, 1.3);
}
.result-icon.err { background: var(--err); box-shadow: 0 10px 30px rgba(229, 72, 77, .3); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#pane-result { text-align: center; }
#pane-result .btn { margin-top: 26px; }

/* 验证码 */
.captcha-box {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1.5px solid var(--line);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-box iframe { border: 0; width: 100%; max-width: 340px; height: 240px; }

/* 顶部状态条 */
.status-barok, .status-barwarn, .status-barbad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.status-barok { background: rgba(22, 163, 74, .08); color: #15803d; border: 1px solid rgba(22, 163, 74, .2); }
.status-barwarn { background: rgba(245, 158, 11, .09); color: #b45309; border: 1px solid rgba(245, 158, 11, .22); }
.status-barbad { background: rgba(229, 72, 77, .08); color: var(--err); border: 1px solid rgba(229, 72, 77, .2); }
.sb-ok { color: #15803d; font-weight: 600; }
.sb-warn { color: #b45309; font-weight: 600; }
.sb-err { color: var(--err); font-weight: 600; }
.sb-sep { color: rgba(0, 0, 0, .2); margin: 0 2px; }
.sb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

/* 人脸识别风控提示 */
.face-alert {
  background: #fff;
  border: 2px solid #f5a623;
  border-radius: 16px;
  padding: 26px 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(245, 166, 35, .16);
  text-align: center;
}
.face-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff4e0;
  color: #e8890c;
  font-size: 34px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffd699;
  animation: facePulse 2s ease-in-out infinite;
}
@keyframes facePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); }
}
.face-alert h2 {
  font-size: 20px;
  font-weight: 700;
  color: #d97706;
  margin: 0 0 12px;
}
.face-desc {
  font-size: 14px;
  color: #6b6252;
  line-height: 1.7;
  margin: 0 0 20px;
}
.face-desc strong { color: #b45309; font-weight: 700; }
.face-steps {
  background: #fffbeb;
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid #fde68a;
}
.fs-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #fcd34d;
}
.face-steps ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: #57534e;
  line-height: 1.95;
}
.face-steps ol li { padding-left: 2px; }
.face-steps ol strong { color: #b45309; font-weight: 700; }
.face-note {
  font-size: 12px;
  color: #a8a29e;
  margin: 16px 0 0;
  line-height: 1.6;
}

@media (max-width: 380px) {
  .wrap { padding: 26px 0 40px; }
  h1 { font-size: 19px; }
  .qr-wrap { padding: 16px; min-height: 240px; }
}
