/* 轮播图修复样式 */
/* 确保轮播图正常显示，避免JS错误影响视觉效果 */

.slider2 {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.tp-banner-container {
  width: 100%;
  position: relative;
  padding: 0;
  margin: 0;
}

.tp-banner {
  width: 100%;
  position: relative;
  height: 500px;
  overflow: hidden;
}

.tp-banner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.tp-banner li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.tp-banner li:first-child {
  opacity: 1;
  z-index: 2;
}

.tp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-bannertimer {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  z-index: 200;
  bottom: 0;
  overflow: hidden;
}

.tp-bannertimer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #667eea;
  animation: timer-progress 5s linear infinite;
}

@keyframes timer-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* 轮播图导航按钮 */
.tp-leftarrow,
.tp-rightarrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.tp-leftarrow {
  left: 20px;
}

.tp-rightarrow {
  right: 20px;
}

.tp-leftarrow:hover,
.tp-rightarrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* 轮播图指示器 */
.tp-bullets {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.tp-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tp-bullet.selected,
.tp-bullet:hover {
  background: #667eea;
  transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tp-banner {
    height: 300px;
  }
  
  .tp-leftarrow,
  .tp-rightarrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .tp-leftarrow {
    left: 10px;
  }
  
  .tp-rightarrow {
    right: 10px;
  }
  
  .tp-bullet {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .tp-banner {
    height: 250px;
  }
  
  .tp-bannertimer {
    height: 3px;
  }
}

/* Owl Carousel 修复 */
.owl-carousel {
  position: relative;
  touch-action: pan-y;
}

.owl-carousel .owl-item {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 防止图片拖拽 */
.owl-carousel img {
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* 修复可能的布局问题 */
.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}

.owl-carousel .owl-nav button {
  pointer-events: auto;
  position: absolute;
  background: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transition: all 0.3s ease !important;
}

.owl-carousel .owl-nav button.owl-prev {
  left: 10px;
}

.owl-carousel .owl-nav button.owl-next {
  right: 10px;
}

.owl-carousel .owl-nav button:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1) !important;
}

/* 确保内容始终可见 */
.business-section,
.team-section2,
.partners-section {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 加载状态样式 */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: #f5f5f5;
  color: #666;
  font-size: 16px;
}

.loading-placeholder:before {
  content: '正在加载...';
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}  