/*
  鼎東策略顧問 全站樣式
  設計方向：保留品牌的改版。品牌色取自 logo（金）與原站文字色（深藍），
  配色：墨藍 + 金（logo 色），單一強調色 = 金；標題用思源宋體呼應「媒體人 / 報紙」的編輯感，內文用思源黑體。
  圓角規則：按鈕與頁籤 = 膠囊形；面板 = 16px；表格與區塊 = 直角。
*/
:root {
  /* 色彩 */
  --ink: #14213d;            /* 主要文字與深色區塊：墨藍 */
  --ink-2: #3e4a61;          /* 次要文字（對白底 9:1） */
  --ink-3: #5f6a7d;          /* 輔助文字（對白底 5.6:1） */
  --paper: #ffffff;          /* 頁面底色 */
  --blush: #ffffff;          /* 頁首：白 */
  --blush-2: #f3f4f6;        /* 主視覺底色：淺灰白 */
  --sand: #f3f4f6;           /* 媒體牆區塊：淺灰白 */
  --gold: #8a6428;           /* 強調色：logo 金，加深以通過文字對比（白底 5.2:1） */
  --gold-2: #b08d57;         /* logo 原色，只用在裝飾線條 */
  --gold-tint: #f6efe3;
  --line: #e3e6eb;
  --line-strong: #c9ced8;
  --error: #b3261e;
  --ok: #1d6b3a;

  /* 字型 */
  --f-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;

  /* 字級（依角色命名） */
  --t-display: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
  --t-h1: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --t-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  --t-h3: clamp(1.25rem, 1.05rem + .7vw, 1.625rem);
  --t-lead: clamp(1.0625rem, .98rem + .4vw, 1.3125rem);
  --t-body: 1rem;
  --t-small: .875rem;

  /* 間距 */
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --wrap: 1200px;
  --header-h: 68px;

  /* 動態 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* 圖層 */
  --z-header: 10;
  --z-skip: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p, dd { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }

/* 瀏覽器自帶的介面也套用品牌色 */
::selection { background: var(--ink); color: #fff; }
input, textarea { caret-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-strong) transparent; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 100px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: var(--blush);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  position: relative; text-decoration: none; font-size: 1rem; letter-spacing: .08em;
  padding: 6px 0; transition: color .25s var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  cursor: pointer; color: var(--ink); border-radius: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 24px;
    background: var(--blush);
    box-shadow: 0 16px 32px -12px rgba(20, 33, 61, .18);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: 16px 4px; font-size: 1.0625rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 1rem; letter-spacing: .08em; line-height: 1;
  padding: 17px 30px; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out),
              transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f3159; box-shadow: 0 10px 24px -10px rgba(20, 33, 61, .55); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink); color: #c3cad8; padding: 64px 0 28px; font-size: .9375rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 48px; width: auto; }
