/* 基础样式 */
.products-section {
  padding: 60px 0;
  background-color: #f6f2ed;
}

.container {
 mix-width: 1200px;
  margin: 0 auto;
  width: 86%; /* 电脑端宽度为屏幕80% */
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #121318;
}
.section-title font{

  color: #fc5b15;
}

.section-title font:after {

        }

/* 产品网格布局 - 电脑端 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* 交替宽度设置 */
.product-item.wide-left {
  grid-column: span 3;
}

.product-item.narrow-right {
  grid-column: span 1;
}

.product-item.narrow-left {
  grid-column: span 2;
}

.product-item.wide-right {
  grid-column: span 3;
}

/* 产品图片容器 */
.product-image2 {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;

  border-radius: 20px 0px 20px 0px;
/*  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
}

.product-image2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 鼠标悬停放大效果 */
.product-image2:hover img {
  transform: scale(1.06);
}

/* 文字蒙版层 */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  color: white;
  padding: 30px 20px;
  opacity: 1;
  transition: all 0.3s ease;
}

.product-name2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-desc {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* 悬停时文字效果 */
.product-image2:hover .image-overlay {
  padding-bottom: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    width: 95%; /* 移动端增加宽度 */
    padding: 0 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 20px;
  }
  
  /* 移动端所有项目占满宽度 */
  .product-item.wide-left,
  .product-item.narrow-right,
  .product-item.narrow-left,
  .product-item.wide-right {
    grid-column: span 1;
  }
  
  .product-image2 {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 50px;
  }
  
  .product-name2 {
    font-size: 1.3rem;
  }
  
  .product-desc {
    font-size: 0.9rem;
  }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 90%;
  }
  
  .product-image2 {
    height: 350px;
  }
    .product-name2 {
    font-size: 1.3rem;
  }
}

/* 添加滚动动画 */
.product-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟显示动画 */
.product-item:nth-child(1) { transition-delay: 0.1s; }
.product-item:nth-child(2) { transition-delay: 0.2s; }
.product-item:nth-child(3) { transition-delay: 0.3s; }
.product-item:nth-child(4) { transition-delay: 0.4s; }
.product-item:nth-child(5) { transition-delay: 0.5s; }
.product-item:nth-child(6) { transition-delay: 0.6s; }
.product-item:nth-child(7) { transition-delay: 0.7s; }
.product-item:nth-child(8) { transition-delay: 0.8s; }