/* 凱英國際官網 demo
   色彩取自獨角獸 logo：薰衣草紫＋金色；深紫墨色做文字與深色區塊。 */
:root {
  --ink: #2a1d35;
  --ink-2: #5c5066;
  --ink-3: #8a7f93;
  --plum: #5b3473;
  --plum-hover: #482860;
  --lilac: #bc94c6;
  --lilac-soft: #ebdff0;
  --mist: #f6f2f8;
  --line: #e5dcea;
  --gold: #d2ae6a;
  --gold-text: #8a6420;
  --paper: #ffffff;
  --night: #2a1d35;
  --night-2: #1d1426;
  --chat: #c9d6e3;

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

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4.4vw, 3.375rem); line-height: 1.28; }
h2 { font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.35; }
h3, .h3 { font-family: var(--sans); font-size: 1.25rem; line-height: 1.5; font-weight: 700; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 16px; }
.skip-link:focus { left: 8px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--flip { transform: scaleX(-1); }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 700 .9375rem/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-hover); }
.btn--ghost { background: transparent; color: var(--plum); border-color: #cdb9d6; }
.btn--ghost:hover { border-color: var(--plum); background: var(--mist); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e0c084; }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--plum); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid #cdb9d6; padding-bottom: 2px;
}
.text-link:hover { border-color: var(--plum); }

.badge {
  display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px;
  background: var(--lilac-soft); color: var(--plum);
  font: 700 .75rem/1.7 var(--sans); font-style: normal; letter-spacing: .04em; vertical-align: 2px;
}
.badge--plain { background: var(--paper); border: 1px solid var(--line); }
.badge--gold { background: #f6ecd8; color: var(--gold-text); }
.tag-demo {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px;
  border: 1px solid var(--gold); color: var(--gold-text);
  font: 500 .75rem/1.6 var(--sans); font-style: normal;
}

/* 頂部 demo 提示 */
.demo-strip { background: var(--lilac-soft); color: var(--ink); font-size: .8125rem; text-align: center; padding: 6px var(--gutter); }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: auto; }
.brand__name { font: 700 1.25rem/1 var(--serif); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--r-s);
  font: 500 .9375rem/1.2 var(--sans); letter-spacing: .04em; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--mist); }
.nav__link.is-current { color: var(--plum); box-shadow: inset 0 -2px 0 var(--lilac); border-radius: 0; }
.nav__trigger .icon { transition: transform .2s; }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__mobile-actions { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.header__login { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: 8px 6px; }
.header__login:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; border-radius: var(--r-s); }
.menu-toggle .icon--close { display: none; }

/* 產品下拉 */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(42, 29, 53, .28);
  display: none;
}
.nav__item--mega.is-open .mega { display: block; }
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 28px 32px; }
.mega__head { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega__head span { font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-inline: -10px; border-radius: var(--r-s); text-decoration: none; font-weight: 500; }
.mega__link .icon { color: var(--plum); }
.mega__link:hover { background: var(--mist); color: var(--plum); }

/* 區塊 */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--mist { background: var(--mist); }
.section--line { border-top: 1px solid var(--line); padding-block: 48px; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head p { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 720px; }
.section__foot { margin-top: 40px; }

/* 首頁主視覺 */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.375rem, 5.2vw, 4rem); font-weight: 900; line-height: 1.22; letter-spacing: .02em; }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 1.0625rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }
.hero__facts { margin-top: 32px; display: grid; gap: 8px; color: var(--ink-2); font-size: .9375rem; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--plum); }

