/* ==========================================================================
   冠得數位設計 guander.com — 設計系統
   白底＋GD 品牌藍＋大量留白＋清楚大字（docs/design-audit.md）
   ========================================================================== */

/* ── Tokens ── */
:root {
  --brand: #1558A3;
  --brand-hover: #0F4380;
  --brand-soft: #EAF1FA;
  --brand-softer: #F3F7FC;
  --ink: #14243A;
  --ink-2: #5A6573;
  --ink-3: #6B7684;
  --line: #E5EAF0;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --success: #1E7B4F;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --success-soft: #ECFDF3;

  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif; /* 系統字型：不下載網路字型，避免阻擋渲染 */
  --fs-body: 1.125rem;          /* 18px */
  --fs-small: 1rem;             /* 16px */
  --fs-label: 0.9375rem;        /* 15px */
  --fs-eyebrow: 0.875rem;       /* 14px */
  --fs-lead: 1.25rem;           /* 20px */
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);        /* 32 → 56 */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);   /* 26 → 38 */
  --fs-h3: clamp(1.3125rem, 1.2rem + 0.45vw, 1.625rem); /* 21 → 26 */
  --lh: 1.75;
  --lh-tight: 1.3;

  --container: 1240px;
  --gutter: 48px;
  --section: 120px;
  --gap: 32px;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(20, 36, 58, .04), 0 8px 24px rgba(20, 36, 58, .05);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; --section: 80px; --header-h: 76px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section: 64px; --gap: 24px; --fs-body: 1.0625rem; --fs-lead: 1.125rem; --header-h: 68px; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: var(--lh-tight); font-weight: 700; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.1875rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(21, 88, 163, .45); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 18px; background: var(--brand); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ── Layout ── */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(860px + var(--gutter) * 2); }
.container.text { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section.tight { padding-block: calc(var(--section) * .66); }
.section + .section { padding-top: 0; }
.section.soft { background: var(--bg-soft); }
.section.soft + .section, .section + .section.soft { padding-top: var(--section); }
.section.bordered { border-top: 1px solid var(--line); padding-top: var(--section); }
.stack > * + * { margin-top: var(--gap); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* 首頁精選案例：電腦 4 個、平板 3 個、手機 2 個 */
.works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.works-grid h3 { font-size: 1.25rem; }
.works-grid .card-body p.muted { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .works-grid > :nth-child(n+4) { display: none; } }
@media (max-width: 768px) { .works-grid { grid-template-columns: 1fr; } .works-grid > :nth-child(n+3) { display: none; } }

/* ── Typography helpers ── */
.eyebrow { display: inline-block; margin: 0 0 14px; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.8; }
.muted { color: var(--ink-2); }
.accent { color: var(--brand); }
.small { font-size: var(--fs-small); }
.text-center { text-align: center; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section-head.split .section-head-text { max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .muted { font-size: var(--fs-body); }
@media (max-width: 768px) { .section-head { margin-bottom: 36px; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  font-size: 1.0625rem; font-weight: 500; line-height: 1.3;
  border: 1.5px solid transparent; border-radius: var(--pill);
  cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--brand); padding-inline: 4px; min-height: 44px; }
.btn-sm { min-height: 44px; padding: 8px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; /* 不用 backdrop-filter：會讓手機選單的 position: fixed 以 header 為基準 */
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(20, 36, 58, .04); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 48px; width: auto; }
@media (max-width: 768px) { .brand img { height: 36px; } }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm);
  position: relative;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand); }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .btn { min-height: 46px; padding: 8px 22px; font-size: 1rem; }

/* 服務下拉（桌機） */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(880px, calc(100vw - 48px));
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(20, 36, 58, .10);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px;
}
html:not(.js) .mega { display: none; }
html:not(.js) .has-dropdown:hover .mega, html:not(.js) .has-dropdown:focus-within .mega { display: grid; }
.js .mega:not(.is-open) { display: none; }
.mega-item { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius-sm); color: var(--ink); }
.mega-item:hover { background: var(--brand-softer); color: var(--ink); }
.mega-item .icon-badge { width: 56px; height: 56px; }
.mega-item:hover strong { color: var(--brand); }

