/* ============================================================
   /contact 聯絡我們｜分頁 v3（2026-10-04）
   疊在 base.css → site.css → shared/pages.css 之上；所有 class 前綴 ct-。
   ============================================================ */

/* ---- 頁首物件：手機裡一段真人回覆＋回覆時效徽章 ---- */
@media (max-width: 1199px) { .ct-hero-bot { display: none !important; } }
.ct-hero-bot { left: 2%; bottom: 4%; width: clamp(6rem, 9vw, 9.5rem); --bot-o: .6; }
@media (max-width: 899px) { .ct-hero-bot { display: none; } }
/* ⚠ --pw 要寫到 .ct-phone 本身：.pv-phone 自己宣告了 --pw:17rem，只寫在父層會被蓋掉（評審：桌機字 10.6px） */
.ct-obj, .ct-obj .ct-phone { --pw: clamp(17rem, 88vw, 22rem); }   /* 手機上對話是說服核心，字要 ≥11px */
.ct-obj { display: grid; justify-items: center; position: relative; }
@media (min-width: 900px) { .ct-obj, .ct-obj .ct-phone { --pw: max(20rem, min(22rem, 30vw)); } }
.ct-hero .pv-h1 em { white-space: nowrap; }
@media (min-width: 900px) and (max-height: 880px) {
  .ct-obj, .ct-obj .ct-phone { --pw: min(22rem, calc((100svh - 7.6rem) / 2.12)); }
  .ct-chat { font-size: max(3.9cqw, 10.5px); }
  .ct-day { display: none; }
  .ct-body { gap: 2.2cqw; padding-block: 3cqw; }
  .ct-top { padding-top: 11cqw; }
  .ct-msg small { font-size: max(3.2cqw, 9.5px); }
}
/* 主推管道：LINE 那一列的箭頭圓鈕預設就是實心（四列同構，但看得出先按哪個） */
.ct-way.is-first .ct-way-a { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* 淡底往外擴、欄位不位移：四列的編號／標題／說明仍對齊同一條線 */
/* 暖黃綠底：跟對話裡 LINE 綠泡泡同一個色族，不是中性灰 */
.ct-way.is-first { background: color-mix(in srgb, #c9e6a8 38%, var(--paper-raise)); margin-inline: -.7rem; padding-inline: .9rem; border-radius: 2px; }
.ct-way.is-first .ct-way-t { font-size: clamp(1.5rem, 4.2vw, 2.35rem); }
.ct-way.is-first .ct-way-t em { color: var(--accent); font-weight: 600; }
.ct-way-d, .pv-lead, .ct-txt, .ct-msg, .ct-two p { text-wrap: pretty; }
@media (max-width: 520px) { .ct-way.is-first { margin-inline: -.45rem; padding-inline: .65rem; } }
.ct-cap { margin-top: 1rem; font-size: var(--text-tiny); letter-spacing: .14em; color: var(--ink-soft); }
.ct-chat { background: #e9ebe4; display: grid; grid-template-rows: auto 1fr auto; font-size: max(4.1cqw, 12.5px); }
.ct-top {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 15cqw 5cqw 3.4cqw;
  background: #f4f5f0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.ct-top span { color: var(--ink-soft); font-size: 6cqw; line-height: 1; }
.ct-top b { font-weight: 600; letter-spacing: .06em; }
.ct-body { padding: 4cqw 4.4cqw; display: grid; align-content: start; gap: 3cqw; }
.ct-day {
  margin-block: 1cqw;
  justify-self: center;
  font-size: max(3.2cqw, 10.5px);
  padding: .6cqw 3cqw;
  border-radius: 99px;
  background: rgba(0, 0, 0, .07);
  color: var(--ink);
}
.ct-row { display: flex; gap: 2.4cqw; align-items: flex-start; }
.ct-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-style: normal;
  font-size: 4.2cqw;
}
.ct-msg {
  position: relative;
  max-width: 76%;
  padding: 2.6cqw 3.6cqw;
  border-radius: 4.6cqw;
  background: #fff;
  line-height: 1.55;
  color: var(--ink);
}
.ct-msg small { display: block; margin-top: 1.2cqw; font-size: max(3.2cqw, 10.5px); color: var(--ink-soft); letter-spacing: .04em; }
.ct-me { justify-self: end; background: #c9e6a8; }
.ct-me small { text-align: right; }
.ct-reply { position: relative; }
.ct-dots { display: none; }
html.pv-motion .ct-chat.is-play .ct-dots {
  display: flex;
  gap: 1.4cqw;
  position: absolute;
  left: 3.6cqw;
  top: 3cqw;
  opacity: 0;
  animation: ct-dots-life 1s linear forwards;
}
html.pv-motion.ct-js .ct-chat .ct-reply { background: transparent; box-shadow: none; }
html.pv-motion .ct-chat.is-play .ct-reply { animation: ct-bub .25s var(--ease-out) forwards; }
@keyframes ct-bub { from { background-color: transparent; } to { background-color: #fff; } }
html.pv-motion .ct-chat.is-play .ct-m2 .ct-reply { animation-delay: 1.1s; }
html.pv-motion .ct-chat.is-play .ct-m4 .ct-reply { animation-delay: 3.7s; }
html.pv-motion .ct-chat.is-play .ct-dots {
  left: 0;
  top: 0;
  padding: 3cqw 3.6cqw;
  border-radius: 4.6cqw;
  background: #fff;
}
.ct-dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--ink-soft); }
html.pv-motion .ct-chat.is-play .ct-dots i { animation: ct-bob .5s ease-in-out infinite alternate; }
html.pv-motion .ct-chat.is-play .ct-dots i:nth-child(2) { animation-delay: .15s; }
html.pv-motion .ct-chat.is-play .ct-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-dots-life { 0%, 100% { opacity: 0; } 8%, 80% { opacity: 1; } }
@keyframes ct-bob { from { transform: translateY(0); opacity: .45; } to { transform: translateY(-1cqw); opacity: 1; } }
/* 氣泡先出現（帶三點），內文晚 .8s 才淡入 */
html.pv-motion.ct-js .ct-chat .ct-reply > :is(.ct-txt, small) { opacity: 0; }
html.pv-motion .ct-chat.is-play .ct-reply > :is(.ct-txt, small) { animation: ct-txt-in .5s var(--ease-out) forwards; }
@keyframes ct-txt-in { from { opacity: 0; } to { opacity: 1; } }
html.pv-motion .ct-chat.is-play .ct-m2 .ct-dots { animation-delay: .2s; }
html.pv-motion .ct-chat.is-play .ct-m4 .ct-dots { animation-delay: 2.8s; }
html.pv-motion .ct-chat.is-play .ct-m2 .ct-reply > :is(.ct-txt, small) { animation-delay: 1.1s; }
html.pv-motion .ct-chat.is-play .ct-m4 .ct-reply > :is(.ct-txt, small) { animation-delay: 3.7s; }
.ct-bar {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 3cqw 4cqw 7cqw;
  background: #f4f5f0;
  color: var(--ink-soft);
}
.ct-bar span { flex: 1; padding: 1.6cqw 3.4cqw; border-radius: 99px; background: #fff; font-size: 3.6cqw; }
/* 對話一則一則冒出來（一次性過場，只在 pv-motion） */
html.pv-motion.ct-js .ct-chat:not(.is-play) :is(.ct-m2, .ct-m3, .ct-m4, .ct-m5) { opacity: 0; }
html.pv-motion .ct-chat.is-play :is(.ct-m2, .ct-m3, .ct-m4, .ct-m5) {
  opacity: 0;
  transform: translateY(8px);
  animation: pv-in .7s var(--ease-out) forwards;
}
html.pv-motion .ct-chat.is-play .ct-m2 { animation-delay: .2s; }
html.pv-motion .ct-chat.is-play .ct-m3 { animation-delay: 1.9s; }
html.pv-motion .ct-chat.is-play .ct-m4 { animation-delay: 2.8s; }
html.pv-motion .ct-chat.is-play .ct-m5 { animation-delay: 4.5s; }

.ct-badge {
  position: absolute;
  left: calc(50% - var(--pw) / 2 - var(--bw, 7.4rem) - .3rem);
  top: 16%;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 7.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-raise);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--hairline);
  text-align: center;
  transform: rotate(8deg);
}
.ct-badge b {
  font-family: var(--font-serif-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
}
.ct-badge span { margin-top: .3rem; font-size: var(--text-tiny); letter-spacing: .12em; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 1100px) { .ct-badge { --bw: 6rem; width: 6rem; } .ct-badge b { font-size: 1.6rem; } }
@media (max-width: 520px) { .ct-badge { --bw: 5rem; width: 5rem; left: auto; right: -.4rem; bottom: auto; top: -1rem; } .ct-badge b { font-size: 1.35rem; } }

/* ---- 01 四個管道：大字列，整列可點 ---- */
.ct-list { list-style: none; margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.ct-list li { border-bottom: 1px solid var(--hairline); }
.ct-way {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: .4rem 1rem;
  align-items: baseline;
  padding: clamp(1.2rem, 3vw, 1.8rem) .2rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .45s var(--ease-out), padding .45s var(--ease-out);
}
.ct-way-n { font-family: var(--font-serif-latin); font-style: italic; color: var(--accent); font-size: 1.05rem; }
.ct-way-t {
  font-size: clamp(1.35rem, 3.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .9rem;
}
.ct-way-t em {
  flex-basis: 100%;
  font-style: normal;
  font-family: var(--font-serif-latin);
  font-weight: 500;
  font-size: .62em;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.ct-way-d { grid-column: 2; color: var(--ink-soft); max-width: 38em; font-size: var(--text-small); line-height: 1.85; }
.ct-way-a {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--accent);
  transition: background .45s var(--ease-out), color .45s var(--ease-out), border-color .45s;
}
.ct-way:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.ct-way > span { transition: transform .45s var(--ease-out); }
.ct-way:hover > span:not(.ct-way-a) { transform: translateX(.4rem); }
.ct-way:hover .ct-way-a, .ct-way:focus-visible .ct-way-a { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (min-width: 900px) {
  .ct-way { grid-template-columns: 3.2rem minmax(0, 20rem) minmax(0, 1fr) auto; align-items: center; }
  .ct-way-d { grid-column: 3; }
  .ct-way-a { grid-column: 4; grid-row: 1; }
}
@media (max-width: 520px) {
  .ct-way { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .ct-way-d { grid-column: 1 / -1; }
  .ct-way-a { width: 2.4rem; grid-row: 1; }
}

.ct-note {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0 0 0 clamp(1.2rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
  max-width: 44rem;
}
.ct-note p { font-size: clamp(1.02rem, 2.6vw, 1.18rem); line-height: 1.95; color: var(--ink); letter-spacing: .04em; }

/* ---- 02 問之前：三本「書背」 ---- */
.ct-shelf {
  list-style: none;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) { .ct-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.ct-shelf a {
  position: relative;
  display: grid;
  align-content: start;
  gap: .5rem;
  height: 100%;
  min-height: 44px;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.7rem) clamp(3.6rem, 7vw, 4.4rem);
  border-radius: 2px;
  background: var(--paper-raise);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ct-shelf a::before {   /* 書背的一條深綠緞帶 */
  content: "";
  position: absolute;
  top: 0;
  right: 1.6rem;
  width: .55rem;
  height: 2.8rem;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.ct-shelf i { font-family: var(--font-serif-latin); font-style: italic; color: var(--accent); letter-spacing: .14em; font-size: 1.05rem; }
.ct-shelf b { font-size: clamp(1.3rem, 3.4vw, 1.6rem); letter-spacing: .1em; }
.ct-shelf span { color: var(--ink-soft); font-size: var(--text-small); line-height: 1.85; }
.ct-shelf u { position: absolute; left: clamp(1.2rem, 3vw, 1.7rem); bottom: clamp(1.1rem, 3vw, 1.5rem); text-decoration: none; color: var(--accent); font-size: 1.2rem; transition: transform .45s var(--ease-out); }
.ct-shelf a:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ct-shelf a:hover u { transform: translateX(.4rem); }
.ct-bot { right: 3%; top: 10%; width: clamp(7rem, 10vw, 10.5rem); --bot-o: .7; }
@media (max-width: 899px) { .ct-bot { display: none; } }

/* ---- 03／04：兩欄文字 ---- */
.ct-fact {
  margin-top: 1.1rem !important;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  padding-inline: 0;
  color: var(--ink) !important;
}
.ct-fact b {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent);
  font-family: var(--font-serif-latin);
  font-style: normal;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-8deg);
  align-content: center;
  gap: .15rem;
}
.ct-fact b small { font-family: var(--font-serif-tc); font-size: .56em; letter-spacing: .14em; }
.ct-fact span { font-size: var(--text-small); }
.ct-two { display: grid; gap: clamp(4.5rem, 10vw, 5rem); }
@media (min-width: 900px) { .ct-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; } }
.ct-two .pv-ch-no { font-size: clamp(6rem, 14vw, 10rem); }
.ct-two p:not(.pv-kicker) { margin-top: 1rem; color: var(--ink-soft); }
.ct-two p strong { color: var(--ink); }
.ct-two a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
