/**
 * 群英首頁 Premium+ 版型樣式
 * 移植自 /example/chicing-wordpress-home-premium-plus.html，全部選擇器以 body.home 收斂，
 * 避免影響其他已驗收頁面（archive / single）。動態區塊（醫師/療程/案例）為 chicing-core
 * widget 輸出，於檔尾另作對應樣式，使其外觀與範例卡片一致。
 */

:root {
  --ink: #201816;
  --muted: #7b6f68;
  --paper: #fffaf4;
  --warm: #f2e8df;
  --mist: #e9f0ed;
  --line: rgba(87, 65, 55, .18);
  --deep: #17352f;
  --green: #31564e;
  --rose: #a86c65;
  --clay: #d9b9aa;
  --gold: #b89b6f;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(32, 24, 22, .16);
  --serif: "Noto Serif TC", Georgia, serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ease: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 首頁全域底色與字體 ===== */
body.home {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

/* 高級漸層底（固定背景） */
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 185, 170, .34), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(49, 86, 78, .14), transparent 28%),
    linear-gradient(180deg, #fffaf4, #f8f0e8 48%, #fffaf4);
}

/* ===== Elementor 包裹層歸零，讓區塊滿版貼齊 ===== */
body.home main .elementor-section .elementor-container { max-width: 100%; }
body.home main .elementor-element .elementor-widget-container { margin: 0; padding: 0; }
body.home main .elementor-widget-html { width: 100%; }
body.home main .elementor-column,
body.home main .elementor-widget-wrap,
body.home main .elementor-widget:not(:last-child) { margin: 0; padding: 0; }
body.home main a { color: inherit; text-decoration: none; }
/* widget 卡片圖片填滿容器 */
body.home .hero-bg-image img,
body.home .doctor-card__media img,
body.home .doctor-card__image,
body.home .treatment-card__media img,
body.home .treatment-card__image,
body.home .case-card__media img,
body.home .case-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home main h1,
body.home main h2,
body.home main h3,
body.home main p { margin-top: 0; }

/* ===================================================================
 * HERO
 * =================================================================== */
body.home .hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(110deg, rgba(255,250,244,.96) 0%, rgba(255,250,244,.76) 42%, rgba(255,250,244,.22) 100%),
    #f7f3ef;
}

body.home .hero-bg-image { position: absolute; inset: 0; z-index: -2; opacity: 1; }
body.home .hero-bg-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(1.12) saturate(1.04) contrast(1.04);
  transition: transform 10s ease-out;
}
body.home .hero:hover .hero-bg-image img { transform: scale(1.04); }
body.home .hero-bg-image .mobile-hero-img { display: none; }

body.home .hero::before {
  content: "CHICING";
  position: absolute; right: -2vw; bottom: -26px; z-index: -1;
  color: rgba(49, 86, 78, .08);
  font-family: var(--display);
  font-size: clamp(92px, 16vw, 260px);
  font-weight: 700; letter-spacing: .08em; line-height: .8; white-space: nowrap;
}
body.home .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,250,244,.94) 0%, rgba(255,250,244,.58) 38%, rgba(255,250,244,.04) 72%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,250,244,.18)),
    radial-gradient(circle at 25% 18%, rgba(255,255,255,.46), transparent 22%);
}
body.home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(58px, 8vw, 116px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 92px);
}
body.home .hero-copy { position: relative; z-index: 2; }

body.home .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  color: var(--rose); font-size: 13px; font-weight: 900; letter-spacing: .15em;
  font-family: var(--display);
}
body.home .kicker::before { content: ""; width: 46px; height: 1px; background: var(--rose); }

