/* ==========================================================================
   白鹿情感 — 設計系統
   色票取自品牌 LOGO 實測：墨藍 #2D2F36 ／ 紙底 #DCD9D4
   ========================================================================== */

/* ---------- 1. 設計 Token ---------- */
:root {
  /* 主色：墨藍（鹿頭線條的原色） */
  --ink-900: #1B1D22;
  --ink-800: #2D2F36;
  --ink-700: #3D4049;
  --ink-600: #565A66;
  --ink-500: #71767F;
  --ink-400: #8F949D;

  /* 中性：暖米白（紙底） */
  --paper-50:  #FBFAF8;
  --paper-100: #F5F3F0;
  --paper-200: #EDEAE5;
  --paper-300: #DCD9D4;
  --paper-400: #C8C4BC;

  /* 點綴：暖赭 — 取自「白鹿」的東方意象，用量極省 */
  --accent-700: #8A5A32;
  --accent-600: #A66A3C;
  --accent-500: #BE7F4C;
  --accent-200: #EBDCCB;
  --accent-100: #F5EDE3;

  /* 功能色 */
  --line:        rgba(45, 47, 54, 0.12);
  --line-strong: rgba(45, 47, 54, 0.22);
  --white:       #FFFFFF;
  --card:        #FFFFFF;   /* 卡片底色（case-variants 使用） */

  /* 聯絡資訊（單一來源：改這裡即可換全站顯示；HTML 內的 href 另需同步） */
  --contact-hours:    "9:00 – 22:30 全年無休";
  --contact-line:     "@518snmxc";
  --contact-email:    "296342510@qq.com";
  --contact-whatsapp: "+86 139 2426 5596";
  --contact-wechat:   "cherryjing1990";

  /* 字體 */
  --font-serif: "Noto Serif TC", "Songti TC", "PingFang TC", "Microsoft JhengHei", serif;
  --font-sans:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --font-latin: "Cormorant Garamond", "Playfair Display", Georgia, serif;

  /* 間距節奏 */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* 版面 */
  --w-narrow: 720px;
  --w-text:   880px;
  --w-wide:   1140px;
  --w-max:    1280px;

  /* 圓角與陰影 */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 14px;  --r-full: 999px;
  --sh-sm: 0 1px 2px rgba(27,29,34,.05), 0 1px 3px rgba(27,29,34,.04);
  --sh-md: 0 2px 6px rgba(27,29,34,.06), 0 8px 24px rgba(27,29,34,.06);
  --sh-lg: 0 4px 12px rgba(27,29,34,.08), 0 18px 48px rgba(27,29,34,.08);

  /* 動效 */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .32s;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
p { margin: 0 0 1.4em; }
:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; border-radius: 2px; }

/* ---------- 3. 版面容器 ---------- */
.wrap { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--sp-5); }
.wrap--narrow { max-width: var(--w-narrow); }
.wrap--text { max-width: var(--w-text); }
.wrap--max { max-width: var(--w-max); }

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--paper { background: var(--paper-100); }
.section--ink { background: var(--ink-800); color: var(--paper-100); }
.section--ink h2, .section--ink h3 { color: var(--white); }

/* ---------- 4. 標題群（中文大標 + 英文小副標） ---------- */
.hgroup { text-align: center; margin-bottom: var(--sp-8); }
.hgroup--left { text-align: left; }
.hgroup__eyebrow {
  display: block;
  font-family: var(--font-latin);
  font-size: 15px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--sp-3);
}
.hgroup__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: .06em;
}
.hgroup__desc {
  max-width: 620px;
  margin: var(--sp-5) auto 0;
  color: var(--ink-600);
  font-size: 15.5px;
}
.hgroup--left .hgroup__desc { margin-left: 0; }

/* 標題下的短裝飾線 */
.rule {
  width: 40px; height: 1px;
  background: var(--accent-500);
  margin: var(--sp-5) auto 0;
}
.hgroup--left .rule { margin-left: 0; }

