/*主页图片缩放开始*/
.zoom-in-image img {
  width: 100%;
  height: 500px;
  object-fit: cover; /* 保持比例，裁剪多余部分 */
  
  /* 初始状态：缩小（模拟远景） */
  transform: scale(0.5); /* 缩小到50% */
  animation: zoomIn 1s ease-out forwards; /* 2秒内放大到正常 */
}
/*主页视频缩放开始*/
.zoom-in-image video {
  width: 100%;
  height: 700px;
  object-fit: cover; /* 保持比例，裁剪多余部分 */
  
  /* 初始状态：缩小（模拟远景） */
  transform: scale(0.5); /* 缩小到50% */
  animation: zoomIn 1s ease-out forwards; /* 2秒内放大到正常 */
}
/* 定义动画：从 scale(0.5) 放大到 scale(1) */
@keyframes zoomIn {
  from {
    transform: scale(0.5); /* 初始缩小 */
  }
  to {
    transform: scale(1); /* 最终正常大小 */
  }
}
/*主页图片缩放结束*/

/* 导航栏样式 */
    .building-container {
      position: absolute;
      width: 100%;
      height: 80px;
      overflow: hidden;
    }
    
    /* 导航按钮容器 */
    .nav-container {
      position: absolute;
      top: 20px;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
      padding: 0 20px;
      z-index: 100;
    }
    
    /* 独立按钮样式 */
    .nav-btn {
      position: relative;
      padding: 12px 30px;
      border: none;
      border-radius: 30px;
      background: rgba(255, 255, 255, 0.75);
      color: #000;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      overflow: hidden;
      min-width: 200px;
      text-align: center;
      letter-spacing:2px;
      
      /* 初始状态：在页面上方隐藏 */
	  opacity: 0;
	  transform: translateY(-100px);  /* 从上方开始 */
	  
	  /* 应用动画 */
	  animation: fallDown 0.9s ease-out forwards;
    }
    
    /* 为每个 div 设置不同的延迟，形成依次落下的效果 */
	.nav-btn:nth-child(1) {
	  animation-delay: 0.1s;  /* 第一个，立即开始 */
	}
	
	.nav-btn:nth-child(2) {
	  animation-delay: 0.3s;  /* 第二个，延后 0.3 秒 */
	}
	
	.nav-btn:nth-child(3) {
	  animation-delay: 0.5s;  /* 第三个，延后 0.5 秒 */
	}
	.nav-btn:nth-child(4) {
	  animation-delay: 0.7s;  /* 第二个，延后 0.7 秒 */
	}
	
	.nav-btn:nth-child(5) {
	  animation-delay: 0.9s;  /* 第三个，延后 0.9 秒 */
	}
  
    /* 按钮悬停效果 */
    .nav-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      background: rgba(255, 255, 255, 0.95);
      color: #ff6600;
      font-size:16px;
      letter-spacing:4px;
    }
    .nav-btn-selected {
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      background: #ff6600;
      font-size:16px;
      color:#fff;
    }
    
    /* 按钮点击效果 */
    .nav-btn:active {
      transform: translateY(1px);
    }
    
    /* 按钮光效 */
    /*.nav-btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
      );
      transform: rotate(30deg);
      transition: all 0.5s ease;
    }*/
    
    .nav-btn:hover::after {
      left: 100%;
    }
    
    /* 响应式调整 */
    @media (max-width: 768px) {
      .nav-container {
        top: 20px;
        gap: 10px;
      }
      
      .nav-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
      }
    }
    

/*主页展销区开始*/
.exhibition-container {
background-color: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

/* 分类标题样式 - 加粗 */
.category-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 5px solid #ee5a24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.category-title:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ee5a24, #ff9a9e);
    transition: width 0.3s ease;
}

.category-title:hover::after {
    width: calc(100% - 10px);
}

.exhibition-row {
    display: flex;
    height: 120px;
    gap: 20px;
}

.exhibition-item {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.exhibition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 文字特效 - 使用div实现换行 */
      .item-name {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          height: 100%;
          width: 100%;
          text-align: center;
          font-size: 16px;
          font-weight: normal;
          text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
          transition: all 0.3s ease;
          letter-spacing:1px;
      }

      .item-name div {
          margin: 3px 0;
      }

      .exhibition-item:hover .item-name {
          transform: scale(1.1);
          background: rgba(255, 255, 255, 0.2);
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
          font-weight: bold;
          letter-spacing:2px;
      }
.b{
	font-weight: bold;
	font-size:20px
}
      /* 原材料展销区样式 */
.raw-materials .exhibition-item:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.raw-materials .exhibition-item:nth-child(2) {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.raw-materials .exhibition-item:nth-child(3) {
    background: linear-gradient(135deg, #ffca28 0%, #ffb300 100%);
}

.raw-materials .exhibition-item:nth-child(4) {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

.raw-materials .exhibition-item:nth-child(5) {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

/* 成品展销区样式 */
.finished-products .exhibition-item:nth-child(1) {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

.finished-products .exhibition-item:nth-child(2) {
    background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
}

.finished-products .exhibition-item:nth-child(3) {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

.finished-products .exhibition-item:nth-child(4) {
    background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
}

.finished-products .exhibition-item:nth-child(5) {
    background: #909090;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exhibition-row {
        flex-wrap: wrap;
        height: auto;
    }
    
    .exhibition-item {
        flex: 1 1 45%;
        min-width: 200px;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .exhibition-container {
        padding: 10px;
    }

    .category-title {
        font-size: 20px;
        margin: 20px 0 10px;
    }
}

@media (max-width: 480px) {
    .exhibition-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
/*主页展销区结束*/

/* 定义关键帧动画：一级导航按钮从上往下掉落 */
@keyframes fallDown {
  0% {
    opacity: 0;
    transform: translateY(-100px);  /* 开始时在页面上方 */
  }
  100% {
    opacity: 1;
    transform: translateY(0);       /* 最终掉落到正常位置 */
  }