body.home .hero h1 {
  max-width: 780px; margin-bottom: 22px; font-family: var(--serif);
  font-size: clamp(48px, 6.6vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: 0;
}
body.home .hero-lead { max-width: 620px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
body.home .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

body.home .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 900;
  cursor: pointer; transition: var(--ease);
}
body.home .button.primary {
  color: #fff; background: var(--deep);
  box-shadow: 0 16px 34px rgba(49, 86, 78, .2); position: relative; overflow: hidden;
}
body.home .button.primary::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-25deg); transition: none;
}
body.home .button.primary:hover::after { left: 150%; transition: left 0.8s ease-in-out; }
body.home .button.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(49, 86, 78, .34); }
body.home .button.primary:active { transform: translateY(1px); box-shadow: 0 8px 18px rgba(49, 86, 78, .2); }
body.home .button.ghost {
  color: var(--deep); background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(49, 86, 78, .22); backdrop-filter: blur(12px);
}
body.home .button.ghost:hover { background: var(--deep); color: #fff; border-color: var(--deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(49, 86, 78, .15); }
body.home .button.ghost:active { transform: translateY(1px); }

body.home .quick {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  max-width: 660px; margin-top: 48px;
}
body.home .quick a {
  padding: 16px; background: rgba(255, 255, 255, .62); border: 1px solid var(--line);
  border-radius: 16px; backdrop-filter: blur(12px); transition: var(--ease);
}
body.home .quick a:hover {
  transform: translateY(-5px); background: rgba(255, 255, 255, 0.9);
  border-color: var(--rose); box-shadow: 0 18px 40px rgba(168, 108, 101, 0.08);
}
body.home .quick strong { display: block; font-size: 19px; line-height: 1.25; }
body.home .quick span { color: var(--muted); font-size: 13px; }

body.home .hero-stage { position: relative; min-height: 560px; }
body.home .vertical-word {
  position: absolute; top: 18px; right: 2px; writing-mode: vertical-rl;
  color: rgba(49, 86, 78, .28); font-family: var(--display); font-size: 13px;
  letter-spacing: .28em; text-transform: uppercase;
}
body.home .glass-card {
  position: absolute; right: 0; bottom: 56px; width: min(370px, 72%); padding: 22px;
  color: var(--ink); background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .72); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(32, 24, 22, .16); backdrop-filter: blur(18px); transition: var(--ease);
}
body.home .glass-card:hover { transform: translateY(-8px); border-color: var(--rose); box-shadow: 0 30px 70px rgba(168, 108, 101, 0.16); background: rgba(255, 255, 255, 0.88); }
body.home .glass-card small { color: var(--rose); font-weight: 900; letter-spacing: .12em; }
body.home .glass-card h3 { margin: 8px 0; font-size: 22px; line-height: 1.28; }
body.home .glass-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

/* ===================================================================
 * BRAND RIBBON
 * =================================================================== */
body.home .brand-ribbon {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, .76); backdrop-filter: blur(12px);
}
body.home .brand-ribbon-inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1440px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 72px);
}
body.home .brand-ribbon span {
  display: grid; min-height: 48px; place-items: center; color: var(--deep);
  border-right: 1px solid rgba(87, 65, 55, .16); font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px); text-align: center; transition: var(--ease);
}
body.home .brand-ribbon span:hover { color: var(--rose); transform: scale(1.03); }
body.home .brand-ribbon span:last-child { border-right: 0; }

/* 原生化 brand-ribbon（Elementor inner-section + ribbon-col 結構，視覺等同 span 版） */
body.home .elementor-inner-section.brand-ribbon-inner { display: block; padding: 0; }
body.home .brand-ribbon-inner > .elementor-container {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1440px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 72px);
}
body.home .elementor-column.ribbon-col { width: auto; }
body.home .elementor-column.ribbon-col > .elementor-widget-wrap {
  display: grid; min-height: 48px; place-items: center;
  border-right: 1px solid rgba(87, 65, 55, .16);
}
body.home .ribbon-col .ribbon-item .elementor-heading-title {
  color: var(--deep); font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px); text-align: center; transition: var(--ease);
}
body.home .ribbon-col:hover .ribbon-item .elementor-heading-title { color: var(--rose); transform: scale(1.03); }
body.home .brand-ribbon-inner > .elementor-container > .ribbon-col:last-child > .elementor-widget-wrap { border-right: 0; }

/* ===================================================================
 * SECTION / SECTION HEAD (共用)
 * =================================================================== */
body.home .section { padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px); }
body.home .section-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px; align-items: end; margin-bottom: 36px;
}
body.home .section-head h2 {
  max-width: 760px; margin-bottom: 0; font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; line-height: 1.12; letter-spacing: 0;
}
body.home .section-head p { margin-bottom: 0; color: var(--muted); }

