:root {
  --brand: #0e7c86;
  --brand-dark: #0b5f68;
  --brand-soft: #e6f4f5;
  --ink: #16232b;
  --ink-2: #5b6b74;
  --line: #e4ebee;
  --card: #ffffff;
  --ok: #12a05c;
  --radius: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #eef3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -10%, #d3eaec 0%, rgba(211, 234, 236, 0) 62%),
    linear-gradient(180deg, #f4f8f9 0%, #e7eef1 100%);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px 18px;
  box-shadow: 0 18px 44px -20px rgba(16, 58, 66, .38), 0 2px 6px rgba(16, 58, 66, .06);
  border: 1px solid rgba(255, 255, 255, .8);
}

/* 品牌区 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 6px 14px -6px rgba(14, 124, 134, .8);
}

.brand-text h1 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: .2px;
}

.brand-text p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 内容区 */
.pane { text-align: center; animation: fade .28s ease both; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.lead {
  font-size: 14px;
  color: var(--ink-2);
  margin: 16px 0 0;
}

.tip {
  font-size: 12px;
  line-height: 1.6;
  color: #8a99a1;
  margin: 16px 2px 0;
}

/* 二维码 */
.qr-box {
  width: 216px;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -16px rgba(16, 58, 66, .5);
}

.qr-box img { display: block; width: 100%; height: auto; }

.qr-box.tall { padding: 8px; }

.qr-fallback {
  padding: 34px 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.qr-fallback strong { display: block; margin-top: 6px; font-size: 15px; color: var(--ink); }

/* 按钮 */
.btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.btn.primary {
  background: linear-gradient(140deg, #128a94 0%, var(--brand-dark) 100%);
  box-shadow: 0 10px 22px -12px rgba(14, 124, 134, .95);
}

.btn.primary:active { transform: translateY(1px) scale(.995); }

.btn.ghost {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* 成功 */
.ok-icon {
  width: 62px;
  height: 62px;
  margin: 6px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #1cb46b, var(--ok));
  box-shadow: 0 12px 24px -12px rgba(18, 160, 92, .9);
  animation: pop .34s cubic-bezier(.3, 1.5, .5, 1) both;
}

@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 加载圈 */
.spinner {
  width: 40px;
  height: 40px;
  margin: 18px auto 0;
  border-radius: 50%;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  animation: spin .85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 页脚 */
.foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 11.5px;
  color: #97a5ac;
}

@media (max-height: 680px) {
  .qr-box { width: 186px; }
}
