.section-box-panel {
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  user-select: none;
}

.section-box-row-buttons {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-box-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  background: var(--bim-section-box-btn-bg);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--bim-text-color);
  min-height: 44px;
  transition: all 0.2s;
}

.section-box-btn:hover {
  background: var(--bim-section-box-btn-hover);
}

.section-box-btn.active {
  background: var(--bim-section-box-btn-active);
  border-color: var(--bim-text-active-color);
  color: var(--bim-text-active-color);
}

.section-box-btn-icon {
  width: 18px;
  height: 18px;
  color: var(--bim-icon-color);
}

.section-box-btn-icon svg {
  width: 100%;
  height: 100%;
}

.section-box-btn-label {
  font-size: 11px;
  white-space: nowrap;
}

/* 滑块区域 */
.section-box-sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 增加行间距防止重叠 */
  padding-top: 16px;
}

.section-box-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* 鼠标移入当前轴时提升层级 */
.section-box-slider:hover {
  z-index: 10;
}

.section-box-slider-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--bim-text-color);
  min-width: 14px;
}

.section-box-slider-track {
  position: relative;
  flex: 1;
  height: 4px;
  /* 轨道变细 */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.section-box-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--bim-primary-color);
  border-radius: 2px;
  pointer-events: none;
  /* 防止遮挡手柄点击 */
}

.section-box-slider-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  /* 手柄变小 */
  height: 14px;
  background: #fff;
  border: 2px solid var(--bim-primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 5;
  touch-action: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-box-slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.2);
}

.section-box-slider-handle.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--bim-primary-color);
}

/* 数值显示气泡 */
.section-box-slider-handle::after {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.section-box-slider-handle:hover::after,
.section-box-slider-handle.dragging::after {
  opacity: 1;
}