/* 基础动画设置 */
html {
  scroll-behavior: smooth;
}

/* 轮播图动画 */
.carousel-slide {
  transition: transform 0.5s ease-in-out;
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn 0.8s ease-in forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 延迟淡入 */
.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;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-slide h2 {
    font-size: 1.8rem !important;
  }
  
  .carousel-slide p {
    font-size: 1rem !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-6 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
