/* ===================================================================
 * 預約諮詢頁（#2568）新增段落＋感謝頁（R17／R34）
 *
 * 只在內文含 ch-bk-／ch-ty 的頁面載入（functions.php）。
 * 預約頁既有段落（三卡、表單）的樣式仍在 content-premium.css 的「預約諮詢頁 #2568」段。
 * =================================================================== */

/* ---- R17：表單後的院所小卡區 ---- */
body:not(.home).chic-inner .vc_row.booking-clinics {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(var(--color-ivory-rgb), .95);
}
/* 三卡的「LINE」「電話」按鈕捲到這裡；避開固定頁首 */
body:not(.home).chic-inner #ch-bk-clinics,
body:not(.home).chic-inner #ch-bk-form { scroll-margin-top: 110px; }
body:not(.home).chic-inner .booking-clinics .chic-rail { margin-top: clamp(18px, 2.4vw, 30px); }

/* ===================================================================
 * 感謝頁（R34）
 * =================================================================== */
body:not(.home).chic-inner .wpb-content-wrapper .vc_row.ch-ty {
  max-width: 760px; margin-left: auto; margin-right: auto;
}
body:not(.home).chic-inner .wpb-content-wrapper .ch-ty .wpb_text_column { max-width: none; }
body:not(.home).chic-inner .ch-ty-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: clamp(8px, 2vw, 20px) 0 clamp(28px, 4vw, 44px);
}
body:not(.home).chic-inner .ch-ty-head .chic-icon--check {
  width: 64px; height: 64px; color: var(--brand, var(--color-primary));
  animation: ch-ty-in .9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body:not(.home).chic-inner .ch-ty-head__title {
  margin: 0; font-family: var(--soft); font-weight: 400;
  font-size: clamp(24px, 3vw, 32px); color: var(--deep, var(--color-gray)); line-height: 1.4;
}
body:not(.home).chic-inner .ch-ty-head__title::before { content: none; }

body:not(.home).chic-inner .ch-ty-sec {
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid rgba(var(--color-ivory-rgb), .95);
}
body:not(.home).chic-inner .ch-ty-sec h2 {
  margin: 0 0 10px; font-family: var(--soft); font-weight: 400;
  font-size: clamp(19px, 2.2vw, 22px); color: var(--brand, var(--color-primary));
}
body:not(.home).chic-inner .ch-ty-sec h2::before { content: none; }
body:not(.home).chic-inner .ch-ty-sec p { margin: 0 0 .6em; line-height: 1.85; }
body:not(.home).chic-inner .ch-ty-sec p:last-child { margin-bottom: 0; }

/* LINE 按鈕：官方綠＋官方圖形 */
.ch-ty-lines {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
body:not(.home).chic-inner .wpb_text_column ul.ch-ty-lines > li { margin: 0; padding: 0; }
body:not(.home).chic-inner .wpb_text_column ul.ch-ty-lines > li::before { content: none; display: none; }
body:not(.home).chic-inner a.ch-ty-line {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px;
  border-radius: 999px; background: #06C755; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(6, 199, 85, .22);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1);
}
body:not(.home).chic-inner a.ch-ty-line:hover,
body:not(.home).chic-inner a.ch-ty-line:focus-visible {
  color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(6, 199, 85, .3);
}
.ch-ty-line .chic-icon--line { width: 28px; height: 28px; flex: none; }
.ch-ty-line small { display: block; font-weight: 400; font-size: 12px; opacity: .9; }

/* 最新案例見證 */
body:not(.home).chic-inner .vc_row.ch-ty-cases {
  max-width: 1180px; margin: clamp(28px, 4vw, 52px) auto 0;
}
body:not(.home).chic-inner .ch-ty-cases__head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px;
}
body:not(.home).chic-inner .ch-ty-cases__head h2 {
  margin: 0; font-family: var(--soft); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px);
}
body:not(.home).chic-inner .ch-ty-cases__head h2::before { content: none; }
body:not(.home).chic-inner .ch-ty-cases__more { font-size: 14px; color: var(--brand, var(--color-primary)); white-space: nowrap; }
body:not(.home).chic-inner .ch-ty-cases .chic-pcards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}

@media (max-width: 860px) {
  body:not(.home).chic-inner .ch-ty-cases .chic-pcards { grid-template-columns: 1fr; }
}

@keyframes ch-ty-in {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.home).chic-inner .ch-ty-head .chic-icon--check { animation: none; }
  body:not(.home).chic-inner a.ch-ty-line { transition: none; }
}

/* 頁面內文對 img 的通用規則（height:auto／圓角）權重高過 blog-premium 的卡片圖，這裡拉回 1:1 滿版 */
body:not(.home).chic-inner .ch-ty-cases .chic-pcard__media .chic-pcard__img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; margin: 0;
}