.footer-tagline { margin-top: 16px; font-size: .8125rem; letter-spacing: .12em; color: #a3adc2; }
.footer-col h2 {
  font-family: var(--f-sans); font-size: .8125rem; font-weight: 500; letter-spacing: .12em;
  color: #d9bd8c; margin-bottom: 14px;
}
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-col a { text-decoration: none; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-nav { list-style: none; display: grid; gap: 0; line-height: 1.9; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem; color: #97a2b8; letter-spacing: .04em;
}
.footer-bottom a { text-decoration: none; transition: color .2s var(--ease-out); }
.footer-bottom a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #d9bd8c; }
@media (min-width: 761px) and (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .footer-bottom { margin-top: 36px; }
}

/* ---------- 首頁：主視覺 ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100dvh - var(--header-h));
  display: grid; align-items: center;
  background-color: var(--blush-2);
}
/* 主視覺圖：購買 Shutterstock 原圖後存成 assets/img/hero.jpg，並把 index 的 .hero 加上 has-photo */
.hero.has-photo { background-color: var(--hero-wall, var(--blush-2)); }
.hero.has-photo::before {
  /* 圖片放右下，左緣與上緣淡出，與牆面底色無縫融合 */
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  height: 80%; aspect-ratio: 1600 / 1072; max-width: 100%;
  background: var(--hero-img, url("../img/hero.webp")) right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(180deg, transparent, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(180deg, transparent, #000 16%);
  mask-composite: intersect;
}
@media (max-width: 760px) {
  .hero.has-photo::before { height: 40%; right: -12%; max-width: none; }
}
@media (min-width: 761px) and (orientation: portrait) {
  .hero { min-height: auto; }
  .hero-inner { padding: clamp(72px, 10vw, 120px) 0 calc(58vw + 32px); }
  .hero.has-photo::before { height: 58vw; }
}
.hero-slot {
  position: absolute; inset: auto 0 0 0; height: clamp(120px, 26vh, 280px); z-index: -1;
  border-top: 1px dashed var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-3); font-size: var(--t-small); letter-spacing: .1em;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--blush) 60%, transparent));
}
.hero.has-photo .hero-slot { display: none; }
.hero-inner { padding: clamp(48px, 8vh, 96px) 0 clamp(160px, 30vh, 300px); }
.hero h1 {
  font-size: var(--t-display); line-height: 1.18; letter-spacing: -.01em;
  max-width: 12em;
}
.hero h1 .brand-mark { color: var(--gold); }
.hero .lead {
  font-size: var(--t-lead); line-height: 1.85; color: var(--ink-2);
  max-width: 34em; margin: 28px 0 40px;
}

/* ---------- 首頁：三步驟 ---------- */
.approach { padding: var(--section) 0 calc(var(--section) * .6); }
.approach h2 { font-size: var(--t-h2); max-width: 16em; }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 80px); position: relative; counter-reset: step;
}
.steps::before {
  /* 連接三個步驟的橫線 */
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--gold-2);
}
.step { position: relative; padding: 40px 32px 0 0; counter-increment: step; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 8px var(--gold);
}
.step-role { font-size: var(--t-small); color: var(--gold); letter-spacing: .12em; margin-bottom: 10px; }
.step h3 { font-size: var(--t-h3); margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 20em; }
.steps-note { margin-top: 40px; color: var(--ink-2); max-width: 36em; line-height: 1.9; }
.steps-note a, .about-body a, .tabpanel a { color: var(--gold); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 36px; }
  .steps::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .step { padding: 0; }
  .step::before { left: -36px; top: 4px; }
}