/* ===================================================================
 * SERVICE SHOWCASE（已全面原生化；舊 HTML 版 .service-stack a 等規則已移除，
 * 避免誤套用至原生標題連結。樣式見下方「原生化 service-showcase」區塊。）
 * =================================================================== */

/* 原生化 service-showcase（Elementor 欄位背景圖卡） */
body.home .elementor-inner-section.service-showcase,
body.home .elementor-inner-section.service-stack { display: block; }
body.home .service-showcase > .elementor-container {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; max-width: 100%; align-items: stretch;
}
body.home .service-stack > .elementor-container {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 100%;
}
body.home .service-showcase > .elementor-container > .elementor-column,
body.home .service-stack > .elementor-container > .elementor-column { width: auto; }
body.home .service-stack-wrap, body.home .service-stack-wrap > .elementor-widget-wrap { height: 100%; }

/* 卡片外框（圓角/陰影/hover）在欄上；背景圖由 Elementor 設於子層 .elementor-widget-wrap */
body.home .elementor-column.service-large,
body.home .elementor-column.service-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 18px;
  background-color: var(--deep); box-shadow: 0 16px 42px rgba(32, 24, 22, .08); transition: var(--ease);
}
body.home .elementor-column.service-large:hover,
body.home .elementor-column.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(32, 24, 22, 0.16); }
/* 欄位設 min-height 撐出卡片高；widget-wrap 以絕對定位填滿整欄（Elementor flex 伸展不穩，改 absolute 最可靠） */
body.home .elementor-column.service-large { min-height: 580px; position: relative; }
body.home .elementor-column.service-card { min-height: 283px; position: relative; }
body.home .elementor-column.service-large > .elementor-widget-wrap,
body.home .elementor-column.service-card > .elementor-widget-wrap {
  position: absolute; inset: 0; width: auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-position: center; background-size: cover;
}
body.home .elementor-column.service-large > .elementor-widget-wrap { padding: 30px; }
body.home .elementor-column.service-card > .elementor-widget-wrap { padding: 22px; }
/* 暗色漸層疊層（在背景圖之上、內容之下） */
body.home .elementor-column.service-large > .elementor-widget-wrap::before,
body.home .elementor-column.service-card > .elementor-widget-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(32,24,22,.08), rgba(32,24,22,.62));
}
/* 第 4 卡（無圖）漸層底 */
body.home .elementor-column.service-care { background: linear-gradient(135deg, #a86c65, #d9b9aa); }
body.home .elementor-column.service-care > .elementor-widget-wrap::before { background: linear-gradient(180deg, rgba(32,24,22,.02), rgba(32,24,22,.28)); }
/* 內容（tag/h3/p widget）在疊層之上、自然高度（不被 flex 撐高）、底部對齊 */
body.home .service-large > .elementor-widget-wrap > .elementor-element,
body.home .service-card > .elementor-widget-wrap > .elementor-element { position: relative; z-index: 1; flex: 0 0 auto; align-self: flex-start; width: 100%; }
/* tag pill */
body.home .svc-tag .elementor-heading-title {
  display: inline-flex; width: fit-content; margin-bottom: 12px; padding: 6px 11px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .08em; font-family: var(--display); color: #fff;
}
/* 標題 / 內文 白字 */
body.home .service-large h3.elementor-heading-title { margin-bottom: 8px; font-size: clamp(24px, 3vw, 42px); line-height: 1.14; }
body.home .service-card h3.elementor-heading-title { margin-bottom: 8px; font-size: 24px; }
body.home .service-large h3.elementor-heading-title, body.home .service-large h3.elementor-heading-title a,
body.home .service-card h3.elementor-heading-title, body.home .service-card h3.elementor-heading-title a { color: #fff; }
/* 標題連結回正常排版（避免任何殘留 grid/min-height 撐高） */
body.home .service-large h3.elementor-heading-title a,
body.home .service-card h3.elementor-heading-title a { display: inline; min-height: 0; padding: 0; }
body.home .service-large h3.elementor-heading-title,
body.home .service-card h3.elementor-heading-title { height: auto; }
body.home .service-showcase .elementor-widget-text-editor { margin-bottom: 0; color: rgba(255, 255, 255, .82); }

/* ===================================================================
 * TEAM (深綠) — 含 chicing_doctor_card widget 樣式對應
 * =================================================================== */
body.home .team { position: relative; overflow: hidden; color: #fff; background: var(--deep); }
body.home .team::before {
  content: "MEDICAL TEAM"; position: absolute; top: 48px; left: -16px;
  color: rgba(255, 255, 255, .055); font-family: var(--display);
  font-size: clamp(78px, 12vw, 190px); white-space: nowrap;
}
body.home .team .section-head { position: relative; z-index: 1; }
body.home .team .section-head p,
body.home .team .kicker { color: rgba(255, 255, 255, .72); }
body.home .doctor-grid,
body.home .team .chicing-doctor-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
body.home .doctor-card {
  overflow: hidden; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; transition: var(--ease);
}
body.home .doctor-card:hover {
  transform: translateY(-8px); border-color: var(--rose);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .24); background: rgba(255, 255, 255, 0.12);
}
body.home .doctor-img,
body.home .doctor-card__media { aspect-ratio: 4 / 5; background: var(--clay); overflow: hidden; }
body.home .doctor-img img,
body.home .doctor-card__image { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
body.home .doctor-card:hover .doctor-img img,
body.home .doctor-card:hover .doctor-card__image { transform: scale(1.05); }
body.home .doctor-info,
body.home .doctor-card__body { padding: 18px; }
body.home .doctor-info small { color: rgba(255, 255, 255, .62); font-weight: 900; letter-spacing: .1em; font-family: var(--display); }
body.home .doctor-info h3,
body.home .doctor-card__name { margin: 6px 0 8px; font-size: 21px; color: #fff; }
body.home .doctor-info p,
body.home .doctor-card__position { margin-bottom: 0; color: rgba(255, 255, 255, .72); font-size: 14px; }

/* ===================================================================
 * SURGERY / 療程入口 — chicing_treatment_card widget 樣式對應
 * =================================================================== */
body.home .treatment-section .chicing-treatment-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
body.home .treatment-section .treatment-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 18px;
  min-height: 320px; background: var(--deep); display: flex; flex-direction: column;
  justify-content: flex-end; box-shadow: 0 16px 42px rgba(32, 24, 22, .08); transition: var(--ease);
}
body.home .treatment-section .treatment-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(32, 24, 22, 0.16); }
body.home .treatment-section .treatment-card__media { position: absolute; inset: 0; z-index: 0; }
body.home .treatment-section .treatment-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,24,22,.12), rgba(32,24,22,.7));
}
body.home .treatment-section .treatment-card__image { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
body.home .treatment-section .treatment-card:hover .treatment-card__image { transform: scale(1.06); }
body.home .treatment-section .treatment-card__body { position: relative; z-index: 1; padding: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
body.home .treatment-section .treatment-card__title { font-size: 24px; margin: 0 0 8px; color: #fff; }
body.home .treatment-section .treatment-card__excerpt { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
body.home .treatment-section .treatment-card__price { margin-top: 10px; color: var(--clay); font-weight: 800; }

/* ===================================================================
 * WITNESS / 案例見證 — chicing_case_loop widget 樣式對應
 * =================================================================== */
body.home .witness { background: linear-gradient(180deg, var(--paper), var(--warm)); }
body.home .case-masonry,
body.home .witness .chicing-case-masonry {
  display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 14px; align-items: stretch;
}
body.home .case,
body.home .witness .case-card {
  position: relative; min-height: 360px; overflow: hidden; border-radius: 18px;
  background: var(--clay); box-shadow: 0 16px 42px rgba(32, 24, 22, .08); transition: var(--ease);
}
body.home .case::after,
body.home .witness .case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,24,22,0), rgba(32,24,22,.68)); transition: var(--ease);
}
body.home .witness .case-card__media { position: absolute; inset: 0; }
body.home .case img,
body.home .witness .case-card__image { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
body.home .case:hover img,
body.home .witness .case-card:hover .case-card__image { transform: scale(1.06); }
body.home .witness .case-card:hover::after { background: linear-gradient(180deg, rgba(32,24,22,0) 20%, rgba(32,24,22,.82) 100%); }
body.home .case-caption,
body.home .witness .case-card__body {
  position: absolute; right: 20px; bottom: 20px; left: 20px; z-index: 1; color: #fff;
}
body.home .witness .case-card__title { margin: 5px 0 0; font-size: 24px; line-height: 1.2; color: #fff; transition: var(--ease); }
body.home .witness .case-card__category { color: rgba(255, 255, 255, .72); font-weight: 700; letter-spacing: .08em; font-size: 13px; transition: var(--ease); }
body.home .case-caption h3 { transition: var(--ease); }
body.home .case:hover .case-caption h3,
body.home .witness .case-card:hover .case-card__title { transform: translateY(-3px); color: var(--clay); }

/* ===================================================================
 * 原生化（process 區段以 Elementor inner-section 承載）
 * 取消 inner-section 自身 grid（否則會把單一 .elementor-container 擠成 1/4），
 * 改在 .elementor-container 上做 grid，讓其子 .elementor-column 成為格線項目。
 * =================================================================== */
body.home .elementor-inner-section.section-head,
body.home .elementor-inner-section.process-grid { display: block; }
body.home .elementor-inner-section.section-head > .elementor-container {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px; align-items: end; max-width: 100%;
}
body.home .elementor-inner-section.process-grid > .elementor-container {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; max-width: 100%; counter-reset: step;
}
body.home .elementor-inner-section.section-head > .elementor-container > .elementor-column,
body.home .elementor-inner-section.process-grid > .elementor-container > .elementor-column { width: auto; }
/* process-card 為 Elementor column 時的計數器與外觀（沿用 .process-card 樣式；
   padding 需較全站 column reset 更高特異度才不被歸零） */
body.home .elementor-column.process-card { counter-increment: step; padding: 24px; display: block; }
body.home .elementor-column.process-card > .elementor-widget-wrap { display: block; width: 100%; }
body.home .elementor-column.process-card .elementor-widget-container { margin: 0; }
body.home .elementor-column.process-card .elementor-widget:not(:last-child) { margin-bottom: 8px; }

/* ===================================================================
 * PROCESS GRID (醫美 / 女醫 / 流程 / 最新消息 共用)
 * =================================================================== */
body.home .process-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step;
}
body.home .process-card {
  min-height: 240px; padding: 24px; background: rgba(255, 255, 255, .66);
  border: 1px solid var(--line); border-radius: 18px; counter-increment: step;
  backdrop-filter: blur(12px); transition: var(--ease);
}
body.home .process-card:hover {
  transform: translateY(-6px); border-color: var(--rose);
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 40px rgba(168, 108, 101, 0.08);
}
body.home .process-grid .process-card::before {
  content: "0" counter(step); display: block; margin-bottom: 28px; color: var(--gold);
  font-family: var(--display); font-size: 38px; line-height: 1; transition: var(--ease);
}
body.home .process-grid .process-card:hover::before { color: var(--rose); transform: scale(1.05) translateX(3px); }
body.home .process-card h3 { margin-bottom: 8px; font-size: 22px; }
body.home .process-card p { margin-bottom: 0; color: var(--muted); }

/* ===================================================================
 * LOCATIONS (深綠)
 * =================================================================== */
body.home .locations {
  color: #fff;
  background: linear-gradient(135deg, rgba(23,53,47,.96), rgba(49,86,78,.94)), var(--deep);
}
body.home .locations .section-head p,
body.home .locations .kicker { color: rgba(255, 255, 255, .72); }
body.home .location-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 16px; align-items: stretch; }
body.home .map-panel {
  min-height: 460px; padding: 30px; border-radius: 18px;
  background:
    radial-gradient(circle at 25% 24%, rgba(255,255,255,.22), transparent 9%),
    radial-gradient(circle at 58% 48%, rgba(255,255,255,.2), transparent 8%),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,.22), transparent 10%),
    rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}
