* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(110, 170, 240, 0.12), transparent 60%),
    radial-gradient(760px 460px at 105% 22%, rgba(130, 120, 230, 0.08), transparent 58%),
    linear-gradient(165deg, #f7fafd 0%, #eef3fa 100%);
  background-attachment: fixed;
}

/* ========== 背景：极淡静态光斑（仅缓慢呼吸，不漂移） ========== */
.bg {
  position: fixed; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.b1 {
  width: 520px; height: 520px;
  top: -14%; left: -8%;
  background: radial-gradient(circle, rgba(120, 180, 245, 0.50), rgba(120, 180, 245, 0) 70%);
  animation: breathe 14s ease-in-out infinite;
}
.b2 {
  width: 440px; height: 440px;
  top: 34%; right: -12%;
  background: radial-gradient(circle, rgba(140, 130, 235, 0.38), rgba(140, 130, 235, 0) 70%);
  animation: breathe 18s ease-in-out infinite reverse;
}
.b3 {
  width: 560px; height: 560px;
  bottom: -22%; left: 24%;
  background: radial-gradient(circle, rgba(90, 195, 235, 0.32), rgba(90, 195, 235, 0) 70%);
  animation: breathe 22s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

.page {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ========== 卡片：轻量简洁 ========== */
.card {
  width: 430px;
  max-width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 44px rgba(30, 60, 120, 0.10),
    0 2px 8px rgba(30, 60, 120, 0.04);
  padding: 36px 30px 26px;
  overflow: hidden;
  animation: cardIn .45s ease-out both;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 8%, #5a9bff 45%, #7d6bff 70%, transparent 92%);
}

/* 成功：柔和绿环一次扩散 */
.card.success { animation: cardOk .5s ease both; }
.card.success::after {
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  width: 240px; height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 194, 107, 0.5);
  animation: okRing .8s ease-out forwards;
  pointer-events: none;
}
@keyframes cardOk {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.01); }
  100% { transform: scale(1); }
}
@keyframes okRing {
  0%   { opacity: .8; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(1.4); }
}

/* 失败：轻微抖动 */
.card.error {
  animation: cardShake .45s ease;
  box-shadow:
    0 18px 44px rgba(217, 75, 75, 0.10),
    0 0 0 1px rgba(217, 75, 75, 0.10);
}
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

.card-head { text-align: center; margin-bottom: 22px; }

/* 盾牌图标：静态，柔和 */
.shield {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a9bff, #6f5fff);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(80, 130, 220, 0.25);
}
.card.success .shield {
  background: linear-gradient(135deg, #3fc97c, #21a35c);
  box-shadow: 0 8px 20px rgba(33, 163, 92, 0.28);
}

.card-head h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2f6fe4;
}
.card-head p { font-size: 13px; color: #98a2b3; line-height: 1.6; }

/* 状态提示区（加载 / 错误） */
.captcha-box {
  min-height: 34px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading {
  font-size: 13px;
  color: #8a94a6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.loading.hide { display: none; }
.loading::before {
  content: "";
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid #dfe6f0;
  border-top-color: #5a9bff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-tip {
  font-size: 12.5px;
  color: #d94b4b;
  background: #fdf1f1;
  border: 1px solid #f7dddd;
  border-radius: 999px;
  padding: 5px 15px;
  display: none;
  max-width: 100%;
}
.error-tip.show { display: inline-block; animation: shake .3s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ========== 滑动轨道：干净简洁 ========== */
.slider-row { margin-bottom: 16px; }

.slider-track {
  position: relative;
  height: 56px;
  border-radius: 28px;
  background: #f1f4f9;
  border: 1px solid #e2e8f1;
  box-shadow: inset 0 1px 6px rgba(30, 60, 120, 0.05);
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.slider-track.dragging {
  border-color: rgba(90, 155, 255, 0.55);
  box-shadow: inset 0 1px 6px rgba(30, 60, 120, 0.04), 0 0 0 2px rgba(90, 155, 255, 0.10);
}
.card.success .slider-track {
  border-color: rgba(53, 194, 107, 0.6);
  box-shadow: inset 0 1px 6px rgba(30, 60, 120, 0.04), 0 0 0 2px rgba(53, 194, 107, 0.12);
}

.slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #7ab2ff, #5a9bff 60%, #7d6bff);
  opacity: .85;
  transition: width .35s ease-out;
}

.slider-btn {
  position: absolute;
  left: 2px; top: 3px;
  width: 50px; height: 50px;
  background: linear-gradient(180deg, #ffffff, #f4f7fc);
  border-radius: 25px;
  box-shadow:
    0 3px 10px rgba(30, 60, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  user-select: none;
  z-index: 2;
  transition: left .35s ease-out, box-shadow .15s;
}
.slider-btn.dragging {
  transition: box-shadow .15s;
  cursor: grabbing;
  box-shadow:
    0 4px 12px rgba(70, 130, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.slider-btn .arrow {
  font-size: 19px;
  color: #55637a;
  line-height: 1;
  transition: color .2s;
}
.slider-btn.done {
  background: linear-gradient(135deg, #3fc97c, #21a35c);
  box-shadow: 0 4px 12px rgba(33, 163, 92, 0.35);
}
.slider-btn.done .arrow { color: #fff; animation: tick .35s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes tick {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.slider-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  color: #9aa4b5;
  letter-spacing: .3px;
  pointer-events: none;
  transition: opacity .2s;
}
.slider-hint.hide { opacity: 0; }

.foot {
  text-align: center;
  font-size: 12px;
  color: #c0c8d4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.foot::before, .foot::after {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, #d3dae4);
}
.foot::after { background: linear-gradient(90deg, #d3dae4, transparent); }

/* 联系我们 · 寻求帮助 */
.help {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f3f8;
  text-align: center;
}
.help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7d8ba1;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e4eaf2;
  background: #fafcff;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.help a::before {
  content: "❓";
  font-size: 12px;
}
.help a:hover {
  color: #2f6fe4;
  border-color: rgba(47, 111, 228, 0.35);
  background: #fff;
  box-shadow: 0 3px 10px rgba(47, 111, 228, 0.10);
}

@media (max-width: 480px) {
  .card { padding: 28px 20px 22px; }
}
