/* ==========================================================================
 * 登录 / 注册滑块验证（cn9-captcha.js 的样式）
 * 拖到最右才放行；未通过时提交按钮在捕获阶段就被拦掉。
 * ========================================================================== */
.cn9-cap {
  --cap-gold: #c9a45c;
  --cap-gold-hi: #e3cf9f;
  margin: 18px 0 6px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cn9-cap-track {
  position: relative;
  height: 44px;
  border: 1px solid rgba(201, 164, 92, .28);
  border-radius: 3px;
  background: #14110d;
  overflow: hidden;
  cursor: default;
}
.cn9-cap-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(201, 164, 92, .10), rgba(201, 164, 92, .26));
  pointer-events: none;
}
.cn9-cap-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: .12em;
  color: #8f8577;
  pointer-events: none;
  transition: color .2s ease;
}
.cn9-cap-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a2318, #1d1811);
  border: 1px solid rgba(201, 164, 92, .45);
  color: var(--cap-gold-hi);
  cursor: grab;
  transition: background .2s ease, border-color .2s ease;
  will-change: transform;
}
.cn9-cap-thumb:active { cursor: grabbing; }
.cn9-cap-thumb svg { width: 18px; height: 18px; display: block; }
.cn9-cap[data-solved="1"] .cn9-cap-track { border-color: rgba(201, 164, 92, .55); }
.cn9-cap[data-solved="1"] .cn9-cap-fill { background: linear-gradient(90deg, rgba(201, 164, 92, .18), rgba(201, 164, 92, .34)); }
.cn9-cap[data-solved="1"] .cn9-cap-text { color: #dcbd7a; }
.cn9-cap[data-solved="1"] .cn9-cap-thumb { border-color: var(--cap-gold); color: #14110d; background: var(--cap-gold); cursor: default; }
.cn9-cap[data-shake="1"] .cn9-cap-track { animation: cn9cap-shake .34s ease; border-color: rgba(216, 106, 90, .55); }
@keyframes cn9cap-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}
.cn9-cap-hint {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: #7d7466;
}
.cn9-cap[data-solved="1"] .cn9-cap-hint { color: #8f8577; }
@media (prefers-reduced-motion: reduce) {
  .cn9-cap[data-shake="1"] .cn9-cap-track { animation: none; }
}
