/* 敦洋法律三站｜共用版面（顏色一律讀各站設定檔 theme 產生的 :root 變數，這裡不寫死任何品牌色）
   文章頁的「文章彩版」十二元素：規格正本在 業主設定/_共用/文章彩版規範.md，這裡實作 ①～⑪（⑫只套 Jimmy 自有站，不適用） */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px; line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { overflow-wrap: anywhere; text-wrap: balance; }
p, li, dd, figcaption, summary { text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ln { display: inline-block; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* 畫面上看不到、但鍵盤與報讀軟體用得到 */

/* ── 頁首 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; min-width: 0; }
.brand-mark { display: block; width: 46px; height: 46px; flex: none; }     /* Logo 圖形（logos/<站>.svg 直接嵌進頁面） */
.brand-mark svg, .net-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--brand); white-space: nowrap; }
.brand-sub { font-size: 11px; line-height: 1.4; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 15.5px; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--tint); }
.main-nav a[aria-current] { color: var(--brand); background: var(--accent-soft); font-weight: 700; }
.nav-short { display: none; }
.nav-ico { display: none; }
.header-cta { flex: none; }
/* 頁首右邊的聯絡按鈕（設定檔 header_actions）：LINE 用 LINE 自己的綠色；手機版收起來，由置底聯絡列負責 */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 18px; }
.hd-act { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.hd-act .ico { width: 19px; height: 19px; }
.hd-line { padding: 10px 16px; border-radius: 8px; background: #06C755; color: #fff; font-size: 15px; }
.hd-line:hover { filter: brightness(1.05); }
.hd-phone { color: var(--brand); }
.hd-text { display: flex; flex-direction: column; line-height: 1.2; }
.hd-label { font-size: 11.5px; letter-spacing: .06em; opacity: .85; }
.hd-num { font-size: 16.5px; letter-spacing: .02em; }

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
.btn-primary, .btn-accent { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.btn-phone { background: var(--brand); color: var(--on-brand); }
.btn-line { background: #06C755; color: #fff; }
.btn-ico { width: 19px; height: 19px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-row-center { justify-content: center; margin-top: 36px; }
.hero .btn-ghost, .has-media .btn-ghost { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 55%, transparent); }

/* ── 首屏 ── */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: min(80vh, 720px); color: var(--hero-ink); }
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img, .page-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--shade) 0%, var(--shade) 30%, var(--shade-mid) 52%, transparent 78%); }
.hero-inner { padding: 96px 0 104px; width: min(1180px, 100% - 32px); }
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--accent-ink); }
.eyebrow-hero { color: var(--hero-eyebrow); }
.hero-title { margin: .1em 0 .5em; font-family: "Noto Serif TC", serif; font-weight: 700;
  font-size: clamp(32px, 4.8vw, 56px); line-height: 1.3; letter-spacing: .02em; }
