:root {
  --blue: #007aff;
  --blue-deep: #0066d6;
  --blue-soft: #eaf3ff;
  --blue-wash: #f3f8ff;
  --cta-orange: #ff8a00;
  --ink: #111827;
  --muted: #8b8b8b;
  --line: #eceff3;
  --bg: #ffffff;
  --white: #ffffff;
  --danger: #e74c3c;
  --ok: #22c55e;
  --ok-soft: #e8f9ef;
  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f5f7fa;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

.ico { display: block; width: 1.25rem; height: 1.25rem; flex: none; }
.ico-xs { width: 0.9rem; height: 0.9rem; }
.ico-sm { width: 1.05rem; height: 1.05rem; }
.ico-field { width: 1.15rem; height: 1.15rem; color: #b0b0b0; }

.sec-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #f4f8ff 0, #ffffff 220px);
}

.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem 0.7rem;
  background: transparent;
}
.sec-logo {
  display: block;
  height: 32px;
  width: auto;
}
.sec-tagline,
.sec-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: #9aa0a6;
  font-weight: 500;
}
.sec-lang .ico { color: #9aa0a6; }

.sec-body {
  padding: 0.4rem 1.15rem 1.6rem;
}

.sec-btn-primary,
.sec-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
}
.sec-btn-primary {
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.22);
}
.sec-btn-cta {
  background: var(--cta-orange);
  box-shadow: 0 8px 18px rgba(255, 138, 0, 0.26);
}
.sec-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.encrypt-note,
.sec-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  color: #a0a4aa;
  font-size: 0.72rem;
}
.encrypt-note .ico,
.sec-foot .ico { width: 0.85rem; height: 0.85rem; }

.page-brand-foot {
  text-align: center;
  margin-top: 1.15rem;
  color: #c0c4c8;
  font-size: 0.72rem;
}

.page-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  color: #b0b4b8;
  font-size: 0.68rem;
}
.page-foot-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== Alert ===== */
.alert-icon {
  width: 80px;
  height: 80px;
  margin: 0.55rem auto 1rem;
}
.alert-icon svg { display: block; width: 80px; height: 80px; }

.alert-title {
  text-align: center;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
  color: #111;
  margin-bottom: 0.7rem;
}
.alert-title-hot { color: var(--danger); }
.alert-desc {
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 auto 1.25rem;
  max-width: 22rem;
}

.steps-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-wash);
  margin-bottom: 1.15rem;
}
.steps-card-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0.9rem 0.15rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.steps-card-head .ico { color: #fff; width: 0.95rem; height: 0.95rem; }
.steps-list { padding: 0.55rem 0.95rem 0.95rem; list-style: none; }
.steps-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0;
}
.steps-list li + li { border-top: 1px solid #e2ebf7; }
.step-badge {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; min-width: 0; }
.step-body strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin-bottom: 0.18rem;
}
.step-body strong .ico { color: var(--blue); width: 1rem; height: 1rem; }
.step-body p { font-size: 0.76rem; color: #7a8190; line-height: 1.5; }

.sec-actions { padding: 0 1.15rem 0.2rem; }

.warm-tips {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f4f6f8;
}
.warm-tips-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}
.warm-tips-head .ico { color: var(--blue); }
.warm-tips ul {
  padding-left: 1.15rem;
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.6;
}
.warm-tips li + li { margin-top: 0.2rem; }

/* ===== Verify ===== */
.risk-banner {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  background: var(--blue-wash);
  margin-bottom: 1.15rem;
}
.risk-banner-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.08);
}
.risk-banner strong {
  display: block;
  font-size: 0.98rem;
  color: #111;
  margin-bottom: 0.28rem;
}
.risk-banner p {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.55;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.form-section-title .ico { color: var(--blue); }
.form-section-lead {
  font-size: 0.76rem;
  color: #8a8f98;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.stack-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.03);
}
.stack-field + .stack-field { margin-top: 0.7rem; }
.stack-field-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.12rem;
  color: #9aa0a6;
}
.stack-field-icon .ico { width: 1.2rem; height: 1.2rem; }
.stack-field-main { flex: 1; min-width: 0; }
.stack-field-main label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: #111;
  margin-bottom: 0.2rem;
}
.stack-field-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.region-fixed {
  flex: none;
  color: #374151;
  font-weight: 700;
  font-size: 0.9rem;
}
.stack-field-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  height: 28px;
  font-size: 0.88rem;
  color: var(--ink);
}
.stack-field-row input::placeholder { color: #b8bec6; }
.eye-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
}