.mega-item strong { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.mega-item span.desc { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding: 16px 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }

.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .header-actions .btn-outline { display: none; }
  .nav-link { padding-inline: 10px; }
  .nav-link[aria-current="page"]::after, .nav-link.is-active::after { left: 10px; right: 10px; }
}
@media (max-width: 1024px) {
  .js .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav { flex-basis: 100%; margin: 0; padding: 0 0 24px; background: #fff; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px; border-top: 1px solid var(--line);
  }
  .js .primary-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.125rem; }
  .nav-link[aria-current="page"]::after, .nav-link.is-active::after { display: none; }
  html:not(.js) .mega { display: grid; }
  .mega { position: static; transform: none; width: auto; padding: 0 0 16px; border: 0; box-shadow: none; grid-template-columns: 1fr; }
  .mega-item { padding: 12px 4px; }
  .mega-item span.desc { font-size: var(--fs-label); }
  .mega-foot { padding: 12px 4px 0; flex-direction: column; align-items: flex-start; }
  .mobile-actions { display: grid; gap: 12px; margin-top: 28px; }
  .mobile-contact { margin-top: 28px; font-size: var(--fs-small); color: var(--ink-2); }
  .mobile-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1025px) { .mobile-actions, .mobile-contact, .mobile-only-item { display: none !important; } }

