/* 
 * 通用轮播组件样式
 * 包含轮播控制按钮和进度条的默认样式
 */

/* 轮播控制容器 */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* 进度条轨道 */
.carousel-progress-track {
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

/* 进度条填充 */
.carousel-progress-fill {
  height: 100%;
  background: #e72e43;
  border-radius: 9999px;
  transition:
    width 0.35s,
    margin-left 0.35s;
}

/* 轮播按钮 */
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.carousel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: #6b7280;
  fill: none;
}

.carousel-btn.prev svg {
  transform: scaleX(-1);
}

/* 响应式样式 */
@media (max-width: 600px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-progress-track {
    max-width: 120px;
  }
}
