/* 2026-10-21 由 setuphk.com 子主題 assets/setuphk.css 複製：保留 token、文章內文、目錄、CTA、浮動鈕、作者框；拿掉 Elementor 模板專用段落（版面改在 immi.css）。
   以下為原檔說明——SetupHK 品牌樣式：品牌色與字體同 go.setuphk.com v2；版面走 setuphk.com 原有的明亮風（白底、淺灰區塊，2026-10-05 使用者指定）。 */
:root {
  /* 主視覺唯一尺寸（2026-10-17 使用者：以 /setup-company/ 為準，全站一改全改）。
     服務頁、關於我們、聯絡我們的分割款主視覺（.hm-shero2）：桌機 ≥1101px 高 741px、手機 ≤760px 高 760px（2026-10-17 由 910 裁短）；
     首頁（.hm-hero，透明頁首疊在上面）＝頁首高＋上述高度，下緣與服務頁對齊。各頁 css 只引用這幾個變數，不另寫數字。 */
  --sh-hero-h: 741px;
  --sh-hero-h-m: 760px;
  --sh-header-h: 81px;
  --sh-header-h-m: 61px;
  --sh-yellow: #E8B931;
  --sh-yellow-hover: #F0C955;
  --sh-navy: #163375;
  --sh-navy-deep: #0C1B3D;
  --sh-night: #07101F;
  --sh-wa: #075E54;
  --sh-wa-hover: #054C44;
  --sh-text: #111A2C;
  --sh-muted: #4E596D;
  --sh-surface: #F3F5F9;
  --sh-border: #DDE2EB;
  --sh-font: 'Poppins', 'Noto Sans TC', 'PingFang HK', sans-serif;
  --sh-shadow: 0 18px 40px -18px rgba(7, 16, 31, .28);

  /* 字級分兩層：內容層（display/h2/h3/title/prose，只有這層用 700）與框架層（ui/small/micro，最高 500、都比內文小）。
     全站唯一一套；Elementor 模板的 global class sh-display／sh-h3／sh-title／sh-ui／sh-small／sh-micro 用同一組數值，見 DESIGN.md） */
  --sh-fs-display: 3.25rem;   /* 頁面 H1（抬頭區） */
  --sh-fs-h2: 1.75rem;        /* 內文 H2 */
  --sh-fs-h3: 1.25rem;        /* 內文 H3、「相關文章」 */
  --sh-fs-title: 1.125rem;    /* 卡片標題、CTA 標題、側欄標題、目錄標題 */
  --sh-fs-prose: 1.0625rem;   /* 文章內文 */
  --sh-fs-ui: .9375rem;       /* 框架層：選單、按鈕字、清單、卡片摘要、表格 */
  --sh-fs-small: .875rem;     /* 框架層：目錄項目、麵包屑、日期、頁尾連結、chip、小標籤 */
  --sh-fs-micro: .75rem;      /* 牌照、版權 */
  --sh-lh-heading: 1.3;
  --sh-lh-title: 1.45;
  --sh-lh-prose: 1.85;
  --sh-lh-ui: 1.5;
  --sh-lh-small: 1.6;
  --sh-lh-ctl: 1.25;          /* 所有按鈕、可點的列：自帶行高，不繼承內文 */
  /* 尺寸 */
  --sh-ctl-md: 40px;          /* 按鈕高 */
  --sh-ctl-hit: 44px;         /* 分頁、清單列、選單鈕的點擊高度 */
  --sh-ctl-sm: 36px;          /* chip、手機頁首按鈕 */
  --sh-radius-ctl: 6px;
  --sh-radius-card: 8px;
  --sh-radius-pill: 999px;
  --sh-pad-card: 20px;

  /* ---------- 行銷頁 token（首頁、服務頁、關於、聯絡；2026-10-17 使用者「把設定都要 css 的 class 一致性起來」） ----------
     頁面 CSS 由 docs/**/mockups/build_*.py 產生，一律寫成 var(--sh-x, 同值)：括號內預設值只給沒載入本檔的示範稿用，
     必須和這裡的值一致（docs/css-tokens/check_tokens.py 檢查）。-m 結尾是手機值，頁面在自己的 ≤760px 區塊引用，本檔不另設斷點。
     改值：只改這裡，再跑 ./deploy-staging.sh；收斂前後對照見 docs/css-token-audit-2026-10-17.md。 */
  /* 文字顏色 */
  --sh-ink-2: #2D3648;        /* 強內文：評價、法律頁 */
  --sh-subtle: #5A6478;       /* 副標、卡片內文、小字 */
  --sh-faint: #9AA3B2;        /* 停用、刪除線 */
  --sh-gold-ink: #163375;     /* 淺底上的強調字：期限、條文出處（2026-11-10 使用者否決深咖啡金 #6E5410，改深藍） */
  --sh-ok: #1E6B52;
  --sh-danger: #8A2A1F;
  --sh-on-dark-1: rgba(255,255,255,.92);  /* 深底：主要文字 */
  --sh-on-dark-2: rgba(255,255,255,.78);  /* 深底：段落 */
  --sh-on-dark-3: rgba(255,255,255,.62);  /* 深底：註腳 */
  /* 線、底色 */
  --sh-line: #E3E7EE;
  --sh-line-soft: #EEF1F5;
  --sh-surface-2: #F7F8FB;
  --sh-gold-tint: #F4F1E6;
  /* 圓角、陰影 */
  --sh-r-btn: 10px;
  --sh-r-card: 14px;
  --sh-r-panel: 18px;
  --sh-r-tick: 2px;
  --sh-shadow-card: 0 1px 2px rgba(17,26,44,.05),0 16px 32px -22px rgba(17,26,44,.28);
  --sh-shadow-card-hover: 0 1px 2px rgba(17,26,44,.05),0 22px 40px -24px rgba(17,26,44,.4);
  --sh-shadow-media: 0 20px 40px -12px rgba(0,0,0,.45);
  /* 標題字級（桌機／手機 -m） */
  --sh-fs-band: 38px;   --sh-fs-band-m: 26px;    /* 深色帶、CTA 大標 */
  --sh-fs-sec: 34px;    --sh-fs-sec-m: 24px;     /* 區塊標題 */
  --sh-fs-sec-sm: 30px; --sh-fs-sec-sm-m: 22px;  /* 文章牆、指南章節 */
  --sh-fs-card-lg: 22px; --sh-fs-card-lg-m: 19px; /* 大卡標題 */
  --sh-fs-card: 20px;   --sh-fs-card-m: 17px;    /* 卡片標題 */
  --sh-fs-card-sm: 18px; --sh-fs-card-sm-m: 16px; /* 小卡、清單標題 */
  /* 段落字級（第二批：卡片內文、區塊頭段落、深色帶段落）；行高一律 1.8 */
  --sh-fs-lead: 18px;    --sh-fs-lead-m: 15px;     /* 深色帶、CTA、樞紐段落 */
  --sh-fs-sub: 17px;     --sh-fs-sub-m: 15px;      /* 區塊頭段落 */
  --sh-fs-body: 16px;    --sh-fs-body-m: 15px;     /* 長段卡片內文 */
  --sh-fs-body-sm: 15px; --sh-fs-body-sm-m: 14px;  /* 卡片摘要 */
  --sh-lh-body: 1.8;
  /* 按鈕：大（主視覺）58／手機 56、中 50 */
  --sh-btn-h-lg: 58px;   --sh-btn-h-lg-m: 56px;
  --sh-btn-pad-lg: 0 32px;
  --sh-btn-h: 50px;
  --sh-btn-pad: 0 22px;
  --sh-btn-fs: 15px;
  /* 文字連結 */
  --sh-fs-lk: 15px;      --sh-fs-lk-sm: 14px;
  --sh-fw-lk: 700;
  /* 區塊上下留白 */
  --sh-sec-y: 100px;     --sh-sec-y-m: 56px;       /* 一般區塊 */
  --sh-sec-y-lg: 112px;  --sh-sec-y-lg-m: 64px;    /* 深色帶、CTA、樞紐、短片 */
  --sh-sec-y-sm: 72px;   --sh-sec-y-sm-m: 48px;    /* 步驟、文章牆 */
  /* 大數字（第三批）：價錢、評分、步驟號、主視覺數字列 */
  --sh-fs-num-xl: 56px;  --sh-fs-num-xl-m: 44px;   /* 主價錢、評分總分 */
  --sh-fs-num-lg: 46px;  --sh-fs-num-lg-m: 34px;   /* 次價錢、步驟號 */
  --sh-fs-num-md: 40px;  --sh-fs-num-md-m: 28px;   /* 首頁數字列、評分卡 */
  --sh-fs-num-sm: 30px;  --sh-fs-num-sm-m: 22px;   /* 計費器、地圖金額 */
  --sh-fs-num-hero: 28px;                          /* 服務頁主視覺數字列（桌機；手機用 num-sm-m）：主視覺高度 741 的上限 */
}
@media (max-width: 767px) {
  :root { --sh-fs-display: 1.875rem; --sh-fs-h2: 1.5rem; }
}

