/* 自定义样式 */

/* 轮播图样式 */
.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: ease-in-out;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: transform, opacity;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 分页指示器样式 */
.swiper-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background-color: rgba(156, 163, 175, 0.5) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease-in-out !important;
  opacity: 0.8 !important;
  border: none !important;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  background-color: #2563eb !important;
  opacity: 1 !important;
  transform: scale(1.5) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

/* 轮播图过渡效果 */
.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.swiper-slide-next,
.swiper-slide-prev {
  opacity: 0.8;
  transform: scale(0.98);
}

/* 平滑过渡 */
.swiper-slide {
  transition-property: transform, opacity;
  transition-duration: 800ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 触摸和鼠标交互优化 */
.swiper-wrapper {
  touch-action: pan-y;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .swiper-slide {
    height: 80vh;
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .swiper-pagination-bullet-active {
    transform: scale(1.3);
  }
}

/* 导航栏样式 */
nav {
  height: 80px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .text-xl {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

nav .text-xl:hover {
  transform: scale(1.05);
}

nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

nav a.text-blue-600 {
  color: #2563eb;
}

nav a.text-blue-600::after {
  width: 100%;
}

/* 产品卡片样式 */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
  transition: all 0.3s ease;
}

/* 表单样式 */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2563eb;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-item {
    height: 80vh;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