/* ---------- 5. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-size: 15px;
  letter-spacing: .08em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink-800);
  color: var(--paper-50);
  box-shadow: var(--sh-sm);
}
.btn--primary:hover { background: var(--ink-900); box-shadow: var(--sh-md); transform: translateY(-1px); }
.btn--accent {
  background: var(--accent-600);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-800);
}
.btn--ghost:hover { border-color: var(--ink-800); background: var(--paper-100); }
.btn--onink {
  border: 1px solid rgba(251,250,248,.4);
  color: var(--paper-50);
}
.btn--onink:hover { background: var(--paper-50); color: var(--ink-800); border-color: var(--paper-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row--center { justify-content: center; }

/* 文字連結帶箭頭 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--accent-600);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { border-bottom-color: var(--accent-500); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. 導覽列（玫瑰粉底） ----------
   依需求：
     導覽列底色 → #C74C81（主題的 --accent-600，較飽和的玫瑰粉）
     「免費初談」按鈕 → 極淡粉白（--paper-50）

   因為底色飽和度高，屬於「深色底」，所以：
     文字改用淺色；Logo（深色線稿）需要反白才看得見。 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(199, 76, 129, .97);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
/* 淺色文字 */
.site-header .brand__name { color: var(--white); }
.site-header .brand__tag { color: rgba(255, 255, 255, .78); }
.site-header .nav__link { color: rgba(255, 255, 255, .88); }
.site-header .nav__link:hover { color: var(--white); }
/* 目前頁面：純白 ＋ 白色底線，在玫瑰粉上最清楚 */
.site-header .nav__link[aria-current="page"] { color: var(--white); }
.site-header .nav__link::after { background: var(--white); }
.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after { background: var(--white); }

/* Logo 反白：深色線稿 → 純白，才能在玫瑰粉底上看見 */
.site-header .brand__mark {
  filter: brightness(0) invert(1);
  opacity: .96;
}

/* 導覽列的「免費初談」按鈕：極淡粉白 ＋ 玫瑰粉字 */
.site-header .header__cta.btn--primary,
.site-header .btn--primary {
  background: var(--paper-50);
  color: var(--accent-700);
  box-shadow: 0 2px 8px rgba(46, 21, 38, .18);
}
.site-header .header__cta.btn--primary:hover,
.site-header .btn--primary:hover {
  background: var(--white);
  color: var(--accent-700);
  box-shadow: 0 4px 14px rgba(46, 21, 38, .24);
  transform: translateY(-1px);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: auto; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600; letter-spacing: .14em;
}
.brand__tag {
  font-family: var(--font-latin);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-500);
}

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink-900); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 服務下拉 */
.nav__item { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: var(--sp-2);
  opacity: 0; visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__sub a {
  display: block; padding: 10px 14px;
  font-size: 14.5px; color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.nav__sub a:hover { background: var(--paper-100); color: var(--ink-900); }

.header__cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(190,127,76,.07), transparent 70%),
    var(--paper-50);
  overflow: hidden;
}
.hero__mark {
  width: clamp(110px, 17vw, 180px);
  height: auto;
  margin: 0 auto var(--sp-6);
  opacity: .95;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.4vw, 66px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
  margin-bottom: var(--sp-5);
}
.hero__title em { font-style: normal; color: var(--accent-600); }
.hero__latin {
  font-family: var(--font-latin);
  font-size: 14px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--sp-6);
}
.hero__lead {
  max-width: 660px;
  margin: 0 auto var(--sp-7);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--ink-600);
  line-height: 2.1;
}
.hero__quote {
  max-width: 560px;
  margin: var(--sp-8) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--ink-600);
  letter-spacing: .08em;
}
/* 桌機時把末句換行；手機時自然流動，避免水平溢出 */
@media (min-width: 721px) {
  .hero__lead .nowrap-desktop { display: block; }
}

/* ---------- 8. 卡片格線 ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px;
  margin-bottom: var(--sp-5);
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--accent-100);
  color: var(--accent-700);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: var(--sp-3);
}
.card__body { font-size: 14.8px; color: var(--ink-600); line-height: 1.95; margin-bottom: var(--sp-5); }
.card__tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: auto; padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-500);
}
.card__tags li { position: relative; }
.card__tags li + li::before {
  content: "·"; position: absolute; left: -9px; color: var(--paper-400);
}
.card--link { cursor: pointer; }
.card--link:hover .card__title { color: var(--accent-700); }

/* ---------- 9. 流程步驟 ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: var(--sp-6); border-top: 1px solid var(--line-strong); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -14px; left: 0;
  background: var(--paper-50);
  padding-right: var(--sp-3);
  font-family: var(--font-latin);
  font-size: 15px; letter-spacing: .1em;
  color: var(--accent-600);
}
.section--paper .step::before { background: var(--paper-100); }
.step__title { font-size: 16.5px; font-weight: 600; margin-bottom: var(--sp-2); letter-spacing: .06em; }
.step__desc { font-size: 14.2px; color: var(--ink-600); line-height: 1.9; margin: 0; }

/* ---------- 10. 案例卡 ---------- */
.case {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.case:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--line-strong); }
.case__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .08em;
  color: var(--ink-500);
}
.case__tag {
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: 12px; letter-spacing: .06em;
}
.case__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.case__title {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.6; font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: var(--sp-4);
}
.case__excerpt { font-size: 14.6px; color: var(--ink-600); line-height: 1.95; flex: 1; }
.case__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-500);
}

