* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8a9bd 0%, #fbd3dd 45%, #f7c6d4 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(16px, env(safe-area-inset-top)) 14px 24px;
  color: #2b2b2b;
}

.container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(214, 92, 128, .18);
  width: 100%;
  max-width: 420px;
  padding: 28px 22px 22px;
  margin: auto;
}

.logo {
  width: 62px; height: 62px; margin: 4px auto 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ff7ba9, #f0447a);
  color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(240, 68, 122, .35);
}

.title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.subtitle { text-align: center; font-size: 12.5px; color: #9a9a9a; margin-top: 6px; }

.msg {
  margin: 16px 0 6px; text-align: center; font-size: 13px;
  color: #b1738a; background: #fff5f8; border-radius: 10px; padding: 9px 10px;
}
.msg-error { color: #d8334f; background: #fff0f2; }

.field { margin-top: 14px; }
.field label { display: block; font-size: 12.5px; color: #7c7c7c; margin-bottom: 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input, .row > .phone-box { flex: 1 1 auto; min-width: 0; }
.row > .btn-ghost { flex: 0 0 auto; }

input, select {
  height: 44px; border: 1px solid #efe1e6; background: #fbf7f8;
  border-radius: 11px; padding: 0 12px; font-size: 15px; color: #2b2b2b;
  outline: none; width: 100%;
}
input:focus, select:focus { border-color: #f285a9; background: #fff; }
select { width: 92px; flex: none; }

.btn {
  margin-top: 20px; width: 100%; height: 48px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #ff7ea6, #f0447a); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(240, 68, 122, .28);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; box-shadow: none; }

.btn-ghost {
  flex: none; height: 44px; padding: 0 14px; border-radius: 11px;
  border: 1px solid #f5c2d2; background: #fff7fa; color: #e04a76;
  font-size: 13.5px; font-weight: 600;
}
.btn-ghost:disabled { opacity: .6; }

.cap-img {
  height: 44px; width: 104px; flex: none; border-radius: 9px;
  border: 1px solid #eee; background: #fff; object-fit: cover; cursor: pointer;
}

/* 固定 +86 前缀的手机号输入框 */
.phone-box {
  display: flex; align-items: center; height: 44px;
  border: 1px solid #efe1e6; background: #fbf7f8; border-radius: 11px; padding-left: 12px;
}
.phone-box .prefix {
  flex: none; color: #8a8a8a; font-size: 15px; padding-right: 10px;
  border-right: 1px solid #eee6e9; margin-right: 10px;
}
.phone-box input {
  border: 0; background: transparent; height: 42px; padding-left: 0;
  flex: 1 1 auto; min-width: 0; width: auto;
}
.phone-box:focus-within { border-color: #f285a9; background: #fff; }

@media (max-width: 400px) {
  .container { padding: 22px 16px 18px; border-radius: 16px; }
  .title { font-size: 18.5px; }
  .btn-ghost { padding: 0 10px; font-size: 13px; }
  .status-ico { width: 96px; height: 96px; font-size: 44px; }
}

.tip { text-align: center; font-size: 11.5px; color: #b9b9b9; margin-top: 12px; }

.divider { height: 1px; background: #f4edf0; margin: 20px 0 14px; }

.badges { display: flex; flex-direction: column; gap: 10px; }
.badge { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4b4b4b; }
.ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: #fde8ef; display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.foot { text-align: center; font-size: 11.5px; color: #c2c2c2; margin-top: 18px; }

/* 结果页大图标 */
.status-wrap { text-align: center; margin: 18px 0 10px; }
.status-ico {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: #fff;
}
.status-ico.pending { background: #2f80ed; box-shadow: 0 12px 26px rgba(47, 128, 237, .3); }
.status-ico.fail { background: #e5484d; box-shadow: 0 12px 26px rgba(229, 72, 77, .3); }
.status-ico.done { background: #2fbf3f; box-shadow: 0 12px 26px rgba(47, 191, 63, .3); }
.status-title { font-size: 20px; font-weight: 700; margin-top: 16px; }
.status-sub { font-size: 13px; color: #8d8d8d; margin-top: 8px; line-height: 1.7; }
.spin { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
