* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
[v-cloak] {
  display: none;
}
/* 导航栏滚动效果 */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航菜单样式 */
nav ul {
  list-style: none;
}

nav a {
  text-decoration: none;
  display: inline-block;
}

/* 下拉菜单样式 - 全宽居中显示 */
.nav-scrolled .group .dropdown-menu {
  border-color: #e5e6eb;
}
.header-spacer {
  height: 80px;
}
/* 修复导航栏滚动时下拉菜单的z-index问题 */
header#navbar.nav-scrolled {
  z-index: 50;
}

header#navbar .group .dropdown-menu {
  z-index: 40;
}

/* 全宽下拉菜单样式（无动效） */
header#navbar .group .dropdown-menu {
  position: fixed !important;
  top: 68px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

/* 下拉菜单内容居中 */
header#navbar .group .dropdown-menu > div {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* 鼠标悬停时立即显示，无动画效果 */
header#navbar .dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 确保导航项在导航栏滚动时的样式一致性 */
.nav-scrolled nav a {
  color: #1d2129;
}

/* 增加下拉菜单的阴影效果  */
header#navbar .group .dropdown-menu {
  box-shadow: 0 14px 16px rgba(0, 0, 0, 0.08);
}

/* 左侧产品归类样式 */
header#navbar .group .dropdown-menu .bg-gray-50 {
  background-color: #f7f8fa;
}

header#navbar .group .dropdown-menu .border-r {
  border-right: 1px solid #e5e6eb;
}

/* 产品归类项样式 */
header#navbar .group .dropdown-menu .flex.items-center.p-2 {
  display: flex;
  align-items: center;
  padding: 8px;
}

header#navbar .group .dropdown-menu .rounded-md {
  border-radius: 6px;
}

header#navbar .group .dropdown-menu .text-gray-700 {
  color: #1d2129;
}

header#navbar .group .dropdown-menu .hover\:bg-primary\/10:hover {
  background-color: rgba(0, 102, 255, 0.1);
}

header#navbar .group .dropdown-menu .font-medium {
  font-weight: 500;
}

header#navbar .group .dropdown-menu .mr-2 {
  margin-right: 8px;
}

/* 产品卡片样式 */
header#navbar .group .dropdown-menu .block.p-4 {
  display: block;
  padding: 16px;
}

header#navbar .group .dropdown-menu .border {
  border: 1px solid #e5e6eb;
}

header#navbar .group .dropdown-menu .rounded-lg {
  border-radius: 8px;
}

header#navbar .group .dropdown-menu .hover\:shadow-md:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header#navbar .group .dropdown-menu {
  transition: all 100ms ease;
}

header#navbar .group .dropdown-menu .text-xl {
  font-size: 20px;
}

header#navbar .group .dropdown-menu .mb-2 {
  margin-bottom: 8px;
}

header#navbar .group .dropdown-menu .text-gray-900 {
  color: #0a0a0a;
}

header#navbar .group .dropdown-menu .mb-1 {
  margin-bottom: 4px;
}

header#navbar .group .dropdown-menu .text-sm {
  font-size: 14px;
}

header#navbar .group .dropdown-menu .text-gray-500 {
  color: #86909c;
}

/* 底部链接样式 */
header#navbar .group .dropdown-menu .flex.justify-between {
  display: flex;
  justify-content: space-between;
}

header#navbar .group .dropdown-menu .items-center {
  align-items: center;
}

header#navbar .group .dropdown-menu .pt-4 {
  padding-top: 16px;
}

header#navbar .group .dropdown-menu .border-t {
  border-top: 1px solid #f2f3f5;
}

header#navbar .group .dropdown-menu .ml-1 {
  margin-left: 4px;
}

/* 修复导航栏高度，确保下拉菜单正确对齐 */
header#navbar {
  min-height: 64px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 吸顶促销栏样式 */
.sticky-header {
  position: relative;
  z-index: 40;
  transition: all 0.3s ease;
}

/* 吸顶状态样式 */
.sticky-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 吸顶占位元素，防止页面跳动 */
.sticky-header-placeholder {
  display: none;
}

.sticky-header.sticky + .sticky-header-placeholder {
  display: block;
  height: 48px; /* 与吸顶元素高度一致 */
}

/* 产品分类导航激活效果 */
.sticky-header a.active {
  background-color: #3b82f6; /* 更深的蓝色作为激活状态 */
  font-weight: 600;
  transition: all 0.3s ease;
}