/* ---------- 首頁：比較表 ---------- */
.compare-sec { padding: calc(var(--section) * .4) 0 var(--section); }
.compare-sec h2 { font-size: var(--t-h2); margin-bottom: clamp(32px, 4vw, 48px); max-width: 18em; }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 22px 24px; vertical-align: top; }
.compare thead th {
  font-family: var(--f-serif); font-size: 1.125rem; font-weight: 700;
  border-bottom: 1px solid var(--ink); padding-bottom: 18px;
}
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; width: 18%; color: var(--ink-2); white-space: nowrap; }
.compare td { color: var(--ink-3); }
/* 鼎東欄位 = 重點欄 */
.compare .us { background: var(--ink); color: #fff; }
.compare thead .us { color: #fff; border-bottom-color: var(--ink); border-radius: 16px 16px 0 0; }
.compare thead .us span { color: #d9bd8c; font-size: .8125rem; font-family: var(--f-sans); font-weight: 400; letter-spacing: .1em; margin-left: 8px; }
.compare tbody .us { color: #fff; border-top-color: rgba(255, 255, 255, .12) !important; }
.compare tbody tr:last-child .us { border-radius: 0 0 16px 16px; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 24px 0; border-top: 1px solid var(--line); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody th { padding: 0 0 12px; font-family: var(--f-serif); font-size: 1.125rem; color: var(--ink); }
  .compare td { padding: 14px 16px; border-radius: 12px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .75rem; letter-spacing: .1em; margin-bottom: 4px; opacity: .75; }
  .compare tbody .us, .compare tbody tr:last-child .us { border-radius: 12px; margin-bottom: 8px; }
}

/* ---------- 首頁：媒體牆 ---------- */
.media { background: var(--sand); padding: clamp(64px, 8vw, 104px) 0; overflow: hidden; }
.media h2 { font-size: var(--t-h2); text-align: center; margin: 0 auto clamp(40px, 5vw, 64px); max-width: 20em; }
/* logo 牆：統一灰階，滑鼠移上去恢復原色 */
.logo-wall {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr);
  row-gap: clamp(28px, 3.5vw, 48px); column-gap: clamp(16px, 2vw, 32px);
  align-items: center; justify-items: center;
}
.logo-wall li { display: grid; place-items: center; height: 72px; width: 100%; }
.logo-wall img {
  max-width: 100%; height: auto;
  mix-blend-mode: multiply;          /* 讓 logo 的白底融入背景 */
  filter: grayscale(1) contrast(1.1);
  opacity: .62;
  transition: filter .35s var(--ease-out), opacity .35s var(--ease-out);
}
.logo-wall li:hover img { filter: none; opacity: 1; }
@media (max-width: 1024px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); column-gap: 12px; }
  .logo-wall li { height: 60px; }
  .logo-wall img { transform: scale(.82); }
}

/* ---------- 首頁：結尾呼籲 ---------- */
.closing { padding: var(--section) 0; text-align: center; }
.closing h2 { font-size: var(--t-h2); line-height: 1.55; max-width: 22em; margin: 0 auto 40px; }
@media (max-width: 600px) { .closing h2 { font-size: 1.3125rem; } }

/* ---------- 內頁共用 ---------- */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: var(--t-h1); }
.page-head .lead { font-size: var(--t-lead); color: var(--ink-2); margin-top: 20px; max-width: 34em; line-height: 1.85; }

/* 關於我們 */
.about-quote {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.625rem); line-height: 1.55;
  max-width: 17em; margin: clamp(28px, 3vw, 40px) 0 0;
  padding-left: clamp(20px, 3vw, 36px); border-left: 1px solid var(--gold-2);
}
.about-quote .phrase { display: inline-block; }
@media (max-width: 600px) { .about-quote { font-size: 1.125rem; padding-left: 16px; } }
.about-body { font-size: 1.0625rem; color: var(--ink-2); max-width: 38em; margin-top: 36px; line-height: 1.95; }
.team { padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.team h2 { font-size: var(--t-h3); margin-bottom: 24px; }
.tablist { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tablist button {
  font: inherit; font-size: .9375rem; letter-spacing: .06em; cursor: pointer;
  padding: 11px 24px; border-radius: 100px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-2);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.tablist button:hover { border-color: var(--ink); color: var(--ink); }
.tablist button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabpanel {
  background: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(20, 33, 61, .25);
  min-height: 200px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start;
}
.tabpanel h3 { font-size: var(--t-h3); }
.tabpanel p { font-size: var(--t-lead); line-height: 1.85; color: var(--ink-2); }
.tabpanel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tabpanel:not([hidden]) { animation: panel-in .45s var(--ease-out); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) {
  .tabpanel { grid-template-columns: 1fr; gap: 12px; }
}

/* 服務項目 */
.service-list { list-style: none; padding-bottom: var(--section); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px);
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line-strong);
}
.service:last-child { border-bottom: 1px solid var(--line-strong); }
.service h2 { font-size: var(--t-h2); margin-bottom: 14px; }
.service .tag { color: var(--gold); font-size: 1rem; line-height: 1.7; max-width: 24em; text-wrap: balance; }
.service-desc { color: var(--ink-2); margin-top: 20px; max-width: 26em; line-height: 1.9; }
.service dl { display: grid; gap: 28px; }
.service dt { font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.service dd { color: var(--ink-2); }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
}