.tip-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 650;
}
.tip-banner.tip-err { background: #fff1ef; color: var(--danger); border: 1px solid #ffd0cb; }
.tip-banner.tip-ok { background: var(--ok-soft); color: #16a34a; }
.tip-banner .tip-text { flex: 1; line-height: 1.45; }

.verify-actions { padding: 1rem 0 0.2rem; }

/* ===== Progress ===== */
.progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0.35rem 1.2rem 1.35rem;
}
.progress-step {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 72px;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #9aa0a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.progress-step.is-active .step-dot {
  background: var(--blue);
  color: #fff;
}
.progress-step.is-done .step-dot {
  background: var(--blue);
  color: #fff;
}
.step-label {
  font-size: 0.68rem;
  color: #b0b4b8;
  text-align: center;
  line-height: 1.3;
}
.progress-step.is-active .step-label,
.progress-step.is-done .step-label {
  color: var(--blue);
  font-weight: 650;
}
.progress-line {
  flex: 1;
  height: 2px;
  background: #e6e8ec;
  margin-top: 13px;
  min-width: 28px;
}
.progress-line.is-done { background: var(--blue); }

/* ===== Processing ===== */
.hero-lock { display: flex; justify-content: center; margin: 0.35rem 0 0.85rem; }
.hero-lock-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-lock-circle .ico { width: 1.7rem; height: 1.7rem; }

.page-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.45rem;
}
.page-lead {
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 auto 1.1rem;
  max-width: 20rem;
}

.proc-card { text-align: center; padding: 0.4rem 0 0.6rem; }
.proc-ring {
  width: 92px;
  height: 92px;
  margin: 0.15rem auto 0.95rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 31px, transparent 32px),
    conic-gradient(var(--blue) 0 70%, #d7e8ff 70% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.6s linear infinite;
}
.proc-ring .ico {
  color: var(--blue);
  width: 1.7rem;
  height: 1.7rem;
  animation: counterspin 1.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { to { transform: rotate(-360deg); } }
.proc-status {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.3rem;
}
.proc-sub {
  font-size: 0.8rem;
  color: #8a8f98;
  line-height: 1.5;
}

/* ===== OTP ===== */
.otp-icon { display: flex; justify-content: center; margin: 0.45rem 0 0.9rem; }
.otp-icon-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.otp-icon-inner .ico { width: 2.1rem; height: 2.1rem; }

.otp-page-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
}
.otp-page-lead {
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 auto 1.2rem;
  max-width: 20rem;
}
.otp-page-lead strong { color: #111; font-weight: 700; }

.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.1rem 0 0.7rem;
}
.otp-boxes input {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: #f4f6f8;
  outline: none;
  caret-color: var(--blue);
}
.otp-boxes input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--blue);
}

.otp-validity {
  text-align: center;
  font-size: 0.76rem;
  color: #9aa0a6;
  margin-bottom: 1rem;
}

.otp-resend-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  background: #f4f6f8;
  margin-bottom: 1.15rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.55;
}
.otp-resend-card .ico { color: var(--blue); margin-top: 0.12rem; flex: none; }
.otp-resend-card strong { color: #111; font-size: 0.86rem; }
.otp-resend-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
  font-size: inherit;
}
.otp-resend-link:disabled { color: #b0b4b8; cursor: not-allowed; }

.otp-err {
  color: var(--danger);
  font-size: 0.82rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

/* ===== Success ===== */
.success-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0.5rem auto 1rem;
}
.success-circle {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-circle .ico { width: 2rem; height: 2rem; stroke-width: 3; }
.success-rays {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 28px, transparent 29px),
    repeating-conic-gradient(from 8deg, transparent 0 14deg, rgba(34, 197, 94, 0.18) 14deg 16deg);
  border-radius: 50%;
}

.success-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.45rem;
}
.success-desc {
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 auto 1.2rem;
  max-width: 20rem;
}

.info-card {
  border-radius: 16px;
  background: var(--blue-wash);
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
}
.info-row .ico { color: var(--blue); }
.info-row-label { color: #6b7280; flex: 1; }
.info-row-val { font-weight: 700; color: #111; }
.info-divider { height: 1px; background: #dce8f7; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.info-grid .info-row { flex-direction: column; align-items: flex-start; gap: 0.28rem; }
.info-status { color: var(--ok); font-weight: 700; }

.wait-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.95rem 0 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--blue-wash);
}
.wait-box .ico { color: var(--blue); margin-top: 0.1rem; }
.wait-box strong {
  display: block;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.wait-box .wait-act {
  font-size: 0.88rem;
  font-weight: 650;
  color: #1a2b4a;
  margin-bottom: 0.3rem;
}
.wait-box p:last-child {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .otp-boxes input { width: 38px; height: 44px; }
  .progress-step { width: 64px; }
}
