/* 全屏遮罩 */
#slider-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 卡片容器 */
.slider-card {
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 32px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.slider-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.slider-card p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* 滑动轨道 */
.slider-track {
  position: relative;
  height: 44px;
  background: #f3f4f6;
  border-radius: 22px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

/* 填充进度 */
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #d1fae5, #6ee7b7);
  border-radius: 22px;
  transition: none;
}

/* 滑块手柄 */
.slider-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  cursor: grab;
}

.slider-thumb:active {
  cursor: grabbing;
}

.slider-thumb svg {
  width: 20px;
  height: 20px;
  fill: #9ca3af;
}

/* 轨道文字 */
.slider-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}

/* 成功状态 */
.slider-track.success .slider-fill {
  width: 100% !important;
  transition: width 0.3s;
}

.slider-track.success .slider-thumb {
  left: calc(100% - 43px) !important;
  transition: left 0.3s;
}

.slider-track.success .slider-thumb svg {
  fill: #10b981;
}

.slider-track.success .slider-text {
  color: #fff;
  font-weight: 600;
}

/* 淡出动画 */
#slider-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