.sticky-header a:not(.active):hover {
  background-color: #3b82f6; /* 悬停时的颜色 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #1d2129;
  overflow-x: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  .carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .slide-main-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
  }

  .carousel-slide.active {
    opacity: 1;
  }

  /* 背景渐变 */
  .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
  }

  /* 内容区域 */
  .slide-content {
    position: relative;
    z-index: 3;
    flex: 1;
  }

  .content-wrapper {
    animation: contentFadeIn 0.8s ease-in-out;
  }

  /* 内容元素逐个动画 - 只在活动幻灯片触发 */
  .carousel-slide.active .badge {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
  }

  .carousel-slide.active .slide-title {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
  }

  .carousel-slide.active .slide-description {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
  }

  .carousel-slide.active .feature-list {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
  }

  .carousel-slide.active .slide-actions {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
  }

  /* 图片从右向左动画 - 只在活动幻灯片触发 */
  .carousel-slide.active .slide-image {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
  }

  .slide-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .slide-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
  }

  .feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
  }

  .feature-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
  }

  .slide-actions {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  /* 按钮样式 */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
  }

  /* 图片/图标区域 */
  .slide-image {
    position: relative;
    z-index: 2;
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tech-icon {
    font-size: 200px;
    opacity: 0.8;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    /* animation: float 3s ease-in-out infinite; */
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  /* 控制按钮 */
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
  }

  .carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .carousel-prev {
    left: 50%;
    margin-left: -720px;
  }

  .carousel-next {
    right: 50%;
    margin-right: -720px;
  }

  /* 指示器 */
  .carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
  }

  .dot.active {
    background: white;
    transform: scale(1.4);
  }

  .dot:hover {
    background: rgba(255, 255, 255, 0.8);
  }

  /* 响应式设计 */
  @media (max-width: 1440px) {
    .carousel-prev {
      left: 40px;
      margin-left: 0;
    }

    .carousel-next {
      right: 40px;
      margin-right: 0;
    }
  }

  @media (max-width: 1200px) {
    .slide-main-container {
      padding: 0 60px;
    }

    .slide-title {
      font-size: 48px;
    }

    .slide-image {
      flex: 0 0 300px;
    }

    .tech-icon {
      font-size: 150px;
    }
  }

  @media (max-width: 768px) {
    .carousel-container {
      height: 400px;
    }

    .slide-main-container {
      flex-direction: column;
      justify-content: center;
      text-align: center;
      padding: 0 30px;
    }

    .slide-content {
      max-width: 100%;
      margin-bottom: 40px;
    }

    .slide-title {
      font-size: 36px;
    }

    .slide-description {
      font-size: 18px;
    }

    .slide-image {
      flex: 0 0 auto;
    }

    .tech-icon {
      font-size: 100px;
    }

    .feature-list {
      justify-content: center;
    }

    .slide-actions {
      justify-content: center;
    }

    .carousel-control {
      width: 40px;
      height: 40px;
    }

    .carousel-prev {
      left: 20px;
      margin-left: 0;
    }

    .carousel-next {
      right: 20px;
      margin-right: 0;
    }
  }

  @media (max-width: 480px) {
    .carousel-container {
      height: 450px;
    }

    .slide-title {
      font-size: 28px;
    }

    .slide-description {
      font-size: 16px;
    }

    .feature-item {
      font-size: 14px;
    }

    .btn {
      padding: 12px 24px;
      font-size: 14px;
    }

    .tech-icon {
      font-size: 80px;
      display: none;
    }

    .carousel-dots {
      bottom: 30px;
    }

    .dot {
      width: 8px;
      height: 8px;
    }
  }
}
/* 动画效果 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 核心业务卡片样式 */
.business-cards {
  display: flex;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.business-card {
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  /* width: calc(60% - 13.333px); */
  width: 60%;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  border: 4px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 400px;
  margin-right: 10px;
}
/* 初始状态 - 第一个卡片展开 */
.business-card:first-child {
  width: 60%;
}
.business-card:last-child {
  margin-right: 0;
}
/* 卡片展开状态 */
.business-card:hover,
.business-card.active {
  width: 60%;
  z-index: 10;
}
/* 其他卡片收缩状态 */
.business-card:not(:hover):not(.active) {
  width: 20%;
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 119, 255, 0.1);
}
/* 热销产品样式 */
.hot-item:not(:last-child)::before {
  content: "";
  background-color: transparent;
  position: absolute;
  border-left: 1px dotted #bbb;
  bottom: 0;
  top: 0;
  right: 0;
  width: 1px;
}
.home-sale-wrap:nth-child(odd) {
  background-color: #fff;
}
.home-sale-wrap:nth-child(even) {
  background-color: #f8fafc;
}

/* product list */
.title-bg-clip {
  width: auto;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
  }

  .carousel-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}
/* 减少动画偏好 */
/* @media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.2s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
} */
/* 2. 产品卡片包装器 - 关键：设置固定高度，确保布局稳定 */
.product-card-wrapper {
  position: relative;
  height: 280px; /* 设置一个足够大的固定高度 */
  z-index: 9;
  transition: all 0.3s ease;
}
/* 产品描述容器样式 */
.product-description-container {
  position: relative;
  max-height: 6em; /* 5行文字高度 - 使用max-height替代height */
  overflow: hidden;
  transition: all 0.3s ease 0.1s;
  margin-bottom: 1rem;
}
/* 产品描述样式 - 默认状态 */
.product-description {
  position: relative;
}

