/* 工厂参观页面专用样式 */
.factory-tour-section {

  box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

/* 标题区域样式 */
.section-header {
  text-align: center;
  padding: 10px 5px;
}

.section-header .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;  
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  margin: 8px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* 修复顶部大背景图区域样式 */
.hero-section {
  width: 100%;
  overflow: hidden; /* 防止图片溢出容器 */
  position: relative;
}
.hero-section {
  min-height: auto;
}
.hero-bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image {
  width: 100%; /* 确保图片宽度充满容器 */
  height: auto; /* 保持图片原有比例 */
  object-fit: cover; /* 图片覆盖容器，保持比例裁剪 */
  display: block; /* 移除图片底部间隙 */
  max-width: 100%; /* 确保不会超过容器宽度 */
}

/* 如果需要全屏背景图，可以添加以下样式 */
.fullscreen-hero .hero-image {
  height: 100vh; /* 高度为视口高度 */
  object-position: center; /* 图片居中显示 */
}
/* 黑色背景轮播容器 */
.black-carousel-container {
  background-color: #000;
  padding: 60px 0;
  width: 100%;
  overflow: hidden;
  margin: 0 auto; /* 确保容器居中 */
  clear: both; /* 清除浮动 */
}

.carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

#black-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: auto; /* 确保高度自适应内容 */
}

.carousel-item {
  display: none;
  width: 100%;
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-item.active {
  display: block;
}

.carousel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: 20px;
}

.carousel-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 4px;
}

.carousel-text {
  text-align: center;
  max-width: 800px;
}

.carousel-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.carousel-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* 轮播控制按钮 - 确保可见 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

//* 图片轮播区域 */
.images-carousel-section {
  padding: 60px 20px;
  position: relative; /* 确保指示器可以正确定位 */
}
.container {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 5px;
  padding: 5px 2px;
  position: relative;	
	
}
#images-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* 增加底部间距，确保指示器不被遮挡 */
}

.images-carousel-item {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease-in-out;
}

.images-carousel-item.active {
  display: block;
}

.images-carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 轮播指示器 - 重点修复部分 */
.carousel-indicators {
  display: flex !important; /* 强制显示flex布局 */
  justify-content: center;
  gap: 10px;
  padding: 20px 0; /* 增加内边距，确保可见 */
  margin: 0 auto; /* 居中显示 */
  position: relative;
  z-index: 10; /* 确保在其他元素上方 */
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ccc; /* 明确设置背景色 */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1 !important; /* 确保不透明 */
}
.indicator.active {
  background: #333; /* 激活状态颜色 */
  width: 24px; /* 激活状态变为更长的横线 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-indicators {
    gap: 8px;
    padding: 15px 0;
  }
  
  .indicator {
    width: 10px;
    height: 3px;
  }
  
  .indicator.active {
    width: 20px;
  }
}


/* 底部区域确保显示 */



/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .carousel-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .carousel-text h3 {
    font-size: 1.5rem;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .black-carousel-container,
  .images-carousel-section {
    padding: 5px 0;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 20px 10px;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .carousel-text h3 {
    font-size: 1.3rem;
  }
  
  .carousel-text p {
    font-size: 1rem;
  }
  
  .indicator {
    width: 10px;
    height: 3px;
  }
  
  .indicator.active {
    width: 20px;
  }
}