/* ── Icon badge ── */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.icon-badge .icon { width: 46%; height: 46%; }
.icon-badge.lg { width: 84px; height: 84px; }
/* 服務圖示（雙色調 svc-*）：圓角方形、淡藍漸層；所在卡片滑過時反白 */
.icon-badge.svc { border-radius: 28%; background: linear-gradient(140deg, var(--brand-soft), #fff); box-shadow: inset 0 0 0 1px #D6E2F0; transition: background .2s, color .2s, box-shadow .2s; }
.icon-badge.svc .icon { width: 58%; height: 58%; stroke-width: 1.6; }
:is(.mega-item, .link-card, .card):hover .icon-badge.svc { background: var(--brand); color: #fff; box-shadow: none; }
:is(.mega-item, .link-card, .card):hover .icon-badge.svc .icon rect[fill="#fff"] { fill: var(--brand); }

/* ── Breadcrumb ── */
.breadcrumb { padding-top: 28px; font-size: var(--fs-label); color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: #A5AEB9; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ── Hero ── */
.hero { position: relative; padding-block: 72px 96px; background: linear-gradient(180deg, var(--brand-softer) 0%, #fff 78%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; letter-spacing: .02em; }
.hero h1 .accent { display: block; }
.hero .lead { max-width: 36em; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--brand); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 20px; }
@media (max-width: 1024px) {
  .hero { padding-block: 56px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 720px; }
}
@media (max-width: 768px) { .hero { padding-block: 40px 64px; } }
/* 首頁滿版 Banner：照片鋪滿、左側白色漸層讓文字壓在圖上仍清楚 */
.hero-banner { display: flex; align-items: center; min-height: clamp(560px, 44vw, 720px); padding-block: 72px; background: var(--brand-softer); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 72% 18%; }
.hero-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, 0) 62%); }
.hero-banner .container { width: 100%; }
.hero-copy { max-width: 600px; }
@media (min-width: 1025px) and (max-width: 1279px) {
  .hero-copy { max-width: 500px; }
  .hero-banner h1 { font-size: 2.75rem; }
  .hero-banner h1 .accent { white-space: nowrap; }
  .hero-bg img { object-position: 92% 18%; }
  .hero-banner::before { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 40%, rgba(255, 255, 255, .55) 52%, rgba(255, 255, 255, 0) 64%); }
}
@media (max-width: 1024px) {
  /* 平板、手機：文字在上，滿版照片接在下方（頂端淡出銜接） */
  .hero-banner { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 56px 0; background: linear-gradient(180deg, var(--brand-softer) 0%, #fff 70%); }
  .hero-banner::before { display: none; }
  .hero-bg { position: relative; inset: auto; z-index: 0; order: 2; margin-top: 40px; aspect-ratio: 16 / 9; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 28%); }
  .hero-bg img { object-position: 78% 25%; }
}
@media (max-width: 768px) {
  .hero-banner { padding-top: 40px; }
  .hero-bg { margin-top: 28px; aspect-ratio: 4 / 3; }
  .hero-bg img { object-position: 80% 30%; }
}

.page-hero { padding-block: 48px 72px; background: linear-gradient(180deg, var(--brand-softer) 0%, #fff 100%); }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 40em; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero + .section { padding-top: calc(var(--section) * .66); }
@media (max-width: 768px) { .page-hero { padding-block: 32px 48px; } }

/* ── 首頁五大服務：照片卡片（第 1 項為主打橫式大卡） ── */
.pillar-no { font-size: 1rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.svc-card { position: relative; display: flex; flex-direction: column; grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc-card:hover { transform: translateY(-4px); border-color: #C9D6E6; box-shadow: var(--shadow); }
.svc-card.is-feature { grid-column: span 4; flex-direction: row; background: linear-gradient(135deg, var(--brand-softer) 0%, #fff 70%); }
.svc-media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.svc-media picture, .svc-media img { display: block; width: 100%; height: 100%; }
.svc-media img { object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.is-feature .svc-media { flex: 0 0 54%; aspect-ratio: auto; min-height: 100%; }
.svc-no { position: absolute; left: 16px; top: 16px; padding: 4px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .92); color: var(--brand); font-size: .875rem; font-weight: 700; letter-spacing: .08em; box-shadow: 0 2px 8px rgba(20, 36, 58, .08); }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.is-feature .svc-body { justify-content: center; padding: 40px; }
.svc-body h3 { font-size: 1.3125rem; margin: 0 0 10px; }
.is-feature .svc-body h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.svc-body h3 a { color: var(--ink); text-decoration: none; }
.svc-body h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-card:hover h3 a { color: var(--brand); }
.svc-desc { margin: 0; color: var(--ink-2); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.svc-tags li { padding: 2px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-label); color: var(--ink-2); }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--brand); font-weight: 500; }
.is-feature .svc-more { margin-top: 24px; padding-top: 0; }
.svc-more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-more .icon { transform: translateX(4px); }
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .svc-card, .svc-card.is-feature { grid-column: span 1; }
  .svc-card.is-feature { grid-column: 1 / -1; }
  .is-feature .svc-body { padding: 32px; }
}
@media (max-width: 768px) {
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card.is-feature { flex-direction: column; }
  .is-feature .svc-media { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .svc-body, .is-feature .svc-body { padding: 22px 22px 24px; }
  .is-feature .svc-body h3 { font-size: 1.375rem; }
  .svc-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .svc-card, .svc-media img, .svc-more .icon { transition: none; } .svc-card:hover { transform: none; } }

/* ── Cards ── */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #C9D6E6; box-shadow: var(--shadow); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 32px; }
.card-body > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card .meta { font-size: var(--fs-label); color: var(--ink-2); margin-bottom: 10px; }
.card .card-foot { margin-top: auto; padding-top: 16px; }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.02); }
.card.horizontal { flex-direction: row; }
.card.horizontal .card-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; }
@media (max-width: 768px) {
  .card-body { padding: 24px; }
  .card.horizontal { flex-direction: column; }
  .card.horizontal .card-media { aspect-ratio: 16 / 10; min-height: 0; }
}

.tag { display: inline-block; padding: 2px 12px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand); font-size: var(--fs-label); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ── Empty state ── */
.empty-state { padding: 56px 32px; text-align: center; border: 1px dashed #CBD5E1; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink-2); }
.empty-state .icon-badge { margin: 0 auto 18px; }
.empty-state h3 { font-size: 1.25rem; }
.empty-state p:last-child { margin-bottom: 0; }

/* ── Process ── */
/* 合作流程：圓形照片＋左上角編號，虛線串連 */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.process li { position: relative; text-align: center; }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 88px; left: calc(50% + 104px); right: calc(-50% + 72px); border-top: 2px dashed #BFD0E6; }
.process-media { position: relative; width: 176px; height: 176px; margin: 0 auto 24px; }
.process-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); border: 6px solid #fff; box-shadow: 0 0 0 1.5px #C9D6E6, 0 12px 28px rgba(20, 36, 58, .10); transition: box-shadow .3s, transform .3s var(--ease); }
.process-photo picture, .process-photo img { display: block; width: 100%; height: 100%; }
.process-photo img { object-fit: cover; }
.process-photo .icon { width: 48px; height: 48px; }
.process li:hover .process-photo { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--brand), 0 16px 32px rgba(20, 36, 58, .14); }
.process-no { position: absolute; top: -9px; left: -9px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.125rem; font-weight: 700; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(21, 88, 163, .25); }
.process h3 { font-size: 1.25rem; margin-bottom: 8px; }
.process p { margin: 0 auto; max-width: 17em; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .process li:nth-child(2)::after { display: none; }
}
@media (max-width: 768px) {
  /* 手機：直式時間軸，照片在左、文字在右 */
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { display: grid; grid-template-columns: 112px 1fr; gap: 0 20px; align-items: center; padding-bottom: 28px; text-align: left; }
  .process li:not(:last-child)::after { top: 116px; bottom: 0; left: 55px; right: auto; border-top: 0; border-left: 2px dashed #BFD0E6; }
  .process li:nth-child(2)::after { display: block; }
  .process li:last-child { padding-bottom: 0; }
  .process-media { width: 112px; height: 112px; margin: 0; }
  .process-photo { border-width: 4px; }
  .process-no { width: 34px; height: 34px; top: -12px; left: -12px; font-size: .9375rem; border-width: 2px; }
  .process p { max-width: none; margin: 0; font-size: 1rem; }
  .process li:hover .process-photo { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .process-photo { transition: none; } .process li:hover .process-photo { transform: none; } }

/* ── CTA band ── */
.cta-band { position: relative; overflow: hidden; padding: 64px 56px; border-radius: 24px; background: linear-gradient(120deg, #EAF1FA 0%, #F5F8FC 60%, #FFFFFF 100%); border: 1px solid #DCE6F2; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(21, 88, 163, .12); box-shadow: 0 0 0 48px rgba(21, 88, 163, .03), 0 0 0 96px rgba(21, 88, 163, .02); pointer-events: none; }
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 38em; }
.cta-band .note { margin-top: 12px; font-size: var(--fs-small); }
@media (max-width: 768px) { .cta-band { padding: 40px 24px; border-radius: 18px; } }

/* ── Prose（文章、政策頁） ── */
.prose { font-size: var(--fs-body); line-height: 1.85; color: #22324A; }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.prose h3 { margin: 1.8em 0 .6em; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1.0625rem; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 1025px) { .prose.article { font-size: 1.1875rem; } }

/* ── FAQ accordion ── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 500; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--brand); transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 4px 28px; color: var(--ink-2); max-width: 52em; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-bottom: 20px; }

/* ── Info list / contact ── */
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 28px 6.5em minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--brand); }
.info-list .label { color: var(--ink-2); font-size: 1.0625rem; }
.info-list .value { font-weight: 500; overflow-wrap: anywhere; }
.info-list .value a { text-decoration: none; }
@media (max-width: 480px) { .info-list li { grid-template-columns: 28px minmax(0, 1fr); } .info-list .value { grid-column: 2; } }

.choice-cards .card-body { gap: 4px; }
.choice-cards .icon-badge { margin-bottom: 20px; }
.choice-cards h2, .choice-cards h3 { font-size: 1.5rem; }
.choice-cards ul { padding-left: 1.2em; color: var(--ink-2); }

.line-box { display: flex; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.line-box img { width: 132px; height: 132px; border-radius: 8px; flex: none; }
.line-box p { margin: 0 0 12px; }
@media (max-width: 480px) { .line-box { flex-direction: column; align-items: flex-start; } }

.value-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.value-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.value-list h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.value-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .value-list li { grid-template-columns: 1fr; gap: 16px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.split.media-right { align-items: center; }
.split > .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 40px; } .split > .sticky { position: static; } }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: 18px; }
.figure figcaption { margin-top: 10px; font-size: var(--fs-label); color: var(--ink-3); }

.notice { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--brand-softer); border: 1px solid #D6E2F0; color: var(--ink-2); font-size: 1.0625rem; }
.notice strong { color: var(--ink); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: #fff; font-size: var(--fs-small); color: var(--ink-2); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.45fr); gap: 40px; padding-block: 72px 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p { margin: 0 0 6px; }
.footer-brand strong { font-size: 1.125rem; color: var(--ink); }
.footer-col h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-col .icon { width: 18px; height: 18px; color: var(--brand); }
.footer-phones { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer-address a { white-space: nowrap; }
@media (max-width: 768px) { .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer-address a { white-space: normal; } }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: var(--fs-label); }
.footer-bottom ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: var(--ink-2); }
@media (max-width: 1279px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; padding-block: 56px 40px; } }

/* ── Mobile quick bar ── */
.quick-bar { display: none; }
@media (max-width: 768px) {
  .quick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .quick-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .9375rem; font-weight: 500; color: var(--ink); }
  .quick-bar a .icon { width: 22px; height: 22px; color: var(--brand); }
  .quick-bar a.primary { background: var(--brand); color: #fff; }
  .quick-bar a.primary .icon { color: #fff; }
  body { padding-bottom: 60px; }
  body.nav-open .quick-bar { display: none; }
}

/* ── 404 ── */
.page-404 { padding-block: 96px; }
.link-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.link-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink); }
.link-list a:hover { border-color: var(--brand); color: var(--brand); }

/* ── Forms（Phase D 擴充） ── */
.field { margin-bottom: 24px; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--danger); margin-left: 4px; }
.field .hint { margin-top: 6px; font-size: var(--fs-label); color: var(--ink-2); }
.input, .select, .textarea { display: block; width: 100%; min-height: 52px; padding: 12px 16px; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(21, 88, 163, .14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field .error { margin-top: 6px; color: var(--danger); font-size: var(--fs-label); }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 1.0625rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #FECDCA; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #ABEFC6; }

/* ── Preview login / coming soon ── */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(180deg, var(--brand-softer), #fff); }
.center-card { width: 100%; max-width: 440px; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.center-card img { height: 52px; width: auto; margin-bottom: 28px; }

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Print ── */
@media print { .site-header, .site-footer, .quick-bar, .cta-band { display: none !important; } body { padding: 0; } }
.footer-bottom p { margin: 0; }
.page-hero-body { margin-top: 40px; max-width: 880px; }
@media (max-width: 768px) { .page-hero-body { margin-top: 28px; } }

/* ── Topic strip（五大 SEO 主題入口） ── */
.topic-strip { margin-top: 56px; }
.topic-strip-title { margin-bottom: 16px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.topic-strip ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.topic-strip a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: border-color .2s, background-color .2s; }
.topic-strip a:hover { border-color: var(--brand); background: var(--brand-softer); }
.topic-strip strong { font-size: 1.0625rem; }
.topic-strip span { font-size: var(--fs-label); color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1024px) { .topic-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .topic-strip ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .topic-strip ul { grid-template-columns: 1fr; } }
.card-body > .icon-badge { margin-bottom: 20px; }
.mt { margin-top: 28px; }
.h3 { font-size: var(--fs-h3); }

/* ── Phase C：列表、篩選、分頁、服務頁、方案、作品、文章 ── */
.tag-muted { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.card-title { font-size: 1.3125rem; margin-bottom: 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.project-card .card-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.project-card .card-media img { object-position: top center; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 48px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink); font-size: 1rem; }
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 18px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; color: var(--ink); font-size: 1rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { font-size: .875rem; opacity: .8; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form .input { width: 280px; max-width: 100%; min-height: 48px; border-radius: var(--pill); padding-inline: 20px; }
.search-form .select { width: auto; min-height: 48px; border-radius: var(--pill); padding-inline: 16px; }
.search-form .btn { min-height: 48px; }
.result-note { margin: -16px 0 32px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 768px) { .search-form { width: 100%; } .search-form .input { flex: 1 1 100%; width: 100%; } }

.answer-box { padding: 32px; border-radius: var(--radius); background: var(--brand-softer); border: 1px solid #D6E2F0; }
.answer-box .eyebrow { margin-bottom: 10px; }
.answer-box p:last-child { margin-bottom: 0; }
.check-list ul, ul.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin: 0 0 14px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231558A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.problem-list li::before { background: #FFF4E5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B54708' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps ol { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 24px 0 24px 72px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 20px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; background: #fff; }
.feature-grid .card-body { padding: 28px; }
.feature-grid h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.link-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.link-card:hover { border-color: var(--brand); color: var(--ink); background: var(--brand-softer); }
.link-card .icon-badge { width: 48px; height: 48px; }
.link-card strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.link-card .desc { display: block; font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.disclaimer { padding: 20px 24px; border-left: 3px solid #D0D5DD; background: var(--bg-soft); color: var(--ink-2); font-size: 1.0625rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.disclaimer p:last-child { margin-bottom: 0; }

.service-group + .service-group { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.service-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; margin-bottom: 32px; }
.service-group-head .pillar-no { display: block; margin-bottom: 10px; }
.service-group-head h2 a { color: var(--ink); }
.service-group-head h2 a:hover { color: var(--brand); }
@media (max-width: 1024px) { .service-group-head { grid-template-columns: 1fr; } }

.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1.0625rem; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--bg-soft); font-weight: 700; }
.compare-table tbody th { font-weight: 500; width: 22%; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -14px; left: 32px; padding: 2px 14px; border-radius: var(--pill); background: var(--brand); color: #fff; font-size: .9375rem; font-weight: 500; }
.plan h2 { font-size: 1.5rem; margin-bottom: 6px; }
.plan .audience { color: var(--ink-2); font-size: 1rem; margin-bottom: 14px; }
.plan .price { margin: 0 0 20px; padding: 14px 0; border-block: 1px solid var(--line); font-weight: 700; color: var(--brand); }
.plan dl { margin: 0 0 28px; }
.plan dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 1.0625rem; }
.plan dd { margin: 0; color: var(--ink-2); text-align: right; }
.plan .btn { margin-top: auto; }
@media (max-width: 1024px) { .plan-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.project-hero-media { margin-top: 48px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.meta-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.meta-list .label { display: block; font-size: var(--fs-label); color: var(--ink-2); }
.meta-list .value { font-weight: 500; overflow-wrap: anywhere; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.toc { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toc h2 { font-size: 1rem; letter-spacing: .06em; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc li.level-3 { padding-left: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.toc a:hover { color: var(--brand); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--ink-2); font-size: var(--fs-small); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 18px; height: 18px; }
.article-summary { margin: 0 0 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--brand-softer); border: 1px solid #D6E2F0; }
.article-summary strong { display: block; margin-bottom: 6px; color: var(--brand); font-size: 1rem; letter-spacing: .04em; }
.article-summary p { margin: 0; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; border-radius: 18px; }
.author-box { display: flex; gap: 20px; margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box .icon-badge { width: 56px; height: 56px; }
.author-box h2 { font-size: 1.125rem; margin-bottom: 4px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.sources { margin-top: 40px; font-size: 1.0625rem; }
.sources h2 { font-size: 1.25rem; }
.sources li { overflow-wrap: anywhere; }
.service-cta { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.service-cta p { margin: 0; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } .article-aside { position: static; } }
.link-list-plain { margin: 0; padding-left: 1.3em; }
.link-list-plain li { margin-bottom: 8px; }
.narrow-prose { max-width: 820px; }
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; padding: 10px var(--gutter); background: #FFF4E5; color: #93370D; text-align: center; font-size: 1rem; border-bottom: 1px solid #FEDF89; }
.eyebrow a { color: inherit; }

/* ── Phase D：詢價與預約表單 ── */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 1024px) { .form-layout { grid-template-columns: 1fr; gap: 40px; } .form-aside { position: static; } }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.aside-card h2 { margin-bottom: 10px; }
.aside-card p { font-size: 1.0625rem; }
.h4 { font-size: 1.1875rem; }
.info-list.compact li { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 0; border: 0; }
.info-list.compact li:first-child { border: 0; }
.check-list.compact li { margin-bottom: 10px; font-size: 1.0625rem; }
.mini-steps { margin: 0; padding-left: 1.3em; color: var(--ink-2); font-size: 1.0625rem; }
.mini-steps li + li { margin-top: 6px; }

.lead-form { max-width: 760px; }
.form-step { margin: 0 0 40px; padding: 0; border: 0; min-width: 0; }
.form-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0; font-size: 1.375rem; font-weight: 700; color: var(--ink); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1rem; flex: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field .label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .choice-grid, .choice-grid.two { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice > span { display: flex; flex-direction: column; gap: 4px; min-height: 60px; height: 100%; justify-content: center; padding: 14px 18px 14px 50px; border: 1.5px solid #CBD5E1; border-radius: var(--radius-sm); background: #fff; font-size: 1.0625rem; font-weight: 500; transition: border-color .15s, background-color .15s; position: relative; }
.choice > span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #98A2B3; border-radius: 50%; background: #fff; }
.choice small { font-size: .9375rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.choice:hover > span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-softer); }
.choice input:checked + span::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff; background: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid rgba(21, 88, 163, .45); outline-offset: 2px; }
.chip-radios, .date-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; border: 1.5px solid #CBD5E1; border-radius: var(--pill); background: #fff; font-size: 1.0625rem; }
.chip-radio:hover span { border-color: var(--brand); }
.chip-radio input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip-radio input:focus-visible + span { outline: 3px solid rgba(21, 88, 163, .45); outline-offset: 2px; }
.consent { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.7; cursor: pointer; }
.check-label input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.btn-lg { min-height: 58px; padding: 14px 36px; font-size: 1.125rem; }
@media (max-width: 480px) { .btn-lg { width: 100%; } }
.mt-sm { margin-top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { margin: 8px 0 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); text-decoration: underline; }
.field.has-error .choice > span, .form-step.has-error .choice > span { border-color: var(--danger); }
.js .js-hide { display: none; }
.btn-row.center { justify-content: center; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.stepper { display: flex; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.stepper li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .9375rem; flex: none; }
.stepper li[aria-current="step"] { background: var(--brand-soft); color: var(--brand); }
.stepper li.done { color: var(--success); }
@media (max-width: 640px) { .stepper li { padding: 10px; font-size: .9375rem; flex-direction: column; text-align: center; gap: 4px; } }

.success-badge { margin-bottom: 20px; background: var(--success-soft); color: var(--success); }
.ref-no { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; color: var(--ink); }

/* 內文中的連結加底線，不只靠顏色區分（WCAG 1.4.1） */
main p a:not([class]), main li a:not([class]), main td a:not([class]), main dd a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
main label a, .notice a, .hint a { text-decoration: underline; text-underline-offset: 3px; }
