/*
  全站 Skill／AI 正文：標題 Header 1–6（h1–h6）上下留適當空間。
  僅套用在內容容器，不影響 Layout 導航／品牌標題。
  選擇器須覆蓋：legacy body、四欄殼、AI 整頁（.mkt-ai-fullpage）。
*/

.marketing-topic-body h1,
.mkt-shell-four-column .marketing-topic-body h1,
.mkt-ai-fullpage h1,
.mkt-ai-fullpage.marketing-topic-body h1,
#InfoDescription1 h1,
.campaign-body h1,
.lake-container h1,
.skill-content h1 {
    padding-top: 1.35rem !important;
    padding-bottom: 0.7rem !important;
}

.marketing-topic-body h2,
.mkt-shell-four-column .marketing-topic-body h2,
.mkt-ai-fullpage h2,
.mkt-ai-fullpage.marketing-topic-body h2,
#InfoDescription1 h2,
.campaign-body h2,
.lake-container h2,
.skill-content h2 {
    padding-top: 1.2rem !important;
    padding-bottom: 0.6rem !important;
}

.marketing-topic-body h3,
.mkt-shell-four-column .marketing-topic-body h3,
.mkt-ai-fullpage h3,
.mkt-ai-fullpage.marketing-topic-body h3,
#InfoDescription1 h3,
.campaign-body h3,
.lake-container h3,
.skill-content h3 {
    padding-top: 1.05rem !important;
    padding-bottom: 0.55rem !important;
}

.marketing-topic-body h4,
.mkt-shell-four-column .marketing-topic-body h4,
.mkt-ai-fullpage h4,
.mkt-ai-fullpage.marketing-topic-body h4,
#InfoDescription1 h4,
.campaign-body h4,
.lake-container h4,
.skill-content h4 {
    padding-top: 0.9rem !important;
    padding-bottom: 0.45rem !important;
}

.marketing-topic-body h5,
.mkt-shell-four-column .marketing-topic-body h5,
.mkt-ai-fullpage h5,
.mkt-ai-fullpage.marketing-topic-body h5,
#InfoDescription1 h5,
.campaign-body h5,
.lake-container h5,
.skill-content h5 {
    padding-top: 0.8rem !important;
    padding-bottom: 0.4rem !important;
}

.marketing-topic-body h6,
.mkt-shell-four-column .marketing-topic-body h6,
.mkt-ai-fullpage h6,
.mkt-ai-fullpage.marketing-topic-body h6,
#InfoDescription1 h6,
.campaign-body h6,
.lake-container h6,
.skill-content h6 {
    padding-top: 0.7rem !important;
    padding-bottom: 0.35rem !important;
}

/* 區塊開頭第一個標題：縮小頂部留白，避免上方空白過大 */
.marketing-topic-body > h1:first-child,
.marketing-topic-body > h2:first-child,
.marketing-topic-body > h3:first-child,
.marketing-topic-body > h4:first-child,
.marketing-topic-body > h5:first-child,
.marketing-topic-body > h6:first-child,
.mkt-ai-fullpage > h1:first-child,
.mkt-ai-fullpage > h2:first-child,
.mkt-ai-fullpage > h3:first-child,
.mkt-ai-fullpage > h4:first-child,
.mkt-ai-fullpage > h5:first-child,
.mkt-ai-fullpage > h6:first-child,
#InfoDescription1 > h1:first-child,
#InfoDescription1 > h2:first-child,
#InfoDescription1 > h3:first-child,
#InfoDescription1 > h4:first-child,
#InfoDescription1 > h5:first-child,
#InfoDescription1 > h6:first-child,
.campaign-body > h1:first-child,
.campaign-body > h2:first-child,
.campaign-body > h3:first-child,
.campaign-body > h4:first-child,
.campaign-body > h5:first-child,
.campaign-body > h6:first-child,
.lake-container > h1:first-child,
.lake-container > h2:first-child,
.lake-container > h3:first-child,
.lake-container > h4:first-child,
.lake-container > h5:first-child,
.lake-container > h6:first-child,
.skill-content > h1:first-child,
.skill-content > h2:first-child,
.skill-content > h3:first-child,
.skill-content > h4:first-child,
.skill-content > h5:first-child,
.skill-content > h6:first-child {
    padding-top: 0.25rem !important;
}
