@charset "UTF-8";

/* 贝森洞察门户网站样式 */

/* 全局动画 */
@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-image img {
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.hero-image img:hover {
  transform: translateY(-5px);
}

.hero-img {
  transform-origin: center;
  transition: all 0.5s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-img:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.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 {
  background-color: #fafafa;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-img-medium {
  max-width: 80%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: auto;
}

.feature-img-small {
  max-width: 60%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: auto;
}

.feature-img:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.feature-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(to right, #f97316, #fbbf24);
}

.feature-description {
  color: #64748b;
  line-height: 1.7;
}

/* 价格部分样式 */
.price-section {
  position: relative;
  overflow: hidden;
  /* 修改背景渐变为更丰富的颜色 */
  background: linear-gradient(135deg, #fff8f3 0%, #fff5eb 50%, #fff0e0 100%);
}

.price-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

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

.price-cards {
  position: relative;
}

.price-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.01);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-radius: 0.75rem; /* 确保所有角都是圆角 */
  transition: all 0.4s ease;
}

/* 为新增商品卡片添加橙色顶部边框 */
.price-card:nth-child(1) {
  border-top: 4px solid #f97316; /* 橙色边框 */
}

/* 为更新数据卡片添加橙色顶部边框 */
.price-card:nth-child(2) {
  border-top: 4px solid #f97316; /* 橙色边框 */
}

.price-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  transition: opacity 0.5s ease;
}

/* 为新增商品卡片添加橙色径向渐变 */
.price-card:nth-child(1)::before {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

/* 为更新数据卡片添加橙色径向渐变 */
.price-card:nth-child(2)::before {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.price-icon {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

/* 为新增商品卡片的图标添加特效 */
.price-card:nth-child(1) .price-icon {
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d9 100%);
  box-shadow: 0 8px 16px -4px rgba(249, 115, 22, 0.2);
}

/* 为更新数据卡片的图标添加特效 */
.price-card:nth-child(2) .price-icon {
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d9 100%);
  box-shadow: 0 8px 16px -4px rgba(249, 115, 22, 0.2);
}

/* 移除了图标高亮效果 */
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

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

/* 移除了图标动画效果 */

.price-amount {
  position: relative;
  display: inline-block;
}

.price-amount::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f97316, #fbbf24);
  transition: width 0.3s ease;
}

/* 为更新数据卡片的价格添加不同的渐变 */
.price-card:nth-child(2) .price-amount::after {
  background: linear-gradient(to right, #f97316, #fbbf24);
}

.price-card:hover .price-amount::after {
  width: 80%;
}

/* 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;
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(249, 115, 22, 0.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (min-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-item .feature-content {
    order: 1;
  }

  .feature-item .feature-image {
    order: 2;
  }

  .feature-image {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .mobile-menu-button {
    display: block;
  }
  .desktop-menu {
    display: none;
  }
}

/* 添加字体和描述样式 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* 为固定导航栏留出空间 */
}

.feature-description {
  color: #334155; /* 加深颜色，提高对比度 */
  line-height: 2; /* 增加行高 */
}

/* 移动端菜单样式 */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 50;
  padding: 1rem;
  overflow-y: auto;
}

.mobile-menu .close-menu {
  background: none;
  border: none;
  cursor: pointer;
}

.price-card:nth-child(2) .price-amount {
  color: #f97316; /* 改为橙色 */
}