body.home .map-panel h3 { margin-bottom: 12px; font-family: var(--display); font-size: clamp(38px, 5vw, 72px); line-height: .95; }
body.home .map-panel p { color: rgba(255, 255, 255, .72); }
body.home .location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.home .location-card {
  display: grid; min-height: 220px; padding: 22px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; transition: var(--ease);
}
body.home .location-card:hover {
  transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16); box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
}
body.home .location-card h3 { margin-bottom: 10px; font-size: 22px; }
body.home .location-card p { color: rgba(255, 255, 255, .7); font-size: 15px; }
body.home .location-card strong { align-self: end; font-size: 20px; }

/* 原生化 locations（Elementor inner-section + 院所卡欄） */
/* 深綠底：section-head 標題/前導詞/說明改淺色（覆寫 Elementor 全域 Kit 深色） */
body.home .locations .section-head h2.elementor-heading-title { color: #fff; }
body.home .locations .section-head .kicker .elementor-heading-title { color: rgba(255, 255, 255, .72); }
body.home .locations .section-head .elementor-widget-text-editor { color: rgba(255, 255, 255, .72); }
body.home .elementor-inner-section.location-layout,
body.home .elementor-inner-section.location-grid { display: block; }
body.home .location-layout > .elementor-container {
  display: grid; grid-template-columns: .86fr 1.14fr; gap: 16px; align-items: stretch; max-width: 100%;
}
body.home .location-grid > .elementor-container {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 100%;
}
body.home .location-layout > .elementor-container > .elementor-column,
body.home .location-grid > .elementor-container > .elementor-column { width: auto; }
body.home .map-col, body.home .map-col > .elementor-widget-wrap,
body.home .map-col .elementor-widget-html, body.home .map-col .map-panel { height: 100%; }
body.home .loc-grid-col > .elementor-widget-wrap { height: 100%; }
body.home .elementor-column.location-card {
  min-height: 220px; padding: 22px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; transition: var(--ease);
}
body.home .elementor-column.location-card > .elementor-widget-wrap { display: flex; flex-direction: column; height: 100%; }
body.home .elementor-column.location-card:hover {
  transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16); box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
}
body.home .location-card h3.elementor-heading-title { margin-bottom: 10px; font-size: 22px; color: #fff; }
body.home .location-card .elementor-widget-text-editor { color: rgba(255, 255, 255, .7); font-size: 15px; }
body.home .location-card .loc-phone { margin-top: auto; }
body.home .location-card .loc-phone .elementor-heading-title { font-size: 20px; font-weight: 700; color: #fff; }

/* ===================================================================
 * FINAL CTA (clay)
 * =================================================================== */
body.home .final { position: relative; overflow: hidden; background: var(--clay); }
body.home .final::after {
  content: "BOOKING"; position: absolute; right: -12px; bottom: -28px;
  color: rgba(255, 255, 255, .24); font-family: var(--display);
  font-size: clamp(72px, 14vw, 220px); font-weight: 700; line-height: .8;
}
body.home .final-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
body.home .final h2 {
  max-width: 780px; margin-bottom: 10px; font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; line-height: 1.12;
}
body.home .final p { margin-bottom: 0; color: #5d4d48; }
/* 最終 CTA 原生化：讓 Heading/Text/Button widget 維持 premium 外觀 */
body.home .final .kicker .elementor-heading-title { color: var(--rose); font-family: var(--display); font-weight: 900; letter-spacing: .15em; font-size: 13px; }
body.home .final h2.elementor-heading-title { max-width: 780px; margin-bottom: 10px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; line-height: 1.12; color: var(--ink); }
body.home .final .elementor-widget-text-editor { color: #5d4d48; }
body.home .final .elementor-column:last-child .elementor-widget-wrap { justify-content: flex-end; }
body.home .final .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 24px; border-radius: 999px; font-weight: 900; color: #fff; background: var(--deep);
  box-shadow: 0 16px 34px rgba(49, 86, 78, .2); transition: var(--ease);
}
body.home .final .elementor-button:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(49, 86, 78, .34); }


/* ⑧ scroll-indicator（屬 hero 的滾動引導箭頭） */
body.home .scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .25em;
  transform: translateX(-50%);
  font-family: var(--display);
  pointer-events: none;
}
body.home .scroll-line {
  position: relative;
  width: 1px;
  height: 50px;
  overflow: hidden;
  background: rgba(87, 65, 55, .16);
}
body.home .scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  animation: scrollDown 2s infinite ease-in-out;
}
@keyframes scrollDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ⑨ mobile-bar（底部固定快速列，桌面隱藏，720px 才顯示） */
body.home .mobile-bar { display: none; }

