/* 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .card-hover {
    transition: all 0.3s ease;
  }
  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  .square-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .gradient-bg {
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.05) 0%, rgba(55, 202, 236, 0.05) 100%);
  }
  .icon-circle {
    position: relative;
    z-index: 1;
  }
  .icon-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: currentColor;
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
  }
  .timeline-line {
    @apply absolute left-8 top-16 bottom-16 w-0.5 bg-primary/20;
  }
}

/* 基础动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 基础样式补充 */
.qrcode-container {
  position: relative; /* 作为弹窗的定位参考 */
  display: inline-block; /* 确保容器大小适应内容 */
}

/* 二维码弹窗默认状态 */
.qrcode-popup {
  opacity: 0; /* 透明 */
  visibility: hidden; /* 隐藏（不占空间） */
  transition: all 0.3s ease; /* 过渡动画 */
  z-index: 10; /* 确保弹窗在其他内容上方 */
}

/* 鼠标悬停时显示弹窗 */
.qrcode-container:hover .qrcode-popup {
  opacity: 1; /* 不透明 */
  visibility: visible; /* 显示 */
}

/* 确保二维码容器保持正方形 */
.qrcode-popup .aspect-square {
  position: relative;
  width: 120px; /* 宽度自适应 */
}

/* 防止图片变形 */
.qrcode-popup img {
  object-fit: contain; /* 保持图片比例，完整显示 */
}
 

/* 导航菜单效果 */
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #0F52BA;
  transition: width 0.3s ease;
}

.nav-item:hover .nav-link::after {
  width: 100%;
}

/* 下拉菜单样式 */
.dropdown-parent {
  position: relative;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 0 0 4px 4px;
  padding: 0.5rem 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-parent:hover .nav-link {
  color: #0F52BA;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(15, 82, 186, 0.1);
  color: #0F52BA;
}

/* 关于我们横向菜单样式 */
.about-tabs {
  background-color: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.about-tabs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-tab {
  display: inline-block;
  padding: 1.25rem 2rem;
  color: #6B7280;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.about-tab:hover {
  color: #0F52BA;
}

.about-tab.active {
  color: #0F52BA;
  border-bottom-color: #0F52BA;
}

        /* 案例展示区域样式 */
        .case-carousel {
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }
        
        .carousel-track {
            display: flex;
            transition: transform 0.5s ease;
            gap: 20px;
            padding: 10px 0;
            will-change: transform;
        }
        
        .carousel-slide {
            min-width: calc(100% - 40px);
            max-width: calc(100% - 40px);
            padding: 0 20px;
            box-sizing: border-box;
        }
        
       
        
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: white;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            color: #0F52BA;
            font-size: 20px;
            transition: all 0.3s ease;
        }
        
        .carousel-btn:hover {
            background-color: #0F52BA;
            color: white;
        }
        
        .carousel-btn.prev {
            left: 10px;
        }
        
        .carousel-btn.next {
            right: 10px;
        }
        
        .carousel-indicators {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 8px;
        }
        
        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .indicator.active {
            background-color: #0F52BA;
            width: 30px;
            border-radius: 5px;
        }
        
        /* 滚动条样式优化 */
        .case-carousel::-webkit-scrollbar {
            height: 6px;
        }
        
        .case-carousel::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .case-carousel::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 10px;
        }
        
        .case-carousel::-webkit-scrollbar-thumb:hover {
            background: #0F52BA;
        }
        
        /* 触摸设备支持 */
        .carousel-track {
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }
        
        .carousel-slide {
            scroll-snap-align: start;
        }
		
		
		 /* 新增样式 - 控制联系信息一行显示 */
  .contact-info {
    display: flex; /* 使用flex布局让子元素横向排列 */
    justify-content: space-between; /* 元素间均匀分布 */
    align-items: center; /* 垂直居中对齐 */
    flex-wrap: wrap; /* 防止屏幕过小时溢出 */
    gap: 20px; /* 元素间距 */
    padding: 20px;
  }
  
  .contact-item {
    white-space: nowrap; /* 防止内容换行 */
  }
	
	
	
@media (max-width: 768px) {
  .about-tab {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* 图片组合布局样式 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  height: 500px;
}

.image-item {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.05);
}

.image-item.large {
  grid-column: span 1;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .image-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .image-item.large,
  .image-item:not(:last-child) {
    display: none;
  }
  
  .image-item:last-child {
    grid-column: span 1;
    grid-row: span 1;
    height: 250px;
    display: block;
  }
}

 @media (min-width: 768px) {
            .carousel-slide {
                min-width: calc(50% - 30px);
                max-width: calc(50% - 30px);
            }
        }
        
        @media (min-width: 1024px) {
            .carousel-slide {
                min-width: calc(33.333% - 27px);
                max-width: calc(33.333% - 27px);
            }
        }
        
        @media (min-width: 1280px) {
            .carousel-slide {
                min-width: calc(25% - 30px);
                max-width: calc(25% - 30px);
            }
        }