:root {
  --orange: #ff6600;
  --orange-deep: #e85a00;
  --orange-mid: #ff7a1a;
  --orange-soft: #fff4e8;
  --orange-wash: #fff7ef;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: #ececec;
  --bg: #f6f6f6;
  --white: #ffffff;
  --danger: #e54d42;
  --ok: #22a06b;
  --ok-soft: #e8f8ef;
  --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: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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-md { width: 1.35rem; height: 1.35rem; }
.ico-lg { width: 2.4rem; height: 2.4rem; }
.ico-field { width: 1.15rem; height: 1.15rem; color: #b0b0b0; }

.sec-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--white);
  position: relative;
}

.sec-top {
  background: linear-gradient(180deg, #ff7a14 0%, #ff5c00 100%);
  padding-top: env(safe-area-inset-top, 0px);
}
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem 0.55rem;
  position: relative;
  z-index: 2;
  background: transparent;
}
.sec-header.is-orange { color: #fff; }
.sec-header.is-white {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #f2f2f2;
}
.sec-logo {
  display: block;
  height: 32px;
  width: auto;
}
.sec-center {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sec-center .ico { width: 1rem; height: 1rem; }

.sec-hero {
  position: relative;
  overflow: hidden;
  padding: 0.4rem 1.25rem 2.4rem;
  text-align: center;
  color: #fff;
  background: transparent;
}
.sec-hero::before,
.sec-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.sec-hero::before { width: 220px; height: 220px; left: 50%; top: 8px; transform: translateX(-50%); }
.sec-hero::after { width: 300px; height: 300px; left: 50%; top: -28px; transform: translateX(-50%); }

.sec-shield-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0.35rem auto 0.85rem;
}
.sec-shield {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}
.sec-shield-mark {
  position: absolute;
  right: -6px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.sec-shield-mark .ico { width: 0.95rem; height: 0.95rem; }
.sec-hero h1 {
  position: relative;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.sec-hero p {
  position: relative;
  margin-top: 0.4rem;
  font-size: 0.86rem;
  opacity: 0.92;
}
.hero-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 92%;
}
.hero-pill .ico { width: 0.9rem; height: 0.9rem; flex: none; }

.sec-body {
  position: relative;
  margin-top: -1.35rem;
  padding: 0 1rem 1.5rem;
  z-index: 2;
}
.sec-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 1.15rem 1.1rem 1.2rem;
}
.sec-card + .sec-card { margin-top: 0.85rem; }

.warn-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.warn-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.warn-row strong { display: block; font-size: 0.92rem; line-height: 1.45; }
.warn-row p { margin-top: 0.3rem; font-size: 0.78rem; color: #666; line-height: 1.5; }

.sec-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.detail-list { display: flex; flex-direction: column; gap: 0.85rem; }
.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.detail-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #555;
  font-size: 0.88rem;
}
.detail-left .ico { color: var(--orange); }
.detail-val { font-size: 0.88rem; font-weight: 650; }
.detail-val.is-hot { color: var(--orange); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  text-align: center;
}
.feat-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.feat-circle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-x {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #222;
  color: #fff !important;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-item span { font-size: 0.68rem; color: #444; line-height: 1.3; }
.feat-item em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--muted);
}

.tip-box {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--orange-soft);
  color: #5a3b1c;
}
.tip-box .ico { color: var(--orange); margin-top: 0.1rem; }
.tip-box strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; color: var(--ink); }
.tip-box p { font-size: 0.76rem; line-height: 1.5; color: #666; }

.sec-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d1a 0%, #ff6600 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 102, 0, 0.28);
}
.sec-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.sec-btn-ghost {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  text-align: center;
  background: none;
  border: none;
  color: var(--orange);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

.sec-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: #9a9a9a;
  font-size: 0.72rem;
}
.sec-foot .ico { width: 0.85rem; height: 0.85rem; }

.page-alert,
.page-verify,
.page-otp,
.page-processing,
.page-success {
  background-color: #fff6ee;
  background-image: linear-gradient(180deg, #ff7a14 0, #ff7a14 240px, #fff6ee 240px);
}
.page-alert .sec-shell,
.page-verify .sec-shell,
.page-otp .sec-shell,
.page-processing .sec-shell,
.page-success .sec-shell {
  background: #fff6ee;
}
.page-alert .sec-body,
.page-verify .sec-body,
.page-otp .sec-body,
.page-processing .sec-body,
.page-success .sec-body { margin-top: -1.2rem; padding-top: 0; }
.page-verify .step-bar { margin: 0 0 0.7rem; }
.page-verify .verify-card { margin: 0; }
.page-verify .tip-banner { margin: 0 0 0.7rem; }
.page-verify .verify-actions { padding: 0.95rem 0 1.1rem; }
.page-alert .sec-actions { padding: 0.35rem 1rem 1.4rem; }

/* ===== Verify ===== */

.step-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  margin: 0 0.85rem;
  padding: 0.85rem 0.55rem 0.55rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.step {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  color: #aaa;
  position: relative;
}
.step strong {
  display: flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 auto 0.3rem;
  align-items: center;
  justify-content: center;
  background: #ececec;
  color: #888;
  font-size: 0.7rem;
}
.step.is-on { color: var(--orange); font-weight: 700; }
.step.is-on strong { background: var(--orange); color: #fff; }

.verify-card { margin: 0.7rem 0.85rem 0; padding: 1.05rem 0.95rem 1.15rem; }
.field-block + .field-block { margin-top: 1rem; }
.field-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}
.field-head .ico { color: var(--orange); }
.field-head h3 { font-size: 0.92rem; font-weight: 700; }
.field-sub { font-size: 0.74rem; color: var(--muted); margin: 0.15rem 0 0.45rem; }
.field-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.field-mask { font-size: 0.72rem; color: var(--orange); }
.forgot-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.field-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 0.75rem;
  border-radius: 10px;
  background: #f6f6f6;
  border: 1px solid #efefef;
}
.field-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  height: 44px;
  font-size: 0.95rem;
}
.phone-box { padding-left: 0.35rem; }
.region-select-wrap { position: relative; flex: none; }
.region-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.region-select-face {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.45rem;
  color: #333;
  font-weight: 650;
  font-size: 0.88rem;
}
.eye-btn, .captcha-img-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
}
.captcha-img-btn img {
  display: block;
  width: 120px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.tip-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}
