@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--tw-shadow-tech-hover);
  }
  .glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
  .gradient-text {
    background: linear-gradient(
      90deg,
      #165dff,
      #1cc88a
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .bg-gradient-tech {
    background: linear-gradient(135deg, #111827 0%, #0b1120 100%);
  }
  .bg-grid {
    position: relative;
  }
  .bg-grid::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
      linear-gradient(rgba(22, 93, 255, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(22, 93, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotate(-5deg);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
  }
  @keyframes gridMove {
    0% {
      transform: rotate(-5deg) translate(0, 0);
    }
    50% {
      transform: rotate(-5deg) translate(-25px, -25px);
    }
    100% {
      transform: rotate(-5deg) translate(0, 0);
    }
  }
  
  .bg-grid-pattern {
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* 客户展示样式 */
.custom-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.mask {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, white, transparent);
  z-index: 10;
}

.mask_left {
  left: 0;
  background: linear-gradient(90deg, white, transparent);
}

.custom-item {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 2rem;
}

.custom-item figure {
  position: relative;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.custom-item figure:hover {
  transform: translateY(-5px);
}

.custom-item_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-item_name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  font-size: 12px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.custom-item figure:hover .custom-item_name {
  transform: translateY(0);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.fadein-bottom {
  animation: fadeInBottom 0.6s ease-out;
}

@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 轮播样式 */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background-color: white !important;
  transform: scale(1.2);
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* 视频弹窗样式 */
.hidden {
  display: none !important;
}

#videoModal {
  backdrop-filter: blur(4px);
}

#videoModal video {
  outline: none;
}

#videoModal .aspect-video {
  position: relative;
}

#closeVideoModal {
  z-index: 100;
  transition: all 0.3s ease;
}

#closeVideoModal:hover {
  transform: scale(1.1);
}