
/* 修改容器最大宽度为1400px */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px; /* 修改为1400px */
  width: 100%;
  margin: 0 auto; /* 确保居中 */
}
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
/* 图片容器 - 添加特效 */
.image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}
/* 图片悬停特效 */
.product-card:hover .product-image {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2);
}
/* 图片光晕效果 */
.image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .image-container::after {
  opacity: 1;
}
/* 名称容器 - 添加特效 */
.name-container {
  padding: 20px;
  text-align: center;
  background: white;
  position: relative;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}
/* 名称悬停特效 */
.product-card:hover .product-name {
  color: #ff6b6b;
  transform: scale(1.05);
}
/* 名称下划线动画 */
.product-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #ff6b6b, #4ecdc4);
  transition: width 0.4s ease;
}
.product-card:hover .product-name::after {
  width: 100%;
}
/* 卡片悬浮标签 */
.card-label {
  position: absolute;
  top: 15px;
  right: -30px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  padding: 5px 30px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}
.product-card:hover .card-label {
  right: -25px;
}
/* 响应式设计 - 平板 */
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    padding: 0 15px;
  }
}
@media (max-width: 992px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  .image-container {
    height: 180px;
  }
}
/* 响应式设计 - 大屏手机 */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
	margin-top: 25px;
  }
  .image-container {
    height: 160px;
  }
  .product-name {
    font-size: 16px;
  }
}
/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 350px;
  }
  .image-container {
    height: 200px;
  }
  body {
    padding: 15px;
  }
}