/* static/css/product.css */
.product-page {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px; /* 原来是 40px，改小点 */
}

.product-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #EC625F;
}


/* 横向排列主图和描述 */
.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-left {
  flex: 0 0 auto;
}

.product-main-image {
  width: 400px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-info {
  flex: 1;
  min-width: 280px;
  max-width: 700px;
  /* 🔥 添加这两行确保内容竖排 + 间距美观 */
  display: flex;
  flex-direction: column;
  gap: 4px;  /* 按钮和描述之间的距离 */
}

.product-info h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.product-description {
  white-space: pre-line;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

.btn-inquiry {
  display: inline-block;
  background-color: #55AEB7;
  color: #FFFFFF;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 50;
  transition: background-color 0.2s ease;
}

.btn-inquiry:hover {
  background-color: #55AEB7;
}

.product-gallery {
  display: flex;
  flex-direction: column; /* ❗ 关键：强制竖排 */
  align-items: center;
  gap: 0;
  margin-top: 40px;
  margin-bottom: 10px; /* ✅ 新增：减少到底部的空隙 */
  justify-content: center;
}

.gallery-image {
  width: 100%;
  max-width: 800px;
  border-radius: 0;
  box-shadow: none;
}

@media screen and (max-width: 768px) {
  .gallery-image {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
  }

  .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
  }
}

/* ✅ 手机适配 */
@media (max-width: 768px) {
  .product-hero {
    flex-direction: column;
  }

  .product-info {
    font-size: 0.95rem;
  }

  .product-main-image {
    max-width: 100%;
    height: auto;
  }

}

/* ✅ 横幅图片 */
.products-banner {
  text-align: center; 
  margin: 20px 0;
} 
.products-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100vw; /* 限制在视口宽度内 */
}

.back-button-container {
  margin: 1.5rem 2rem;
}

.back-to-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #3a7c8b; /* 你喜欢的蓝绿色调 */
  font-size: 1.1rem;
  font-weight: 500;
}

.back-to-list:hover {
  opacity: 0.8;
}

/* 圆形箭头 */
.circle-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #3a7c8b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;         /* 防止被压缩 */
  aspect-ratio: 1 / 1;    /* 保证永远是正圆 */
}

/* 用伪元素画箭头 */
.circle-arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-left: 1px solid #3a7c8b;
  border-bottom: 1px solid #3a7c8b;
  transform: rotate(45deg);
  margin-left: 4px;  /* 💡 视觉居中关键！ */
}

.back-text {
  text-decoration: none;
}

.bottom-back {
  margin-top: 3rem;
  margin-bottom: 2rem;
}



.back-to-list {
  position: absolute;
  padding-left: 0rem; /* ⬅️ 适当内缩 */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #3a7c8b;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.catalogue-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #3a7c8b;
  margin: 0;
  padding-top: 0.2rem;
}

.back-button-container {
  padding-left: 1rem;
  margin-bottom: 1rem; /* ⬅️ 和分隔线拉开 */
}

.back-divider {
  border: none;
  height: 0px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 1.5rem 0;  /* 上下留白 */
}

.back-button-container.bottom-back {
  padding-left: 1rem;
  margin-top: 3rem;
  margin-bottom: 4rem; /* ⬅️ 留出和 footer 的缓冲空间 */
}

/* 👇 在手机端变成上下排列 */
@media (max-width: 768px) {
  .catalogue-header {
    flex-direction: column;
    align-items: flex-start; /* 或 center，看你喜好 */
    padding: 0 1rem;
    gap: 1rem;
  }

  .back-to-list {
    position: static;  /* ❗ 不要 absolute，否则还会重叠 */
    margin-left: 0;
    font-size: 0.95rem;
  }

  .catalogue-title {
    text-align: left;
    font-size: 1.5rem;
  }
}