/* 产品描述渐变遮罩带箭头 */
.product-description-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  color: #000;
  font-size: 14px;
  opacity: 0.8;
}
.product-card-content .product-description-container::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
/* 鼠标悬停产品描述容器时的样式 */
.product-card-content:hover .product-description-container {
  max-height: 500px; /* 使用足够大的max-height代替height: auto */
}

/* 鼠标悬停产品描述容器时隐藏渐变遮罩 */
.product-card-content:hover .product-description-container::after,
.product-card-content.less-line .product-description-container::after {
  opacity: 0;
}

/* 调整产品卡片内p标签的行高 */
.product-description p {
  line-height: 1.5;
  margin: 0.5rem 0;
}

/* 产品卡片悬停覆盖问题的最终解决方案 */

/* 1. 网格容器基础设置 */
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4.gap-6 {
  position: relative;
  display: grid;
}

/* 3. 卡片内容容器 - 使用绝对定位实现真正的覆盖效果 */
.product-card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1;
}
.product-card-wrapper:hover {
  z-index: 10;
}
/* 4. 悬停时的关键样式 */
.product-card-wrapper:hover .product-card-content {
  z-index: 10;
  /* 保持原位置不变 */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
}

/* 相关产品轮播图样式 */
.related-products-carousel {
  position: relative;
  overflow: hidden;
}

.related-products-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.related-product-item {
  flex: 0 0 calc(25% - 18px);
  margin-right: 24px;
  transition: all 0.3s ease;
}

.related-product-item:last-child {
  margin-right: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-arrow.prev {
  left: -46px;
}

.carousel-arrow.next {
  right: -46px;
}
.related-products-carousel:hover .carousel-arrow.prev {
  left: 4px;
}
.related-products-carousel:hover .carousel-arrow.next {
  right: 4px;
}
.carousel-arrow i {
  font-size: 16px;
  color: #6b7280;
}

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

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #3b82f6;
  transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .related-product-item {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .related-product-item {
    flex: 0 0 calc(50% - 12px);
  }

  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .related-product-item {
    flex: 0 0 calc(100% - 10px);
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-arrow i {
    font-size: 14px;
  }
}

/* 隐藏箭头的类 */
.hide-arrows .carousel-arrow {
  display: none;
}

/* 当产品少于4个时隐藏箭头 */
.related-products-carousel.hide-arrows .carousel-arrow {
  display: none;
}
/* 分页器样式 */
.panigation-container .page-num {
  padding: 4px 10px;
  margin: 2px;
  border: 1px solid #eee;
}
.panigation-container .page-num:hover {
  background-color: #eee;
  border: 1px solid 0066FF;
}
.panigation-container .page-num.page-num-current {
  color: #fff;
  border: 1px solid #eee;
  background-color: #0066ff;
}
.product-description p {
  font-size: 14px !important;
}

.panel-item {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 4px solid transparent;
}
.panel-item.active .card-content {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.panel-item .card-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 100%);
  color: #fff;
  height: 100%;
  padding: 2rem;
  transition: all 0.3s ease-in;
}

/* 收缩状态下隐藏详情内容 */
.panel-item:not(:hover):not(.active) .card-details {
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
/* 展开状态下显示详情内容 */
.panel-item:hover .card-details,
.panel-item.active .card-details {
  opacity: 1;
  height: auto;
  overflow: visible;
  transition: all 0.3s ease 0.2s;
}
.panel-item .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: all 0.5s ease-in-out;
}

/* 标题容器样式 */
.panel-item .card-title-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 60px;
}
/* 小屏幕适配 */
@media (max-width: 768px) {
  #bs_container {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .panel-item {
    width: 100% !important;
    transform: none !important;
    margin-bottom: 15px;
  }

  .panel-item .card-details {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    padding: initial !important;
    margin: initial !important;
  }
  .panel-item .card-content {
    background: rgba(255, 255, 255, 0.9) !important;
  }
  .panel-item.active .card-content {
    background: rgba(255, 255, 255, 0.9) !important;
  }
}
.timeline-wrap {
  .desc-p {
    position: relative;
    margin-bottom: 6px;
  }
  .desc-p:after {
    content: "";
    position: absolute;
    top: 12px;
    right: -65px;
    width: 60px;
    height: 2px;
    background: rgb(0 102 255 / 0.5);
    /* border-radius: 50%; */
  }
  .desc-p.desc-p_l:after {
    left: -65px;
  }
  @media (max-width: 768px) {
    .desc-p:after {
      content: none;
    }
  }
}