.hero-lead { margin: 0; max-width: 32em; font-size: clamp(17px, 1.55vw, 19.5px); color: var(--hero-sub); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 15px; color: var(--hero-sub); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--hero-eyebrow); width: 18px; height: 18px; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 52px 0 50px; background: var(--tint); }
.page-hero.has-media { min-height: 360px; display: flex; align-items: flex-end; padding: 96px 0 64px; color: var(--hero-ink); }
.page-hero.has-media .hero-shade { background: linear-gradient(90deg, var(--shade) 0%, var(--shade) 36%, var(--shade-mid) 62%, transparent 92%); }
.page-hero-inner { position: relative; }
.page-title { margin: 4px 0 12px; font-family: "Noto Serif TC", serif; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.32; color: var(--brand); max-width: 22em; }
.has-media .page-title { color: var(--hero-ink); }
.page-hero-lead { margin: 0; max-width: 38em; font-size: 18px; color: var(--muted); }
.has-media .page-hero-lead { color: var(--hero-sub); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 16px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs li[aria-current] { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs ol { flex-wrap: nowrap; min-width: 0; }
.crumbs li { flex: none; }
.crumbs li[aria-current] { flex: 0 1 auto; }
.crumbs a:hover { text-decoration: underline; }
.has-media .crumbs ol { color: var(--hero-sub); }

/* ── 區段 ── */
.sec { position: relative; isolation: isolate; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0; }   /* overflow：各款式的背景裝飾超出段落時裁掉，手機才不會左右晃 */
.sec-tint { background: var(--tint); }
.sec-surface { background: var(--surface); }
.sec.sec-notice { padding-block: clamp(36px, 5vw, 56px); }     /* 只有一個提醒框的段落，不用整段大留白 */
/* 相鄰兩段同底色時，中間的留白不要疊兩次（例：表格後面接提醒框）；這條要排在上一條後面 */
.sec-plain + .sec-plain, .sec-tint + .sec-tint, .sec-surface + .sec-surface { padding-top: 0; }
/* 深色段落（tone: dark）：品牌深色底。內文用頁尾那組字色（配色檢查有驗它們壓在品牌色上的對比） */
.sec-dark { background-color: var(--brand); color: var(--footer-ink); }
.sec-dark .sec-title, .sec-dark h3, .sec-dark :is(.step, .tl-body, .card) h3 { color: #fff; }   /* 元件自己的字色寫在後面，這裡要多一層才蓋得過 */
.sec-dark .sec-lead, .sec-dark .sec-note, .sec-dark p, .sec-dark :is(.step, .tl-body, .card) p { color: var(--footer-ink); }
.sec-dark .eyebrow { color: var(--footer-head); }
.sec-dark a { color: #fff; }
.sec-dark mark { color: var(--ink); }
.sec-dark .step { background: color-mix(in srgb, #fff 6%, transparent); border-color: color-mix(in srgb, #fff 18%, transparent); }
.sec-dark .step-num, .sec-dark .tl-when { color: var(--footer-head); }
.sec-dark .timeline::before { background: color-mix(in srgb, #fff 24%, transparent); }
.sec-dark .tl-item::before { background: var(--brand); border-color: var(--footer-head); }
/* 深色段落裡的時間線：電腦版標題放左、時間線放右，不要右半邊整片空白 */
@media (min-width: 981px) {
  .sec-dark .wrap:has(> .timeline) { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 0 64px; align-items: start; }
  .sec-dark .wrap:has(> .timeline) > .sec-head { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .sec-dark .wrap:has(> .timeline) > .timeline, .sec-dark .wrap:has(> .timeline) > .sec-note { grid-column: 2; }
}
.sec-head { max-width: 780px; margin-bottom: 42px; }
.sec-head-center { margin-inline: auto; text-align: center; }
/* 中文段落左右對齊（2026-10-06 Jimmy 看手機版律師介紹：「文字右邊居然還強制讓位，導致視覺上好像偏左」）：靠左排時，
   每行塞不下最後一個字的空間全留在右邊（量到 12～13px），上面的照片又是滿版，整段看起來偏左。只挑靠左排的段落，置中的不動 */
.person-sum, .page-hero-lead, .split-copy p, .card-body p, .step-body p, .tl-body p, .acc-body p, .prose p, .art-body p,
.sec-head:not(.sec-head-center) .sec-lead { text-align: justify; text-justify: inter-character; }
.sec-title { margin: 0 0 14px; font-family: "Noto Serif TC", serif; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.38; color: var(--brand); }
.sec-lead { margin: 0; font-size: 17.5px; color: var(--muted); }
.sec-note { margin: 20px 0 0; font-size: 14.5px; color: var(--muted); }

/* ── 卡片 ── */
.cards { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-1 { grid-template-columns: minmax(0, 400px); }
.cols-few.cols-2 { grid-template-columns: repeat(2, minmax(0, 400px)); }
.cols-center { justify-content: center; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .4); }
.card-media { overflow: hidden; background: var(--tint); }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.card-link:hover .card-img { transform: scale(1.04); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 26px 26px 0; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent-ink); }
.card-icon .ico { width: 27px; height: 27px; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 26px 26px; }
.card h3 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 21px; line-height: 1.42; color: var(--brand); }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card-tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink) !important; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; color: var(--brand); }
.more-ico { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .more-ico, .text-link:hover .more-ico, .net-card:hover .more-ico { transform: translateX(3px); }

/* ── 左右圖文 ── */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 28px 60px -34px rgba(0, 0, 0, .5); }
.split-copy p { margin: 0 0 14px; }
.split-quote { position: relative; padding: clamp(34px, 5vw, 60px); border-radius: 26px; background: var(--brand); overflow: hidden; }
.split-quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font-family: "Noto Serif TC", serif; font-size: 180px; line-height: 1; color: var(--accent); opacity: .35; }
.split-quote::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .22; }
.split-quote blockquote { position: relative; z-index: 1; margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.6; color: #fff; }
.split-quote figcaption { position: relative; z-index: 1; margin-top: 18px; font-size: 15px; letter-spacing: .1em; color: var(--accent); }
.checks { display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .ico { width: 19px; height: 19px; margin-top: 5px; color: var(--accent-ink); }
.checks-lg { gap: 14px; font-size: 17px; }

/* ── 步驟、時間線 ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.step { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.step-num { display: block; margin-bottom: 12px; font-family: "Noto Serif TC", serif; font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent); }
.step h3 { margin: 0 0 6px; font-family: "Noto Serif TC", serif; font-size: 19.5px; color: var(--brand); }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 0 0 30px 38px; }
.tl-item::before { content: ""; position: absolute; left: 1px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); }
.tl-when { padding-top: 1px; font-weight: 700; font-size: 15px; color: var(--accent-ink); }
.tl-body h3 { margin: 0 0 4px; font-family: "Noto Serif TC", serif; font-size: 19.5px; color: var(--brand); }
.tl-body p { margin: 0; color: var(--muted); }

/* ── 律師 ── */
.people { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.people-1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; }
.person { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.person-photo { position: relative; margin: 0; background: var(--tint); }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 24px; }
.person-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; }
.person-name { margin: 0; font-family: "Noto Serif TC", serif; font-size: 25px; color: var(--brand); }
.person-sum { margin: 2px 0 6px; font-size: 15.5px; color: var(--muted); }
.person-firm { margin: 2px 0 0; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }   /* 律師所屬的事務所 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 8px; padding: 0; }
.tags li { padding: 3px 11px; border-radius: 999px; background: var(--tint); font-size: 13px; color: var(--ink); }
.tags .tag-more { background: transparent; color: var(--muted); padding-inline: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: none; }
.people-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.person-detail { flex-direction: row; }
.person-detail .person-photo { width: 300px; flex: none; }
.person-detail .portrait { height: 100%; }
.person-detail .person-body { padding: 30px 34px; }
.person-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 30px; margin-top: 12px; }
.pg h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: .1em; color: var(--accent-ink); }
.pg ul { margin: 0; padding-left: 1.1em; font-size: 15.5px; line-height: 1.75; }
.person-mail { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; }
.person-mail .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.person-mail a { color: var(--brand); overflow-wrap: anywhere; }

/* ── 律師小卡（服務頁 layout: compact）與頭像格（首頁 layout: faces）──
   2026-10-05 Jimmy：律師集中在「律師介紹」一區，別每頁底下都一排大照片。完整經歷只在律師介紹頁；
   服務頁只放承辦這類案件的人（小卡），首頁放全部人的頭像。選擇器多一層 .people，才蓋得過各款式的 .design-X .person…
   不用圓形（家事站不要圓的）。 */
.people.people-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; max-width: 1060px; margin-inline: auto; }
.people.people-compact .person { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; overflow: hidden; }
.people.people-compact .person-photo { width: 84px; height: 105px; flex: none; border: 0; border-radius: 8px; overflow: hidden; }
.people.people-compact .portrait { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center top; }
.people.people-compact .person-body { align-items: stretch; gap: 2px; min-width: 0; padding: 0; border: 0; text-align: left; }
.people.people-compact .person-title { justify-content: flex-start; font-size: 12.5px; }
.people.people-compact .person-name { margin: 0; font-size: 20px; letter-spacing: .04em; color: var(--brand); }
.people.people-compact .person-firm { margin: 0; font-size: 13px; }
.people.people-compact .person-sum { margin: 6px 0 6px; font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.people.people-compact .text-link { margin-top: 0; font-size: 14px; }
/* 小頭像格（首頁與服務頁）：2026-10-06 Jimmy「一個手機頁面，他可能就能一眼看到五六個律師，小小的頭像，小小的名字等等，
   點了他們的『詳細介紹』才會連到專門的律師介紹的頁面」。完整經歷只在律師介紹頁。排不滿一排時置中（所以用 flex，不用 grid） */
.people.people-faces { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1060px; margin-inline: auto; }
/* 間距多一層 body：經典、溫暖款的 .design-X .people { gap } 會蓋掉，手機三格就擠不下一排、掉成兩欄（2026-10-06 實測）。
   左右間距只住 --face-gap 一份，手機版每格寬度用它算 */
body .people.people-faces { --face-gap: 18px; gap: 20px var(--face-gap); }
.sec-head:not(.sec-head-center) ~ .people.people-faces { justify-content: flex-start; }   /* 標題靠左排的款式（律師幫幫我），頭像也靠左，跟標題對齊 */
.people.people-faces .person { flex: 0 0 156px; padding: 0; align-items: stretch; text-align: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.people.people-faces .person > a { display: block; color: inherit; text-decoration: none; }
.people.people-faces .person-photo { position: relative; width: 100%; height: auto; border: 0; border-radius: 10px; overflow: hidden; }
.people.people-faces .portrait { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 12%; transition: transform .5s; }
.people.people-faces .person > a:hover .portrait { transform: scale(1.04); }
.people.people-faces .person-photo .badge { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap;   /* 「醫師・律師」壓在照片下緣：省一行，名字才跟旁邊對齊 */
  padding: 1px 8px; font-size: 11px; line-height: 1.6; }
.people.people-faces .person-body { align-items: center; gap: 0; padding: 8px 0 0; border: 0; }
.people.people-faces .person-name { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: .04em; color: var(--brand); }
.people.people-faces .person-role { margin-left: 4px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.people.people-faces .person-firm { margin: 1px 0 0; font-size: 12px; line-height: 1.45; }
.people.people-faces .person-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
.people.people-faces .person-more .ico { width: 13px; height: 13px; }
/* 律師廣告：律師段落標題下面一個小框（律師推展業務規範第 2 條要在明顯處標明廣告；2026-10-06 Jimmy 嫌當段落小標太顯眼） */
.people-ad { margin: -6px 0 16px; }
.sec-head-center + .people-ad { text-align: center; }
.people-ad .ad-mark { margin-right: 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* ── 問答（網站頁）── */
.acc-list { display: grid; gap: 12px; max-width: 900px; }
.sec-head-center + .acc-list { margin-inline: auto; }
.acc { overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px;
  list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--brand); }
.acc summary::-webkit-details-marker { display: none; }
.acc-ico { margin-top: 5px; color: var(--accent-ink); transform: rotate(90deg); transition: transform .2s; }
.acc[open] .acc-ico { transform: rotate(-90deg); }
.acc-body { padding: 0 22px 20px; }
.acc-body p { margin: 0; }

/* ── 行動呼籲帶 ── */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(50px, 7vw, 84px) 0; background: var(--brand); color: var(--on-brand); }
/* 行動呼籲帶襯插圖（sites 的 cta_image）：圖在最底層，上面壓一層品牌色——文字那一側幾乎不透光，字才看得清楚 */
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-img { width: 100%; height: 100%; object-fit: cover; }
.cta-band.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 93%, transparent) 48%, color-mix(in srgb, var(--brand) 72%, transparent) 100%); }
.cta-band::after { content: ""; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%); opacity: .25; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-copy h2 { margin: 0 0 8px; font-family: "Noto Serif TC", serif; font-size: clamp(25px, 3vw, 35px); line-height: 1.4; color: var(--on-brand); }
.cta-copy p { margin: 0; max-width: 40em; opacity: .9; }
.cta-btns { margin-top: 0; }
.cta-band .btn-phone, .art-cta .btn-phone { background: #fff; color: var(--brand); }

/* ── 面板、表格、提示框 ── */
.panel { padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel h3 { margin: 0 0 6px; font-family: "Noto Serif TC", serif; color: var(--brand); font-size: 21px; }
.empty { text-align: center; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; }
th { padding: 13px 16px; background: var(--brand); color: var(--on-brand); text-align: left; font-weight: 700; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--tint); }
.callout { margin: 26px 0; padding: 16px 20px 14px; border-left: 4px solid var(--accent); border-radius: 0; background: var(--tint); }
.callout-wide { margin: 0; max-width: 900px; }
.callout-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-weight: 700; color: var(--brand); }
.callout-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-size: 13px; font-weight: 700; font-style: normal; }
.callout-warn { border-left-color: var(--warn); }
.callout-warn .callout-icon { background: var(--warn); }
.callout-heading { margin: 4px 0 6px; font-weight: 700; font-size: 18px; color: var(--ink); }
.callout p { margin: 6px 0; }
.callout ul, .callout ol { margin: 6px 0; padding-left: 1.3em; }
.prose { max-width: 820px; font-size: 17.5px; }
.prose p { margin: 0 0 1.1em; }

/* ── 聯絡 ── */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact-card .ico { width: 28px; height: 28px; color: var(--accent-ink); }
.cc-line .ico { color: #06C755; }
.cc-label { font-size: 14px; color: var(--muted); }
.cc-val { font-weight: 700; font-size: 17px; color: var(--brand); overflow-wrap: anywhere; }
.prep { margin-top: 24px; }

/* ── 三站互連 ── */
.net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.net-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.net-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.net-mark { display: block; width: 50px; height: 50px; flex: none; }
.net-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.net-name { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 19px; color: var(--brand); }
.net-desc { font-size: 14.5px; color: var(--muted); }
.net-card .more-ico { color: var(--brand); }

/* ── 頁首頂端提示條（各款自己配色；手機隱藏，手機有置底聯絡列）── */
.topbar { font-size: 13.5px; line-height: 1.5; }
.topbar-inner { padding: 7px 0; text-align: center; }
.topbar a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── 首屏：左文右圖（溫暖、醒目款）── */
.hero.hero-split { display: block; min-height: 0; overflow: visible; }
.hero-split-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 7vw, 96px) 0; }
.hero-split .hero-copy { max-width: 600px; }
.hero-art { position: relative; }
.hero-frame { overflow: hidden; }
.hero-art-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-check { position: relative; z-index: 2; }
.hc-title { margin: 0 0 10px; font-weight: 900; font-size: 18px; }
.hero-check ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.7; }

