/* 企业荣誉响应式布局增强 */
:root {
  --honor-item-height: 320px;
  --honor-item-width: 250px;
  --honor-duration: 30s;
  --honor-items: 10;
}

/* 优化轮播容器在不同设备上的显示 */
.partner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  border-radius: 8px;
}

/* 优化轮播轨道 */
.partner-track {
  display: flex;
  width: calc(var(--honor-item-width) * var(--honor-items) * 2);
  animation: scroll var(--honor-duration) linear infinite;
}

/* 荣誉项目样式增强 */
.honor-item {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.honor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.honor-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 触摸设备交互样式 */
.touch-active {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 紧凑视图样式 */
.compact-view .partner-item {
  padding: 5px;
}

.compact-view .honor-item {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.compact-view .partner-track {
  margin-top: 10px !important;
}

/* 增强响应式布局 */
@media (max-width: 1440px) {
  :root {
    --honor-item-width: 220px;
    --honor-item-height: 280px;
  }
}

@media (max-width: 1200px) {
  :root {
    --honor-item-width: 180px;
    --honor-item-height: 240px;
  }
  
  .partner-carousel {
    padding: 25px 0;
  }
}

@media (max-width: 992px) {
  :root {
    --honor-item-width: 160px;
    --honor-item-height: 200px;
    --honor-duration: 25s;
  }
  
  .partner-item {
    padding: 8px;
  }
  
  .partner-item img {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  :root {
    --honor-item-width: 140px;
    --honor-item-height: 180px;
    --honor-duration: 20s;
  }
  
  .partner-carousel {
    padding: 20px 0;
  }
  
  .partner-track {
    margin-top: 15px !important;
  }
  
  .partner-item {
    padding: 6px;
  }
  
  .partner-item img {
    padding: 6px;
  }
}

@media (max-width: 576px) {
  :root {
    --honor-item-width: 120px;
    --honor-item-height: 160px;
    --honor-duration: 15s;
  }
  
  .partner-carousel {
    padding: 15px 0;
  }
  
  .partner-track {
    margin-top: 10px !important;
  }
  
  .partner-item {
    padding: 5px;
  }
  
  .partner-item img {
    padding: 5px;
  }
  
  .index-tlt1 h2 {
    font-size: 24px;
  }
  
  .index-tlt1 p {
    font-size: 18px;
  }
}

/* 增强触摸设备上的交互体验 */
@media (hover: none) {
  .partner-track:hover {
    animation-play-state: running;
  }
  
  .partner-item:active {
    transform: translateY(-5px);
  }
}

/* 优化加载动画 */
.partner-carousel {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}