/* 單一案例頁 */
.case-article { padding: var(--sp-8) 0 var(--sp-9); }
.case-article__head { margin-bottom: var(--sp-8); }
.case-article__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.55; letter-spacing: .05em;
  margin-bottom: var(--sp-5);
}
.case-article__sub { font-size: 16px; color: var(--ink-600); margin-bottom: var(--sp-6); }
.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--paper-100);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
}
.case-facts dt { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-500); margin-bottom: 4px; }
.case-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.prose { font-size: 16.5px; line-height: 2.15; color: var(--ink-700); }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 23px; letter-spacing: .06em;
  margin: var(--sp-8) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose ul { margin: 0 0 1.4em; padding-left: 1.2em; list-style: disc; }
.prose ul.checklist { padding-left: 0; list-style: none; }
.prose li { margin-bottom: .5em; }

/* 引言 / 對話節錄 */
.quote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--accent-500);
  background: var(--accent-100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px;
  color: var(--ink-800);
  line-height: 2;
}
.quote p:last-child { margin-bottom: 0; }
.quote__who {
  display: block;
  font-size: 12.5px; letter-spacing: .1em;
  color: var(--accent-700);
  margin-bottom: 6px;
}
.dialogue { margin: var(--sp-6) 0; display: grid; gap: var(--sp-4); }
.dialogue__item {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--paper-100);
  font-size: 15.5px; line-height: 1.95;
}
.dialogue__who {
  display: block; font-size: 12.5px; letter-spacing: .1em;
  color: var(--ink-500); margin-bottom: 4px;
}
.dialogue__item--advisor { background: var(--accent-100); }
.dialogue__item--advisor .dialogue__who { color: var(--accent-700); }

/* 提示框 */
.notice {
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  background: var(--paper-100);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.95;
}
.notice__title { font-weight: 600; color: var(--ink-800); margin-bottom: var(--sp-2); }
.notice--accent { background: var(--accent-100); border-color: var(--accent-200); }

/* ---------- 11. 顧問團隊 ---------- */
.advisor {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--line);
}
.advisor:first-of-type { border-top: 0; padding-top: 0; }
.advisor__aside { position: sticky; top: 96px; align-self: start; }
.advisor__photo {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  background: var(--paper-100);
}
/* 尚無照片時的代用版位（不顯示破圖） */
.advisor__nophoto {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper-100);
  display: grid;
  place-items: center;
}
.advisor__nophoto-mark {
  width: 62px; height: 44px;
  background: var(--paper-400);
  -webkit-mask: url("/assets/img/deer.png") center / contain no-repeat;
  mask: url("/assets/img/deer.png") center / contain no-repeat;
  opacity: .7;
}
.advisor__name {
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: .1em;
  margin: var(--sp-5) 0 var(--sp-3);
}
.advisor__titles { display: flex; flex-wrap: wrap; gap: 6px; }
.advisor__title {
  padding: 4px 11px;
  border-radius: var(--r-full);
  background: var(--paper-200);
  color: var(--ink-700);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.advisor__title--member { background: var(--accent-100); color: var(--accent-700); }
.advisor__body { min-width: 0; }
.advisor__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-100);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
}
.advisor__stat dt { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-500); margin-bottom: 3px; }
.advisor__stat dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-800); line-height: 1.5; }
.advisor__block { margin-bottom: var(--sp-6); }
.advisor__block:last-child { margin-bottom: 0; }
.advisor__h {
  font-size: 13.5px;
  letter-spacing: .14em;
  color: var(--accent-700);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.advisor__fields { display: flex; flex-wrap: wrap; gap: 7px; }
.advisor__field {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: 13.5px;
  color: var(--ink-700);
}
.advisor__list { display: grid; gap: var(--sp-2); }
.advisor__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.4px;
  color: var(--ink-600);
  line-height: 1.85;
}
.advisor__list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--paper-400);
}
.advisor__quote {
  padding: var(--sp-4) var(--sp-5);
  border-left: 2px solid var(--accent-500);
  background: var(--accent-100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.95;
}
.advisor__quote + .advisor__quote { margin-top: var(--sp-3); }

@media (max-width: 900px) {
  .advisor { grid-template-columns: 1fr; gap: var(--sp-6); }
  .advisor__aside { position: static; }
  .advisor__photo { max-width: 330px; margin: 0 auto; }
}

/* 顧問：一排四個，最後一列不滿時置中
   用 flex + 精算寬度（不是 grid）：
   7 張卡片會在 4 欄下排成 4 + 3，justify-content:center 讓第二列的三張居中。
   卡片寬度 = (100% - 3 個間距) / 4

   註：容器有左右內距（.wrap 的 padding），所以「居中於容器」會比
   「居中於整個畫面」偏左約一個內距。用負邊距抵銷掉，讓最後一列
   在視覺上真正落在畫面中央。 */
.advisors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-7) var(--sp-5);
  max-width: var(--w-wide);
  margin: 0 calc(-1 * var(--sp-5)) var(--sp-8);
}
.adv {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc((100% - var(--sp-5) * 3) / 4);
}
/* 顧問肖像：正方形 JPG（灰底半身構圖，整組風格一致）
   統一正方形框 + 圓角，object-fit: cover 讓每張填滿相同比例。 */
