/* partners.css - 合作伙伴模块样式 */

/* 合作伙伴模块样式 */
.partners-section {
  padding: 80px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题区域 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  flex: 1;
  min-width: 300px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1e293b;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* 轮播控制按钮 */
.slider-controls {
  display: flex;
  gap: 10px;
}

.control-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  background: white;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.control-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.control-btn:active {
  transform: translateY(0);
}

/* 合作伙伴轮播容器 */
.partners-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.partners-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 30px;
  animation: slideLeft 30s linear infinite;
  will-change: transform;
}

/* 暂停动画的类 */
.slider-track.paused {
  animation-play-state: paused;
}

/* 合作伙伴项目 */
.partner-item {
  flex: 0 0 auto;
  width: 180px;
  transition: all 0.3s ease;
}

.partner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.partner-link:hover::before {
  opacity: 1;
}

.partner-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}

.partner-link:hover .partner-logo {
  transform: scale(1.1);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-link:hover .partner-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
}

.partner-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.partner-link:hover .partner-name {
  color: #3b82f6;
}

/* 推荐徽章 */
.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  z-index: 1;
}

/* 空状态 */
.empty-partners {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  width: 100%;
}

.empty-partners svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-partners p {
  font-size: 1rem;
  margin: 0;
  color: #64748b;
}

/* 动画 */
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .partners-section {
    padding: 50px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-left {
    min-width: 100%;
  }
  
  .header-right {
    width: 100%;
  }
  
  .slider-controls {
    justify-content: center;
  }
  
  .partner-item {
    width: 150px;
  }
  
  .partner-logo {
    width: 60px;
    height: 60px;
  }
  
  .partner-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .partner-item {
    width: 130px;
  }
  
  .partner-link {
    padding: 15px;
  }
}