/* 服务页面样式 */

/* 动画定义 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 动画类 */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

/* 延迟动画 */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* 滚动触发动画 */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* 服务Banner样式 */
.services-banner {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.banner-text p:first-child {
  color: #666;
  text-transform: uppercase;
  
  font-size:0.8rem;
  line-height: 1.8;
  color: #b8d626;
  background-color: #f2f4df;
  font-weight: bold;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 1.2rem;
  animation-delay: 0.1s;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.banner-text h1 {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  padding-bottom: 10px;
  animation-delay: 0.3s;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}
.banner-text h1.color {
  
  color: var(--primary-color);
}

.banner-text p:last-child {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  animation-delay: 0.5s;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.banner-image {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
  animation-delay: 0.4s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.banner-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.banner-image img:hover {
  transform: scale(1.05);
}

/* 合作伙伴样式 */
.partners {
  padding: 80px 0;
  background-color: #fff;
}

.partners .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-title {
  margin-bottom: 50px;
  width:100%;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
}

.partners-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.partners-title h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.partners-title h2:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.partners-title h2:hover::after {
  opacity: 1;
  width: 80px;
}

.partners-title p {
  font-size: 16px;
  color: #666;
  margin: 0 auto;
  transition: color 0.3s ease;
}

.partners-title p:hover {
  color: #333;
}

/* 合作伙伴滚动容器 */
.partners-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  overflow: hidden;
}

/* 合作伙伴行样式 */
.partners-row {
  display: flex;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* 自动滚动动画 */
.partners-row .scroll-content {
  display: flex;
  gap: 30px;
  animation: scroll 25s linear infinite;
  padding: 20px 0;
}

/* 鼠标悬停暂停 */
.partners-row:hover .scroll-content {
  animation-play-state: paused;
}

/* 滚动动画 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* 反向滚动 */
.partners-row.reverse .scroll-content {
  animation-direction: reverse;
}



/* 隐藏滚动条，但保持滚动功能 */
.partners-row::-webkit-scrollbar {
  display: none;
}

/* 针对Firefox的隐藏滚动条 */
.partners-row {
  scrollbar-width: none;
}

/* 合作伙伴Logo样式 */
.partner-logo {
  flex: 0 0 auto;
  width: 200px;
  height: 100px;
  background-color: #f8f9fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  animation: zoomIn 0.6s ease forwards;
}

/* 为不同行的logo设置不同的动画延迟 */
.partners-row:nth-child(1) .partner-logo {
  animation-delay: calc(var(--i) * 0.1s);
}

.partners-row:nth-child(2) .partner-logo {
  animation-delay: calc(var(--i) * 0.1s + 0.5s);
}

.partners-row:nth-child(3) .partner-logo {
  animation-delay: calc(var(--i) * 0.1s + 1s);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* 合作伙伴信息部分 */
.partner-info {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.partner-info .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.partner-info-content {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  padding: 0 20px;
}

.partner-info-item {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 15px;
  background-color: #fff;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 第一个项目宽度50%，主题色背景，深色文本 */
.partner-info-item:first-child {
  width: 50%;
  color: #333;
  animation-delay: 0.2s;
}

/* 第二个项目宽度25%，深色背景，主题色文本 */
.partner-info-item:nth-child(2) {
  background-color: #333;
  color: var(--primary-color);
  width: 25%;
  animation-delay: 0.4s;
}



/* 文本样式 */
.partner-info-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
  line-height: 1;
  transition: transform 0.3s ease;
}

.partner-info-item:hover h3 {
  transform: scale(1.05);
}

.partner-info-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 5px 0;
  transition: opacity 0.3s ease;
}

.partner-info-item:hover p {
  opacity: 0.9;
}

/* 第三个项目宽度25%，主题色背景，深色文本 */
.partner-info-item:last-child {
  width: 25%;
  animation-delay: 0.6s;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 36px;
  }

  .banner-text h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .partner-logo {
    width: 150px;
    height: 80px;
  }

  .partners-row {
    gap: 20px;
  }

  /* 合作伙伴信息响应式 */
  .partner-info-content {
    flex-direction: column;
  }

  .partner-info-item:first-child,
  .partner-info-item:nth-child(2),
  .partner-info-item:last-child {
    width: 100%;
  }

  .partner-info-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .services-banner {
    padding: 40px 0;
  }

  .banner-text h1 {
    font-size: 28px;
  }

  .banner-text p:last-child {
    font-size: 16px;
  }

  .partners {
    padding: 60px 0;
  }

  .partners-title h2 {
    font-size: 28px;
  }

  .partner-logo {
    width: 120px;
    height: 70px;
  }
}