/* 內頁排版規範（2026-11-06 本人確認）：
   區塊之間 40（手機 32）、區塊內標題或說明→內容 24、卡片內上下 32；
   英文小標放在中文標題同一行的左邊；標題下不放裝飾短線 */

/* 英文小標＋標題同一行 */
.sec-head{ display:block; margin:0 0 24px !important; }
.sec-head > :first-child{ display:inline-flex !important; vertical-align:middle; margin:0 24px 0 0 !important; }
.sec-head > h1, .sec-head > h2{ display:inline-block !important; vertical-align:middle; margin:0 !important; }
.sec-head > :first-child::after{ display:none !important; }
@media (max-width:768px){
  .sec-head > :first-child{ margin-right:14px !important; letter-spacing:.1em !important; }
  .sec-head > :first-child::before{ display:none !important; }
}

/* 區塊之間 40（手機 32）：區塊上下留白；全版圖片的首屏（.hero）與上一頁／下一頁列不套用 */
main > section:not(.hero):not(#hero):not(#svc-banner),
body > section:not(.hero):not(#hero):not(#svc-banner),
main > article.legal,
main > article > section{ padding-top:40px !important; padding-bottom:40px !important; }
@media (max-width:768px){
  main > section:not(.hero):not(#hero):not(#svc-banner),
  body > section:not(.hero):not(#hero):not(#svc-banner),
  main > article.legal,
  main > article > section{ padding-top:32px !important; padding-bottom:32px !important; }
}

/* 區塊內：標題或說明 → 內容 24 */
.sec-head + *{ margin-top:0 !important; }
.section-title, .faq-section-title, .media-title, .article-h2,
.page-cta h2, .faq-cta h2, .case-cta h2{ margin-bottom:24px !important; }
.section-desc{ margin-bottom:24px !important; }
.page-cta p, .faq-cta p, .case-cta p{ margin-bottom:24px !important; }

/* 卡片內上下 32 */
.feat-card, .art-card .body{ padding-top:32px !important; padding-bottom:32px !important; }

/* 文章頁：內文小標或段落 → 下一個內容 24，換到下一個小標前 40；相關服務緊接內文（同底色只留一份 40） */
.art-head h1{ margin-bottom:24px !important; }
.art-body p, .art-body ul, .art-body ol{ margin-bottom:24px !important; }
.art-body h2{ margin:40px 0 24px !important; }
.art-body figure, .art-body .note{ margin:24px 0 !important; }
main > section.art-related{ padding-top:0 !important; }
.art-related h2{ margin-bottom:24px !important; }

/* 文章列表：篩選按鈕 → 文章卡片 24 */
.art-filter{ padding-top:40px !important; }
main > section.art-list{ padding-top:24px !important; }
@media (max-width:768px){ .art-filter{ padding-top:32px !important; } }

/* 區塊最後一個元素不再多留下邊距，下方留白維持 40 */
main > section > :last-child,
main > section > :only-child > :last-child,
body > section > :last-child{ margin-bottom:0 !important; }
/* 說明文字 → 按鈕 24 */
.svc-pricing p{ margin-bottom:24px !important; }
main > section > :last-child > :last-child,
body > section > :last-child > :last-child{ margin-bottom:0 !important; }

/* 個別版型 */
.svc-art-list{ margin-bottom:24px !important; }
.svc-art-list + .case-link{ margin-top:0 !important; }
.pgallery-columns{ margin-top:0 !important; }
.contact-form + .contact-meta{ margin-top:24px !important; }
.wd-section .contact-form{ padding-top:32px !important; padding-bottom:32px !important; }
.svc-intro p{ margin-bottom:24px !important; }
.svc-deliver-label{ margin:40px 0 24px !important; }
main > article.legal > :last-child{ margin-bottom:0 !important; }