/* ── 首屏下方的服務快捷列（經典款）── */
.quick-bar ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.quick-bar a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 18px; text-decoration: none; font-weight: 700; font-size: 15.5px; }

/* ── 內頁頁首：左文右圖（溫暖、醒目款）── */
.page-hero-split-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero-art-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── 文章列表：分類分頁＋並排 ── */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; cursor: pointer; font-weight: 700; font-size: 15.5px; user-select: none; }
.tab-n { font-size: 12.5px; font-weight: 700; opacity: .7; }
.blog-filter input:focus-visible + .tab { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── 部落格列表 ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: 15px; }
.chip:hover { border-color: var(--accent); }
.cat-group { margin-bottom: 52px; }
.cat-title { margin: 0 0 20px; font-family: "Noto Serif TC", serif; font-size: 26px; color: var(--brand); }

/* ── 文章頁（文章彩版） ── */
.article { padding: 30px 0 20px; }
.wrap-article { max-width: 820px; }
.art-title { margin: 4px 0 14px; font-family: "Noto Serif TC", serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.38; color: var(--brand); }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; font-size: 14.5px; color: var(--muted); }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-meta .ico { width: 16px; height: 16px; }
.art-cover { margin: 0 0 26px; }
.cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 15%; border-radius: 18px; }  /* 封面有 3:2 也有 16:9：一律 16:9 顯示，裁切偏上保住讀者問句的氣泡 */
.post-card .card-img { aspect-ratio: 16 / 9; object-position: 50% 15%; }
.art-cover figcaption, .art-figure figcaption {                       /* ⑪ 圖說 */
  margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--accent); font-size: 14.5px; line-height: 1.7; color: var(--muted);
  text-wrap: balance; }                                           /* 圖說通常一兩行，平均分配，最後一行才不會只剩兩三個字 */
