/* 拼图滑块验证码弹窗（接口版）
   基础滑块样式见 ../../style.css，这里只补弹窗与加载态 */

.markbox {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.45);
}

.markbox._hidden {
  display: none !important;
}

.slidbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 320px;
  max-width: calc(100% - 32px);
  height: 240px;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.slidbox h3 {
  font-size: 18px;
  font-weight: 500;
  display: block;
  float: left;
  margin: 12px 0 0 28px;
  color: #333;
}

.slidbox .slider-close {
  font-size: 18px;
  display: block;
  float: right;
  margin: 12px 28px 0 0;
  cursor: pointer;
  font-family: system-ui;
  color: #999;
  line-height: 1;
}

.slidbox .slider-close:hover {
  color: #333;
}

#slideBar {
  position: absolute;
  top: 78%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
}

.slide-loading {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 116px;
  line-height: 116px;
  text-align: center;
  background: #f7f9fa;
  color: #999;
  font-size: 13px;
  z-index: 20;
}

/* 覆盖 style.css：拼图块初始位置归零，图片按 50x50 原尺寸显示 */
.slidbox .slide-block {
  left: 0;
  opacity: 1;
  background-size: 50px 50px;
  background-position: 0 0;
}

.slidbox .slide-img {
  background: #f7f9fa;
}

@media only screen and (max-width: 640px) {
  .slidbox {
    width: 300px;
    max-width: calc(100% - 24px);
    height: 236px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .slidbox h3 {
    margin-left: 20px;
    font-size: 17px;
  }
  .slidbox .slider-close {
    margin-right: 14px;
    padding: 6px 8px;
  }
  #slideBar {
    top: 80%;
  }
  /* 放大触摸目标，避免移动端拖不动 */
  .slidbox .scroll-bar {
    height: 46px !important;
    line-height: 46px !important;
  }
  .slidbox .slide-btn {
    width: 46px !important;
    height: 46px !important;
    touch-action: none;
  }
  .slidbox .slide-title {
    left: 45px !important;
    width: 190px !important;
    font-size: 15px !important;
  }
  /* 防止触摸时选中/拖拽图片本身 */
  .slidbox .slide-img {
    -webkit-user-drag: none;
    pointer-events: none;
  }
}