.tip-banner.tip-err { background: #fff1ef; color: var(--danger); border: 1px solid #ffd0cb; }
.tip-banner.tip-warn { background: #fff6e6; color: #b7791f; }
.tip-banner.tip-ok { background: var(--ok-soft); color: var(--ok); }
.tip-banner .tip-text { flex: 1; line-height: 1.45; }

.verify-actions { padding: 0.95rem 0.85rem 1.4rem; }
.encrypt-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
}

/* ===== OTP ===== */
.otp-card { text-align: center; padding: 1.3rem 1rem 1.25rem; }
.otp-card h2 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.otp-card .otp-lead { font-size: 0.82rem; color: #777; margin-bottom: 1rem; line-height: 1.5; }
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0.9rem;
}
.otp-boxes input {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  outline: none;
  caret-color: var(--orange);
}
.otp-boxes input:focus { border-color: var(--orange); background: #fff; }
.otp-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--orange);
  font-size: 0.76rem;
  margin-bottom: 1rem;
}
.otp-err {
  color: var(--danger);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}
.otp-resend {
  display: block;
  margin: 0.85rem auto 0;
  border: none;
  background: none;
  color: var(--orange);
  font-size: 0.86rem;
  cursor: pointer;
}
.otp-resend:disabled { color: #bbb; cursor: not-allowed; }

/* ===== Processing ===== */
.proc-card { text-align: center; padding: 1.6rem 1.1rem 1.3rem; }
.proc-ring {
  width: 86px;
  height: 86px;
  margin: 0.1rem auto 0.95rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 28px, transparent 29px),
    conic-gradient(#ff6600 0 78%, #ffe1c4 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.4s linear infinite;
}
.proc-ring .ico { color: var(--orange); width: 1.5rem; height: 1.5rem; animation: counterspin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { to { transform: rotate(-360deg); } }
.proc-card h2 { color: var(--orange); font-size: 1.2rem; }
.proc-card .proc-sub { margin-top: 0.3rem; color: #888; font-size: 0.86rem; }
.proc-card .proc-sub em { color: var(--orange); font-style: normal; font-weight: 700; }
.stay-box {
  margin-top: 1.15rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex;
  gap: 0.6rem;
}
.stay-box .ico { color: var(--orange); margin-top: 0.1rem; }
.stay-box strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.stay-box p { font-size: 0.76rem; color: #666; line-height: 1.5; }
.proc-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 0.74rem;
}

/* ===== Success ===== */
.success-hero { color: #fff; text-align: center; padding: 0.4rem 1.2rem 2.2rem; }
.success-hero h1 { font-size: 1.7rem; font-weight: 800; }
.success-hero p { margin-top: 0.4rem; font-size: 0.86rem; opacity: 0.95; }
.success-card { text-align: center; padding: 1.5rem 1.1rem 1.25rem; }
.ok-badge {
  width: 92px;
  height: 92px;
  margin: 0.1rem auto 0.9rem;
  border-radius: 50%;
  background: radial-gradient(circle, #e8f8ef 0 62%, transparent 63%), #d8f5e6;
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(34, 160, 107, 0.08);
  position: relative;
}
.ok-badge .ico { width: 2.4rem; height: 2.4rem; stroke-width: 3; }
.success-card h2 { font-size: 1.25rem; }
.success-card .ok-sub { margin-top: 0.3rem; color: #888; font-size: 0.86rem; }
.success-hr { height: 1px; background: #f0f0f0; margin: 1.1rem 0; border: 0; }
.wait-box {
  background: var(--orange-soft);
  border-radius: 12px;
  padding: 1rem 0.9rem 0.95rem;
}
.wait-box .ico { color: var(--orange); margin: 0 auto 0.35rem; }
.wait-box strong { display: block; color: var(--orange); font-size: 1.15rem; }
.wait-box .wait-act { color: #c25a00; font-size: 0.9rem; margin-top: 0.15rem; }
.wait-box p { margin-top: 0.4rem; font-size: 0.74rem; color: #888; line-height: 1.5; }
.success-tip { margin-top: 1rem; text-align: left; }

@media (max-width: 360px) {
  .otp-boxes input { width: 36px; height: 44px; }
  .feat-item span { font-size: 0.6rem; }
}