.toc { margin: 0 0 32px; padding: 4px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.toc summary { padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--brand); }
.toc ol { display: grid; gap: 4px; margin: 0 0 16px; padding-left: 1.5em; font-size: 15.5px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.art-body { font-size: 17.5px; line-height: 1.95; }
.art-body > p { margin: 0 0 1.15em; }
.art-body h2 {                                                          /* ① H2：品牌深色字＋左側色條 */
  margin: 2.3em 0 .85em; padding-left: 14px; border-left: 4px solid var(--accent);
  font-family: "Noto Serif TC", serif; font-size: clamp(23px, 2.6vw, 28px); line-height: 1.48; color: var(--brand); }
.art-body h3 { margin: 1.9em 0 .6em; font-family: "Noto Serif TC", serif; font-size: 20.5px; line-height: 1.5; color: var(--brand-2); }  /* ② */
.art-body h4 { margin: 1.5em 0 .5em; font-size: 18px; color: var(--brand-2); }
mark, .art-body mark { padding: .05em .22em; border-radius: 3px; background: var(--mark); color: inherit; }  /* ③ 螢光筆（文章與一般頁共用） */
.art-body .table-wrap { margin: 1.4em 0; }                              /* ④⑤ 表格：表頭深色、隔行淺底（上面 table 共用） */
.art-body ul, .art-body ol { margin: 0 0 1.25em; padding-left: 1.45em; }  /* ⑥ 清單行距 */
.art-body li { margin: .5em 0; padding-left: .15em; }
.art-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--tint); }  /* ⑦ 引言（沒有標題列） */
.art-body blockquote p { margin: .3em 0; }
.art-body a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }  /* ⑧ */
.art-figure { margin: 1.6em 0; }
.art-figure img { border-radius: 14px; }
.note-card { margin-top: 30px; padding: 18px 22px; border-radius: 14px; font-size: 14.5px; line-height: 1.85; }  /* ⑨ 頁尾兩張卡，刻意不同設計 */
.card-refs { background: #F3F1EC; border: 1px solid #E5E1D8; color: #3B3A36; }
.card-about { background: #FAF8F4; border: 0; margin-top: 14px; color: #3B3A36; }
.note-card ul { margin: 0; padding-left: 1.3em; }
.note-card li { margin: .3em 0; }
.note-card p { margin: .3em 0; }
.note-card a { color: #3B3A36; text-decoration-color: var(--accent); }
.note-title { margin: 0 0 8px !important; font-weight: 700; color: var(--brand); font-size: 15px; }
.art-faq { margin-top: 2.2em; }
.faq-item { margin: 0 0 12px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq-q { margin: 0 0 6px !important; font-size: 18px !important; color: var(--brand) !important; }
.faq-a p { margin: .3em 0; }
.art-disclaimer { margin: 34px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--tint); font-size: 15px; color: var(--muted); }
.art-disclaimer p { margin: 0; }
.art-service { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; margin: 30px 0 0; padding: 20px 24px;
  border-radius: 18px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: inherit; text-decoration: none; transition: transform .2s; }
.art-service:hover { transform: translateY(-2px); }
.art-service-label { grid-column: 1; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); }
.art-service-name { grid-column: 1; font-family: "Noto Serif TC", serif; font-size: 21px; font-weight: 700; color: var(--brand); }
.art-service-more { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--brand); white-space: nowrap; }
@media (max-width: 640px) { .art-service { grid-template-columns: 1fr; } .art-service-more { grid-column: 1; grid-row: auto; } }
.art-cta { margin: 26px 0 0; padding: 28px; border-radius: 20px; background: var(--brand); color: var(--on-brand); }
.art-cta h2 { margin: 0 0 6px; font-family: "Noto Serif TC", serif; font-size: 25px; color: var(--on-brand); }
.art-cta p { margin: 0; opacity: .9; }
.related { margin: 70px 0 30px; }
.related .sec-title { margin-bottom: 24px; }

.img-missing { width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--tint), var(--accent-soft)); }
.hero .img-missing, .page-hero .img-missing { height: 100%; aspect-ratio: auto; }

