.slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.slider-value {
  font-size: var(--font-sm);
  color: var(--primary);
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

.slider-track-wrapper {
  position: relative;
}

.slider-input {
  appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* WebKit 轨道 - 已选择部分 */
.slider-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--slider-percent, 50%),
    var(--bg-input) var(--slider-percent, 50%),
    var(--bg-input) 100%
  );
  border-radius: var(--radius-sm);
}

/* Firefox 轨道 */
.slider-input::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

/* Firefox 已选择部分 */
.slider-input::-moz-range-progress {
  background: var(--primary);
  height: 6px;
  border-radius: var(--radius-sm);
}

.slider-input::-webkit-slider-thumb {
  appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgb(54 178 106 / 30%);
}

.slider-input:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--primary-light);
}
