* { 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: var(--text-c);
  background: var(--bg-grad);
  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, var(--blob1), 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, var(--blob2), 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, var(--blob3), 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: 28px 20px 56px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ========== 卡片：轻量简洁 ========== */
.card {
  width: 430px;
  max-width: 100%;
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  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: var(--topbar);
}

/* 成功：柔和绿环一次扩散 */
.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: var(--shield-grad);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shield-shadow);
}
.card.success .shield {
  background: var(--ok-grad);
  box-shadow: var(--ok-shadow);
}

.card-head h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--h1-c);
}
.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: var(--sub-c);
  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: var(--track-bg);
  border: 1px solid var(--track-border);
  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: var(--fill-grad);
  opacity: .85;
  transition: width .35s ease-out;
}

.slider-btn {
  position: absolute;
  left: 2px; top: 3px;
  width: 50px; height: 50px;
  background: var(--btn-bg);
  border-radius: 25px;
  box-shadow: var(--btn-shadow);
  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: var(--arrow-c);
  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: var(--faint-c);
  letter-spacing: .3px;
  pointer-events: none;
  transition: opacity .2s;
}
.slider-hint.hide { opacity: 0; }

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--faint-c);
  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 var(--line-c);
  text-align: center;
}
.help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--link-c);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--link-border);
  background: var(--link-bg);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.help a::before {
  content: "❓";
  font-size: 12px;
}
.help a:hover {
  color: var(--link-hover-c);
  border-color: var(--link-border);
  background: var(--card-bg);
  box-shadow: 0 3px 10px var(--shield-shadow);
}

@media (max-width: 480px) {
  .card { padding: 28px 20px 22px; }
}
@media (max-width: 400px) {
  .card-links { gap: 8px; }
  .link-btn { padding: 6px 10px; font-size: 12px; }
}

/* 底部链接区（联系我们 / 隐私政策） */
.card-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  padding-bottom: 2px;
  border-top: 1px solid var(--line-c);
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--link-c);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--link-border);
  background: var(--link-bg);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.link-btn::before { content: "❓"; font-size: 12px; }
.link-btn:hover {
  color: var(--link-hover-c);
  border-color: var(--link-border);
  background: var(--card-bg);
  box-shadow: 0 3px 10px var(--shield-shadow);
}
/* 联系我们：高亮强调，永远优先可见 */
.link-help {
  border-color: #4f7cff;
  background: rgba(79, 124, 255, .08);
  color: #4f7cff;
  font-weight: 600;
}
.link-help::before { content: "💬"; }
.link-help:hover {
  border-color: #4f7cff;
  background: rgba(79, 124, 255, .14);
  box-shadow: 0 3px 12px rgba(79, 124, 255, .25);
}

/* 隐私政策弹窗 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(20, 30, 50, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(3px);
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 520px; max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 40, 80, 0.25);
  animation: modalIn .25s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f3f8;
  background: linear-gradient(180deg, #fafcff, #f5f8fd);
}
.modal-head h3 { font-size: 15px; }
.modal-x {
  border: 0; background: transparent;
  font-size: 15px; color: #8a94a6;
  cursor: pointer; padding: 4px 8px;
  border-radius: 8px;
}
.modal-x:hover { background: #eef2f8; color: #2c3e50; }
.modal-body {
  padding: 18px 20px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #46566b;
  max-height: 46vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 底部链接图标区分 */
.link-privacy::before { content: "🔒"; }
.link-agreement::before { content: "📄"; }
.link-help::before { content: "❓"; }
.link-report::before { content: "⚠️"; }

/* 备案号条 */
.icp-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  font-size: 12px;
  color: var(--icp-c);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: var(--icp-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(30, 60, 120, 0.08);
  box-shadow: 0 -1px 10px rgba(30, 60, 120, 0.04);
}
.icp-bar a {
  color: var(--icp-link);
  text-decoration: none;
  transition: color .2s;
}
.icp-bar a:hover { color: var(--link-hover-c); }

@media (max-width: 480px) {
  .icp-bar { font-size: 11px; padding: 7px 10px; }
}
