/* 滑块拼图验证组件（PC / 手机通用）：直接在图片上拖动拼图块 */
.sc-box { max-width: 300px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.sc-imgwrap { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #e0ecff; line-height: 0; touch-action: none; }
.sc-img { display: block; width: 100%; height: auto; }
.sc-piece { position: absolute; left: 0; top: 0; cursor: -webkit-grab; cursor: grab; z-index: 3; border-radius: 7px; box-shadow: 0 2px 6px rgba(15,23,42,.28); -webkit-user-drag: none; }
.sc-piece:active { cursor: -webkit-grabbing; cursor: grabbing; }
.sc-tipbar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; line-height: 22px; text-align: center; font-size: 11px; color: #334155; background: rgba(255,255,255,.75); z-index: 2; pointer-events: none; }
.sc-tipbar.is-ok { color: #2f855a; background: rgba(220,252,231,.85); font-weight: bold; }
.sc-loading { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; font-size: 12px; color: #64748b; background: #eef4ff; z-index: 4; }
.sc-box.is-ok .sc-piece { box-shadow: 0 0 0 2px #2f855a, 0 1px 4px rgba(0,0,0,.2); }
.sc-box.is-bad .sc-imgwrap { -webkit-animation: sc-shake .3s; animation: sc-shake .3s; }
@-webkit-keyframes sc-shake { 0%,100%{ -webkit-transform: translateX(0) } 25%{ -webkit-transform: translateX(-5px) } 75%{ -webkit-transform: translateX(5px) } }
@keyframes sc-shake { 0%,100%{ transform: translateX(0) } 25%{ transform: translateX(-5px) } 75%{ transform: translateX(5px) } }
.sc-msg { margin-top: 5px; font-size: 12px; color: #c53030; min-height: 15px; }

@media (max-width: 480px) {
  .sc-box { max-width: 100%; }
  .sc-tipbar { height: 20px; line-height: 20px; font-size: 11px; }
}