body {
  font-family: var(--sh-font);
  color: var(--sh-text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sh-yellow); color: var(--sh-night); }
:focus-visible { outline: 3px solid var(--sh-navy); outline-offset: 3px; }

/* 跳到主要內容（鍵盤第一個停點） */
.sh-skip { position: absolute; left: 12px; top: -60px; z-index: 10000; padding: 10px 16px; border-radius: var(--sh-radius-ctl); background: var(--sh-navy); color: #fff; font-size: var(--sh-fs-ui); font-weight: 500; text-decoration: none; }
.sh-skip:focus { top: 12px; color: #fff; }

/* ---------- 文章內文（Elementor「文章內容」widget 與主題預設內容區） ---------- */
.single-post .entry-content,
.single-post .entry-content {
  font-size: var(--sh-fs-prose);
  line-height: var(--sh-lh-prose);
}
.single-post .entry-content :is(h2, h3),
.single-post .entry-content :is(h2, h3) {
  font-family: var(--sh-font);
  font-weight: 700;
  line-height: var(--sh-lh-heading);
  color: var(--sh-text);
  scroll-margin-top: 104px;
  text-wrap: balance;
}
.single-post .entry-content h2,
.single-post .entry-content h2 {
  font-size: var(--sh-fs-h2);
  margin: 2.6em 0 .8em;
  padding-top: .9em;
  border-top: 1px solid var(--sh-border);
}
.single-post .entry-content h3,
.single-post .entry-content h3 {
  font-size: var(--sh-fs-h3);
  margin: 2em 0 .6em;
}
.single-post .entry-content :is(p, ul, ol, table, blockquote),
.single-post .entry-content :is(p, ul, ol, table, blockquote) { margin: 0 0 1.25em; }
.single-post .entry-content a:not(.sh-cta__btn),
.single-post .entry-content a:not(.sh-cta__btn) {
  color: var(--sh-navy);
  text-decoration: underline;
  text-decoration-color: var(--sh-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.single-post .entry-content table,
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sh-fs-ui);
  display: block;
  overflow-x: auto;
}
.single-post .entry-content :is(th, td),
.single-post .entry-content :is(th, td) {
  border: 1px solid var(--sh-border);
  padding: .65em .8em;
  text-align: left;
  vertical-align: top;
}
.single-post .entry-content th,
.single-post .entry-content th { background: var(--sh-surface); font-weight: 700; }
.single-post .entry-content blockquote,
.single-post .entry-content blockquote {
  background: var(--sh-surface);
  padding: 1em 1.25em;
  border-radius: var(--sh-radius-ctl);
}
.single-post .entry-content img,
.single-post .entry-content img { height: auto; border-radius: var(--sh-radius-ctl); }

/* ---------- 文章目錄（平板、手機在內文開頭收合；桌機由 toc.js 搬進側欄） ---------- */
.sh-toc {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-card);
  margin: 0 0 2rem;
}
.sh-toc[hidden] { display: none; }
.sh-toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--sh-ctl-hit);
  padding: .5rem var(--sh-pad-card);
  font-weight: 500;
  font-size: var(--sh-fs-ui);
  line-height: var(--sh-lh-ctl);
  cursor: pointer;
  list-style: none;
}
.sh-toc__title::-webkit-details-marker { display: none; }
.sh-toc__title::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.sh-toc[open] .sh-toc__title::after { transform: rotate(225deg) translateY(-2px); }
.sh-toc__list { margin: 0; padding: 0 var(--sh-pad-card) 1rem 2.5rem; font-size: var(--sh-fs-ui); line-height: var(--sh-lh-ui); }
.sh-toc__list li { margin: .3em 0; }
.sh-toc__list a { color: var(--sh-navy); text-decoration: none; }
.sh-toc__list a:hover { text-decoration: underline; text-decoration-color: var(--sh-yellow); text-decoration-thickness: 2px; }
/* 側欄版：常駐展開、可捲動、標示目前章節 */
.sh-toc--side { margin: 0; background: #fff; }
.sh-toc--side .sh-toc__title { min-height: 0; padding: 16px 20px 8px; color: var(--sh-muted); font-size: var(--sh-fs-small); letter-spacing: .02em; }
.sh-toc--side .sh-toc__title { cursor: default; }
.sh-toc--side .sh-toc__title::after { display: none; }
.sh-toc--side .sh-toc__list {
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding: 0 12px 12px 34px;
  font-size: var(--sh-fs-small);
  overscroll-behavior: contain;
}
.sh-toc--side .sh-toc__list { scrollbar-width: thin; scrollbar-color: var(--sh-border) transparent; }
.sh-toc--side .sh-toc__list li { margin: 0; }
.sh-toc--side .sh-toc__list a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: 4px; color: var(--sh-muted); transition: color .15s, background-color .15s; }
.sh-toc--side .sh-toc__list a:hover { color: var(--sh-navy); }
.sh-toc--side .sh-toc__list a.is-active { color: var(--sh-navy); font-weight: 500; background: var(--sh-surface); }