/* ===================================================================
 * RWD
 * =================================================================== */
@media (max-width: 1180px) {
  /* ----- BODY 區塊 ≤1180px ----- */
  body.home .hero-inner,
  body.home .service-showcase,
  body.home .location-layout,
  body.home .final-inner { grid-template-columns: 1fr; }
  body.home .location-layout > .elementor-container { grid-template-columns: 1fr; }
  body.home .service-showcase > .elementor-container { grid-template-columns: 1fr; }
  body.home .hero-stage { min-height: 480px; }
  body.home .doctor-grid,
  body.home .team .chicing-doctor-grid,
  body.home .process-grid,
  body.home .treatment-section .chicing-treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .case-masonry,
  body.home .witness .chicing-case-masonry { grid-template-columns: 1fr 1fr; }
  body.home .brand-ribbon-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .brand-ribbon span:nth-child(2) { border-right: 0; }
  body.home .brand-ribbon-inner > .elementor-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .brand-ribbon-inner > .elementor-container > .ribbon-col:nth-child(2) > .elementor-widget-wrap { border-right: 0; }
}

@media (max-width: 720px) {
  /* 底部 mobile-bar 為 fixed，預留空間避免遮住頁尾內容 */
  body.home { padding-bottom: 58px; }
  body.home .scroll-indicator { display: none; }

  /* ----- mobile-bar 底部固定快速列 ----- */
  body.home .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 250, 244, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  body.home .mobile-bar a {
    display: grid;
    min-height: 58px;
    place-items: center;
    color: var(--deep);
    font-weight: 900;
    border-right: 1px solid var(--line);
    transition: background 0.3s;
  }
  body.home .mobile-bar a:last-child { border-right: 0; }
  body.home .mobile-bar a:active { background: rgba(23, 53, 47, 0.08); }

  /* ----- BODY 區塊 ≤720px ----- */
  body.home .hero-inner { min-height: 0; padding: 196px 18px 44px; display: flex; flex-direction: column; gap: 24px; }
  /* hero 圖為 1920×800 寬幅橫幅，原被撐成整段高背景（375×1170）如空白沖淡條；
     改為頂部 220px landscape 橫幅，其下由 hero 奶油漸層承接，消除「圖片造成大面積白色」。 */
  body.home .hero-bg-image { height: 220px; bottom: auto; }
  body.home .hero-copy {
    background: rgba(255, 250, 244, 0.88); padding: 32px 24px; border-radius: 24px;
    border: 1px solid rgba(87, 65, 55, 0.12); backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(32, 24, 22, 0.05);
  }
  body.home .hero::after {
    height: 220px; bottom: auto; top: 0;
    background: linear-gradient(180deg, rgba(255,250,244,0) 0%, rgba(255,250,244,.05) 55%, rgba(255,250,244,.55) 86%, rgba(255,250,244,.98) 100%);
  }
  body.home .hero-bg-image img { object-position: center 42%; filter: saturate(1.06) contrast(1.03); }
  body.home .hero-bg-image .desktop-hero-img { display: none; }
  body.home .hero-bg-image .mobile-hero-img { display: block; }
  body.home .hero h1 { font-size: clamp(30px, 8.4vw, 46px); line-height: 1.2; }
  body.home .quick { grid-template-columns: 1fr; margin-top: 32px; }
  body.home .hero-stage { min-height: auto; }
  body.home .glass-card { position: static; width: 100%; margin-top: 8px; }
  body.home .section { padding: 64px 20px; }

  /* 手機一律收合為單欄：桌機各段 grid 規則含 .elementor-inner-section 有較高特異性，
     故此處以 !important 統一覆蓋，避免欄位被 minmax(280px,…) 擠成單字寬（文字直排跑版）。 */
  body.home .elementor-section > .elementor-container,
  body.home .elementor-inner-section > .elementor-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.home .elementor-column { width: 100% !important; }

  body.home .section-head { grid-template-columns: 1fr; }
  body.home .service-stack,
  body.home .doctor-grid,
  body.home .team .chicing-doctor-grid,
  body.home .process-grid,
  body.home .location-grid,
  body.home .case-masonry,
  body.home .witness .chicing-case-masonry,
  body.home .treatment-section .chicing-treatment-grid,
  body.home .brand-ribbon-inner { grid-template-columns: 1fr; }
  body.home .location-grid > .elementor-container { grid-template-columns: 1fr; }
  body.home .section-head > .elementor-container { grid-template-columns: 1fr; }
  body.home .service-stack > .elementor-container { grid-template-columns: 1fr; }
  body.home .elementor-column.service-large,
  body.home .elementor-column.service-card { min-height: 320px; }
  body.home .brand-ribbon span { border-right: 0; border-bottom: 1px solid rgba(87, 65, 55, .12); font-size: 20px; }
  body.home .brand-ribbon span:last-child { border-bottom: 0; }
  body.home .brand-ribbon-inner > .elementor-container { grid-template-columns: 1fr; }
  body.home .elementor-column.ribbon-col > .elementor-widget-wrap { border-right: 0; border-bottom: 1px solid rgba(87, 65, 55, .12); }
  body.home .brand-ribbon-inner > .elementor-container > .ribbon-col:last-child > .elementor-widget-wrap { border-bottom: 0; }
  body.home .service-large,
  body.home .service-stack a,
  body.home .case,
  body.home .witness .case-card { min-height: 320px; }
}

