@charset "UTF-8";
/* BasinLens Portal Index Common Styles */

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Hero 部分样式 */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* 轮播图样式 */
.hero-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.hero-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.hero-carousel-item {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-carousel-item.active {
  opacity: 1;
  position: relative;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  gap: 8px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(249, 115, 22, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator.active {
  background-color: rgba(249, 115, 22, 1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  border: none;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.hero-carousel:hover .carousel-btn {
  opacity: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero-section > div {
  position: relative;
  z-index: 1;
}

.hero-img {
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  max-width: 100%;
  transform-origin: center;
  transition: all 0.5s ease;
}

.hero-image img {
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.cta-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease-in-out;
  pointer-events: none; /* 防止伪元素干扰鼠标事件 */
  z-index: 1; /* 确保伪元素在内容之上 */
}

.cta-button:hover::after {
  left: 100%;
}

/* 特点部分样式 */
.feature-section {
  position: relative;
}

/* 卡片样式 */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* 为不同卡片设置不同的主题色 */
.feature-card:nth-child(1) {
  --card-color: #f97316;
  --card-color-light: #fbbf24;
}

.feature-card:nth-child(2) {
  --card-color: #059669;
  --card-color-light: #2dd4bf;
}

.feature-card:nth-child(3) {
  --card-color: #9333ea;
  --card-color-light: #e879f9;
}

/* 图标容器样式 */

/* 卡片悬停效果 */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 链接动画 */
.feature-card a {
  position: relative;
}

.feature-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.feature-card a:hover::after {
  width: 100%;
}

/* CTA 部分样式 */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 0;
}

.cta-section > div {
  position: relative;
  z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动端单列布局 */
  .feature-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 调整卡片内边距 */
  .feature-card {
    padding: 1.5rem !important;
  }

  /* 调整标题大小 */
  .feature-card h3 {
    font-size: 1.25rem !important;
  }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
  /* 两列布局 */
  .feature-section .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 第三个卡片跨两列 */
  .feature-card:nth-child(3) {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .hero-img {
    max-width: 64rem; /* md:max-w-5xl */
  }
}
