/* ================= 滑块人机验证（首页 / 工作台共用） =================
 * 自成一套配色，不依赖首页深色变量或工作台浅色变量，两边引入都安全。
 * 画布基准 300×150，窄屏按容器等比缩放；JS 提交时会把位移换算回基准坐标。
 */
.vf-wrap { --vf-primary: #2563eb; --vf-line: #e5e7eb; --vf-text: #1f2937;
  width: 100%; max-width: 300px; margin: 0 auto; font-size: 12px; color: var(--vf-text); }

.vf-img { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 8px; background: #1e293b; border: 1px solid var(--vf-line); }
.vf-img .vf-bg { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.vf-img .vf-piece { position: absolute; width: auto; height: auto; max-width: none;
  pointer-events: none; user-select: none; -webkit-user-drag: none; }
.vf-img .vf-tip { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px;
  font-size: 11px; color: #fff; background: rgba(15, 23, 42, .42); pointer-events: none; }
.vf-img.ok { border-color: #16a34a; }
.vf-img.bad { border-color: #ef4444; }
.vf-refresh { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: rgba(15, 23, 42, .55); color: #fff;
  font-size: 15px; line-height: 24px; cursor: pointer; padding: 0; }
.vf-refresh:hover { background: rgba(15, 23, 42, .8); }

.vf-track { position: relative; height: 38px; margin-top: 10px; border-radius: 8px;
  background: #f3f4f6; border: 1px solid var(--vf-line); overflow: hidden; user-select: none; }
.vf-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(37, 99, 235, .14); border-right: 1px solid rgba(37, 99, 235, .35); }
.vf-btn { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #d1d5db; border-radius: 7px;
  color: var(--vf-primary); font-size: 18px; font-weight: 700; cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12); touch-action: none; }
.vf-btn:active { cursor: grabbing; }
.vf-hint { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #9ca3af; pointer-events: none; }
.vf-track.dragging .vf-btn { background: var(--vf-primary); color: #fff; }
.vf-track.done .vf-btn { background: #16a34a; border-color: #16a34a; color: #fff; }
.vf-track.done .vf-fill { background: rgba(22, 163, 74, .12); }
.vf-track.done .vf-hint { color: #16a34a; }

.vf-msg { min-height: 16px; margin-top: 5px; text-align: center; color: #6b7280; }
.vf-msg.ok { color: #16a34a; }
.vf-msg.bad { color: #dc2626; }

/* 注册表单内的间距 */
.vf-field { margin: 12px 0 4px; }
.vf-field .af-label { display: block; margin-bottom: 6px; }

/* 风控触发时的验证弹窗 */
.vf-mask { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center;
  justify-content: center; padding: 18px; background: rgba(6, 10, 20, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vf-modal { position: relative; width: 350px; max-width: 100%; background: #fff;
  border-radius: 14px; padding: 22px 22px 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  color: #1f2937; }
.vf-modal h3 { margin: 0 0 6px; font-size: 17px; }
.vf-sub { margin: 0 0 16px; font-size: 12px; color: #6b7280; line-height: 1.6; }
.vf-close { position: absolute; top: 10px; right: 12px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: #9ca3af; cursor: pointer; }
.vf-close:hover { color: #1f2937; }
.vf-foot { margin-top: 12px; text-align: center; font-size: 11px; color: #9ca3af; }
.vf-foot a { color: #6b7280; }

@media (max-width: 640px) {
  .vf-wrap { max-width: 100%; }
  .vf-btn { width: 46px; }
  .vf-modal { padding: 20px 16px 14px; }
}
