.mode-context-settings {
  margin-top: 15px;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 6px;
  border: 1px solid #444;
}

.mode-context-settings h4 {
  margin: 0 0 15px 0;
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
}

.setting-group {
  margin-bottom: 15px;
}

.setting-group label {
  display: block;
  margin-bottom: 8px;
  color: #bbb;
  font-size: 13px;
  font-weight: 500;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.context-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.context-slider:hover {
  opacity: 1;
}

.context-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: 2px solid #2a2a2a;
  margin-top: -5px; /* 居中拇指 */
  box-shadow: none; /* 移除可能存在的默认阴影 */
}

.context-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: 2px solid #2a2a2a;
  box-shadow: none; /* 移除可能存在的默认阴影 */
}

/* 移除所有可能的默认蓝色样式 */
.context-slider::-webkit-slider-thumb:focus,
.context-slider::-moz-range-thumb:focus {
  outline: none;
  box-shadow: none;
}

.context-slider::-webkit-slider-thumb:active,
.context-slider::-moz-range-thumb:active {
  background: #45a049; /* 点击时稍深的绿色 */
}

/* 修改滑动条填充颜色为绿色 */
.context-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--slider-progress, 50%), #555 var(--slider-progress, 50%), #555 100%);
  -webkit-appearance: none; /* 完全重置Webkit默认样式 */
  appearance: none;
}

.context-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--slider-progress, 50%), #555 var(--slider-progress, 50%), #555 100%);
  height: 6px;
  border-radius: 3px;
  border: none; /* 移除可能的边框 */
  box-shadow: none; /* 移除可能的阴影 */
}


.context-slider::-moz-range-track {
  background: #555;
  height: 6px;
  border-radius: 3px;
}

.context-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: 2px solid #2a2a2a;
}

.context-slider::-moz-range-progress {
  background: #4CAF50;
  height: 6px;
  border-radius: 3px;
}

.slider-value {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: #4CAF50;
  font-size: 12px;
}

.slider-description {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  line-height: 1.3;
}