.adv__pic {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-200);
}
.adv__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.adv__name {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: .12em;
  margin-bottom: var(--sp-3);
}
.adv__roles {
  font-size: 13px;
  color: var(--accent-700);
  letter-spacing: .02em;
  margin-bottom: var(--sp-3);
  line-height: 1.75;
  min-height: 3.5em;
}
.adv__stats {
  font-size: 12.8px;
  color: var(--ink-500);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.adv__desc {
  font-size: 13.8px;
  color: var(--ink-600);
  line-height: 1.95;
  margin-bottom: var(--sp-5);
  flex: 1;
}

@media (max-width: 1000px) {
  /* 平板：一排兩個 */
  .advisors-grid { gap: var(--sp-7) var(--sp-6); margin: 0 auto var(--sp-8); }
  .adv { width: calc((100% - var(--sp-6)) / 2); }
}
@media (max-width: 560px) {
  /* 手機：單欄，置中不滿寬 */
  .advisors-grid { max-width: 380px; margin: 0 auto var(--sp-8); }
  .adv { width: 100%; }
}

/* 尚無照片的顧問：文字條列 */
.teamnames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  max-width: 880px;
  margin: 0 auto;
}
.teamnames__item { text-align: center; }
.teamnames__name {
  font-family: var(--font-serif);
  font-size: 18px; letter-spacing: .08em;
  margin-bottom: var(--sp-2);
}
.teamnames__title { font-size: 13px; color: var(--ink-500); line-height: 1.75; margin: 0; }

@media (max-width: 820px) {
  .teamnames { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* 顧問團隊卡片（首頁用） */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6) var(--sp-5); }
.team__item { text-align: center; }
.team__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper-200);
  transition: all var(--dur) var(--ease);
}
.team__item:hover .team__photo { border-color: var(--line-strong); box-shadow: var(--sh-md); }
.team__name {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: .08em;
  margin: var(--sp-4) 0 var(--sp-2);
}
.team__title { font-size: 13px; color: var(--ink-500); line-height: 1.75; }

@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .team { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); } }

