/* 商品详情页样式 - Apple 风格章节式纵向滚动 */

.detail-page { padding-bottom: 40px; }

/* ---------- 1. 标题区（左主图 + 右文字） ---------- */
.detail-hero {
  padding: 40px 22px 50px;
  background: linear-gradient(180deg, #f5f7f4 0%, #fbfbfd 100%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
/* 左侧主图 */
.hero-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
/* 右侧文字 */
.hero-text { min-width: 0; }
.category-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--color-tea);
  background: rgba(45, 94, 62, 0.08);
  padding: 6px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.product-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text);
}
.product-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
  line-height: 1.4;
}
.product-description {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- 2. 卖点描述区 ---------- */
.highlights-section { padding: 0 22px; }
.highlights-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.highlight-item {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}
.highlight-icon { flex-shrink: 0; }
.icon-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--color-tea);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
}
.icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(45, 94, 62, 0.1);
  border-radius: 50%;
  font-size: 24px;
}
.highlight-content { flex: 1; min-width: 0; }
.highlight-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
  color: var(--color-text);
}
.highlight-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 3. 详情图区 ---------- */
.gallery-section { padding: 0 22px; }
.gallery-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.gallery-item {
  margin: 0;
  text-align: center;
}
.gallery-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.gallery-item figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-tertiary);
}

/* ---------- 相关推荐 ---------- */
.related-section { padding: 0 22px; }
.related-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.related-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f2;
}
.related-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-cover img { transform: scale(1.04); }
.related-info { padding: 14px 16px; }
.related-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.related-info span {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 832px) {
  .hero-inner {
    grid-template-columns: 1fr;   /* 移动端改为上下堆叠 */
    gap: 24px;
  }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; }
  .product-title { font-size: 26px; }
  .product-subtitle { font-size: 16px; }
  .highlight-item { flex-direction: column; gap: 12px; padding: 20px; }
  .gallery-list { gap: 24px; }
}