/* ── 頁尾 ── */
.site-footer { padding: 64px 0 40px; background: var(--footer-bg); color: var(--footer-ink); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.4fr 1fr 1.25fr; gap: 34px; }
.ft-name { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 20px; color: #fff; }
.ft-name .brand-mark { width: 40px; height: 40px; }
.ft-desc, .ft-operator { margin: 0 0 8px; font-size: 14.5px; opacity: .82; }
.ft-col h3 { margin: 0 0 14px; font-size: 14.5px; letter-spacing: .14em; color: var(--footer-head); }
.ft-col ul { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.ft-contact li { display: flex; align-items: flex-start; gap: 10px; }
.ft-contact .ico { width: 18px; height: 18px; margin-top: 4px; opacity: .75; }
.ft-fax { padding-left: 28px; opacity: .75; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.ft-net li { display: grid; gap: 2px; }
.ft-net span { font-size: 13.5px; opacity: .7; }
.footer-legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; opacity: .78; }
.footer-legal p { margin: 0 0 6px; }
.ad-mark { display: inline-block; margin-right: 8px; padding: 0 7px; border: 1px solid currentColor; border-radius: 4px;   /* 律師廣告標示（推展業務規範第 2 條） */
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; }

/* ── 手機置底列：LINE 預約＋LINE 社群兩顆（照 championbni.com；電腦版頁首的 LINE 按鈕本來就一直在，所以只在手機與平板出現，見 860px）── */
.mobile-bar { display: none; }

/* ── 平板 ── */
@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 手機：頁首兩排（品牌＋預約一排、目錄一排直接排出，不用漢堡選單）── */
@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .cta-band.has-media::before { background: color-mix(in srgb, var(--brand) 91%, transparent); }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; letter-spacing: .06em; }
  .header-cta { margin-left: auto; padding: 8px 16px; font-size: 14px; }
  .header-actions { display: none; }
  .main-nav { order: 3; width: 100%; margin: 4px 0 0; }
  .main-nav ul { justify-content: space-between; gap: 0; }
  .main-nav a { padding: 8px 6px 10px; border-radius: 8px; font-size: 14.5px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .main-nav a[aria-current] { background: transparent; box-shadow: inset 0 -2.5px 0 var(--accent); border-radius: 0; }
  .hero-title { font-size: clamp(27px, 8vw, 34px); letter-spacing: 0; }
  .hero { min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, var(--shade) 0%, var(--shade) 55%, var(--shade-mid) 100%); }
  .page-hero.has-media .hero-shade { background: linear-gradient(180deg, var(--shade) 0%, var(--shade-mid) 100%); }
  .hero-inner { padding: 60px 0 68px; }
  .page-hero.has-media { min-height: 0; padding: 64px 0 46px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .hero-split-inner, .page-hero-split-inner { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: none; }
  .quick-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-rev .split-media { order: 0; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .person-detail { flex-direction: column; }
  .person-detail .person-photo { width: 100%; }
  .person-detail .portrait { height: auto; max-height: 520px; object-position: center top; }
  .person-detail .person-body { padding: 22px; }
  /* 往下滑時頁首第一層（Logo＋網站名稱）滑出畫面、只留選單黏著：site.js 量出選單在頁首裡的位置放進 --hdr-hide（2026-10-06 Jimmy） */
  .site-header { top: calc(-1 * var(--hdr-hide, 0px)); }
  /* 最下面只有兩顆浮動按鈕，沒有底下那一條（2026-10-06 Jimmy：「只出現兩個按鈕浮動的，白色的那一條就不要了」；
     同日先嫌太佔空間：按鈕 42px 高）。外框透明、點不到（按鈕之間的空隙可以點到底下的網頁），按鈕自己有陰影，壓在白底或照片上都看得清楚。
     兩欄用 minmax(0,1fr) 固定等寬 */
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom)); background: none; pointer-events: none; }
  .mb-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 42px; border-radius: 10px;
    font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; text-decoration: none;
    pointer-events: auto; box-shadow: 0 6px 18px rgba(20, 20, 24, .22), 0 1px 3px rgba(20, 20, 24, .14); }
  .mb-btn .ico { width: 19px; height: 19px; }
  /* 兩顆都是 LINE，都用 LINE 綠：預約是主要動作＝實心；社群是次要＝白底綠框（字用深一點的綠，對比才夠 4.5:1） */
  .mb-book { background: #06C755; color: #fff; }
  .mb-community { background: #fff; color: #05843A; box-shadow: inset 0 0 0 2px #06C755; }
  .mb-community .ico { color: #06C755; }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .cols-2, .cols-3, .cols-4, .people-2, .net-grid, .cols-few.cols-2, .cols-1 { grid-template-columns: minmax(0, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .cta-btns { width: 100%; }
  .art-body { font-size: 17px; }
  table { min-width: 0; font-size: 15px; }                 /* 三欄以內直接塞進螢幕寬度 */
  table:has(th:nth-child(4)) { min-width: 560px; }        /* 四欄以上才保留左右滑動 */
  th, td { padding: 11px 12px; }
  th { white-space: normal; }
  .card-body { padding: 20px 22px 22px; }
  body .people.people-faces { --face-gap: 10px; gap: 16px var(--face-gap); }
  .people.people-faces .person { flex-basis: calc((100% - 2 * var(--face-gap)) / 3); }   /* 手機三欄：一個畫面看得到六位（Jimmy：「一眼看到五六個律師」） */
  .people.people-faces .person-name { font-size: 15px; letter-spacing: .02em; }
  .people.people-faces .person-role { margin-left: 3px; font-size: 11px; }
  .people.people-faces .person-firm { font-size: 11px; }
  .people.people-faces .person-more { font-size: 12px; }
  .people.people-faces .person-photo .badge { bottom: 4px; padding: 0 6px; font-size: 10.5px; }
  .people.people-compact .person { gap: 14px; padding: 14px; }
  .people.people-compact .person-photo { width: 76px; height: 95px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
  .main-nav a { font-size: 14px; padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