.hero__visual { position: relative; min-height: 640px; display: flex; justify-content: flex-end; }
.hero__visual::before {
  content: ""; position: absolute; inset: 40px 0 40px 22%;
  background: var(--lilac-soft); border-radius: 200px 200px var(--r-l) var(--r-l);
}
.phone {
  position: relative; width: 300px; margin-right: 8%;
  border: 10px solid var(--ink); border-radius: 44px; background: var(--chat);
  overflow: hidden; display: flex; flex-direction: column; height: 640px;
  box-shadow: 0 30px 60px -30px rgba(42, 29, 53, .5);
}
.phone__bar { display: flex; align-items: center; gap: 6px; padding: 26px 14px 12px; background: #fff; font-weight: 700; font-size: .9375rem; }
.phone__bar .icon { width: 18px; height: 18px; }
.chat { flex: 1; min-height: 0; overflow: hidden; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; font-size: .8125rem; line-height: 1.55; }
.msg { background: #fff; border-radius: 4px 18px 18px 18px; padding: 12px 14px; max-width: 92%; animation: msg-in .5s cubic-bezier(.2,.8,.2,1) both; }
.msg--card { padding: 0; overflow: hidden; }
.msg--card .msg__head { background: var(--plum); color: #fff; font-weight: 700; padding: 10px 14px; font-size: .875rem; }
.msg__dl { padding: 10px 14px 6px; display: grid; gap: 2px; }
.msg__dl div { display: flex; gap: 12px; }
.msg__dl dt { color: var(--ink-3); width: 3.4em; flex: none; letter-spacing: 0; }
.msg__dl dd { font-weight: 500; }
.msg__btn { display: block; margin: 6px 14px 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px; color: var(--plum); font-weight: 700; }
.msg--text { animation-delay: .9s; }
.msg--member { animation-delay: 1.6s; background: linear-gradient(135deg, #3a2849, var(--ink)); color: #fff; width: 92%; }
.msg__tier { color: var(--gold); font-weight: 700; font-size: .75rem; letter-spacing: .1em; }
.msg__points { font: 900 1.75rem/1.2 var(--serif); margin-top: 2px; }
.msg__points small { font: 500 .75rem var(--sans); margin-left: 4px; }
.msg__hint { font-size: .75rem; color: #cbbfd4; }
.msg--card { animation-delay: .2s; }
.richmenu { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); }
.richmenu span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; font-size: .75rem; font-weight: 500; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.richmenu span:nth-child(3n) { border-right: 0; }
.richmenu span:nth-child(n+4) { border-bottom: 0; }
.richmenu .icon { color: var(--plum); width: 22px; height: 22px; }

.callouts { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; pointer-events: none; }
.callout {
  position: absolute; left: 0; display: grid; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 10px 14px; font-size: .75rem; color: var(--ink-2); line-height: 1.5;
  box-shadow: 0 10px 24px -16px rgba(42, 29, 53, .4);
  animation: msg-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.callout strong { color: var(--ink); font-size: .875rem; }
.callout::after { content: ""; position: absolute; left: 100%; top: 50%; width: 64px; border-top: 1.5px dashed var(--lilac); }
.callout--1 { top: 17%; animation-delay: .5s; }
.callout--2 { top: 39%; left: 4%; animation-delay: 1.2s; }
.callout--3 { top: 56%; animation-delay: 1.9s; }
.callout--4 { top: 80%; left: 6%; animation-delay: 2.4s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 核心產品 */
.core { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.core__panel { background: var(--mist); border-radius: var(--r-l); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; }
.core__panel--membership { background: var(--night); color: #fff; }
.core__top { display: flex; align-items: center; gap: 14px; }
.core__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); color: var(--plum); display: grid; place-items: center; flex: none; }
.core__icon .icon { width: 26px; height: 26px; }
.core__panel--membership .core__icon { background: rgba(255,255,255,.1); color: var(--gold); }
.core__name { font-size: 1.375rem; }
.core__name a { text-decoration: none; }
.core__name a:hover { text-decoration: underline; text-underline-offset: 5px; }
.core__title { margin-top: 20px; font: 700 clamp(1.375rem, 2.2vw, 1.75rem)/1.45 var(--serif); }
.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--plum); }
.checklist strong { display: block; }
.checklist span > span, .checklist li > span { color: inherit; }
.core__panel .checklist li span { font-size: .9375rem; color: var(--ink-2); }
.core__panel .checklist li strong { color: var(--ink); font-size: 1rem; }
.core__panel--membership .checklist .icon { color: var(--gold); }
.core__panel--membership .checklist li span { color: #cbbfd4; }
.core__panel--membership .checklist li strong { color: #fff; }
.core__price { margin-top: auto; padding-top: 32px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price { font: 900 2.75rem/1 var(--serif); letter-spacing: 0; }
.price small { font: 700 1rem var(--sans); margin-right: 4px; }
.core__unit { color: var(--ink-2); font-size: .9375rem; }
.core__panel--membership .core__unit { color: #cbbfd4; }
.core__panel--membership .tag-demo { color: var(--gold); }
.core__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.core__panel--membership .btn--primary { background: var(--gold); color: var(--ink); }
.core__panel--membership .btn--primary:hover { background: #e0c084; }
.core__panel--membership .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.core__panel--membership .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* 產品索引列表 */
.index { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.index--single { grid-template-columns: 1fr; max-width: 820px; }
.index__head { font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.index__head span { font-weight: 400; color: var(--ink-3); font-size: .875rem; margin-left: 10px; }
.index--single ul { border-top: 2px solid var(--ink); }
.index__row { display: flex; align-items: center; gap: 18px; padding: 20px 12px; margin-inline: -12px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: var(--r-s); transition: background-color .15s; }
.index__row:hover { background: var(--paper); }
.index__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--plum); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.index__text { flex: 1; display: grid; }
.index__text strong { font-size: 1.0625rem; }
.index__text > span { color: var(--ink-2); font-size: .9375rem; }
.index__chev { color: var(--ink-3); }
.index__row:hover .index__chev { color: var(--plum); }

/* 產業分頁 */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font: 700 1rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-2); cursor: pointer;
}
.tabs__tab .icon { width: 20px; height: 20px; }
.tabs__tab:hover { border-color: var(--lilac); color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tabs__panel[hidden] { display: none; }
.tabs__who { color: var(--plum); font-weight: 700; font-size: .9375rem; }
.tabs__copy h3 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.4 var(--serif); margin-top: 8px; }
.tabs__copy > p:not(.tabs__who):not(.tabs__combo-label) { margin-top: 16px; color: var(--ink-2); }
.tabs__combo-label { margin-top: 28px; font-weight: 700; font-size: .9375rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; margin-bottom: 28px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--mist); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.pills a:hover { background: var(--lilac-soft); color: var(--plum); }
.pills .icon { width: 18px; height: 18px; color: var(--plum); }

.journey { position: relative; display: grid; gap: 0; counter-reset: j; }
.journey li { position: relative; padding: 0 0 26px 44px; counter-increment: j; display: grid; }
.journey li::before {
  content: counter(j); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--lilac); color: var(--plum);
  font: 700 .8125rem/25px var(--sans); text-align: center;
}
.journey li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; border-left: 1.5px dashed var(--lilac); }
.journey li:last-child { padding-bottom: 0; }
.journey li:last-child::after { display: none; }
.journey li:last-child::before { background: var(--plum); border-color: var(--plum); color: #fff; }
.journey strong { font-size: 1.0625rem; line-height: 1.6; }
.journey span { color: var(--ink-2); font-size: .9375rem; }

/* 流程步驟 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps__item { display: grid; align-content: start; gap: 6px; padding-top: 24px; border-top: 2px solid var(--line); position: relative; }
.steps__item:first-child { border-top-color: var(--plum); }
.steps__num { font: 900 2.5rem/1 var(--serif); color: var(--lilac); margin-bottom: 8px; }
.steps__item strong { font-size: 1.125rem; }
.steps__item > span:last-child { color: var(--ink-2); font-size: .9375rem; }

/* 案例 */
.cases { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 24px; align-items: start; }
.cases--two { grid-template-columns: repeat(2, 1fr); }
.case img { border-radius: var(--r-l); background: var(--mist); width: 100%; aspect-ratio: 600 / 552; object-fit: cover; border: 1px solid var(--line); }
.case figcaption { margin-top: 16px; display: grid; gap: 2px; }
.case__type { font-size: .8125rem; font-weight: 700; color: var(--plum); }
.case figcaption strong { font-size: 1.125rem; }
.case figcaption > span:last-child { color: var(--ink-2); font-size: .9375rem; }
.case--slot { border: 1.5px dashed #cdb9d6; border-radius: var(--r-l); padding: 32px; min-height: 240px; display: grid; place-items: center; text-align: center; color: var(--ink-2); grid-column: 1 / -1; }
.case--slot strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 6px; }
.works { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px 32px; }
.works__head { font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.works li { display: grid; grid-template-columns: 4.5em 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.works li:last-child { border-bottom: 0; padding-bottom: 0; }
.works__year { grid-row: span 2; font: 700 1rem/1.6 var(--serif); color: var(--gold-text); }
.works li > span:last-child { color: var(--ink-2); font-size: .875rem; }
.section--mist .works { max-width: 860px; }
.section--mist .works ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.section--mist .works li:nth-last-child(2) { border-bottom: 0; }

/* 立即諮詢 */
.consult { background: var(--night); color: #fff; padding-block: clamp(64px, 8vw, 112px); }
.consult__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.consult h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.consult__intro > p { margin-top: 18px; color: #d8cee0; font-size: 1.0625rem; }
.consult__contact { margin-top: 32px; display: grid; gap: 14px; }
.consult__contact li { display: flex; gap: 12px; align-items: flex-start; color: #d8cee0; }
.consult__contact .icon { color: var(--gold); margin-top: 3px; width: 20px; height: 20px; }
.consult__contact a { color: #fff; text-decoration: none; font-weight: 700; }
.consult__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.consult-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; font-weight: 500; color: #efe8f3; padding: 0; }
.req { margin-left: 8px; font-size: .75rem; color: var(--gold); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: #fff;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--r-m);
  padding: 12px 16px; min-height: 50px;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a99db2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lilac); background: rgba(255,255,255,.1); }
.field.has-error input { border-color: #ff9b8a; }
.field__error { color: #ffb4a6; font-size: .875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); font-size: .9375rem; color: #efe8f3; transition: background-color .15s, border-color .15s; }
.chip:hover span { border-color: var(--lilac); }
.chip input:checked + span { background: var(--lilac); border-color: var(--lilac); color: var(--ink); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consult-form__submit { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.consult-form__submit .btn { min-height: 54px; padding: 0 40px; font-size: 1.0625rem; }
.consult-form__note { color: #a99db2; font-size: .8125rem; }
.consult-form__done { border: 1.5px solid var(--gold); border-radius: var(--r-l); padding: 32px; color: #d8cee0; }
.consult-form__done-title { font: 700 1.5rem/1.4 var(--serif); color: #fff; margin-bottom: 8px; }
.consult-form.is-done .consult-form__fields, .consult-form.is-done .consult-form__submit { display: none; }

/* 內頁主視覺 */
.page-hero { background: var(--mist); padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); }
.page-hero__product { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--plum); font-weight: 700; margin-bottom: 14px; }
.page-hero__product .icon { width: 26px; height: 26px; }
.page-hero__product .badge { margin-left: 0; }
.page-hero__who { color: var(--ink-2); font-weight: 400; font-size: .9375rem; }
.page-hero__lead { margin-top: 20px; color: var(--ink-2); font-size: 1.0625rem; max-width: 36em; }
.notice { display: inline-block; margin-top: 20px; padding: 6px 14px; border-radius: var(--r-s); background: #f6ecd8; color: var(--gold-text); font-size: .875rem; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 28px; }
.facts__row { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); font-size: .9375rem; }
.facts dd { font-weight: 500; }
.facts--plain { margin-top: 24px; padding: 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
.facts--plain .facts__row { grid-template-columns: 7em 1fr; }
.facts a { color: var(--plum); }
.journey-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px 32px; }
.journey-box__head { font-weight: 700; margin-bottom: 20px; }

.about-hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.about-hero h1 { max-width: 14em; }
.about-hero__logo { width: clamp(140px, 18vw, 240px); opacity: .9; }

/* 痛點 */
.pains { border-top: 2px solid var(--ink); }
.pains__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.pains__problem { color: var(--ink-2); font-size: 1.0625rem; padding-left: 16px; border-left: 3px solid var(--line); }
.pains__fix { display: flex; gap: 12px; font-weight: 500; font-size: 1.0625rem; }
.pains__fix .icon { color: var(--plum); margin-top: 4px; width: 20px; height: 20px; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.features--three { grid-template-columns: repeat(3, 1fr); }
.features__item { display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 2px solid var(--lilac); }
.features__item strong { font-size: 1.125rem; }
.features__item span { color: var(--ink-2); font-size: .9375rem; }

/* 價格 */
.price-band { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; }
.price-band__line { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-band .muted { margin-top: 8px; }
.price-band .checklist { margin-top: 0; }
.price-band__actions { display: grid; gap: 16px; justify-items: start; }
.checklist--plain li span { color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; background: var(--paper); }
.plan--featured { border: 2px solid var(--plum); }
.plan__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan__top .core__icon { background: var(--mist); }
.plan__name { font: 700 1.25rem/1.4 var(--sans); }
.plan__top .badge { margin-left: 0; }
.plan__price { margin-top: 28px; }
.plan__unit { color: var(--ink-2); margin-top: 8px; }
.plan__note { font-size: .875rem; color: var(--gold-text); margin-top: 2px; }
.plan .checklist { padding-top: 24px; border-top: 1px solid var(--line); }
.plan__actions { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; justify-items: center; }

.custom { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: var(--mist); border-radius: var(--r-l); padding: 28px 32px; }
.custom__copy p { color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }
.custom__list { display: flex; flex-wrap: wrap; gap: 8px; }
.custom__list a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--paper); border-radius: 999px; text-decoration: none; font-size: .875rem; font-weight: 500; }
.custom__list a:hover { color: var(--plum); }
.custom__list .icon { width: 16px; height: 16px; color: var(--plum); }

/* 常見問題 */
.faq-wrap > * { max-width: 860px; }
.faq { margin-top: 24px; border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--plum); transition: transform .2s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* 相關產品 */
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.related a:hover { border-color: var(--plum); color: var(--plum); }
.related .icon { width: 18px; height: 18px; color: var(--plum); }
.related--wide a { background: var(--paper); padding: 14px 22px; }

.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--r-l); display: block; background: var(--mist); }

/* 頁尾 */
.site-footer { background: var(--night-2); color: #cbbfd4; padding-top: 64px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand img { width: 64px; }
.footer__name { margin-top: 14px; color: #fff; font: 700 1.125rem/1.4 var(--serif); letter-spacing: .06em; }
.footer__brand p:last-child { margin-top: 10px; max-width: 22em; }
.footer__head { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer__head--gap { margin-top: 28px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }
.footer__meta { margin-top: 14px; color: #a99db2; }
.footer__bottom { margin-top: 48px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #a99db2; font-size: .8125rem; }

/* 手機底部快捷 */
.mobile-bar { display: none; }

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px);
  max-width: min(92vw, 480px); padding: 14px 20px; border-radius: var(--r-m);
  background: var(--ink); color: #fff; font-size: .9375rem; line-height: 1.6;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 響應式 */
@media (max-width: 1180px) {
  .header__signup { display: none; }
  .callouts { display: none; }
  .hero__visual::before { left: 10%; }
  .phone { margin-right: auto; margin-left: auto; }
  .hero__visual { justify-content: center; }
}

@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .header__login { display: none; }
  .nav {
    position: fixed; top: var(--nav-top, 64px); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 120px; overflow-y: auto;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav-open .menu-toggle .icon--menu { display: none; }
  .nav-open .menu-toggle .icon--close { display: block; }
  .nav-open { overflow: hidden; }
  .nav__link { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; justify-content: space-between; }
  .nav__link.is-current { box-shadow: none; }
  .nav__trigger { width: 100%; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega__inner { grid-template-columns: 1fr 1fr; gap: 20px 24px; padding: 16px 0 8px; }
  .nav__mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; }
  .core, .index, .tabs__panel, .page-hero__grid, .consult__grid, .price-band { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .cases .works { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .custom { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__logo { display: none; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .header__actions > .btn--primary { display: none; }
  .demo-strip { font-size: .75rem; }
  .hero__visual::before { inset: 30px 0 30px 0; border-radius: 160px 160px var(--r-l) var(--r-l); }
  .phone { width: 284px; height: 610px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .mega__inner { grid-template-columns: 1fr; }
  .features, .features--three, .steps, .cases, .cases--two, .consult-form__fields, .footer__grid { grid-template-columns: 1fr; }
  .section--mist .works ul { grid-template-columns: 1fr; }
  .section--mist .works li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pains__row { grid-template-columns: 1fr; gap: 12px; }
  .works { padding: 24px 20px; }
  .facts { padding: 4px 20px; }
  .facts__row { grid-template-columns: 4em 1fr; gap: 12px; }
  .plan { padding: 28px 24px; }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs__tab { flex: none; }
  .consult-form__submit .btn { width: 100%; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .toast { bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .callout { animation: none; }
  .btn, .toast, .index__row, .faq__icon, .nav__trigger .icon { transition: none; }
}
