/* 首頁覆寫與本站新段落（2026-10-21）。home.css 是 setuphk.com 首頁 v3 的樣式（產生檔）；跟它不同的地方寫在這裡。 */

/* Divi 全站把 h1–h6 設成 #333、下距 10px、行高 1em；示範稿的標題靠繼承顏色（深色段要白字），這裡還原 */
.hm :is(h1, h2, h3, h4, h5, h6) { color: inherit; padding-bottom: 0; line-height: 1.35; }

/* 主視覺：setuphk.com 的頁首透明疊在照片上，所以高度＝頁首＋741；本站頁首是白底、不疊，主視覺只算 741（手機 760），上方留白也扣掉頁首 */
.hm .hero { min-height: var(--sh-hero-h, 741px); background-image: var(--hm-hero); background-size: cover; background-position: center 62%; }
.hm .hero .in { padding-top: 72px; }
@media (min-width: 1101px) { .hm .hero { min-height: var(--sh-hero-h, 741px); } }
@media (max-width: 760px) {
  .hm .hero { min-height: var(--sh-hero-h-m, 760px); background-image: var(--hm-hero-m); background-position: 14% 50%; }
  .hm .hero .in { padding-top: 48px; }
}

/* 服務段下方一行延伸閱讀（setuphk.com 步驟段 .steps .foot 同款） */
.hm .hm-foot { margin-top: 40px; text-align: center; font-size: 15px; line-height: 1.8; color: var(--sh-subtle); }
.hm .hm-foot a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 760px) { .hm .hm-foot { margin-top: 24px; text-align: left; } }

/* 成功案例：四張客戶照（原首頁輪播），桌機一排四張、手機兩張一排 */
.hm .hm-cases ul { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm .hm-cases li { overflow: hidden; border-radius: var(--sh-r-card); background: #fff; box-shadow: var(--sh-shadow-card); }
.hm .hm-cases img { display: block; width: 100%; height: auto; aspect-ratio: 940 / 788; object-fit: cover; }
.hm .hm-cases .more, .hm .hm-media .more { margin-top: 32px; text-align: center; }
@media (max-width: 760px) {
  .hm .hm-cases ul { margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hm .hm-cases .more, .hm .hm-media .more { text-align: left; margin-top: 20px; }
}

/* 受訪媒體：桌機一張 logo 牆，手機兩張 */
.hm .hm-media img { display: block; max-width: 100%; height: auto; }
.hm .hm-media__d { width: 960px; margin: 40px auto 0; }
.hm .hm-media__m { display: none; }
@media (max-width: 760px) {
  .hm .hm-media__d { display: none; }
  .hm .hm-media__m { display: grid; gap: 8px; margin-top: 20px; }
}

/* 獎項：6 張照片沿用 setuphk.com 的三欄（手機兩欄），不另外覆寫 */

/* 錨點：點「比較移民途徑」跳到服務段時，不被黏住的頁首蓋到 */
.hm #paths { scroll-margin-top: 80px; }

/* 關於：文字欄不要被獎項欄撐高後把「關於朗峰」推到最底（setuphk.com 的 .lk margin-top:auto），本站文字較短 */
.hm .about .txt .lk { margin-top: 0; padding-top: 28px; }

/* 手機首頁：捲離主視覺才顯示浮動鈕（front-page.php 底部的程式加 sh-float-wait／sh-float-on） */
.sh-float { transition: opacity .25s, visibility .25s; }
@media (max-width: 760px) {
  body.sh-float-wait:not(.sh-float-on) .sh-float { opacity: 0; visibility: hidden; pointer-events: none; }
}