/* ---------- 12. FAQ 手風琴 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  width: 100%; text-align: left;
  padding: var(--sp-5) 0;
  font-size: 16.5px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-800);
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--accent-700); }
.faq__q::before {
  content: "Q"; flex: none;
  font-family: var(--font-latin);
  font-size: 15px; color: var(--accent-600); line-height: 1.9;
}
.faq__q::after {
  content: ""; flex: none; margin-left: auto; margin-top: 12px;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-500);
  border-bottom: 1.5px solid var(--ink-500);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  padding: 0 0 var(--sp-6) 30px;
  font-size: 15.4px; color: var(--ink-600); line-height: 2.05;
}
.faq__a p:last-child { margin-bottom: 0; }
.faq details > summary { list-style: none; cursor: pointer; }
.faq details > summary::-webkit-details-marker { display: none; }

/* ---------- 12. 統計數字 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); text-align: center; }
.stat__num {
  font-family: var(--font-latin);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  color: var(--accent-600);
  letter-spacing: .02em;
}
.stat__label { font-size: 14px; color: var(--ink-600); margin-top: var(--sp-3); letter-spacing: .06em; }
.section--ink .stat__num { color: var(--accent-500); }
.section--ink .stat__label { color: var(--paper-300); }

/* ---------- 13. 精選引言 ---------- */
.pull {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.95; letter-spacing: .06em;
  color: var(--ink-800);
}
.pull::before { content: "「"; color: var(--accent-500); }
.pull::after  { content: "」"; color: var(--accent-500); }
.pull__by { display: block; margin-top: var(--sp-5); font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-500); letter-spacing: .1em; }

/* ---------- 14. 表單 ---------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: 14px; letter-spacing: .06em; color: var(--ink-700); }
.field label .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: 15px;
  color: var(--ink-800);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.field__hint { font-size: 12.8px; color: var(--ink-500); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }

/* 蜜罐欄位：給機器人填的陷阱，正常訪客完全看不到。
   用絕對定位移出畫面而不是 display:none——有些機器人會跳過 display:none 的欄位。 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 表單送出狀態 */
.form__foot .btn[disabled] { opacity: .6; cursor: not-allowed; }
.notice--ok {
  background: #EEF7F2;
  border-color: #CFE7DA;
  color: #1F5A42;
}
.notice--err {
  background: #FBF0EC;
  border-color: #EED7CC;
  color: #8A3B22;
}
.field--error input,
.field--error select,
.field--error textarea { border-color: #C2704F; }

/* ---------- 15. 頁尾 ---------- */
.site-footer { background: var(--ink-900); color: var(--paper-300); padding: var(--sp-9) 0 var(--sp-6); }
.site-footer a { color: var(--paper-300); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--sp-7); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-5); }
.footer__brand img { width: 40px; }
.footer__brand span { font-family: var(--font-serif); font-size: 19px; letter-spacing: .14em; color: var(--white); }
.footer__desc { font-size: 14px; line-height: 2; color: var(--ink-400); }
.footer__h { font-size: 14px; letter-spacing: .12em; color: var(--white); margin-bottom: var(--sp-4); font-weight: 600; }
.footer__list li { margin-bottom: var(--sp-3); font-size: 14.2px; }
.footer__list--plain li { color: var(--ink-400); }
.footer__bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid rgba(251,250,248,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: 13px; color: var(--ink-500);
}
.footer__legal { max-width: 760px; font-size: 12.8px; line-height: 1.95; color: var(--ink-500); }

/* ---------- 16. 頁面標頭（內頁） ---------- */
.page-head {
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  background: var(--paper-100);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head--left { text-align: left; }
.page-head__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.6vw, 44px);
  letter-spacing: .08em;
  margin-bottom: var(--sp-4);
}
.page-head__lead { max-width: 660px; margin: 0 auto; color: var(--ink-600); font-size: 16px; }
.page-head--left .page-head__lead { margin-left: 0; }
.breadcrumb { font-size: 13px; color: var(--ink-500); margin-bottom: var(--sp-4); letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--accent-700); }
.breadcrumb span { margin: 0 8px; color: var(--paper-400); }

/* ---------- 17. 服務內頁雙欄 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.split--sidebar { grid-template-columns: 1fr 320px; }
.aside-card {
  position: sticky; top: 96px;
  /* 必須高於 theme-fx.js 的裝飾圖層（position:fixed; z-index:1）。
     原因是 position:sticky 會建立自己的堆疊脈絡，所以卡片內任何元素的
     z-index（例如 QR 圖）都只會在卡片內部比較，無法超越花瓣圖層。
     實測：只把 QR 設 z-index:2 無效，花瓣仍會蓋住 QR；
     把「卡片本身」提到 z-index:2 才有效（已用像素取樣驗證）。
     花瓣尺寸 8–20px，飄過時會遮住 QR 的數個模組，導致掃碼失敗。 */
  z-index: 2;
  padding: var(--sp-6);
  background: var(--paper-100);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.aside-card h3 { font-size: 17px; margin-bottom: var(--sp-4); letter-spacing: .06em; }
