/* 通用验证码控件样式（无依赖，可独立引入） */
.cap-widget {
  font: 13px/1.5 -apple-system, "Microsoft YaHei", sans-serif;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  max-width: 340px;
}
.cap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cap-tab {
  padding: 4px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  background: #f5f7fa;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}
.cap-tab.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.cap-body { min-height: 60px; }
.cap-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cap-input, .cap-target {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  min-width: 0;
}
.cap-btn {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.cap-btn:disabled { background: #b6c6e3; cursor: not-allowed; }
.cap-img { border: 1px solid #eee; border-radius: 6px; cursor: pointer; display: block; }
.cap-question { font-size: 18px; font-weight: 600; color: #001529; margin: 6px 0 10px; }
.cap-tip { color: #1677ff; font-weight: 600; margin-bottom: 8px; }
.cap-canvas { border: 1px solid #eee; border-radius: 6px; display: block; touch-action: none; cursor: crosshair; }
.cap-markers { margin-top: 6px; color: #98a2b3; font-size: 12px; }
.cap-track {
  position: relative;
  height: 38px;
  background: #f0f2f5;
  border-radius: 19px;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
}
.cap-track-handle {
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 38px;
  background: #1677ff;
  color: #fff;
  border-radius: 19px;
  text-align: center;
  line-height: 38px;
  cursor: grab;
  user-select: none;
  font-size: 18px;
}
.cap-track-handle:active { cursor: grabbing; }
.cap-track-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 38px;
  color: #98a2b3;
  pointer-events: none;
}
.cap-msg { min-height: 18px; font-size: 12px; margin-top: 6px; }
.cap-msg.err { color: #cf1322; }
.cap-msg.ok { color: #389e0d; }
