:root {
  --bg-1: #f4f7fc;
  --bg-2: #edf3fb;
  --bg-3: #fbfdff;
  --text-main: #18212d;
  --text-sub: #5f6c7b;
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-bg-strong: rgba(255, 255, 255, 0.95);
  --border: rgba(33, 43, 57, 0.12);
  --accent: #1267d6;
  --accent-strong: #0f4ca7;
  --accent-soft: #e8f1ff;
  --accent-ring: rgba(18, 103, 214, 0.16);
  --success-soft: #e9fbf3;
  --warning-soft: #eef5ff;
  --danger: #c94d52;
  --danger-soft: #fff2f2;
  --shadow-lg: 0 22px 52px rgba(20, 42, 73, 0.12);
  --shadow-md: 0 14px 34px rgba(20, 42, 73, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 8%, rgba(161, 202, 255, 0.5), transparent 30%),
    radial-gradient(circle at 90% 92%, rgba(157, 224, 216, 0.42), transparent 30%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 58%, var(--bg-3));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 78%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

html[data-i18n-ready="false"] body {
  visibility: hidden;
}

.page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 32px 0 44px;
  position: relative;
}

.lang-switch {
  position: fixed;
  top: 12px;
  right: max(12px, env(safe-area-inset-right));
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(18, 34, 57, 0.08);
  z-index: 60;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  background: rgba(18, 103, 214, 0.08);
  color: var(--text-main);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--accent);
}

.hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.logo {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(16, 31, 56, 0.1);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.intro {
  margin: 0 auto;
  max-width: 680px;
  color: var(--text-sub);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}

.content-grid {
  width: min(760px, 100%);
  margin: 0 auto;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-bg-strong), var(--panel-bg));
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.32), transparent 42%);
  pointer-events: none;
}

.verifier-panel,
.info-panel {
  padding: 28px;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.panel-copy {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.verify-form,
.status-card {
  position: relative;
  z-index: 1;
}

.verify-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
}

.field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.email-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(21, 42, 73, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.96);
  color: var(--text-main);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 1px rgba(17, 31, 51, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-input::placeholder {
  color: #8a97a8;
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.email-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 77, 82, 0.14);
}

.submit-btn {
  min-height: 56px;
  padding: 0 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(140deg, #0f5fce, #2e86ff);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(18, 103, 214, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(18, 103, 214, 0.27);
}

.submit-btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.helper-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
}

.status-card {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 103, 214, 0.14);
  background: linear-gradient(160deg, rgba(242, 247, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.status-card[data-status-kind="pending"] {
  border-color: rgba(18, 103, 214, 0.2);
  background: linear-gradient(160deg, rgba(235, 244, 255, 0.98), rgba(252, 254, 255, 0.92));
}

.status-card[data-status-kind="success"] {
  border-color: rgba(76, 154, 114, 0.24);
  background: linear-gradient(160deg, rgba(233, 251, 243, 0.98), rgba(250, 255, 252, 0.92));
}

.status-card[data-status-kind="error"] {
  border-color: rgba(201, 77, 82, 0.22);
  background: linear-gradient(160deg, rgba(255, 242, 242, 0.98), rgba(255, 250, 250, 0.92));
}

.status-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 51, 0.06);
}

.status-card[data-status-kind="success"] .status-icon {
  color: #2f8f64;
}

.status-card[data-status-kind="error"] .status-icon {
  color: var(--danger);
}

.status-card[data-status-kind="pending"] .status-icon {
  animation: pulseGlow 1.35s ease-in-out infinite;
}

.status-label {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.status-text {
  margin: 0;
  color: #29425c;
  font-size: 14px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-1 {
  animation-delay: 0.05s;
}

.reveal-2 {
  animation-delay: 0.14s;
}

.reveal-3 {
  animation-delay: 0.24s;
}

.reveal-4 {
  animation-delay: 0.32s;
}

.reveal-5 {
  animation-delay: 0.4s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(17, 31, 51, 0.06);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      inset 0 0 0 1px rgba(17, 31, 51, 0.06),
      0 0 0 6px rgba(18, 103, 214, 0.08);
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px 0 30px;
  }

  .hero {
    margin-bottom: 20px;
  }

  .lang-switch {
    top: 8px;
    right: max(8px, env(safe-area-inset-right));
  }

  .field-wrap {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .verifier-panel,
  .info-panel,
  .visual-panel {
    padding: 20px;
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  .status-card {
    grid-template-columns: 1fr;
  }
}