.aside-card ul { margin-bottom: var(--sp-5); }
.aside-card li { font-size: 14.5px; color: var(--ink-600); padding: 9px 0; border-bottom: 1px solid var(--line); }
.aside-card li:last-child { border-bottom: 0; }

/* 側欄掃碼聯絡（加在「信箱」下方）
   .aside-card 桌機固定 320px，扣掉 padding 後內容 254px。
   兩欄各約 121px：以 finder pattern 推算，WeChat 37 模組在此尺寸約
   2.9px/模組，仍可掃描。若之後覺得太小，改成單欄 150px 即可。 */
.aside-qr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  justify-items: center;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.aside-qr__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.aside-qr__img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.aside-qr__label {
  font-family: var(--font-latin);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- 17c. 掃碼聯絡（頁尾「聯絡我們」欄） ----------
   放在頁尾聯絡欄的信箱下方。

   尺寸依據（實測各斷點的實際欄寬）：
     頁尾 .footer__grid 是 2fr 1fr 1fr 1.4fr。
     1440px 時聯絡欄 282px → 兩欄各約 133px
     1024px 時聯絡欄 216px → 兩欄各約 100px，偏小且侷促
     1000px 以下頁尾改為 2 欄／1 欄，聯絡欄變成 402–772px，非常寬裕

   因此：
     預設兩欄（符合使用者的排版期待）
     1001–1140px 之間（四欄且欄位偏窄）改為單欄堆疊，避免 QR 縮到 100px
     1000px 以下回到兩欄（此時欄位很寬）

   QR 圖檔本身已含白色靜區（見 assets/img/contact/）。 */
.footer__qr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  justify-items: center;
  margin-top: var(--sp-5);
}

.footer__qr-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.footer__qr-img {
  display: block;
  width: 130px;
  height: 130px;
  max-width: 100%;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 5px;
}

.footer__qr-label {
  font-family: var(--font-latin);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* 四欄頁尾、但欄位偏窄的區間：改單欄，維持 QR 可掃尺寸 */
@media (min-width: 1001px) and (max-width: 1140px) {
  .footer__qr { grid-template-columns: 1fr; }
}

/* 特徵清單 */
.checklist { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; padding-left: 0; list-style: none; }
.checklist li {
  position: relative; padding-left: 28px;
  font-size: 15.4px; color: var(--ink-600); line-height: 1.95;
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500);
}
.checklist strong { color: var(--ink-800); }

/* ---------- 18. CTA 區塊 ---------- */
.cta {
  padding: var(--sp-9) 0;
  background: var(--ink-800);
  color: var(--paper-100);
  text-align: center;
}
.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.cta__desc { max-width: 600px; margin: 0 auto var(--sp-7); color: var(--paper-300); font-size: 15.5px; }

/* ---------- 19. 麵包屑／雜項 ---------- */
.muted { color: var(--ink-500); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 跳至主要內容 */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-800); color: var(--white);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; }

/* 免責聲明條 */
.disclaimer {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.95;
  padding: var(--sp-5);
  background: var(--paper-100);
  border-radius: var(--r-md);
  border-left: 2px solid var(--paper-400);
}

/* ---------- 20. 響應式 ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--5 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split, .split--sidebar { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 820px) {
  body { font-size: 15.5px; line-height: 1.85; }
  .section { padding: var(--sp-8) 0; }

  /* 手機導覽：玫瑰粉底（與導覽列一致） */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: rgba(199, 76, 129, .99);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--sh-md);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: all var(--dur) var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
  }
  /* 玫瑰粉選單底上的連結用淺色 */
  .site-header .nav__link { color: rgba(255, 255, 255, .9); }
  .site-header .nav__link:hover { color: var(--white); }
  .site-header .nav__link[aria-current="page"] { color: var(--white); }
  .nav__link::after { display: none; }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 0 var(--sp-4);
    background: transparent;
    min-width: 0;
  }
  .nav__sub a {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(46, 21, 38, .08);
  }
  .header__cta { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps--4, .steps--5 { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats { grid-template-columns: 1fr; gap: var(--sp-6); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .quote, .dialogue__item { padding: var(--sp-4) var(--sp-5); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 var(--sp-4); }
  .case-facts { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

/* 減少動效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 列印 */
@media print {
  .site-header, .cta, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
}
