:root {
  color-scheme: light;
  --page-bg: #f6f5f8;
  --card-bg: rgba(255, 255, 255, 0.97);
  --text-main: #25242a;
  --text-secondary: #696b75;
  --text-muted: #a1a3ad;
  --pink: #f4729a;
  --pink-deep: #e85e8b;
  --pink-soft: #fff0f5;
  --green: #2fc987;
  --green-soft: #eafaf3;
  --warning: #efa446;
  --warning-soft: #fff7ea;
  --border: #f0edf1;
  --shadow: 0 24px 70px rgba(56, 45, 68, 0.13), 0 3px 12px rgba(56, 45, 68, 0.05);
}

* {
  box-sizing: border-box;
}

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

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

.background-decor {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.glow-one {
  top: -180px;
  left: -130px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(248, 167, 193, 0.22), rgba(248, 167, 193, 0));
}

.glow-two {
  right: -170px;
  bottom: -230px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(157, 208, 207, 0.17), rgba(157, 208, 207, 0));
}

.glow-three {
  top: 28%;
  right: 13%;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(195, 179, 235, 0.12), rgba(195, 179, 235, 0));
}

.dot-grid {
  position: absolute;
  top: 11%;
  right: 9%;
  width: 116px;
  height: 84px;
  opacity: 0.28;
  background-image: radial-gradient(circle, #d6cad8 1.4px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: linear-gradient(135deg, #000, transparent 80%);
}

.page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 32px 18px 24px;
}

.verify-card {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  padding: 20px 20px 18px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: card-enter 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
  backdrop-filter: blur(12px);
  transform: translateZ(0);
}

.card-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ffb4c9 0%, var(--pink) 48%, #b8a7e6 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343139;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-icon {
  display: grid;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(145deg, #ff91b2, var(--pink-deep));
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(244, 114, 154, 0.24);
  place-items: center;
}

.brand-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #73757e;
  background: #f8f7f9;
  border: 1px solid #efedf1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.secure-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(47, 201, 135, 0.12);
}

.illustration-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #fff8f6;
  border: 1px solid #f1ebec;
  border-radius: 17px;
}

.illustration-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  pointer-events: none;
}

.illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015) translateZ(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.verify-card:hover .illustration {
  transform: scale(1.035) translateZ(0);
}

.illustration-caption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: #6c5961;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(93, 65, 78, 0.1);
  backdrop-filter: blur(7px);
  font-size: 10px;
  font-weight: 600;
}

.caption-heart {
  color: var(--pink);
  font-size: 11px;
}

.status-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  margin: -30px auto 13px;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(70, 55, 73, 0.13);
  place-items: center;
}

.spinner,
.checkmark,
.alertmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 5px;
  border: 3px solid #f4dce4;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.76s linear infinite;
}

.checkmark,
.alertmark {
  visibility: hidden;
  opacity: 0;
}

.checkmark-circle {
  fill: var(--green-soft);
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
}

.checkmark-tick {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.alertmark {
  fill: var(--warning-soft);
  stroke: var(--warning);
  stroke-linecap: round;
  stroke-width: 2.6;
}

.status-icon.is-failed .spinner,
.status-icon.is-success .spinner {
  display: none;
}

.status-icon.is-failed .alertmark {
  visibility: visible;
  opacity: 1;
  animation: icon-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.status-icon.is-success .checkmark {
  visibility: visible;
  opacity: 1;
}

.status-icon.is-success .checkmark-circle {
  animation: draw 0.42s ease-out forwards;
}

.status-icon.is-success .checkmark-tick {
  animation: draw 0.33s 0.3s ease-out forwards;
}

.status-content {
  min-height: 63px;
  padding: 0 8px;
}

.status-content.is-changing {
  animation: content-change 0.34s ease both;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.015em;
}

#statusMessage {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.triple-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.action-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 5px;
  color: #858791;
  background: #faf9fb;
  border: 1px solid #efedf1;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 650;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.action-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #a3a5ad;
  background: #fff;
  border-radius: 7px;
  place-items: center;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.action-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.verify-card[data-status="loading"] .action-item {
  animation: action-pulse 1.25s ease-in-out infinite alternate;
}

.verify-card[data-status="loading"] .action-item:nth-child(2) {
  animation-delay: 0.16s;
}

.verify-card[data-status="loading"] .action-item:nth-child(3) {
  animation-delay: 0.32s;
}

.verify-card[data-status="failed"] .action-item {
  color: #a97740;
  background: #fffaf3;
  border-color: #f3e6d5;
}

.verify-card[data-status="failed"] .action-icon {
  color: var(--warning);
  background: #fff3df;
}

.verify-card[data-status="success"] .action-item {
  color: #228a62;
  background: var(--green-soft);
  border-color: #cdeedf;
  transform: translateY(-1px);
}

.verify-card[data-status="success"] .action-icon {
  color: #fff;
  background: var(--green);
}

.verify-button {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  overflow: hidden;
  padding: 0 21px;
  color: #fff;
  background: linear-gradient(135deg, #fa82a6, var(--pink-deep));
  border: 0;
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(232, 94, 139, 0.25);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.verify-button[hidden] {
  display: none;
}

.button-highlight {
  position: absolute;
  top: -28px;
  left: -56px;
  width: 42px;
  height: 105px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(24deg);
  transition: left 0.55s ease;
}

.verify-button:hover:not(:disabled) {
  filter: brightness(1.02);
  box-shadow: 0 12px 26px rgba(232, 94, 139, 0.3);
  transform: translateY(-2px);
}

.verify-button:hover:not(:disabled) .button-highlight {
  left: calc(100% + 25px);
}

.verify-button:active:not(:disabled) {
  box-shadow: 0 5px 13px rgba(232, 94, 139, 0.22);
  transform: translateY(1px) scale(0.99);
}

.verify-button:focus-visible {
  outline: 3px solid rgba(244, 114, 154, 0.24);
  outline-offset: 3px;
}

.verify-button:disabled {
  cursor: wait;
  filter: saturate(0.75);
}

.button-arrow {
  width: 18px;
  height: 18px;
  margin-left: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin-left: 9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.verify-button.is-loading .button-spinner {
  display: block;
}

.verify-button.is-loading .button-arrow {
  display: none;
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 15px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 10.5px;
}

.trust-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8f929c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.page-footer {
  margin: 17px 0 0;
  color: #a5a1aa;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  padding: 12px;
  color: #8a431e;
  text-align: center;
  background: #fff3df;
  border: 1px solid #ffd9a4;
  border-radius: 9px;
  font-size: 13px;
}

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes content-change {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes action-pulse {
  from {
    opacity: 0.58;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 430px) {
  .page-shell {
    justify-content: flex-start;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }

  .verify-card {
    width: 100%;
    max-width: 380px;
    padding: 18px 16px 16px;
    border-radius: 21px;
  }

  .card-header {
    margin-bottom: 14px;
  }

  .status-icon {
    margin-top: -28px;
  }

  .triple-actions {
    gap: 6px;
  }

  h1 {
    font-size: 21px;
  }
}

@media (max-height: 700px) and (min-width: 431px) {
  .page-shell {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .verify-card {
    width: 370px;
  }

  .illustration-panel {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
