.ai-parameters-settings {
  padding: 20px;
  background: var(--panel-bg-color);
  border-radius: var(--border-radius-medium);
  margin: 15px 0;
  border: 1px solid var(--border-color);
}

.ai-parameters-settings h4 {
  margin: 0 0 20px 0;
  color: var(--text-color-primary);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.parameter-group {
  margin-bottom: 25px;
  padding: 15px;
  background: var(--panel-bg-color-alt);
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color);
}

.parameter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color-primary);
  font-size: 14px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.parameter-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  
  /* 自定义滑动条轨道 - 使用主题绿色 */
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--slider-progress, 50%), var(--border-color) var(--slider-progress, 50%), var(--border-color) 100%);
}

.parameter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: 2px solid var(--panel-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.parameter-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: 2px solid var(--panel-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.slider-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  background: var(--panel-bg-color);
  padding: 4px 8px;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.parameter-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}
.checkbox-label {
  font-weight: 500;
  color: var(--text-color-primary);
  font-size: 14px;
}

.parameter-description {
  font-size: 12px;
  color: var(--text-color-light);
  line-height: 1.4;
  margin-top: 4px;
}

.parameter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.save-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.save-button:hover:not(:disabled) {
  background: var(--primary-color-dark);
}

.save-button:disabled {
  background: var(--text-color-light);
  cursor: not-allowed;
}

.reset-button {
  background: var(--text-color-light);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.reset-button:hover {
  background: var(--text-color-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-parameters-settings {
    padding: 15px;
  }
  
  .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .slider-value {
    align-self: flex-end;
  }
  
  .parameter-actions {
    flex-direction: column;
  }
}