.product-page {
  background: #fff;
  color: #333;
  min-height: 100vh;
  font-family: "Source Han Serif SC VF", "Source Han Serif SC", "Noto Serif SC", serif;
}

.product-container {
  width: min(1080px, 100% - 48px);
  margin: 36px auto 40px;
}

.product-section {
  margin-bottom: 50px;
  scroll-margin-top: 18px;
}

/* 1. 传家系列 */
.heirloom-intro {
  text-align: center;
  margin-bottom: 30px;
}

.heirloom-intro h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 16px;
  font-weight: bold;
  letter-spacing: 1px;
}

.heirloom-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* 统一网格 */
.product-grid {
  display: grid;
  gap: 20px;
}

.heirloom-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding-top: 16px;
  text-align: center;
}

.product-info h4 {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px;
  font-weight: bold;
}

    .product-info p {
        font-size: 16px;
        color: #666;
        margin: 0;
        line-height: 1.6;
    }

/* 2. 饰品系列专区 */
.sub-category {
  margin-bottom: 50px;
}

.sub-category-title {
  text-align: center;
  margin-bottom: 24px;
  color: #666;
  font-size: 16px;
  letter-spacing: 1px;
}

.square-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px; /* Space between images and separate text grids */
}

/* 文本跨列布局 */
.text-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.text-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.text-grid-4 .span-2 {
  grid-column: span 2;
}

/* 其它文玩配饰特殊布局 */
.full-desc {
  text-align: center;
  margin-bottom: 20px;
}

    .full-desc p {
        font-size: 16px;
        color: #555;
        line-height: 1.8;
        margin: 0;
    }

/* 页脚 */
.product-footer {
  border-top: 1px solid #2f2f2f;
  padding: 18px 0 100px;
  margin: 16px auto 24px;
  width: min(1080px, 100% - 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: #1f1f1f;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
  .heirloom-grid,
  .square-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .text-grid-2, .text-grid-4 {
    grid-template-columns: repeat(1, 1fr);
  }
  .text-grid-4 .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 500px) {
  .heirloom-grid,
  .square-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .product-footer {
    width: min(1080px, 100% - 28px);
  }
}

@media (max-width: 720px) {
  .product-footer {
    font-size: 13px;
    gap: 12px;
  }
}