/* ===================================================================
 * 卡片連結（a11y / 可點區域）
 * 動態卡（醫師/療程/案例）本身即 <a>；靜態卡（service / process / location）
 * 的連結掛在標題上，這裡以 stretched-link 讓整張卡可點，鍵盤仍聚焦真正的 <a>。
 * =================================================================== */
body.home .doctor-card,
body.home .treatment-card,
body.home .witness .case-card { text-decoration: none; color: inherit; }
body.home .doctor-card:focus-visible,
body.home .treatment-section .treatment-card:focus-visible,
body.home .witness .case-card:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px;
}

/* 整卡可點：標題連結以 ::after 覆蓋整張卡（卡片需為 positioned 祖先） */
body.home .elementor-column.process-card,
body.home .elementor-column.location-card { position: relative; }
/* Elementor 預設給每個 widget 外層 .elementor-element 加 position:relative，
   會把 ::after 的 containing block 限縮在標題 widget 內；此處還原為 static，
   讓 ::after 能撐滿整張卡。這兩張卡內沒有絕對定位元素，改 static 無副作用。 */
body.home .elementor-column.process-card > .elementor-widget-wrap > .elementor-element,
body.home .elementor-column.location-card > .elementor-widget-wrap > .elementor-element { position: static; }
body.home .elementor-column.process-card h3.elementor-heading-title a::after,
body.home .elementor-column.location-card h3.elementor-heading-title a::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px;
}
body.home .elementor-column.process-card:has(h3 a):hover,
body.home .elementor-column.location-card:has(h3 a):hover { cursor: pointer; }

/* 鍵盤聚焦時，把焦點框畫在整張卡上（stretched-link 的 <a> 本身框線不明顯） */
body.home .elementor-column.service-large:focus-within,
body.home .elementor-column.service-card:focus-within,
body.home .elementor-column.process-card:focus-within,
body.home .elementor-column.location-card:focus-within {
  outline: 2px solid var(--rose); outline-offset: 3px;
}
body.home .elementor-column.location-card:focus-within { outline-color: var(--clay); }

/* 標題連結沿用卡片既有配色，不加底線 */
body.home .process-card h3.elementor-heading-title a,
body.home .location-card h3.elementor-heading-title a { color: inherit; text-decoration: none; }
body.home .process-card:hover h3.elementor-heading-title a { color: var(--rose); }

/* ===== Scroll reveal（僅在 JS 啟用後才隱藏，避免無 JS 或截圖時整段空白） ===== */
body.home.ch-reveal-on .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
body.home.ch-reveal-on .reveal.active { opacity: 1; transform: translateY(0); }
