/* Yousj CAPTCHA 小部件样式：自包含，无外部依赖 */
.yousj-captcha {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  width: 340px;
  max-width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}
.yousj-captcha h3 { margin: 0 0 4px; font-size: 16px; }
.yousj-captcha .yc-sub { font-size: 12px; color: #888; margin-bottom: 12px; }
.yousj-captcha .yc-q {
  font-size: 24px; font-weight: 700; letter-spacing: 1px;
  margin: 10px 0; text-align: center;
}
.yousj-captcha input[type="text"] {
  width: 100%; box-sizing: border-box;
  font-size: 18px; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 8px; outline: none;
}
.yousj-captcha input[type="text"]:focus { border-color: #1677ff; }
.yousj-captcha button {
  width: 100%; margin-top: 12px; padding: 11px;
  font-size: 15px; border: 0; border-radius: 8px;
  background: #1677ff; color: #fff; cursor: pointer;
}
.yousj-captcha button:disabled { background: #b9d2f5; cursor: wait; }
.yousj-captcha button.yc-ghost {
  background: #f0f0f0; color: #333; margin-top: 8px;
}
.yousj-captcha .yc-msg { min-height: 20px; font-size: 13px; color: #d4380d; margin-top: 8px; }
.yousj-captcha .yc-msg.ok { color: #389e0d; }
.yousj-captcha .yc-board {
  position: relative; width: 100%; aspect-ratio: 1000 / 750;
  border: 1px dashed #bbb; border-radius: 8px;
  background: #fafafa; overflow: hidden; touch-action: none;
}
.yousj-captcha .yc-slot {
  position: absolute; width: 15%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.yousj-captcha .yc-slot img { width: 100%; display: block; }
.yousj-captcha .yc-tile {
  position: absolute; width: 15%; cursor: grab;
  transform: translate(-50%, -50%); touch-action: none; z-index: 2;
}
.yousj-captcha .yc-tile:active { cursor: grabbing; }
.yousj-captcha .yc-tile img { width: 100%; display: block; }
.yousj-captcha .yc-done { text-align: center; padding: 12px 0 4px; font-size: 16px; color: #389e0d; }
.yousj-captcha .yc-hp { position: absolute; left: -9999px; top: -9999px; }
