/* 导航栏优化 */
#navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 桌面导航项悬停效果 */
#navbar nav a {
  position: relative;
  padding: 8px 0;
}

#navbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9333ea;
  transition: width 0.3s ease;
}

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

/* 移动端菜单动画 */
#mobileMenu {
  transition: all 0.3s ease;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
}

#mobileMenu.active {
  transform: scaleY(1);
  opacity: 1;
}

/* 移动端菜单项动画 */
#mobileMenu a {
  transition: all 0.2s ease;
}

/* 菜单按钮动画 */
#menuBtn {
  transition: all 0.3s ease;
}

#menuBtn.active {
  transform: rotate(90deg);
}

/* 基础动画 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-delay-1 {
  animation-delay: 1s;
}

.float-delay-2 {
  animation-delay: 2s;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
}

/* 表格样式 - 桌面端 */
.feature-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.feature-table th,
.feature-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-table th:first-child,
.feature-table td:first-child {
  text-align: left;
  font-weight: normal;
}

.feature-table th {
  font-weight: 600;
  background-color: rgba(147, 51, 234, 0.05);
}

.feature-table tr:last-child td {
  border-bottom: none;
}

/* 3D价格方案核心样式 */
.pricing-3d-container {
  perspective: 1000px;
  position: relative;
  height: 550px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* 系统交付内容与技术架构 - 3D展示区三面立体样式 */
#features .pricing-3d-container {
  height: 700px;
  perspective: 1000px;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* 系统交付内容与技术架构 - 3D卡片三面立体布局 */
#features .pricing-3d-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#features .pricing-3d-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  max-width: 320px;
  transform-origin: center;
  backface-visibility: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 系统交付内容与技术架构 - 3D布局 - 三个卡片的位置 */
#features .pricing-3d-card.prev {
  transform: translate(-120%, -50%) rotateY(20deg) scale(0.9);
  z-index: 10;
  opacity: 0.8;
}

#features .pricing-3d-card.current {
  transform: translate(-50%, -50%) rotateY(0) scale(1);
  z-index: 30;
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

#features .pricing-3d-card.next {
  transform: translate(20%, -50%) rotateY(-20deg) scale(0.9);
  z-index: 20;
  opacity: 0.8;
}

/* 系统交付内容与技术架构 - 指示器水平排列 */
#features .pricing-indicators {
  flex-direction: row;
  margin-top: 20px;
}

.pricing-3d-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-3d-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  max-width: 320px;
  transform-origin: center;
  backface-visibility: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* 3D布局 - 三个卡片的位置 */
.pricing-3d-card.prev {
  transform: translate(-140%, -50%) rotateY(25deg) scale(0.85);
  z-index: 10;
  opacity: 0.8;
}

.pricing-3d-card.current {
  transform: translate(-50%, -50%) rotateY(0) scale(1);
  z-index: 30;
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.pricing-3d-card.next {
  transform: translate(40%, -50%) rotateY(-25deg) scale(0.85);
  z-index: 20;
  opacity: 0.8;
}

/* 最受欢迎标签 */
.popular-badge {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #9333ea;
  color: white;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 40;
}

/* 为带有popular-badge的卡片添加顶部内边距，确保内容不被徽章遮挡 */
.pricing-3d-card:has(.popular-badge) {
  padding-top: 16px;
}

/* 系统交付内容与技术架构 - 为带有popular-badge的卡片添加顶部内边距 */
#features .pricing-3d-card:has(.popular-badge) {
  padding-top: 16px;
}

/* 滑动控制按钮 */
.pricing-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 40;
  padding: 0 10px;
}

.pricing-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.pricing-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 指示器 */
.pricing-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pricing-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.pricing-indicator.active {
  background: #9333ea;
  width: 24px;
  border-radius: 4px;
}

