/*主页图片缩放开始*/
.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); /* 最终正常大小 */
  }
}
/*主页图片缩放结束*/

/* 导航栏样式 */
    
    /* 导航按钮容器 */
    .nav-container {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      z-index: 100;
    }
    
    /* 独立按钮样式 */
    .nav-btn {
      flex:0 auto;
      position: relative;
      padding: 5px 0px;
      border: none;
      border-radius: 5px;
      /*background: rgba(255, 255, 255, 0.75);*/
      color: #000;
      font-size: 17px;
      cursor: pointer;
      /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
      transition: all 0.3s ease;
      overflow: hidden;
      text-align: center;
      letter-spacing:2px;
  	  font-size: clamp(14px, 2vw, 17px);
      /* 初始状态：在页面上方隐藏 */
	  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.2s;
	}
	.nav-btn:nth-child(3) {
	  animation-delay: 0.3s;
	}
	.nav-btn:nth-child(4) {
	  animation-delay: 0.4s;
	}
	.nav-btn:nth-child(5) {
	  animation-delay: 0.5s;
	}
	.nav-btn:nth-child(6) {
	  animation-delay: 0.6s;
	}
	.nav-btn:nth-child(7) {
	  animation-delay: 0.7s;
	}
	.nav-btn:nth-child(8) {
	  animation-delay: 0.8s;
	}
	.nav-btn:nth-child(9) {
	  animation-delay: 0.9s;
	}
	.nav-btn:nth-child(10) {
	  animation-delay: 1s;
	}
  
    /* 按钮悬停效果 */
    .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: #c41e3a;
      font-size:17px;
    }
    .nav-btn-selected {
      /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      background: #ff6600;*/
      color: #c41e3a;
      font-weight:bold;
      font-size:17px;
    }
    
    /* 按钮点击效果 */
    .nav-btn:active {
      transform: translateY(1px);
    }
    

/*主页展销区开始*/
.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);       /* 最终掉落到正常位置 */
  }
}

.tab-box {
  padding: 15px 0;
  height: 30px;
  line-height: 30px;
  clear: both;
  width: 100%;
  /*border-bottom: 1px solid #eee;*/
  width: 1200px;
  margin: 20px auto;
  margin-bottom: 0px;
  padding-bottom: 20px;
}
/* Tab导航居中 */
.tab-nav {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
  
}
.tab-nav li {
  float: left;
  padding: 0 40px;
  cursor: pointer;
  font-size: 16px;
  
  color: #666;
  position: relative;
  transition: all 0.2s;
  padding-left: 0px;
  letter-spacing: 2px;
}

/* 鼠标移入文字变色 */
.tab-nav li:hover {
  color: #d12029;
  font-size: 18px;
  font-weight:bold;
}

/* 下划线样式（默认隐藏） */
.tab-nav li::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 40px;
  bottom: -10px; /* 贴紧底部边框 */
  height: 2px;
  background: #d12029;
  display: none;
}

/* 激活状态：显示下划线 */
.tab-nav li.active {
  color: #d12029;
  font-size: 18px;
  font-weight:bold;
}
.tab-nav li.active::after {
  display: block;
}

/* 丝网资讯列表容器 */
.news-list {
  width: 1200px;
  margin: 30px auto;
  margin-top: 0px;
  background: #fff;
  border-radius: 10px;
}

/* 单条资讯项 —— 核心弹性布局 */
.news-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px; /* 图片和文字之间的间距 */
  cursor: pointer;
}

/* 资讯图片 */
.news-img {
  width: 120px;
  height: 80px;
  object-fit: cover; /* 保证图片不变形 */
  border-radius: 4px;
}

/* 右侧文字内容区 */
.news-content {
  flex: 1; /* 占满剩余宽度 */
}

/* 资讯标题 */
.news-title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
  /* 鼠标移入变红 */
  transition: color 0.2s ease;
}
.news-title:hover {
  color: #d01c25;
  
}

/* 资讯副标题 */
.news-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
  /* 超出两行显示省略号（可选优化） */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 发布时间 */
.news-time {
  font-size: 12px;
  color: #999;
  float: right;
}


/* 新闻详情容器 */
.news-details-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  margin-top:50px;
  padding: 40px 50px;
  background: #fff;
  /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);*/
      border-radius: 10px;
}

/* ———————— 新增：面包屑导航 ———————— */
.breadcrumb {
  font-size: 16px;
  font-weight:bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}
.breadcrumb a {
  color: #000;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #d12029;
}
.breadcrumb span {
  margin: 0 2px;
  color: #999;
}
.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* 新闻标题 */
.news-details-title {
  font-size: 26px;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}
/* 副标题样式  */
.news-details-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.5;
}
/* 新闻信息：时间 + 来源 */
.news-details-info {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.news-details-info span {
  margin: 0 10px;
}

/* 新闻内容 */
.news-details-content {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
}
.news-details-content img{
	border-radius: 5px;
}


/* 详情页图文相关推荐 */
.related-news {
  width: 1200px;
  margin: auto;
  padding-top: 30px;
  padding-bottom: 50px;
}

.related-title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #409eff;
}

.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.related-img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-text {
  flex: 1;
  min-width: 0;
}

/* 推荐标题 */
.related-text h3 {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-text h3:hover{
	color:#d12029;
	font-weight:bold;
}

/* 推荐副标题 */
.related-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 日期 */
.related-date {
  font-size: 12px;
  color: #bbb;
}


/* 企业展示列表容器 */
.company-list {
  width: 1200px;
  margin: 30px auto;
  margin-top: 0px;
  background: #fff;
  border-radius: 10px;
}

/* 单条企业项 —— 核心弹性布局 */
.company-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px; /* 图片和文字之间的间距 */
  cursor: pointer;
  align-items: flex-start;
}

/* 企业图片 */
.company-img {
  width:300px;
  height: 150px;
  object-fit: cover; /* 保证图片不变形 */
  border-radius: 4px;
}

/* 右侧文字内容区 */
.company-content {
  flex: 1; /* 占满剩余宽度 */
}

/* 企业名称 */
.company-title {
  font-size: 24px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  /* 鼠标移入变红 */
  transition: color 0.2s ease;
}
.company-title:hover {
  color: #d01c25;
  
}

/* 企业产品 */
.company-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
  /* 超出两行显示省略号（可选优化） */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}