/* 应用案例整体布局 */
.case-section {
  padding: 40px 0 120px;
  background-color: #ffffff;
}

.case-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  padding: 0 20px;
  align-items: flex-start;
}

/* 左侧菜单 */
.case-sidebar {
  width: 200px;
  background: #f7f7f7;
  margin-top: 20px;
}

.case-sidebar h2 {
  color: white;
  text-align: center;
  padding: 10px;
  background-color: #004080;
  margin: 0 0 20px 0;
  font-size: 1.5em;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px dashed #ddd;
  transition: background-color 0.3s;
}
.sidebar-menu li a.active{
	color:#004080;
	font-weight: bold;
}
.sidebar-menu li a:hover{
	color:#004080;
	font-weight: bold;
}
/* 右侧内容 */
.case-content {
  flex: 1;
  min-height: 500px;
}

/* 案例网格 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.case-item {
  text-align: center;
  overflow: hidden;
}
.case-item a{
    display: block;
    clear: both;
    overflow: hidden;
}

.case-item a img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  display: block;transition: all 0.6s ease; 
}
.case-item a:hover img {
 transform: scale(1.1);
}

.case-item p {
  margin: 10px 0;
  font-size: 14px;
  color: #333;
}
.case-item:hover p a{

  color: #004080;
}
.case-item:hover p a:hover{

  color: #004080;
}
/* 产品详情 */
.product-detail-container {
  display: flex;
  gap: 30px;
  padding: 20px;
  margin: 20px 0;
}

.image-section {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.text-section {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  border-radius: 8px;
}
.text-section .cpxqjj {
    margin-top: 15px;
    font-size: 15px;
    line-height: 30px;
}

.main-image-container {
  width: 100%;
  height: 330px;
  overflow: hidden;
  margin-bottom: 15px;
	border: 1px solid #dfdfdf;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-container {
  /* 精确计算宽度：3张图(110*3) + 2个间隙(10*2) = 350px */
  width: 350px;
  margin: 0 auto;
  /* 关键：隐藏超出350px的部分，这样第4张图就被隐藏了 */
  overflow: hidden;
  /* 移除 padding，确保图片从边缘开始 */
  padding: 0;
  box-sizing: border-box;
  /* 增加上下一点间距，防止箭头点击困难 */
  margin-top: 10px;
  margin-bottom: 10px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  width: max-content;
  transition: transform 0.3s ease;
}

.thumbnail-item {
  width: 110px;
  height: 86px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; /* 稍微调小一点箭头，以免遮挡太多图片 */
  height: 30px;
  border-radius: 50%;
  background-color: rgba(108, 117, 125, 0.8); /* 增加透明度背景 */
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none; /* 移除默认按钮边框 */
}

.left-arrow {
  left: -13px;
  top: 386px;
}

.right-arrow {
  right: -9px;
  top: 386px;
}
.contact-btn {
  display: inline-block;
  background:#004080;
  color: white;
	height: 50px;
  border-radius: 25px;
	line-height: 46px;
	text-align: center;
	width: 150px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease;
  margin-top: 30px;
}

.contact-btn:hover {
  background: #0056b3;
}

.product-description {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
}
.product-description h3 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 18px;
  display: inline-block;
  text-align: center;
  border-bottom: 1px solid #e3e3e3;
  width: 100%;
}
.product-description h3 span {
  background-color: #004080;
  display: block;
  width: 150px;
  height:50px;
  line-height: 50px;
}

