/* 茁越國際法律事務所 — 全站樣式
   設計基準：暖米色底 + 襯線標題（參考 design-md/claude），主色換成 Logo 品牌金 #b4a379 */

:root {
  --gold: #b4a379;          /* Logo 品牌金：只用在線條、圖示、深底上的字 */
  --gold-ink: #7a6a42;      /* 淺底上的金色文字（對比足夠） */
  --gold-soft: #efe7d6;

  --ink: #1c1a17;
  --body: #3d3a35;
  --muted: #6c675e;
  --hairline: #e4ddd0;

  --canvas: #faf8f3;
  --surface: #f3eee4;
  --surface-strong: #e9e1d2;
  --dark: #1c1a17;
  --dark-elevated: #28251f;
  --on-dark: #f6f2ea;
  --on-dark-soft: #a8a194;

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --radius: 10px;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: .04em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }

/* ---------- 頂部導覽 ---------- */
.topbar { background: var(--dark); color: var(--on-dark-soft); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--on-dark); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--gold-ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-ink); box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
.nav-toggle { display: none; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500; letter-spacing: .06em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: #3a352d; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c7b78e; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b04b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.on-dark .btn-ghost { color: var(--on-dark); border-color: var(--on-dark-soft); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; color: var(--on-dark); }

/* ---------- 區塊 ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.on-dark { background: var(--dark); color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .24em; color: var(--gold-ink); font-weight: 500;
  margin-bottom: 16px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: 36px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.on-dark .section-head p { color: var(--on-dark-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 112px; background: var(--dark); color: var(--on-dark-soft); }
.hero .mark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 440px; opacity: .08; pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero h1 { color: var(--on-dark); font-size: 52px; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin-top: 24px; font-size: 18px; line-height: 1.9; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 頁首（內頁） */
.page-hero { padding: 88px 0 72px; background: var(--dark); color: var(--on-dark-soft); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--on-dark); font-size: 44px; }
.page-hero p { margin-top: 16px; max-width: 640px; font-size: 17px; }
.page-hero .mark { position: absolute; right: 40px; bottom: -60px; width: 220px; opacity: .08; }

/* ---------- 卡片格線 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 36px 32px;
}
.section-soft .card { background: var(--canvas); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card .num { font-family: var(--serif); color: var(--gold); font-size: 15px; letter-spacing: .1em; margin-bottom: 20px; display: block; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.card li { padding: 6px 0 6px 18px; position: relative; border-top: 1px dashed var(--hairline); }
.card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.card-feature { background: var(--dark); border-color: var(--dark); color: var(--on-dark-soft); grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 48px; }
.card-feature h3 { color: var(--on-dark); font-size: 28px; }
.card-feature p { color: var(--on-dark-soft); font-size: 16px; }
.card-feature ul { margin: 0; }
.card-feature li { border-color: #3a362f; color: var(--on-dark); }
.tag { display: inline-block; font-size: 12px; letter-spacing: .16em; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 24px 0 0; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.on-dark .step p { color: var(--on-dark-soft); }

/* ---------- 評價 ---------- */
.quote { position: relative; padding-top: 48px; margin: 0; }
.quote::before { content: "“"; position: absolute; top: -8px; left: 24px; font-family: var(--serif); font-size: 72px; color: var(--gold); line-height: 1; }
.quote p { color: var(--body); font-size: 16px; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--muted); }
.quote cite::before { content: "— "; }

/* ---------- 影片 ---------- */
.video { display: block; color: var(--ink); }
.video:hover { text-decoration: none; }
.video .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--surface-strong); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video:hover .thumb img { transform: scale(1.03); }
.video .thumb::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(28, 26, 23, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6f2ea'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
}
.video h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; margin-top: 14px; line-height: 1.6; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 文字段落（內頁） ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.prose p + p { margin-top: 1.2em; }
.prose p { font-size: 17px; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }


/* 律師 */
.lawyer { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.lawyer .photo { aspect-ratio: 3/4; border-radius: var(--radius); background: var(--surface-strong); display: grid; place-items: center; overflow: hidden; }
.lawyer h3 { font-size: 30px; }
.lawyer .role { color: var(--gold-ink); font-size: 14px; letter-spacing: .2em; margin: 6px 0 20px; }
.lawyer dl { display: grid; grid-template-columns: 88px 1fr; gap: 10px 16px; margin: 24px 0 0; font-size: 15px; }
.lawyer dt { color: var(--muted); }
.lawyer dd { margin: 0; }

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.contact-list span { color: var(--muted); font-size: 14px; }
.contact-list strong { color: var(--ink); font-weight: 500; font-size: 17px; }
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); background: var(--surface-strong); }

/* CTA 帶 */
.cta { padding: 80px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 32px; }
.cta p { margin-top: 10px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 14px; border-top: 1px solid #2f2b25; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid img { height: 38px; width: auto; margin-bottom: 20px; }
.footer-grid h4 { color: var(--gold); font-size: 13px; letter-spacing: .2em; font-weight: 500; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2f2b25; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* 手機浮動聯絡鈕 */
.float-cta { display: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .split, .contact-grid, .lawyer { grid-template-columns: 1fr; gap: 32px; }
  .lawyer .photo { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  section { padding: 64px 0; }
  .topbar { display: none; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 30px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; height: 48px; border: 0; }

  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .hero .mark { width: 260px; right: -80px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 30px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 26px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; padding: 32px 24px; }
  .card-feature h3 { font-size: 23px; }
  .card { padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .cta h2 { font-size: 24px; }
  .cta .actions, .cta .actions .btn { width: 100%; }
  .lawyer dl { grid-template-columns: 72px 1fr; }

  .float-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--hairline);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .float-cta a { display: flex; align-items: center; justify-content: center; height: 54px; font-weight: 500; letter-spacing: .08em; }
  .float-cta a:hover { text-decoration: none; }
  .float-cta .call { background: var(--ink); color: var(--on-dark); }
  .float-cta .line { background: #06c755; color: #fff; }
  .site-footer { padding-bottom: 96px; }
}

/* =========================================================
   文章區、律師個人頁
   ========================================================= */
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-row > div { max-width: 680px; }
.link-more { font-weight: 500; white-space: nowrap; }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; }

/* 文章卡片 */
.post-card { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; color: var(--body); transition: border-color .15s, transform .15s; }
.post-card:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.post-thumb { aspect-ratio: 16/9; background: var(--surface-strong); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: 20px; color: var(--gold-ink); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-strong) 100%); }
.post-body { padding: 24px 24px 28px; }
.post-meta { font-size: 13px; color: var(--gold-ink); letter-spacing: .06em; }
.post-card h3 { font-size: 19px; margin: 8px 0 10px; line-height: 1.5; }
.post-card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 分類籤 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { padding: 6px 16px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--body); font-size: 14px; background: var(--canvas); }
.chips a:hover { border-color: var(--gold); text-decoration: none; }
.chips a[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.articles-section { padding-top: 56px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; font-size: 15px; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); border: 1px dashed var(--hairline); border-radius: var(--radius); }
.empty p + p { margin-top: 8px; }

/* 麵包屑 */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden], .crumbs > span:not(:last-child) { color: var(--hairline); }

.preview-bar { background: #fff4d6; color: #6b5310; text-align: center; font-size: 14px; padding: 10px 16px; border-bottom: 1px solid #ecd9a0; }

/* 文章內頁 */
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.post { padding-bottom: 80px; }
.post-header { padding-top: 24px; padding-bottom: 32px; }
.post-cat { font-size: 13px; letter-spacing: .12em; font-weight: 500; }
.post-header h1 { font-size: 38px; line-height: 1.4; margin-top: 12px; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.byline-author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.byline-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 40px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; margin-bottom: 40px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt::after { content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(28,26,23,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6f2ea'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/32px no-repeat; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); margin-bottom: 40px; }

.toc { background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-bottom: 40px; font-size: 15px; }
.toc strong { font-family: var(--serif); color: var(--ink); }
.toc ol { margin: 10px 0 0; padding-left: 1.4em; }
.toc li { padding: 3px 0; }

.post-content { font-size: 17px; line-height: 2; color: var(--body); }
.post-content > * + * { margin-top: 1.2em; }
.post-content h2 { font-size: 26px; margin-top: 2.2em; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); scroll-margin-top: 96px; }
.post-content h3 { font-size: 21px; margin-top: 1.8em; scroll-margin-top: 96px; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .4em; }
.post-content blockquote { margin-left: 0; margin-right: 0; padding: 16px 24px; background: var(--surface); border-left: 3px solid var(--gold); color: var(--ink); }
.post-content img { border-radius: var(--radius); height: auto; }
.post-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--hairline); padding: 10px 14px; text-align: left; vertical-align: top; }
.post-content th { background: var(--surface); color: var(--ink); font-weight: 500; }
.post-content hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4em 0; }

