/* 朗峰國際移民 版面（2026-10-21）：setuphk.com 的頁首外框、文章頁、列表頁模板原本在 Elementor Theme Builder 裡，
   這裡把同樣的數值改寫成 functions.php／single.php／archive.php／page-taiwan-blog.php 輸出的標記用。
   數值一律用 setuphk.css 的 token；規格見 immi-intl/DESIGN.md。Divi 的全站樣式（p 下距、h 標題行高、ul 內距、連結色）在 .shp 裡重設。 */

/* ---------- 共用容器：最寬 1376px，外距 桌機 72／筆電、平板 40／手機 20（同頁首、頁尾） ---------- */
.sh-wrap { box-sizing: border-box; width: 100%; max-width: calc(1376px + 144px); margin: 0 auto; padding-left: 72px; padding-right: 72px; }
@media (max-width: 1280px) { .sh-wrap { max-width: calc(1376px + 80px); padding-left: 40px; padding-right: 40px; } }
@media (max-width: 767px) { .sh-wrap { padding-left: 20px; padding-right: 20px; } }

/* ---------- 頁首（setuphk.com 頁首模板 8388）：白底、高 80（手機 60）、捲動時黏在頂端 ---------- */
.shh { position: sticky; top: 0; z-index: 9980; background: #fff; border-bottom: 1px solid var(--sh-line); font-family: var(--sh-font); }
.admin-bar .shh { top: 32px; }
@media (max-width: 782px) { .admin-bar .shh { top: 46px; } }
.shh__in { box-sizing: border-box; display: flex; align-items: center; max-width: calc(1376px + 144px); height: 80px; margin: 0 auto; padding: 0 72px; }
@media (max-width: 1280px) { .shh__in { max-width: calc(1376px + 80px); padding: 0 40px; } }
.shh__logo { display: block; flex: none; line-height: 0; }
.shh__logo img { display: block; width: 171px; height: auto; }
.shh .shn { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; margin-right: 16px; }
.shh__cta { display: inline-flex; align-items: center; gap: 8px; flex: none; box-sizing: border-box; height: var(--sh-ctl-md); padding: 0 16px; border-radius: var(--sh-radius-ctl); background: var(--sh-navy); color: #fff !important; font-size: var(--sh-fs-ui); font-weight: 500; line-height: var(--sh-lh-ctl); white-space: nowrap; text-decoration: none !important; transition: background-color .2s; }
.shh__cta:hover { background: var(--sh-navy-deep); }
.shh__cta .sh-icon { width: 16px; height: 16px; }
/* 平板、手機：logo｜預約諮詢｜選單鍵（同 setuphk.com） */
@media (max-width: 1199px) {
  .shh .shn { order: 3; flex: 0 0 auto; margin: 0 -8px 0 8px; }
  .shh__cta { margin-left: auto; }
}
@media (max-width: 767px) {
  .shh__in { height: 60px; padding: 0 20px; }
  .shh__logo img { width: 143px; }
  .shh__cta { height: var(--sh-ctl-sm); padding: 0 12px; font-size: var(--sh-fs-small); }
}
/* nav.css 的按鈕在 Divi 底下也要重設（Divi 給 button 加了邊框、字型） */
.shn button { font-family: inherit; letter-spacing: normal; }

/* ---------- 文章頁、列表頁：重設 Divi 全站樣式 ---------- */
.shp { font-family: var(--sh-font); color: var(--sh-text); font-size: 16px; line-height: var(--sh-lh-small); background: #fff; }
.shp :is(h1, h2, h3, h4, h5, h6) { font-family: var(--sh-font); color: var(--sh-text); padding-bottom: 0; }
.shp p { padding-bottom: 0; }
.shp a { color: var(--sh-navy); }

/* ---------- 抬頭區（深藍）：文章頁＝首圖模糊當底＋漸層遮罩；列表頁＝深藍底＋右側斜光帶 ---------- */
.shp-hero { position: relative; overflow: hidden; color: #fff; background: var(--sh-navy-deep); }
.shp-hero--post::before { content: ""; position: absolute; inset: -12px; background: var(--shp-bg, none) center 20% / cover no-repeat; filter: blur(3px); }
.shp-hero--post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 27, 61, .84), rgba(22, 51, 117, .92)); }
.shp-hero--list { background: var(--sh-navy); }
.shp-hero--list::before, .shp-hero--list::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; }
.shp-hero--list::after { right: -8%; width: 44%; background: linear-gradient(115deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .13) 100%); clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%); }
.shp-hero--list::before { right: 27%; width: 22%; background: linear-gradient(180deg, rgba(255, 200, 0, .95), rgba(255, 200, 0, .55)); clip-path: polygon(calc(100% - 6px) 0, 100% 0, 6px 100%, 0 100%); }
.shp-hero__in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; }
.shp .shp-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); color: rgba(255, 255, 255, .72); }
.shp .shp-crumb a { color: inherit; text-decoration: none; }
.shp .shp-crumb a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sh-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.shp .shp-hero__meta { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--sh-radius-pill); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); color: rgba(255, 255, 255, .85); }
.shp .shp-hero__meta a { color: #fff; font-weight: 500; text-decoration: none; }
.shp .shp-hero__meta a:hover { text-decoration: underline; text-decoration-color: var(--sh-yellow); }
.shp .shp-hero__title { max-width: 30em; margin: 16px 0 0; color: #fff; font-size: var(--sh-fs-display); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.shp--single .shp-hero__title { max-width: 24em; font-size: 40px; line-height: 1.35; }
.shp .shp-hero__lead { max-width: 46em; margin-top: 14px; color: rgba(255, 255, 255, .78); font-size: var(--sh-fs-prose); line-height: 1.7; }
.shp--single .shp-hero__lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
  .shp-hero__in { padding-top: 48px; padding-bottom: 44px; }
  .shp--single .shp-hero__title { font-size: 34px; }
  .shp-hero--list::before { right: 8%; width: 34%; }
}
@media (max-width: 767px) {
  .shp-hero__in { padding-top: 44px; padding-bottom: 40px; }
  .shp--single .shp-hero__title { font-size: 24px; }
  .shp .shp-hero__meta { padding: 0; border: 0; }
  .shp-hero--list::before { display: none; }
  .shp-hero--list::after { width: 70%; right: -20%; }
}

/* ---------- 兩欄：內文 800（列表頁卡片欄）＋右側欄 340（列表 320）；≤1024 側欄收起 ---------- */
.shp-cols { display: grid; grid-template-columns: minmax(0, 800px) 340px; justify-content: space-between; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.shp-cols--list { grid-template-columns: minmax(0, 1fr) 320px; }
.shp-side { align-self: start; position: sticky; top: 104px; display: grid; gap: 16px; }
@media (max-width: 1024px) {
  .shp-cols, .shp-cols--list { grid-template-columns: minmax(0, 1fr); }
  .shp-side { display: none; }
}
@media (max-width: 767px) { .shp-cols { padding-top: 32px; padding-bottom: 48px; } }

/* ---------- 文章內文：setuphk.css 已定字級與標題；這裡只補 Divi 會蓋掉的清單與圖片 ---------- */
.shp-article { min-width: 0; color: var(--sh-text); }
.shp-article > :first-child { margin-top: 0; }
.shp-article :is(ul, ol) { padding: 0 0 0 1.5em; line-height: inherit; }
.shp-article ul { list-style: disc; }
.shp-article li { margin: .3em 0; }
.shp-article .sh-toc__list { padding: 0 var(--sh-pad-card) 1rem 2.5rem; list-style: decimal; }
.shp-article img { max-width: 100%; }
.shp-article h2:first-of-type { margin-top: 1.6em; }

/* ---------- 側欄：聯絡卡、分類清單 ---------- */
.shp-card, .shp-box { padding: 16px 20px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-card); background: #fff; }
.shp .shp-card__title, .shp .shp-box__title { margin-bottom: 12px; color: var(--sh-text); font-size: var(--sh-fs-ui); font-weight: 500; line-height: var(--sh-lh-ui); }
.shp .shp-box__title { color: var(--sh-muted); font-size: var(--sh-fs-small); }
.shp .shp-card__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: var(--sh-ctl-md); border-radius: var(--sh-radius-ctl); background: var(--sh-navy); color: #fff; font-size: var(--sh-fs-ui); font-weight: 500; line-height: var(--sh-lh-ctl); text-decoration: none; }
.shp .shp-card__btn:hover { background: var(--sh-navy-deep); }
.shp .shp-card__tel { margin-top: 12px; text-align: center; color: var(--sh-muted); font-size: var(--sh-fs-small); }
.shp .shp-card__tel a { font-weight: 500; text-decoration: none; }
.shp .shp-card__tel a:hover { text-decoration: underline; text-decoration-color: var(--sh-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.shp .shp-card__lic { margin-top: 6px; text-align: center; color: var(--sh-muted); font-size: var(--sh-fs-micro); }
.shp-side .sh-toc--side { margin: 0; }
.shp-cats { list-style: none; margin: 0; padding: 0; }
.shp-cats li + li { border-top: 1px solid var(--sh-border); }
.shp .shp-cats a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; color: var(--sh-text); font-size: var(--sh-fs-ui); line-height: var(--sh-lh-ui); text-decoration: none; }
.shp .shp-cats a span { color: var(--sh-muted); font-variant-numeric: tabular-nums; }
.shp .shp-cats a:hover { color: var(--sh-navy); }
.shp .shp-cats a[aria-current] { padding-left: 12px; padding-right: 12px; border-radius: var(--sh-radius-ctl); background: var(--sh-surface); color: var(--sh-navy); font-weight: 500; }

/* ---------- 列表卡片：兩欄（手機一欄），標題、摘要最多 3 行 ---------- */
.shp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .shp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.shp-post { min-width: 0; }
.shp .shp-post__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-card); background: #fff; color: var(--sh-text); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.shp .shp-post__link:hover { border-color: var(--sh-navy); box-shadow: var(--sh-shadow-card-hover); }
.shp-post__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sh-surface); }
.shp-post__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shp-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.shp .shp-post__meta { color: var(--sh-muted); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.shp .shp-post__meta span { margin: 0 4px; }
.shp .shp-post__title { margin: 0; font-size: var(--sh-fs-title); font-weight: 700; line-height: var(--sh-lh-title); }
.shp .shp-post__ex { color: var(--sh-muted); font-size: var(--sh-fs-ui); line-height: var(--sh-lh-ui); }
.shp :is(.shp-post__title, .shp-post__ex) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shp .shp-post__link:hover .shp-post__title { color: var(--sh-navy); }

/* ---------- 分頁：44px 方鈕，目前頁深藍實心 ---------- */
.shp-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.shp .shp-pager :is(a, span) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: var(--sh-ctl-hit); height: var(--sh-ctl-hit); padding: 0 14px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-ctl); color: var(--sh-navy); font-size: var(--sh-fs-ui); font-weight: 500; line-height: var(--sh-lh-ctl); text-decoration: none; }
.shp .shp-pager a:hover { border-color: var(--sh-navy); }
.shp .shp-pager .current { background: var(--sh-navy); border-color: var(--sh-navy); color: #fff; }
.shp .shp-pager .dots { border-color: transparent; }
@media (max-width: 767px) { .shp .shp-pager :is(.prev, .next) { flex-basis: 100%; } }

/* ---------- 相關文章 ---------- */
.shp-rel { max-width: 800px; padding: 0 0 72px; }
.shp .shp-rel__h { margin: 0 0 12px; font-size: var(--sh-fs-h3); font-weight: 700; line-height: var(--sh-lh-heading); }
.shp-rel__list { list-style: none; margin: 0; padding: 0; }
.shp-rel__list li { border-top: 1px solid var(--sh-border); }
.shp-rel__list li:last-child { border-bottom: 1px solid var(--sh-border); }
.shp .shp-rel__list a { display: block; padding: 10px 0; color: var(--sh-text); font-size: var(--sh-fs-ui); line-height: var(--sh-lh-ui); text-decoration: none; }
.shp .shp-rel__list a:hover { color: var(--sh-navy); text-decoration: underline; text-decoration-color: var(--sh-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- /taiwan-blog/ 受訪媒體 ---------- */
.shp-media { padding-top: 8px; padding-bottom: 72px; }
.shp .shp-media__h { margin: 0 0 16px; font-size: var(--sh-fs-h3); font-weight: 700; line-height: var(--sh-lh-heading); }
.shp-media img { display: block; max-width: 100%; height: auto; }
.shp-media__d { max-width: 960px !important; }
.shp-media__m { display: none; }
@media (max-width: 760px) {
  .shp-media__d { display: none !important; }
  .shp-media__m { display: grid; gap: 8px; }
}

/* ---------- Divi 排版的頁面：品牌字體（Divi 模組自己指定字型的不動） ---------- */
body { font-family: var(--sh-font); }

/* ---------- 跟 setuphk.com 不同處 ---------- */
/* 最右兩組的下拉面板改靠右展開，否則 360px 面板超出 1440 畫面，整頁可以左右捲 */
@media (min-width: 1200px) {
  .shn__item:nth-last-child(-n+2) > .shn__panel { left: auto; right: -8px; }
}
/* 浮動鈕：setuphk.css 用 .blog／.category 判斷 blog 頁；本站 /taiwan-blog/ 是固定頁面，改看 body.sh-blog（functions.php） */
@media (min-width: 1025px) { .sh-blog .sh-float { display: none; } }
@media (max-width: 767px) { .sh-blog .sh-float__btn--tel { display: none; } }
/* Divi「回到頂端」鈕（佈景選項 divi_back_to_top）會跟浮動 WhatsApp 鈕疊在右下角；setuphk.com 沒有這顆，收起 */
.et_pb_scroll_top { display: none !important; }

/* ---------- 頁尾（跟 setuphk.com 不同；使用者 2026-10-21：保留淺色版，加舊頁尾的城市剪影；牌照是「聯絡我們」第一行文字） ---------- */
/* 城市剪影：舊頁尾 taiwan-skyline.png 當遮罩，上淡深藍色，放在頁尾底部 */
.shf--skyline { position: relative; isolation: isolate; overflow: hidden; }
.shf--skyline::before {
  content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: min(1389px, 120%); aspect-ratio: 1389 / 359; transform: translateX(-50%);
  background: rgba(22, 51, 117, .07);
  -webkit-mask: url("/wp-content/uploads/2026/10/taiwan-skyline-1.png") center bottom / contain no-repeat;
          mask: url("/wp-content/uploads/2026/10/taiwan-skyline-1.png") center bottom / contain no-repeat;
  pointer-events: none;
}
.shf--dark .shf__logo img { filter: brightness(0) invert(1); }
/* 頁尾連結三組（setuphk.com 是四組排 2×2）：桌機三欄並排 */
@media (min-width: 1101px) { .shf__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; } }
@media (max-width: 1100px) and (min-width: 761px) { .shf__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 第一欄的牌照行：介紹下面，跟聯絡清單同款（盾牌圖示＋文字，整行連到牌照頁） */
.shf__brandlic { margin-top: 16px; }
.shf__brandlic .shf__cv { color: var(--f-head); font-weight: 500; }

/* ---------- 一般頁面（Elementor 主機版 page.php）：問答摺疊、內文圖片 ---------- */
.shp-article details { margin: 0 0 12px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-card); background: #fff; }
.shp-article details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--sh-ctl-hit); padding: 12px 20px; font-weight: 500; line-height: var(--sh-lh-ui); cursor: pointer; list-style: none; }
.shp-article details > summary::-webkit-details-marker { display: none; }
.shp-article details > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.shp-article details[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.shp-article details > :not(summary) { margin: 0 20px 16px; }
.shp--page .shp-article img { display: block; margin: 0 auto; }
/* 內文的 YouTube 等內嵌（WordPress oEmbed 固定 800 寬）：跟欄寬縮放，16:9 */
.shp-article iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* 文章抬頭署名（作者相片＋名字＋職稱，同 setuphk.com） */
.shp-hero__by { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: rgba(255, 255, 255, .85); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.shp-hero__by-photo { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.shp-hero__by > span { display: flex; flex-direction: column; }
.shp-hero__by a { color: #fff; font-weight: 500; text-decoration: none; }
.shp-hero__by a:hover, .shp-hero__by a:focus-visible { text-decoration: underline; }
