/* ========================================================
   Argo / Longbow SliderCaptcha CSS
   适配采购价格可视化系统暗色 HUD 科技风
   ======================================================== */

.slidercaptcha {
  position: relative;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.slidercaptcha canvas:first-child {
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: #070d1e;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(34, 211, 238, 0.05);
  display: block;
}

.slidercaptcha .block {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.slidercaptcha .block:active {
  cursor: grabbing;
}

/* 刷新按钮 */
.slidercaptcha .refreshIcon {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(4, 10, 26, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #22d3ee;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.slidercaptcha .refreshIcon:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
  transform: rotate(90deg);
}

/* 内置刷新图标（无需 FontAwesome 字体） */
.slidercaptcha .refreshIcon::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid #22d3ee;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
}

.slidercaptcha .refreshIcon::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  border-top: 4px solid #22d3ee;
  border-left: 4px solid transparent;
}

/* 滑动轨道容器 */
.sliderContainer {
  position: relative;
  text-align: center;
  line-height: 40px;
  height: 40px;
  margin-top: 10px;
  background: rgba(4, 10, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.sliderbg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: transparent;
}

/* 进度遮罩 */
.sliderMask {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.25), rgba(129, 140, 248, 0.25));
  border-radius: 8px 0 0 8px;
  transition: background 0.2s ease;
}

/* 滑块按钮 */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 38px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  border: 1px solid rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
  cursor: grab;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

.slider:active {
  cursor: grabbing;
}

.slider:hover {
  background: linear-gradient(135deg, #38bdf8, #a5b4fc);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

/* 滑块内箭头图标 */
.sliderIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #fff;
  font-style: normal;
}

.sliderIcon::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2.2px solid #fff;
  border-right: 2.2px solid #fff;
  transform: rotate(45deg);
  margin-left: -2px;
}

/* 轨道提示文字 */
.sliderText {
  position: relative;
  font-size: 12px;
  color: var(--dim, #94a3b8);
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}

/* 激活状态 */
.sliderContainer_active .slider {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.75);
}

.sliderContainer_active .sliderText {
  opacity: 0.15;
}

/* 成功状态 */
.sliderContainer_success .slider {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.6) !important;
}

.sliderContainer_success .sliderMask {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), rgba(52, 211, 153, 0.25)) !important;
}

.sliderContainer_success .sliderIcon::before {
  width: 6px;
  height: 11px;
  border: none;
  border-bottom: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-left: 0;
}

/* 失败状态 */
.sliderContainer_fail .slider {
  background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6) !important;
}

.sliderContainer_fail .sliderMask {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.35), rgba(245, 158, 11, 0.2)) !important;
}

.sliderContainer_fail .sliderIcon::before {
  width: 12px;
  height: 2.5px;
  background: #fff;
  border: none;
  transform: rotate(45deg);
  position: relative;
  margin-left: 0;
}

.sliderContainer_fail .sliderIcon::after {
  content: "";
  display: block;
  position: absolute;
  width: 12px;
  height: 2.5px;
  background: #fff;
  transform: rotate(-45deg);
}

.sliderContainer_active .sliderText,
.sliderContainer_success .sliderText,
.sliderContainer_fail .sliderText {
  opacity: 0;
}

.slidercaptcha .text-danger {
  color: #f87171 !important;
}