/* ---------- 文中／文末 WhatsApp CTA：框架層的低調旁註（字重、字級都低於 H3 與內文） ---------- */
.sh-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 2rem 0;
  padding: 16px 20px;
  border-radius: var(--sh-radius-card);
  background: var(--sh-surface);
  color: var(--sh-text);
}
.sh-cta__body { flex: 1 1 16rem; min-width: 0; }
/* 內文 p 的 margin 規則權重較高，這裡要壓過 */
.single-post .entry-content .sh-cta p { margin: 0; }
.sh-cta .sh-cta__title { font-weight: 500; font-size: var(--sh-fs-ui); line-height: var(--sh-lh-ui); color: var(--sh-text); }
.single-post .entry-content .sh-cta .sh-cta__desc { margin-top: 2px; color: var(--sh-muted); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.single-post .entry-content .sh-cta .sh-cta__link { margin-top: 4px; color: var(--sh-muted); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.sh-cta .sh-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: var(--sh-ctl-md);
  padding: 0 16px;
  border-radius: var(--sh-radius-ctl);
  border: 1px solid var(--sh-navy);
  background: var(--sh-navy);
  color: #fff !important;
  font-weight: 500;
  font-size: var(--sh-fs-ui);
  line-height: var(--sh-lh-ctl);
  text-decoration: none !important;
  transition: background-color .2s, color .2s;
}
.sh-cta .sh-cta__btn:hover { background: var(--sh-navy-deep); border-color: var(--sh-navy-deep); }
/* 文中那個用次要樣式，只有文末是實心 */
.sh-cta--mid .sh-cta__btn { background: #fff; color: var(--sh-navy) !important; }
.sh-cta--mid .sh-cta__btn:hover { background: var(--sh-navy); color: #fff !important; }
@media (max-width: 767px) {
  .sh-cta { flex-direction: column; align-items: flex-start; padding: 16px; }
  /* 直排時 flex-basis 16rem 會變成「高度」，撐出約 256px 空白 */
  .sh-cta__body { flex: none; width: 100%; }
  .sh-cta .sh-cta__btn { min-height: var(--sh-ctl-hit); }
}
.sh-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 浮動 WhatsApp＋電話 ---------- */
.sh-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
/* setuphk.com 這裡有「手機首頁捲離主視覺才顯示浮動鈕」一條（靠 home.js 加 body.sh-float-on）；本站沒有 home.js，刪掉，否則手機首頁永遠沒有浮動鈕（2026-10-21） */

.sh-float__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--sh-radius-pill);
  color: #fff !important;
  font-weight: 500;
  font-size: var(--sh-fs-ui);
  line-height: var(--sh-lh-ctl);
  text-decoration: none !important;
  box-shadow: 0 10px 24px -8px rgba(7, 16, 31, .45);
  transition: background-color .2s;
}
.sh-float__btn--tel { background: var(--sh-navy); width: 48px; height: 48px; }
.sh-float__btn--tel:hover { background: var(--sh-navy-deep); }
.sh-float__btn--wa { background: var(--sh-wa); width: 56px; height: 56px; }
.sh-float__btn--wa:hover { background: var(--sh-wa-hover); }
.sh-float__btn--wa .sh-icon { width: 1.75rem; height: 1.75rem; }
.sh-float__label { display: none; }
/* blog 三模板＋作者頁：桌機有側欄聯絡卡，浮動鈕收起；手機只留 WhatsApp，避免同一意圖三個入口 */
@media (min-width: 1025px) {
  :is(.single-post, .blog, .category, .author) .sh-float { display: none; }
}
@media (max-width: 767px) {
  :is(.single-post, .blog, .category, .author) .sh-float__btn--tel { display: none; }
}
@media (min-width: 1200px) {
  .sh-float { align-items: stretch; }  /* 兩顆膠囊同寬（跟較長那顆），不要上長下短（2026-10-19 使用者） */
  .sh-float__btn { width: auto; height: auto; padding: .7rem 1.2rem .7rem 1rem; }
  .sh-float__btn--wa .sh-icon { width: 1.4rem; height: 1.4rem; }
  .sh-float__label { display: inline; }
}
@media print { .sh-float, .sh-cta { display: none; } }


/* 文末作者框：白底細框卡，圓形相片 72（手機 56）；字全部框架層，名字 500 不用 700 */
.sh-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 2.5rem 0 1.5rem;
  padding: var(--sh-pad-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-card);
  background: #fff;
}
/* 要壓過內文 img 的 6px 圓角與 height:auto */
.single-post .entry-content .sh-author .sh-author__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.sh-author__body { flex: 1 1 auto; min-width: 0; }
.single-post .entry-content .sh-author p { margin: 0; }
.single-post .entry-content .sh-author .sh-author__label { color: var(--sh-muted); font-size: var(--sh-fs-small); font-weight: 500; line-height: var(--sh-lh-small); }
.single-post .entry-content .sh-author .sh-author__name { margin-top: 2px; font-size: var(--sh-fs-ui); font-weight: 500; line-height: var(--sh-lh-ui); }
.single-post .entry-content .sh-author .sh-author__name a { color: var(--sh-text); text-decoration: none; }
.single-post .entry-content .sh-author .sh-author__title { color: var(--sh-muted); font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.single-post .entry-content .sh-author .sh-author__bio { margin-top: 8px; color: var(--sh-text); font-size: var(--sh-fs-ui); line-height: 1.7; }
.single-post .entry-content .sh-author .sh-author__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: var(--sh-fs-small); line-height: var(--sh-lh-small); }
.single-post .entry-content .sh-author .sh-author__links a { color: var(--sh-navy); font-weight: 500; }
/* 手機：相片＋名字職稱一列，簡介與連結改整寬（之前被擠成 223px 窄欄） */
@media (max-width: 767px) {
  .sh-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; align-items: center; }
  .single-post .entry-content .sh-author .sh-author__bio { margin-top: 12px; }
  .sh-author__body { display: contents; }
  .single-post .entry-content .sh-author .sh-author__photo { width: 56px; height: 56px; grid-row: 1 / span 3; }
  .sh-author :is(.sh-author__label, .sh-author__name, .sh-author__title) { grid-column: 2; }
  .sh-author :is(.sh-author__bio, .sh-author__links) { grid-column: 1 / -1; }
}