/* 功能对比表格 - 手机端优化，确保完整显示 */
.mobile-feature-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-feature-table table {
  min-width: 100%;
  width: 100%;
  border-collapse: collapse;
  /* 手机端设置3:4比例 */
  aspect-ratio: 3/4;
}

/* 优化：缩小列标题左右间距，增大行间距 */
.mobile-feature-table th,
.mobile-feature-table td {
  padding: 8px 3px; /* 减小左右间距，增加上下间距 */
  text-align: center;
  font-size: 11px;
  border-bottom: 1px solid #eee;
  line-height: 1.6; /* 增大行高，增加上下上下间距 */
}

.mobile-feature-table th:first-child,
.mobile-feature-table td:first-child {
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
  min-width: 120px;
}

.mobile-feature-table th {
  background-color: rgba(147, 51, 234, 0.05);
  font-weight: 600;
  min-width: 80px;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .swipe-indicator {
    display: none;
  }
  
  .mobile-feature-table {
    display: none;
  }
}

@media (min-width: 1024px) {
  .pricing-3d-container {
    height: 600px;
  }
  
  .pricing-3d-card {
    max-width: 360px;
  }
  
  .pricing-3d-card.prev {
    transform: translate(-160%, -50%) rotateY(30deg) scale(0.85);
  }
  
  .pricing-3d-card.next {
    transform: translate(60%, -50%) rotateY(-30deg) scale(0.85);
  }

  /* 电脑端系统交付内容3个卡片一行显示 */
  #features .desktop-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  /* 案例展示区 - 电脑端优化 */
  @media (min-width: 1024px) {
    #cases .grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    
    #cases .max-w-xs {
      max-width: 100%;
    }
    
    #cases .group {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    #cases .group img {
      aspect-ratio: 4/3;
      object-fit: cover;
    }
    
    #cases .absolute {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    
    /* 系统交付内容和技术架构 - 3D图片容器调整 */
    .pricing-3d-container {
      height: 700px;
    }
    
    .pricing-3d-card {
      max-width: 320px;
    }
    
    .pricing-3d-card img {
      width: 100%;
      height: auto;
      aspect-ratio: 9/16;
      object-fit: contain;
    }
    
    /* 系统交付内容与技术架构 - 3D布局 - 三个卡片的位置 */
    #features .pricing-3d-card.prev {
      transform: translate(-130%, -50%) rotateY(25deg) scale(0.9);
    }
    
    #features .pricing-3d-card.next {
      transform: translate(30%, -50%) rotateY(-25deg) scale(0.9);
    }
  }

  /* 电脑端卡片内部间距优化 */
  #features .desktop-three-col .bg-white {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #features .desktop-three-col .bg-white ul {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  /* 隐藏桌面端表格，显示移动端表格 */
  .desktop-feature-table {
    display: none;
  }
  
  /* 英雄区图片 - 手机端横版显示 */
  .lg\:w-1\/2 .relative.z-10.float-animation img {
    aspect-ratio: 16/9;
    height: auto !important;
    max-height: 300px;
  }
  
  /* 小卡片缩小 */
  .lg\:w-1\/2 .absolute.mini-card {
    transform: scale(0.5);
  }
  
  .lg\:w-1\/2 .absolute.mini-card.-bottom-6.-left-6 {
    left: -30px;
    bottom: -30px;
    width: 120px;
    padding: 4px;
  }
  
  .lg\:w-1\/2 .absolute.mini-card.-top-6.-right-6 {
    right: -30px;
    top: -30px;
    width: 120px;
    padding: 4px;
  }
  
  /* 小卡片内文字大小调整 */
  .lg\:w-1\/2 .absolute.mini-card p.font-medium {
    font-size: 10px;
    margin-bottom: 1px;
  }
  
  .lg\:w-1\/2 .absolute.mini-card p.text-sm {
    font-size: 8px;
  }
  
  .lg\:w-1\/2 .absolute.mini-card .w-12 {
    width: 20px;
    height: 20px;
  }
  
  .lg\:w-1\/2 .absolute.mini-card .fa {
    font-size: 12px;
  }
  
  /* AI服务卡片片 - 手机端2列布局 */
  #services .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  #services .grid > div {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
  }
  
  /* AI服务卡片图标和标题水平排列 */
  #services .service-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  #services .w-14.h-14 {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }
  
  #services h3 {
    font-size: 1rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  #services p {
    display: none !important;
  }
  
  #services ul {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    font-size: 0.8rem;
    flex-grow: 1;
    overflow-y: auto;
  }
  
  #services li {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }
  
  #services a {
    font-size: 0.8rem;
    margin-top: auto;
    align-self: flex-start;
  }
  
  /* 手机端系统交付内容垂直排列 */
  #features .mobile-space-y {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  #features ul {
    gap: 4px;
    padding-left: 0;
  }
  
  #features li {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
    padding-left: 24px;
    position: relative;
  }
  
  #features li i {
    position: absolute;
    left: 0;
    top: 2px;
  }
  
  /* 系统运行环境布局优化 */
  #features .bg-white.rounded-2xl:last-child ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
  }
  
  #features .bg-white.rounded-2xl:last-child li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    background-color: rgba(147, 51, 234, 0.05);
    border-radius: 6px;
    height: 100%;
    margin: 0;
  }
  
  /* 关键优化：删除手机端"简单三步"内容 */
  .py-20.bg-gradient-to-b.from-light-to-white {
    display: none !important;
  }
  
  /* 案例展示区筛选标签 */
  #cases .flex.flex-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  #cases .flex.flex-wrap button {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  /* 案例展示区区 */
  #cases .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  #cases .group img {
    height: 100px;
  }
  
  #cases .absolute p, #cases .absolute h3 {
    display: none;
  }
  
  #cases .absolute span {
    font-size: 10px;
    padding: 1px 6px;
    margin-bottom: 1px;
  }
  
  #cases .absolute a {
    font-size: 10px;
  }
  
  /* 底部链接 - 手机端优化，确保全部显示 */
  .footer-links-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0 5px;
    gap: 5px;
    box-sizing: border-box;
  }
  
  .footer-links-container > div {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 5px;
  }
  
  .footer-links-container h4 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .footer-links-container ul {
    padding: 0;
    margin: 0;
  }
  
  .footer-links-container li {
    margin-bottom: 3px;
  }
  
  .footer-links-container a {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  
  /* 联系我们部分的特殊调整 */
  .footer-links-container .flex.items-start {
    justify-content: center;
  }
  
  .footer-links-container .flex.items-start i {
    margin-right: 3px;
    font-size: 10px;
  }
  
  .footer-links-container .flex.items-start span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 详细功能对比表格 - 手机端优化 */
  .feature-comparison-card {
    padding: 4px !important;
    margin-bottom: 12px !important;
  }
  
  .feature-comparison-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }
  
  /* 手机端表格优化 - 减小高度 */
  .mobile-feature-table {
    max-height: 280px;
    overflow-y: auto;
  }
  
  .mobile-feature-table table {
    aspect-ratio: auto;
  }
  
  /* 手机端表格单元格优化 */
  .mobile-feature-table th,
  .mobile-feature-table td {
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.6;
  }
  
  /* 手机端表格列宽优化 */
  .mobile-feature-table th:first-child,
  .mobile-feature-table td:first-child {
    min-width: 90px;
  }
  
  .mobile-feature-table th {
    min-width: 70px;
  }
  
  /* 精简表格内容 */
  .mobile-feature-table .feature-name {
    font-weight: 500;
  }
  
  .mobile-feature-table .feature-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 电脑端底部链接优化 */
@media (min-width: 768px) {
  .footer-links-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 2rem;
  }
  
  .footer-links-container > div {
    flex: 1;
    margin: 0;
    min-width: 120px;
  }
}