/* 常見問題 */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding-bottom: var(--section); }
.faq .page-head { padding-top: 0; }
.faq-side { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.faq-side h1 { font-size: var(--t-h1); }
.faq-side p { color: var(--ink-2); margin-top: 20px; max-width: 18em; }
.faq-side a { color: var(--gold); }
.faq-list > div { padding: 36px 0; border-top: 1px solid var(--line-strong); }
.faq-list > div:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list dt { font-family: var(--f-serif); font-weight: 700; font-size: var(--t-h3); line-height: 1.45; margin-bottom: 16px; }
@media (max-width: 600px) { .faq-list dt { font-size: 1.125rem; } }
.faq-list dd { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.95; max-width: 36em; }
.faq-wrap { padding-top: clamp(64px, 9vw, 120px); }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}

/* 聯絡我們 */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); padding: clamp(64px, 9vw, 120px) 0 var(--section); }
.contact-info h1 { font-size: var(--t-h1); }
.contact-info .lead { font-size: var(--t-lead); color: var(--ink-2); margin: 20px 0 48px; line-height: 1.85; max-width: 24em; }
.contact-info address { font-style: normal; display: grid; gap: 22px; }
.contact-info address div { display: grid; gap: 2px; }
.contact-info .k { font-size: .8125rem; letter-spacing: .12em; color: var(--ink-3); }
.contact-info .v { font-size: 1.0625rem; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--gold-2); }
.contact-info a:hover { color: var(--gold); }
.contact-info .en { display: block; font-size: .9375rem; color: var(--ink-3); }

.form {
  background: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(20, 33, 61, .28);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-self: start;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .form fieldset, .form-actions { grid-column: 1 / -1; }
.form label, .form legend { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.form .hint { font-weight: 400; color: var(--ink-3); font-size: .8125rem; margin-left: 4px; }
.req { color: var(--gold); margin-left: 2px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  border: 1px solid var(--line-strong); background: var(--paper);
  padding: 12px 14px; border-radius: 10px; outline: none; appearance: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.form select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345456b' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.form input:hover, .form select:hover { border-color: var(--ink-3); }
.form input:focus, .form select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .8125rem; min-height: 0; }
.field-error:empty { display: none; }
.tel-row { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 12px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); font-size: .9375rem; line-height: 1.4; color: var(--ink-2);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  cursor: pointer; user-select: none;
}
.choice:hover span { border-color: var(--ink); color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: .8125rem; color: var(--ink-3); }
.form-privacy { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.7; color: var(--ink-3); margin-top: -8px; }
.form-privacy a { color: var(--ink-2); }
.form-msg { grid-column: 1 / -1; border-radius: 12px; padding: 16px 18px; font-size: .9375rem; line-height: 1.7; }
.form-msg:empty { display: none; }
.form-msg.ok { background: #e9f4ec; color: var(--ok); }
.form-msg.err { background: #fbeceb; color: var(--error); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* 隱私權政策 */
.legal { max-width: 46em; padding-bottom: var(--section); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: var(--t-h3); margin-bottom: 12px; }
.legal p { color: var(--ink-2); line-height: 1.95; }
.legal p + p { margin-top: 10px; }

/* 404 */
.notfound { padding: clamp(96px, 16vw, 200px) 0; }
.notfound h1 { font-size: var(--t-h1); margin-bottom: 20px; }
.notfound p { color: var(--ink-2); margin-bottom: 36px; }

/* ---------- 進場動畫：只有 JS 載入後才隱藏，內容預設可見 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  /* 首頁主視覺：唯一的「登場時刻」，用 CSS 動畫直接播放，不依賴捲動偵測 */
  .js .hero .reveal { opacity: 1; transform: none; transition: none; animation: hero-in 1.3s var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 140ms); }
}

.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; }
/* 中文標題依詞組斷行，避免把「聲量」拆開 */
@media (min-width: 601px) { .phrase { display: inline-block; } }
.hero .phrase { display: inline-block; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
