/* 滑块人机验证弹层 */
.zgl-captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  animation: zgl-captcha-fade .18s ease;
}
.zgl-captcha-mask[hidden] { display: none !important; }

@keyframes zgl-captcha-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.zgl-captcha-panel {
  width: min(340px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.zgl-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}
.zgl-captcha-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
}
.zgl-captcha-close:hover { color: #000; }

.zgl-captcha-stage {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  user-select: none;
  touch-action: none;
}
.zgl-captcha-stage img.zgl-captcha-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.zgl-captcha-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.zgl-captcha-track {
  position: relative;
  margin-top: 12px;
  height: 40px;
  border-radius: 20px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.zgl-captcha-track-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.zgl-captcha-knob {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.zgl-captcha-knob:active { cursor: grabbing; }
.zgl-captcha-knob.is-ok { background: #34c759; }
.zgl-captcha-knob.is-bad { background: #ff3b30; }

.zgl-captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.zgl-captcha-msg {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #ff3b30;
  text-align: center;
}
