/**
 * 详情页（3D 打印机 + 创客教室）区块标题与副标题统一阶梯
 *
 * 加载顺序：须在 product-detail-theme.css / 3d-printing-makerspace.css（含 .page-section-title 2.5rem）之后，
 * 由 product_detail_page_assembler.php、makerspace_detail_page_assembler.php 追加。
 *
 * 作用域：仅 .product-detail-page、.makerspace-detail-page，不影响 product.css 等列表页裸 .page-section-title。
 *
 * 条块内标题：打印机「深入了解」.deep-dive-text、创客概述 .overview-feature-content、创客课程 .courses-feature-content。
 * 创客「概述视频」标题 .overview-video-title：概述区内**子区块**标题（介于全页 H1 与图文条内 h3 之间），居中 + 短装饰线，**不用**左竖条（避免与条内段落标题混淆）。
 */

/* --------------------------------------------------------------------------
 * 全页主标题 H1（大于一切 H2 区块标题）
 * -------------------------------------------------------------------------- */
.product-detail-page h1#product-detail-page-title.product-detail-page-title,
.product-detail-page h1.product-detail-page-title {
  font-size: clamp(1.75rem, 2.3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
}

.makerspace-detail-page h1#page-section-overview-heading.page-section-title,
.makerspace-detail-page h1#makerspace-detail-page-title.page-section-title {
  font-size: clamp(1.75rem, 2.3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .product-detail-page h1#product-detail-page-title.product-detail-page-title,
  .product-detail-page h1.product-detail-page-title,
  .makerspace-detail-page h1#page-section-overview-heading.page-section-title,
  .makerspace-detail-page h1#makerspace-detail-page-title.page-section-title {
    font-size: clamp(1.5rem, 4.5vw, 1.75rem);
  }
}

/* --------------------------------------------------------------------------
 * 区块标题 H2（含 FAQ 手风琴标题）：明显小于 H1，统一气质
 * -------------------------------------------------------------------------- */
.product-detail-page h2.page-section-title,
.makerspace-detail-page h2.page-section-title,
.product-detail-page #site-faq-accordion-title.page-section-title,
.makerspace-detail-page #site-faq-accordion-title.page-section-title {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.75rem;
  text-align: center;
}

.product-detail-page .page-section h2.page-section-title::after,
.makerspace-detail-page .page-section h2.page-section-title::after,
.product-detail-page #site-faq-accordion-title.page-section-title::after,
.makerspace-detail-page #site-faq-accordion-title.page-section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.5rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.35), rgba(249, 115, 22, 0.85), rgba(249, 115, 22, 0.35));
}

@media (max-width: 768px) {
  .product-detail-page h2.page-section-title,
  .makerspace-detail-page h2.page-section-title,
  .product-detail-page #site-faq-accordion-title.page-section-title,
  .makerspace-detail-page #site-faq-accordion-title.page-section-title {
    font-size: clamp(1.1rem, 3.8vw, 1.3rem);
    margin-bottom: 0.65rem;
  }
}

/* --------------------------------------------------------------------------
 * 区块副标题 / 说明：打印机 zone-subtitle、创客 section-intro、FAQ section-subtitle
 * -------------------------------------------------------------------------- */
.product-detail-page .product-detail-zone-subtitle,
.makerspace-detail-page .product-detail-zone-subtitle,
.makerspace-detail-page .section-intro-text {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--bs-secondary-color, #6c757d);
  text-align: center;
}

.makerspace-detail-page .section-intro-text.makerspace-overview-intro {
  text-align: left;
}

@media (min-width: 768px) {
  .product-detail-page .product-detail-zone-subtitle,
  .makerspace-detail-page .product-detail-zone-subtitle,
  .makerspace-detail-page .section-intro-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

.product-detail-page .product-detail-faq-wrap .section-subtitle,
.makerspace-detail-page .site-faq--accordion .section-subtitle,
.makerspace-detail-page .makerspace-detail-faq-wrap .section-subtitle {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--bs-secondary-color, #6c757d);
  text-align: center;
}

@media (min-width: 768px) {
  .product-detail-page .product-detail-faq-wrap .section-subtitle,
  .makerspace-detail-page .site-faq--accordion .section-subtitle,
  .makerspace-detail-page .makerspace-detail-faq-wrap .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* H2 与紧跟的副标题间距：略收紧，避免「标题-说明」两块离太远 */
.product-detail-page h2.page-section-title + .product-detail-zone-subtitle,
.makerspace-detail-page h2.page-section-title + .section-intro-text,
.product-detail-page #site-faq-accordion-title + .section-subtitle,
.makerspace-detail-page #site-faq-accordion-title + .section-subtitle {
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
 * 创客：概述区内「概述视频」子区块标题（overview_video.title → .overview-video-title）
 * 层级：小于 #section-overview 的 H1，大于图文条内 .overview-feature-content > h3；居中 + 底短装饰线（非左竖条）。
 * -------------------------------------------------------------------------- */
.makerspace-detail-page .overview-video-section .overview-video-title {
  font-size: clamp(1.28rem, 1.75vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text-primary, #0f172a);
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
  padding-left: 0;
  border-left: none;
}

.makerspace-detail-page .overview-video-section .overview-video-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.45rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.78), rgba(249, 115, 22, 0.25));
}

@media (max-width: 768px) {
  .makerspace-detail-page .overview-video-section .overview-video-title {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    margin-bottom: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
 * 条块内标题（图文交替 / 深入了解）：明显小于区 H2，左对齐
 * -------------------------------------------------------------------------- */
.product-detail-page .deep-dive-text > h2,
.product-detail-page .deep-dive-text > h3,
.makerspace-detail-page .overview-feature-content > h3,
.makerspace-detail-page .courses-feature-content > h3 {
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-primary, #0f172a);
  margin-top: 0;
  margin-bottom: 0.6rem;
  text-align: left;
  padding-left: 0.65rem;
  border-left: 3px solid rgba(249, 115, 22, 0.55);
}

@media (max-width: 768px) {
  .product-detail-page .deep-dive-text > h2,
  .product-detail-page .deep-dive-text > h3,
  .makerspace-detail-page .overview-feature-content > h3,
  .makerspace-detail-page .courses-feature-content > h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    padding-left: 0.55rem;
    border-left-width: 2px;
  }
}

/* 条块内一行说明（subtitle）：与区副标题气质一致，左对齐 */
.product-detail-page .deep-dive-text > p.text-muted,
.makerspace-detail-page .overview-feature-content > p.text-muted,
.makerspace-detail-page .courses-feature-content > p.text-muted {
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: left;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .product-detail-page .deep-dive-text > p.text-muted,
  .makerspace-detail-page .overview-feature-content > p.text-muted,
  .makerspace-detail-page .courses-feature-content > p.text-muted {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }
}

/* 条块内富文本正文（概述 deep_dive / 课程描述）：略收紧，与副标题同阶 */
.makerspace-detail-page .makerspace-overview-block-desc,
.makerspace-detail-page .makerspace-courses-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary, #475569);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .makerspace-detail-page .makerspace-overview-block-desc,
  .makerspace-detail-page .makerspace-courses-desc {
    font-size: 1rem;
  }
}

.product-detail-page .deep-dive-body.product-detail-prose {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary, #475569);
}

@media (min-width: 768px) {
  .product-detail-page .deep-dive-body.product-detail-prose {
    font-size: 1rem;
  }
}