.faq { margin-top: 56px; padding: 0; }
.faq h2 { font-size: 26px; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 500; color: var(--ink); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--gold-ink); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--body); }

.post-cta { margin-top: 56px; padding: 32px; background: var(--dark); color: var(--on-dark-soft); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.post-cta strong { color: var(--on-dark); font-family: var(--serif); font-size: 21px; }
.post-cta p { margin-top: 8px; font-size: 15px; }
.post-cta .actions { display: flex; gap: 10px; flex-shrink: 0; }

.author-box { margin-top: 40px; padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius); display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.author-photo { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface-strong); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo img.placeholder { width: 40px; height: auto; opacity: .4; }
.author-box .eyebrow { margin-bottom: 6px; }
.author-box h2 { font-size: 21px; }
.author-box h2 a { color: var(--ink); }
.author-box p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* 團隊 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.team-card { color: var(--body); }
.team-card:hover { text-decoration: none; }
.team-card .photo { aspect-ratio: 3/4; border-radius: var(--radius); background: var(--surface-strong); display: grid; place-items: center; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.team-card:hover .photo img { transform: scale(1.03); }
.team-card .photo img.placeholder, .lawyer .photo img.placeholder { width: 80px; height: auto; opacity: .35; }
.team-card h3 { font-size: 21px; margin-top: 16px; }
.team-card h3 small, .lawyer-name small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--gold-ink); letter-spacing: .12em; margin-left: 6px; }
.team-card p { font-size: 14px; color: var(--muted); margin-top: 4px; }

.lawyer-page { padding-top: 16px; }
.lawyer .photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-name { font-size: 36px; }
.lawyer-name small { font-size: 16px; }
.lawyer-bio { margin-top: 20px; font-size: 17px; }
.lawyer dl ul.plain { list-style: none; margin: 0; padding: 0; }
.lawyer dl ul.plain li + li { margin-top: 4px; }