.product-description .xq_aa {
  margin: 20px auto 60px;
  font-size: 16px;
  line-height: 32px;
  color: #333;
}
/* =========================================
   移动端自适应样式 (Max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {
  /* --- 1. 全局基础设置 --- */
  body {
    font-size: 14px; /* 稍微减小字体以适应小屏幕 */
  }

  img {
    max-width: 100%; /* 确保所有图片不溢出容器 */
    height: auto;
  }

  /* --- 2. 头部适配 --- */
  .header-container {
    padding: 0 0px; /* 减小两侧内边距 */
  }

  /* 顶部信息栏：改为垂直排列 */
  .top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
  }

  .logo-section {
    margin-bottom: 10px;
    flex-direction: column;
  }

  .logo-section img {
    max-height: 40px; /* 限制Logo高度 */
    margin-bottom: 5px;
  }

  .company-info .slogan {
    font-size: 12px;
    line-height: 1.4;
  }

  .contact-info {
    margin-top: 10px;
    flex-direction: row; /* 保持电话图标和文字横向 */
    justify-content: center;
  }

  /* 导航菜单：移动端通常隐藏或改为下拉，这里简单处理为垂直堆叠或隐藏非关键项 */
  .nav-menu ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .nav-menu li a {
    padding: 8px 10px;
    font-size: 15px;
  }

  /* Banner 图片 */
  .banner img {
    height: auto;
    min-height: 150px; /* 保证最小高度 */
    object-fit: cover;
  }

  /* --- 3. 案例内容区适配 --- */
  .case-container {
    flex-direction: column; /* 左右布局改为上下布局 */
    padding: 15px 10px;
  }

  /* 左侧侧边栏 */
  .case-sidebar {
    width: 100%;
    margin-bottom: 20px;
    border-right: none; /* 移除右侧边框 */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .case-sidebar h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  .sidebar-menu {
    display: flex;
    justify-content: space-around; /* Tab按钮横向分布 */
    width: 100%;
  }

  .sidebar-menu li {
    width: 45%;
    text-align: center;
  }

  .tab-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .tab-btn.active {
    background-color: #0056b3; /* 假设主题色，请根据实际调整 */
    color: #fff;
    border-color: #0056b3;
  }

  /* 右侧内容区 */
  .case-content {
    width: 100%;
  }

  /* 案例网格：改为单列或双列 */
  .case-grid {
    grid-template-columns: repeat(1, 1fr); /* 默认单列 */
    gap: 15px;
  }

  /* 如果屏幕稍宽（如平板竖屏），可以显示两列 */
  @media (min-width: 480px) {
    .case-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .case-item {
    margin-bottom: 0;
  }

  .case-item img {
    width: 100%;
    height: 200px; /* 固定图片高度，保持整齐 */
    object-fit: cover;
    border-radius: 4px;
  }

  .case-item p {
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
  }

  /* --- 5. 产品描述移动端适配 --- */
  .product-detail-container {
    flex-direction: column; /* 图片和文字上下排列 */
    padding: 10px;
    gap: 20px;
  }

  .image-section,
  .text-section {
    width: 100%;
    min-width: auto;
    padding: 0;
  }

  /* 调整缩略图容器在移动端的显示，防止溢出 */
  .thumbnail-container {
    width: 100%;
    max-width: 350px; /* 保持最大宽度，但允许缩小 */
    margin: 10px auto;
  }

  /* 产品描述区域适配 */
  .product-description {
    margin-top: 10px;
    padding: 10px; /* 减小内边距 */
    border-radius: 4px;
  }

  .product-description h3 {
    text-align: center; /* 移动端标题居中更美观 */
    border-bottom: none; /* 移除下划线，因为背景块已经很明显 */
    margin-bottom: 15px;
  }

  .product-description h3 span {
    /* 关键修改：移除固定宽度，改为自适应或稍微宽一点 */
    width: auto;
    min-width: 120px; /* 保持最小宽度，防止文字太少时太窄 */
    padding: 0 20px; /* 使用 padding 代替固定宽度，使背景块随文字长度自适应 */
    height: 36px; /* 稍微降低高度以适应小屏幕 */
    line-height: 36px;
    font-size: 16px; /* 字体稍微调小 */
    margin: 0 auto; /* 确保 span 块在 h3 中居中 */
    display: inline-block; /* 保持块状特性以便设置背景 */
  }

  .product-description p {
    font-size: 14px; /* 正文字体调小 */
    line-height: 1.8; /* 增加行高，提升阅读体验 */
    text-align: justify; /* 两端对齐，使段落更整齐 */
  }

  /* 联系我们按钮适配 */
  .contact-btn {
    display: block; /* 按钮占满整行，方便点击 */
    width: 100%;
    text-align: center;
    margin-top: 20px;
    box-sizing: border-box;
  }

  /* 联系方式 */
  .footer-contact {
    width: 100%;
    margin-top: 10px;
    text-align: center; /* 确保内部行内/行内块元素居中 */
    display: flex; /* 使用 flex 布局更稳健地控制子元素居中 */
    flex-direction: column;
    align-items: center; /* 垂直方向居中对齐子元素 */
  }

  .qr-code {
    margin: 0 auto; /* 确保容器本身居中 */
    display: inline-block; /* 让容器宽度随图片变化 */
  }

  .qr-code img {
    width: 100px; /* 减小二维码尺寸 */
    height: 100px;
    display: block; /* 消除图片底部的微小间隙 */
  }
  .copyright p {
    font-size: 12px;
    line-height: 1.5;
    padding: 0 10px;
  }
}

  @media (max-width: 768px) {
.sidebar-menu{
		display: block;
	}
	      .sidebar-menu li {
        width: 49%;
			  float: left;
			  margin-right: 2%;
        text-align: left;
    }
	        .sidebar-menu li:nth-child(2n){
    
			  margin-right: 0%;
   
    }
	  .sidebar-menu a {
    padding: 5px 15px;   
}
	  .case-section{
		  padding-top: 0px;
	  }
	  .case-sidebar{
		  margin-bottom: 0px;
	  }
	  .main-image-container{
		  height: auto;
	  }
	  .left-arrow {
    left: -13px;
    top: auto;
    bottom: 25px;
}
	  .right-arrow {
    right: -9px;
    top: auto;
    bottom: 25px;
}
	  .product-description h3{
		  text-align: left;border-bottom: 1px solid #dfdfdf;
	  }
}