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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.verify-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.verify-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.verify-header {
  padding: 28px 28px 16px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.verify-header h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.verify-header p {
  font-size: 13px;
  opacity: 0.9;
}

.verify-challenge-area {
  padding: 24px;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading {
  color: #999;
  font-size: 14px;
}

/* 频率限制提示 */
.rate-limit-msg {
  text-align: center;
  line-height: 1.6;
}

.rl-icon {
  width: 48px; height: 48px;
  background: #fdf0ef;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: #e74c3c;
  font-size: 22px;
  font-weight: 700;
}

.challenge-content {
  width: 100%;
}

/* 滑块验证 */
.slider-challenge {
  width: 100%;
}

/* 拼图区域：背景图 + 浮动的拼图块 */
.slider-puzzle-area {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  line-height: 0;
}

.slider-bg-wrap svg {
  width: 100%;
  display: block;
}

.slider-piece-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  transition: none;
}

.slider-piece-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 滑块轨道 */
.slider-track-wrap {
  width: 100%;
}

.slider-track {
  width: 100%;
  height: 46px;
  background: #e8ecf1;
  border-radius: 23px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d5dae0;
}

.slider-track-bg {
  position: absolute;
  inset: 0;
  background: #e8ecf1;
  border-radius: 23px;
}

.slider-track-active {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  width: 0;
  background: linear-gradient(90deg, #a8e6cf, #7dd8a0);
  border-radius: 22px 0 0 22px;
  transition: none;
}

.slider-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #99a0aa;
  font-size: 13px;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.slider-btn {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #667eea;
  user-select: none;
  z-index: 3;
  transition: none;
}

.slider-btn.dragging {
  cursor: grabbing;
  box-shadow: 0 4px 14px rgba(102,126,234,0.4);
  transform: scale(1.05);
}

.slider-btn:active {
  cursor: grabbing;
}

/* 点选验证 */
.click-challenge {
  text-align: center;
}

.click-instruction {
  font-size: 15px;
  color: #333;
  margin-bottom: 14px;
  font-weight: 500;
}

.click-image-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.click-image-container img, .click-image-container svg {
  display: block;
}

.click-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #667eea;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: clickPulse 0.6s ease-out;
}

@keyframes clickPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 图文验证码 */
.text-challenge {
  text-align: center;
  width: 100%;
}

.text-captcha-svg {
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-captcha-svg svg {
  display: block;
  width: 100%;
}

.text-input-group {
  display: flex;
  gap: 10px;
}

.text-input-group input {
  flex: 1;
  height: 44px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.text-input-group input:focus {
  border-color: #667eea;
}

.text-input-group button {
  height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.text-input-group button:hover {
  opacity: 0.9;
}

.text-input-group button:active {
  transform: scale(0.98);
}

/* 状态提示 */
.verify-feedback {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  min-height: 20px;
}

.verify-feedback.error {
  color: #e74c3c;
}

.verify-feedback.success {
  color: #27ae60;
}

/* 刷新按钮 */
.verify-refresh {
  margin-top: 14px;
  text-align: center;
}

.verify-refresh button {
  background: none;
  border: 1px solid #ddd;
  color: #888;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
}

.verify-refresh button:hover {
  background: #f5f5f5;
  color: #555;
}

.verify-footer {
  padding: 12px 28px 20px;
  text-align: center;
  font-size: 12px;
  color: #bbb;
  border-top: 1px solid #f0f0f0;
}

/* 重试遮罩 */
.retry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  gap: 12px;
}

.retry-overlay .retry-text {
  color: #e74c3c;
  font-size: 14px;
  font-weight: 500;
}

.retry-overlay button {
  padding: 8px 24px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}