@media (max-width: 760px) {
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .post-header h1 { font-size: 27px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 22px; }
  .post-content h3 { font-size: 19px; }
  .post-cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .post-cta .actions .btn { flex: 1; }
  .author-box { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-card h3 { font-size: 18px; }
  .team-card h3 small { display: block; margin: 4px 0 0; }
  .lawyer-name { font-size: 28px; }
}

/* =========================================================
   諮詢表單、常年顧問頁
   ========================================================= */
.consult-section { padding-top: 56px; }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.consult-form fieldset { border: 0; margin: 0 0 16px; padding: 32px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius); }
.consult-form legend { float: left; width: 100%; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.consult-form legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 14px; font-family: var(--sans); }
.consult-form legend + * { clear: both; }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.field label em { font-style: normal; font-size: 12px; color: #a0412d; margin-left: 4px; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-row .field { margin-bottom: 0; }
.field-row[hidden] { display: none; }
.field-short { max-width: 260px; }
.consult-form input[type=text], .consult-form input[type=tel], .consult-form input[type=email], .consult-form input[type=date],
.consult-form select, .consult-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d6cdbb; border-radius: 8px; -webkit-appearance: none; appearance: none;
}
.consult-form select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6a42' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 40px; }
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.consult-form textarea { resize: vertical; min-height: 140px; }
.consult-form .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #a0412d; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.center-text { text-align: center; }
.form-alert { background: #fbeae6; color: #8a2f1f; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: inline-flex; border: 1px solid #d6cdbb; border-radius: 8px; overflow: hidden; background: #fff; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 28px; font-size: 15px; }
.segmented label + label span { border-left: 1px solid #d6cdbb; }
.segmented input:checked + span { background: var(--ink); color: var(--on-dark); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #d6cdbb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1.6; }
.choices label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choices input { margin-top: 5px; accent-color: var(--ink); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-top: 20px; cursor: pointer; }
.agree input { margin-top: 5px; accent-color: var(--ink); }
.btn-submit { width: 100%; height: 56px; font-size: 17px; margin-top: 8px; }

.consult-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-size: 20px; margin-bottom: 16px; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flow li { position: relative; padding: 0 0 18px 40px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 13px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px; background: var(--hairline); }
.flow strong { display: block; color: var(--ink); font-weight: 500; }
.flow span { font-size: 14px; color: var(--muted); }
.flow b { color: var(--ink); font-weight: 500; }
.aside-quick { background: var(--dark); color: var(--on-dark-soft); display: grid; gap: 10px; }
.aside-quick h2 { color: var(--on-dark); margin-bottom: 0; }
.aside-quick .btn-primary { background: var(--on-dark); color: var(--ink); }
.aside-quick .hint { color: var(--on-dark-soft); }

.consult-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.consult-teaser > div { max-width: 640px; }
.consult-teaser h2 { font-size: 32px; }
.consult-teaser p { margin-top: 12px; color: var(--muted); }
.thanks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.includes { gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.includes > div { background: var(--canvas); padding: 24px; }
.includes h3 { font-size: 18px; margin-bottom: 6px; }
.includes p { font-size: 14px; color: var(--muted); }

.float-cta .book { background: var(--gold); color: var(--ink); }

@media (max-width: 960px) {
  .consult-grid { grid-template-columns: 1fr; }
  .consult-aside { position: static; }
  .aside-quick { display: none; }
  .thanks-grid { grid-template-columns: 1fr; }
  .consult-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .consult-form fieldset { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .segmented { display: flex; }
  .segmented label { flex: 1; text-align: center; }
  .float-cta { grid-template-columns: 1fr 1.2fr 1fr; }
  .consult-teaser h2 { font-size: 24px; }
}

/* =========================================================
   企業健檢方案
   ========================================================= */
.plan-kicker { font-family: var(--serif); color: var(--gold); font-size: 20px; letter-spacing: .12em; margin-bottom: 12px; }
.plan-free-note { margin-top: 16px; font-size: 14px; color: var(--on-dark-soft); }
.plan-alert { background: #7d2a1f; color: #fbeee9; font-weight: 500; letter-spacing: .04em; padding: 16px 0; text-align: center; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.checklist .check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.checklist h3 { font-size: 19px; margin-bottom: 4px; }
.checklist p { color: var(--muted); font-size: 15px; }
.plan-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.poster-card { text-align: center; }
.poster-card img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(28, 26, 23, .16); }
.poster-card p { font-size: 14px; color: var(--muted); margin: 16px 0 12px; }
.poster-card .btn { width: 100%; }
.other-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 28px 32px; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--body); }
.other-plan:hover { border-color: var(--gold); text-decoration: none; }
.other-plan .eyebrow { margin: 0; }
.other-plan strong { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.other-plan > span:last-child { color: var(--gold-ink); margin-left: auto; }
.plans-band { background: var(--surface); }
.plan-card { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; color: var(--body); transition: border-color .15s, transform .15s; }
.plan-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.plan-card .tag { align-self: flex-start; }
.plan-card h3 { font-size: 24px; }
.plan-card > p { color: var(--muted); margin-top: 8px; }
.plan-card ul { list-style: none; margin: 20px 0 24px; padding: 0; font-size: 15px; }
.plan-card li { padding: 6px 0 6px 18px; position: relative; border-top: 1px dashed var(--hairline); }
.plan-card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.plan-card-more { margin-top: auto; color: var(--gold-ink); font-weight: 500; }
.feature-plans { margin-top: 20px; font-size: 14px; color: var(--on-dark-soft); }
.feature-plans a { color: var(--gold); }
.feature-plans span { margin: 0 6px; }
@media (max-width: 960px) {
  .plan-faq-grid { grid-template-columns: 1fr; }
  .poster-card { max-width: 300px; }
}
@media (max-width: 760px) {
  .checklist { grid-template-columns: 1fr; gap: 0; }
  .plan-alert { font-size: 14px; padding: 12px 16px; text-align: left; }
  .plan-card { padding: 24px; }
  .other-plan { padding: 22px; }
  .other-plan > span:last-child { margin-left: 0; }
}
