/* ============================================================
   White 純白醫學中心 — 白金輕奢風格樣式
   ============================================================ */

:root {
  --white: #ffffff;
  --paper: #faf9f6;
  --paper-2: #f1f0ec;
  --ink: #1f1c19;
  --ink-soft: #5c544c;
  --ink-faint: #9a9186;
  --gold: #cdb385;
  --gold-deep: #ad8b4e;
  --gold-light: #ecdcb8;
  --line: rgba(173, 139, 78, 0.30);
  --shadow: 0 24px 60px -28px rgba(31, 28, 25, 0.30);
  --shadow-soft: 0 12px 36px -20px rgba(31, 28, 25, 0.22);
  --gold-grad: linear-gradient(135deg, #ecdcb8 0%, #cdb385 45%, #ad8b4e 100%);
  --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --tc-serif: "Noto Serif TC", "Songti TC", serif;
  --tc-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  /* 簡體中文：改用思源簡體（SC）字體，避免被繁體字體以繁體字形渲染而顯得參差 */
  --sc-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sc-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --noto-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --maxw: 1180px;
}

/* 簡體中文：切換為思源簡體字體堆疊，修復繁體字形造成的參差排版 */
html[data-lang="zhc"] {
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --tc-serif: var(--sc-serif);
  --tc-sans: var(--sc-sans);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--tc-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 共用容器 / 標題 ---------- */
.wrap { width: min(92%, var(--maxw)); margin: 0 auto; }

.eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.section-title {
  font-family: var(--tc-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.4rem;
}
.section-title .gold { color: var(--gold-deep); }

.section-lead {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.02rem;
}

.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 金色按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--tc-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  font-size: 0.95rem;
}
.btn-gold {
  background: var(--gold-grad);
  color: #4a3717;
  box-shadow: 0 14px 30px -14px rgba(168, 133, 76, 0.7);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(168, 133, 76, 0.85); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-3px); }

/* ---------- 導航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.logo-img { max-height: 56px; width: auto; display: block; }
.brand .logo {
  font-family: var(--tc-serif);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand .logo b { color: var(--gold-deep); font-weight: 700; }
.brand .en {
  font-family: var(--serif);
  letter-spacing: 0.3em;
  font-size: 0.62rem;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold-deep);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold-deep) !important;
  font-size: 0.85rem !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-grad); color: #4a3717 !important; }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--ink); }

/* ---------- 療程總覽：鼠標移入展開全部療程目錄 ---------- */
.nav-services { position: relative; }
.services-menu {
  position: absolute; top: calc(100% + 0.6rem); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(40,30,15,0.18);
  padding: 0.4rem; opacity: 0; visibility: hidden; overflow: visible;
  transition: opacity 0.2s ease, visibility 0.2s; z-index: 200;
}
.nav-services:hover .services-menu,
.nav-services:focus-within .services-menu,
.nav-services.open > .services-menu { opacity: 1; visibility: visible; }
/* 飛出式目錄：左側問題分類，滑到分類上右側飛出對應療程 */
.svc-cats { list-style: none; margin: 0; padding: 0; width: 13rem; }
.svc-cat { position: relative; }
.svc-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.8rem; border-radius: 10px;
  font-size: 0.9rem; color: var(--ink); text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.svc-cat-arrow { opacity: 0.5; font-weight: 700; }
.svc-cat:hover > .svc-cat-link { background: #f7f3ec; color: var(--gold-deep); }
.svc-flyout {
  position: absolute; top: 0; left: 100%; margin-left: -1px;
  min-width: 13.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 36px rgba(40,30,15,0.18);
  padding: 0.4rem; opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s; z-index: 210;
}
.svc-cat:hover > .svc-flyout { opacity: 1; visibility: visible; }
.svc-flyout a {
  display: block; padding: 0.45rem 0.7rem; border-radius: 8px;
  color: var(--ink); font-size: 0.88rem; text-decoration: none;
  transition: background 0.18s ease;
}
.svc-flyout a:hover { background: #f7f3ec; }

/* ---------- 語言切換（下拉選單） ---------- */
.lang-switch { position: relative; margin-left: 1.4rem; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-family: var(--noto-sans); font-size: 0.82rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px); color: var(--ink);
  padding: 0.34rem 0.72rem; border-radius: 999px; cursor: pointer;
  line-height: 1; transition: border-color 0.25s ease, color 0.2s ease;
  min-width: 3.2rem; justify-content: center;
}
.lang-trigger:hover { border-color: var(--gold-deep); }
.lang-caret { font-size: 0.6rem; opacity: 0.7; transition: transform 0.25s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 9.6rem;
  list-style: none; margin: 0; padding: 0.35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(40,30,15,0.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 0.6rem; border-radius: 10px; cursor: pointer;
  font-size: 0.9rem; color: var(--ink); transition: background 0.18s ease;
}
.lang-opt:hover { background: #f7f3ec; }
.lang-opt.active { background: #f3ecdf; font-weight: 600; }
.lang-name { min-width: 2.2rem; text-align: center; letter-spacing: 0.04em; }
.lang-check { color: var(--gold-deep); font-weight: 700; opacity: 0; }
.lang-opt.active .lang-check { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 24, 20, 0.72) 0%, rgba(28, 24, 20, 0.35) 45%, rgba(28, 24, 20, 0.15) 100%),
    linear-gradient(0deg, rgba(28, 24, 20, 0.55), rgba(28, 24, 20, 0.1));
}
.hero-inner { position: relative; z-index: 2; width: min(92%, var(--maxw)); margin: 0 auto; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-family: var(--tc-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin: 1rem 0 1.2rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero h1 b { color: var(--gold-light); font-weight: 600; }
.hero p.sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* 下滑提示 */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,0.7);
  font-family: var(--serif); letter-spacing: 0.3em; font-size: 0.65rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint .line { width: 1px; height: 38px; background: linear-gradient(var(--gold-light), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- 裝飾分隔線 ---------- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin: 0 auto;
  color: var(--gold-deep);
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 46px; background: var(--line);
}
.divider .dot { width: 6px; height: 6px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }

/* ---------- 區塊通用 ---------- */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; scroll-margin-top: 84px; }
.alt { background: var(--paper-2); }

/* ---------- 理念 / 關於 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-inline: auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(168,133,76,0.12));
}
/* 診所環境輪播 */
.about-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.about-carousel-track {
  display: flex; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-carousel-slide { flex: 0 0 100%; height: 100%; }
.about-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.about-carousel-prev, .about-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(212,175,95,0.6);
  background: rgba(255,255,255,0.45); backdrop-filter: blur(6px);
  color: var(--gold-deep); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: background 0.25s;
}
.about-carousel-prev { left: 12px; }
.about-carousel-next { right: 12px; }
.about-carousel-prev:hover, .about-carousel-next:hover { background: rgba(255,255,255,0.8); }
.about-carousel-dots {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.about-carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.6); cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.about-carousel-dots button.active { width: 22px; background: var(--gold); }
.about-text h2 { margin-top: 0.4rem; }
.about-text p { color: var(--ink-soft); margin-top: 1rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.pillar {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.1rem;
  background: rgba(255,255,255,0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.pillar .num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); }
.pillar h4 { font-family: var(--tc-serif); font-weight: 600; margin: 0.3rem 0 0.4rem; font-size: 1.05rem; }
.pillar p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 療程總覽 ---------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  margin: 1.7rem auto 2.8rem;
  max-width: fit-content;
}
.tab {
  padding: 0.6rem 1.45rem;
  border: none; background: transparent; cursor: pointer;
  border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-family: var(--tc-sans);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--gold-deep); background: rgba(168,133,76,0.08); }
.tab.active {
  background: var(--gold-grad); color: #4a3717; font-weight: 600;
  box-shadow: 0 4px 14px rgba(168,133,76,0.25);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
/* 依「效果」分類的分組 */
.ba-group { margin-top: 3.8rem; }
.ba-group:first-of-type { margin-top: 0.5rem; }
.group-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem 1.2rem;
  margin-bottom: 1.9rem;
}
.group-head-l { display: flex; flex-direction: column; gap: 0.5rem; }
.group-rule { width: 38px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.group-head h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); letter-spacing: 0.03em; margin: 0; }
.group-head p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; max-width: 52ch; }
.group-count {
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold-deep);
  border: 1px solid rgba(168,133,76,0.35); border-radius: 999px;
  padding: 0.26rem 0.8rem; white-space: nowrap;
}
.empty { color: var(--ink-soft); padding: 2rem 0; text-align: center; }
/* 卡片底部效果小標籤 */
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.chip {
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: rgba(168,133,76,0.10);
  border: 1px solid rgba(168,133,76,0.28);
  border-radius: 999px; padding: 0.22rem 0.7rem;
}
/* 切換分類時的輕微淡入 */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s ease;
  border: 1px solid rgba(168,133,76,0.14);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-img img { transform: scale(1.07); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(28,24,20,0.18)); }
.card-cat {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.18em;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(253,252,249,0.9); color: var(--gold-deep);
  font-weight: 600;
}
/* 示意圖標籤 — 誠實標示 AI 生成的代表圖，非實際產品 */
.illus-badge {
  position: absolute; bottom: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.12em;
  padding: 0.24rem 0.62rem; border-radius: 999px;
  background: rgba(43,39,35,0.62); color: #fff;
  font-family: var(--tc-sans); font-weight: 500;
  backdrop-filter: blur(2px);
}
.illus-badge--hero {
  bottom: auto; top: 1.1rem; left: 1.1rem;
  font-size: 0.72rem; padding: 0.34rem 0.85rem;
  background: rgba(43,39,35,0.66);
}
.illus-note {
  font-family: var(--tc-sans); font-size: 0.8rem; line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem; margin: 0;
}
/* ONDA PRO 三大智慧探頭 */
.probe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 0.4rem 0 0.6rem;
}
.probe-card {
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.probe-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad);
}
.probe-card h4 {
  font-family: var(--tc-serif); font-weight: 600; font-size: 1.1rem;
  color: var(--gold-deep); margin: 0 0 0.8rem;
}
.probe-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--tc-sans); font-size: 0.82rem;
  padding: 0.45rem 0; border-bottom: 1px dashed var(--line);
}
.probe-meta span { color: var(--ink-faint); }
.probe-meta b { color: var(--ink); font-weight: 600; }
.probe-use {
  font-family: var(--tc-sans); font-size: 0.82rem; line-height: 1.6;
  color: var(--ink-soft); margin: 0.7rem 0 0;
}
.probe-use span {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--gold-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.12rem 0.55rem; margin-right: 0.5rem;
}
@media (max-width: 720px) {
  .probe-grid { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin: 0.4rem 0 0.6rem;
}
.feature-card {
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad);
}
.feature-card h4 {
  font-family: var(--tc-serif); font-weight: 600; font-size: 1.05rem;
  color: var(--gold-deep); margin: 0 0 0.6rem; line-height: 1.4;
}
.feature-card p {
  font-family: var(--tc-sans); font-size: 0.86rem; line-height: 1.7;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body .en { font-family: var(--serif); letter-spacing: 0.22em; font-size: 0.7rem; color: var(--ink-faint); text-transform: uppercase; }
.card-body h3 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.35rem; margin: 0.25rem 0 0.5rem; }
.card-body p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; min-height: 3rem; }
.card-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; color: var(--gold-deep); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.05em;
}
.card-more .arrow { transition: transform 0.35s ease; }
.card:hover .card-more .arrow { transform: translateX(5px); }

/* ---------- 療程流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.step {
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
  text-align: center;
}
.step .idx {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-light);
  line-height: 1;
}
.step h4 { font-family: var(--tc-serif); font-weight: 600; margin: 0.7rem 0 0.5rem; font-size: 1.1rem; }
.step p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- 詳情頁 ---------- */
.detail { display: none; padding-top: 84px; }
.detail.active { display: block; }

/* 詳情頁 Hero — 鈦提升風格分欄版（左文右大圖） */
.detail-hero--split {
  position: relative;
  padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(48% 42% at 88% -4%, rgba(231,214,173,0.38) 0%, transparent 60%),
    radial-gradient(42% 38% at 100% 14%, rgba(143,184,216,0.30) 0%, transparent 70%),
    linear-gradient(180deg,#ffffff 0%, #fafbfc 100%);
}
.detail-hero--split .dh-grid {
  display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center;
}
.detail-hero--split .dh-left { text-align: left; }
.detail-hero--split .back { color: var(--ink-soft); margin-bottom: 1.5rem; }
.detail-hero--split .back:hover { color: var(--gold-deep); gap: 0.8rem; }
.detail-hero--split .cat {
  font-family: var(--serif); letter-spacing: 0.28em; font-size: 0.76rem;
  color: var(--gold-deep); text-transform: uppercase; margin-bottom: 0.7rem;
}
.detail-hero--split h1 {
  font-family: var(--tc-serif); font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.08; margin: 0 0 0.7rem;
  background: linear-gradient(120deg,#2a2a2e 0%,#3a3a40 42%,#a8854c 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.detail-hero--split .tag { color: var(--ink-soft); font-weight: 300; font-size: clamp(1rem,1.6vw,1.12rem); max-width: 480px; margin: 0 0 1.3rem; letter-spacing: 0.02em; }
.detail-hero--split .hero-effects { display:flex; gap:0.55rem; flex-wrap:wrap; margin: 0 0 1.9rem; }
.detail-hero--split .hero-eff {
  font-size: 0.82rem; padding: 0.4rem 0.95rem; border-radius: 999px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); color: var(--gold-deep);
  font-weight: 500; backdrop-filter: blur(4px);
}
.detail-hero--split .dh-right { position: relative; }
.detail-hero--split .dh-img-wrap {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--paper-2); border: 1px solid var(--line); position: relative;
}
.detail-hero--split .dh-img { width: 100%; height: auto; object-fit: cover; display: block; max-height: 560px; }
.detail-hero--split .dh-img-wrap::after {
  content:""; position:absolute; inset:0; border-radius:28px; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
@media (max-width: 768px) {
  .detail-hero--split .dh-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-hero--split .dh-left { text-align: center; }
  .detail-hero--split .hero-effects { justify-content: center; }
  .detail-hero--split .tag { margin-left: auto; margin-right: auto; }
  .detail-hero--split .back { display:inline-flex; justify-content: center; }
  .detail-hero--split .dh-img { max-height: none; }
}

/* 區塊標題（對齊鈦提升設計：金色 eyebrow + 居中 serif 大標） */
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--tc-sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem;
}
.section-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold-deep); display: inline-block; }
.related-cta { text-align: center; margin-top: 2.2rem; }

.back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem; letter-spacing: 0.06em;
  transition: color 0.3s ease, gap 0.3s ease;
}
.back:hover { color: var(--gold-light); gap: 0.8rem; }

.detail-body { padding: clamp(3rem, 6vw, 5rem) 0 4rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.detail-main h2 {
  font-family: var(--tc-serif); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 1.4rem;
  letter-spacing: 0.03em; text-align: center; color: var(--ink); line-height: 1.3;
  border: none; padding: 0;
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { color: var(--ink-soft); }
.detail-main ul.feat { list-style: none; margin-top: 0.8rem; display: grid; gap: 0.7rem; }
.detail-main ul.feat li {
  position: relative; padding-left: 1.6rem; color: var(--ink-soft);
}
.detail-main ul.feat li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px; border: 1px solid var(--gold-deep); transform: rotate(45deg);
}
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-q { font-family: var(--tc-serif); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; }
.faq-q .pm { color: var(--gold-deep); transition: transform 0.3s ease; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--ink-soft); font-size: 0.94rem; }
.faq-item.open .faq-a { max-height: 200px; padding-top: 0.7rem; }

/* 側欄資訊卡 */
.detail-aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.info-card h4 { font-family: var(--tc-serif); font-weight: 600; margin-bottom: 1rem; font-size: 1.1rem; }
.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-faint); }
.info-row .v { color: var(--ink); text-align: right; font-weight: 500; }
.detail-aside .btn { width: 100%; justify-content: center; }

/* ---------- 詳情頁（豐富版式重設） ---------- */
.detail-hero .tag { letter-spacing: 0.04em; }
.hero-effects { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hero-eff {
  font-size: 0.78rem; letter-spacing: 0.12em; padding: 0.32rem 0.9rem;
  border-radius: 999px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.42); color: #fff; backdrop-filter: blur(4px);
}
.hero-scroll {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 3;
  color: rgba(255,255,255,0.82); font-family: var(--serif); letter-spacing: 0.3em;
  font-size: 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll-line {
  width: 1px; height: 28px;
  background: linear-gradient(var(--gold-light), transparent);
  animation: drop 1.8s infinite;
}

/* 快速資訊條 */
.detail-facts { background: var(--white); border-bottom: 1px solid var(--line); }
.detail-facts-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.5rem 0; }
.fact { display: flex; align-items: center; gap: 0.9rem; justify-content: center; padding: 0.4rem 1rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-ic { font-size: 1.35rem; color: var(--gold-deep); flex: none; line-height: 1; }
.fact b { display: block; font-family: var(--tc-sans); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.fact span { font-size: 0.74rem; letter-spacing: 0.1em; color: var(--ink-faint); }

/* 主內容區塊 */
.d-block { margin-top: 3rem; }
.d-block:first-child { margin-top: 0; }
.d-kicker {
  display: inline-block; font-family: var(--serif); letter-spacing: 0.34em;
  text-transform: uppercase; font-size: 0.72rem; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 0.55rem;
}
.d-block h2 {
  font-family: var(--tc-serif); font-weight: 600; text-align: center;
  margin: 0 0 1.4rem; letter-spacing: 0.03em; border-left: none; padding-left: 0;
}
.d-lead-text {
  font-family: var(--tc-serif); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; color: var(--ink);
  margin: 0 0 1.2rem; letter-spacing: 0.02em;
}
.d-intro { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.9; margin: 0; }

/* 核心改善卡片 */
.eff-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.eff-card {
  position: relative; padding: 1.5rem 1.3rem 1.4rem; border-radius: 16px;
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden;
}
.eff-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-grad); }
.eff-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-light); }
.eff-card h4 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.15rem; color: var(--gold-deep); margin: 0.3rem 0 0.5rem; }
.eff-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* 功效卡片 */
.benefit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.benefit-card {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; border-radius: 16px; background: rgba(255,255,255,0.72);
  border: 1px solid var(--line); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.benefit-ic {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #4a3717; font-size: 0.82rem; font-weight: 700; margin-top: 0.15rem;
}
.benefit-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }

/* 作用原理面板 */
.mech-panel {
  background: linear-gradient(135deg, rgba(194,163,107,0.06), rgba(194,163,107,0.12));
  border: 1px solid var(--line); border-left: 3px solid var(--gold-deep);
  border-radius: 16px; padding: 1.5rem 1.7rem; color: var(--ink-soft); line-height: 1.9; font-size: 1rem;
}
.mech-panel p { margin: 0; }
.sub-h { font-family: var(--tc-serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 1.8rem 0 0.9rem; }

/* 間隔背景交替 */
.d-block--tint {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
}

/* 適合人群 callout */
.suitable-callout {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.6rem; position: relative; box-shadow: var(--shadow-soft);
}
.suitable-callout::before {
  content: "\2726"; position: absolute; top: 1.1rem; right: 1.3rem;
  color: var(--gold-light); font-size: 1.2rem;
}
.suitable-callout p { margin: 0; color: var(--ink-soft); line-height: 1.9; }

/* 肌膚困擾 */
.d-concerns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.d-concern { padding: 1.4rem 1.5rem; border-radius: 16px; background: linear-gradient(160deg, #fff, var(--paper-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.d-concern-ic { font-size: 1.5rem; color: var(--gold-deep); margin-bottom: .6rem; }
.d-concern h4 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.08rem; margin: 0 0 .5rem; }
.d-concern p { font-size: .9rem; color: var(--ink-soft); line-height: 1.8; margin: 0 0 .9rem; }
.d-concern-fix { display: block; font-size: .82rem; color: var(--gold-deep); font-weight: 600; border-top: 1px dashed var(--gold-light); padding-top: .65rem; }

/* 療程優勢 */
.d-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.d-adv-card { padding: 1.4rem 1.5rem; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease; }
.d-adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.d-adv-ic { font-size: 1.6rem; margin-bottom: .5rem; }
.d-adv-card h4 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.08rem; margin: 0 0 .4rem; color: var(--gold-deep); }
.d-adv-card p { font-size: .88rem; color: var(--ink-soft); line-height: 1.8; margin: 0; }

/* 療程流程 */
.d-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.d-step { text-align: center; padding: 1.4rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.d-step-dot { width: 42px; height: 42px; margin: 0 auto .8rem; border-radius: 50%; background: var(--gold-grad); color: #4a3717; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.d-step h4 { font-family: var(--tc-serif); font-weight: 600; font-size: 1rem; margin: 0 0 .4rem; }
.d-step p { font-size: .84rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* 臨床認證 */
.d-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.d-cert { padding: 1.5rem 1.4rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-soft); }
.d-cert-seal { width: 48px; height: 48px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(194,163,107,.12), rgba(168,133,76,.2)); border: 1px solid var(--gold-light); color: var(--gold-deep); font-size: 1.3rem; }
.d-cert h4 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.02rem; margin: 0 0 .4rem; }
.d-cert p { font-size: .85rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* 真實見證 */
.d-tws { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.d-tw { padding: 1.6rem; border-radius: 18px; background: linear-gradient(160deg, #fff, var(--paper-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: .9rem; }
.d-tw-stars { color: var(--gold-deep); letter-spacing: .18em; font-size: 1rem; }
.d-tw-text { font-size: .98rem; color: var(--ink); line-height: 1.9; margin: 0; }
.d-tw-who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.d-tw-av { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--gold-grad); color: #4a3717; font-weight: 700; display: grid; place-items: center; }
.d-tw-n { font-weight: 600; font-size: .95rem; }
.d-tw-m { font-size: .8rem; color: var(--ink-soft); }

.related-wrap { margin-top: 3.6rem; }
.related-title { font-size: 1.55rem; border: none; padding-left: 0; }
.related-cards { margin-top: 1.6rem; }

@media (max-width: 720px) {
  .detail-facts-inner { grid-template-columns: 1fr; }
  .fact + .fact { border-left: none; border-top: 1px solid var(--line); }
  .fact { justify-content: flex-start; padding: 0.55rem 1rem; }
  .d-block--tint { padding: 1.6rem 1.2rem; }
}

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--gold-deep); font-size: 1.1rem;
}
.contact-item h5 { font-family: var(--tc-serif); font-weight: 600; font-size: 1rem; }
.contact-item p { color: var(--ink-soft); font-size: 0.92rem; }
.contact-item.branch-block { align-items: flex-start; }
.contact-item.branch-block > div { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-item.branch-block h5 { margin-bottom: 0.15rem; }
.contact-item.branch-block .hours-line {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--ink-soft); font-size: 0.92rem;
}
.contact-item.branch-block .hours-line::before {
  content: "◷";
  color: var(--gold-deep); font-size: 0.9em;
}


.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.form h3 { font-family: var(--tc-serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(194,163,107,0.18);
}
.field textarea { resize: vertical; min-height: 92px; }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.9rem; text-align: center; }

/* ---------- 預約 CTA 橫幅 ---------- */
.cta-band {
  background: var(--gold-grad);
  color: #4a3717;
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-family: var(--tc-serif); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-band p { max-width: 52ch; margin: 0.8rem auto 1.6rem; color: #5c4622; }

/* ---------- 頁腳 ---------- */
.wm-footer { background: var(--beige, #faf6ef); padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4vw, 56px); color: var(--ink-soft, #6b6358); text-align: left; }
.wm-footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr auto auto auto; gap: clamp(22px, 3vw, 48px); padding-bottom: clamp(36px, 4vw, 56px); }
.footer-logo { font-size: 22px; letter-spacing: .18em; color: var(--ink, #2c2722); font-weight: 500; margin-bottom: 10px; }
.footer-tagline { font-size: 14px; letter-spacing: .04em; color: var(--gold-deep, #a8854f); margin-bottom: 16px; white-space: nowrap; }
.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 520px; margin-bottom: 22px; color: var(--ink-soft, #6b6358); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft, #6b6358); transition: .25s; }
.footer-socials a:hover { opacity: 1; }
.footer-socials a img { height: 24px; width: auto; object-fit: contain; display: block; filter: grayscale(0%) opacity(1); transition: filter .25s, transform .25s; }
.footer-socials a:hover img { filter: grayscale(0%) opacity(1); transform: translateY(-2px); }
.footer-col { min-width: 0; word-break: normal; }
.footer-brand { min-width: 0; word-break: normal; }
.footer-col h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink, #2c2722); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 12px; }
.footer-col a, .footer-col li > span { font-size: 14px; color: var(--ink-soft, #6b6358); text-decoration: none; display: inline-flex; align-items: flex-start; gap: 10px; line-height: 1.6; transition: color .2s; }
.footer-col a:hover { color: var(--gold-deep, #a8854f); }
.footer-col ul:not(.footer-contact) a,.footer-contact li:nth-child(-n+3) a{ white-space: nowrap; }
.footer-contact li:nth-child(n+4) a{ white-space: normal; word-break: keep-all; }
.footer-bottom { border-top: 1px solid var(--line, rgba(0,0,0,.08)); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-mute, #9e968a); letter-spacing: .02em; }
@media (max-width: 1100px){
  .footer-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "brand brand brand" "quick contact web"; gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); }
  .footer-brand{ grid-area: brand; padding-bottom: 28px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); margin-bottom: 4px; }
  .footer-brand .footer-desc{ max-width: 520px; }
}
@media (max-width: 640px){
  .wm-footer{ padding: 48px 0 28px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "contact contact" "quick web"; gap: 0; padding-bottom: 28px; }
  .footer-brand{ grid-area: brand; padding-bottom: 24px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); margin-bottom: 24px; }
  .footer-desc{ display: none; }
  .footer-socials{ margin-top: 4px; }
  .footer-col:nth-of-type(3){ grid-area: contact; padding: 24px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); margin-bottom: 24px; }
  .footer-col:nth-of-type(2){ grid-area: quick; }
  .footer-col:nth-of-type(4){ grid-area: web; }
  .footer-col h4{ margin-bottom: 14px; }
  .footer-bottom{ flex-direction: column; text-align: left; gap: 6px; padding-top: 20px; }
}
@media (max-width: 820px){ body{ overflow-x:clip; } }

.disclaimer {
  margin-top: 1.2rem; font-size: 0.74rem; line-height: 1.7;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 1rem 1.1rem;
}

/* ---------- 滾動揭示動畫 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img, .about-carousel { aspect-ratio: 4/5; max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(253,252,249,0.97); backdrop-filter: blur(14px);
    padding: 1.6rem; box-shadow: var(--shadow-soft);
    /* 手機：展開後內容可能超過螢幕高度，給面板自身 scroll 確保所有分類都可達 */
    max-height: calc(100dvh - 72px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-toggle { display: block; }
  /* 語言切換移到漢堡按鈕旁（右側群組） */
  .lang-switch { margin-left: auto; }
  /* 療程總覽：手機為收合式，點開才展開「問題」分類 */
  .nav-services { position: static; }
  .nav-link-services::after {
    content: "\203A"; margin-left: 0.4rem; opacity: 0.5; display: inline-block;
    transition: transform 0.2s ease;
  }
  .nav-services.open > .nav-link-services::after { transform: rotate(90deg); }
  .services-menu {
    display: none; position: static; width: 100%;
    margin-top: 0.6rem; padding: 0;
    border: none;
    background: transparent; box-shadow: none;
    opacity: 1; visibility: visible;
  }
  .nav-services.open > .services-menu { display: block; }
  .svc-cats { width: 100%; }
  .svc-cat-link { font-size: 0.95rem; }
  .svc-cat-arrow { display: inline-block; transition: transform 0.2s ease; }
  /* 手機：accordion 模式——點開「問題」分類才展開對應療程，再點同一分類即收起 */
  .svc-flyout {
    position: static; min-width: 0; box-shadow: none; border: none;
    border-left: 2px solid var(--line); border-radius: 0;
    max-height: 0; margin-left: 0; overflow: hidden;
    padding: 0 0 0 0.9rem;
    opacity: 0; visibility: hidden;
    transition: max-height 0.32s ease, opacity 0.22s ease,
                visibility 0.22s, padding 0.32s ease;
  }
  .svc-cat.open > .svc-flyout {
    max-height: 1200px; opacity: 1; visibility: visible;
    padding: 0.2rem 0 0.5rem 0.9rem;
  }
  .svc-cat.open > .svc-cat-link { color: var(--gold-deep); }
  .svc-cat.open > .svc-cat-link .svc-cat-arrow { transform: rotate(90deg); }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* WhatsApp 直連浮鈕 */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform .25s ease;
  overflow: hidden;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .fab-icon { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; pointer-events: none; }

/* ---------- Before / After 真實案例對比 ---------- */
.ba-intro {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.4rem 0 1.4rem;
}
.ba-list {
  display: grid;
  gap: 1.8rem;
}
.ba-item { margin: 0; }
.ba-slider {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
  will-change: clip-path;
}
.ba-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #4a3717;
  background: var(--gold-light);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; background: var(--gold-deep); color: #fff; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--gold-light);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.ba-handle::before {
  content: "⟺";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--gold-deep);
  font-size: 0.9rem;
  line-height: 1;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
.ba-range::-moz-range-thumb { width: 0; height: 0; border: none; }
.ba-cap {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}
@media (max-width: 600px) {
  .ba-slider { aspect-ratio: 3 / 4; }
  .ba-label { font-size: 0.66rem; padding: 0.22rem 0.55rem; }
}

/* 用家分享 / 客人真實評價 */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.8rem;
}
.review-card {
  margin: 0; padding: 2.4rem 2rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.review-card::before {
  content: "\201C"; position: absolute; top: 0.1rem; right: 1.1rem;
  font-family: var(--serif); font-size: 4.5rem; color: rgba(194,163,107,0.18); line-height: 1;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card .stars { color: var(--gold-deep); letter-spacing: 0.18em; font-size: 0.95rem; }
.review-card blockquote {
  margin: 1rem 0 1.3rem; font-family: var(--tc-serif); font-weight: 500;
  font-size: 1.18rem; line-height: 1.78; color: var(--ink); letter-spacing: 0.01em;
}
.review-card figcaption { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.04em; }
@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   高端醫美編輯式視覺升級（2026-08-10）
   作用範圍：首頁 #home-view + 詳情頁 .detail
   原則：內容 / 結構 / 功能 / 圖片 / Logo 不變，
   僅提升版面層次、留白、Typography、圖片構圖與 Premium 細節。
   ============================================================ */

/* ---- 微調設計 token（不改品牌主色） ---- */
:root {
  --line-soft: rgba(173,139,78,0.16);
  --paper-3: #f5f3ee;
}

/* ---- 1. 區塊基礎：節奏與留白 ---- */
#home-view section { padding: clamp(7rem, 12vw, 12rem) 0; position: relative; isolation: isolate; }
#home-view .wrap { max-width: 1120px; position: relative; }

/* 超大但低調的背景文字（編輯式細節） */
#home-view .sec-ghost {
  position: absolute; z-index: -1; pointer-events: none;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(4.5rem, 17vw, 12rem); line-height: 1;
  color: var(--ink); opacity: 0.035; letter-spacing: 0.04em;
  top: 0; right: 0; user-select: none;
}
@media (max-width: 768px) { #home-view .sec-ghost { display: none; } }

/* ---- 2. 區塊標籤：編號 + eyebrow（統一 Premium 細節） ---- */
#home-view .sec-tag { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
#home-view .sec-num {
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem;
  color: var(--gold-deep); letter-spacing: 0.08em;
}
#home-view .sec-num::after {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--gold-deep); opacity: 0.5; margin-left: 1rem;
}
#home-view .sec-tag .eyebrow { margin: 0; letter-spacing: 0.5em; }
#home-view .center .sec-tag { justify-content: center; }

/* ---- 3. 標題層級：更明確的 Editorial Typography ---- */
#home-view .section-title {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.16; letter-spacing: 0.015em; font-weight: 600;
}
#home-view .section-lead { font-size: 1.08rem; line-height: 1.95; }
#home-view .about-text p { font-size: 1.04rem; line-height: 1.95; }

/* ---- 4. Hero：更大標題、更通透的圖、金漸變強調 ---- */
#home-view .hero { min-height: 100vh; }
#home-view .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(28,24,20,0.62) 0%, rgba(28,24,20,0.30) 48%, rgba(28,24,20,0.12) 100%),
    linear-gradient(0deg, rgba(28,24,20,0.42), rgba(28,24,20,0.06));
}
#home-view .hero h1 { font-size: clamp(3rem, 7.6vw, 6rem); line-height: 1.1; letter-spacing: 0.02em; }
#home-view .hero h1 b {
  font-weight: 600;
  background: linear-gradient(120deg, #f3e4c0 0%, #e7d6ad 55%, #c2a36b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#home-view .hero .eyebrow { letter-spacing: 0.55em; }
#home-view .hero p.sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 50ch; }

/* ---- 5. 關於：編輯式排版，左對齊文字 + 全寬實景圖 ---- */
#home-view .about-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  max-width: 760px; margin-inline: 0;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
#home-view .about-text { position: relative; z-index: 1; text-align: left; }
#home-view .about-text .section-title { margin-top: 0.3rem; }
#home-view .about-text > p { text-align: left; max-width: 62ch; margin-inline: 0; }
#home-view .pillars { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2.4rem; max-width: 620px; margin-inline: 0; }
#home-view .pillar {
  border: none; border-radius: 0; background: transparent;
  padding: 1.4rem 0 0; border-top: 1px solid var(--line); text-align: left;
}
#home-view .pillar:hover { transform: none; box-shadow: none; }
#home-view .pillar .num { font-size: 1.5rem; color: var(--gold-deep); }
#home-view .about-visual {
  margin: clamp(3.2rem, 6vw, 5rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--paper-3);
}
#home-view .about-visual img {
  width: 100%;
  height: auto;
  display: block;
}
#home-view .about-visual + .about-visual {
  margin-top: clamp(3.4rem, 7vw, 6rem);
}
/* ---- 6. 療程流程：橫向編輯式時間軸 ---- */
#home-view .steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 3.4rem; border-top: 1px solid var(--line);
}
#home-view .step {
  border: none; border-radius: 0; background: transparent;
  text-align: left; padding: 1.8rem 1.6rem 0;
  border-right: 1px solid var(--line);
}
#home-view .step:last-child { border-right: none; }
#home-view .step:hover { transform: none; box-shadow: none; }
#home-view .step .idx { color: var(--gold-deep); font-size: 3rem; line-height: 1; }
#home-view .step h4 { font-size: 1.12rem; margin: 0.8rem 0 0.5rem; }
#home-view .step p { font-size: 0.9rem; }

/* ---- 7. 評價：通透引文 + 錯落編排 ---- */
#home-view .reviews-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem; margin-top: 3rem; align-items: start;
}
#home-view .review-card {
  border: none; border-top: 1px solid var(--line); background: transparent;
  box-shadow: none; padding: 2.2rem 0 1.8rem; margin: 0;
}
#home-view .review-card:hover { transform: none; box-shadow: none; }
#home-view .review-card::before { right: 0; color: rgba(194,163,107,0.14); }
#home-view .review-card:nth-child(2) { margin-top: 3.4rem; }
#home-view .review-card:nth-child(3) { margin-top: 1.4rem; }

/* ---- 8. 聯絡：精緻細線資訊 + 表單金頂 ---- */
#home-view .contact-grid { position: relative; z-index: 1; gap: clamp(2.4rem, 5vw, 5rem); }
#home-view .contact-item { gap: 1.1rem; }
#home-view .contact-item .ic { border-radius: 50%; }
#home-view .form { border-top: 3px solid var(--gold-deep); }

/* ---- 9. CTA 橫幅：克制留白 ---- */
#home-view .cta-band { padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem); }

/* ---- 10. 滾動錯落淡入 ---- */
#home-view .pillar:nth-child(2){ transition-delay: .12s; }
#home-view .pillar:nth-child(3){ transition-delay: .24s; }
#home-view .step:nth-child(2){ transition-delay: .1s; }
#home-view .step:nth-child(3){ transition-delay: .2s; }
#home-view .step:nth-child(4){ transition-delay: .3s; }
#home-view .review-card:nth-child(2){ transition-delay: .12s; }
#home-view .review-card:nth-child(3){ transition-delay: .24s; }

@media (max-width: 768px) {
  #home-view .about-grid { grid-template-columns: 1fr; max-width: 640px; }
  #home-view .steps { grid-template-columns: 1fr; border-top: none; }
  #home-view .step { border-right: none; border-top: 1px solid var(--line); padding: 1.6rem 0 0; }
  #home-view .reviews-grid { grid-template-columns: 1fr; }
  #home-view .review-card:nth-child(2),
  #home-view .review-card:nth-child(3) { margin-top: 0; }
}

/* ============================================================
   詳情頁 .detail — 去厚重卡片、改編輯式細線
   （內容 / 結構不變，僅視覺收斂）
   ============================================================ */
.detail .eff-card,
.detail .benefit-card,
.detail .d-adv-card,
.detail .d-concern,
.detail .d-step,
.detail .d-cert,
.detail .suitable-callout,
.detail .probe-card,
.detail .feature-card {
  box-shadow: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
}
.detail .eff-card::before,
.detail .feature-card::before,
.detail .probe-card::before { height: 2px; }
/* 區塊之間的細線分隔（編輯式節奏） */
.detail-main .d-block:not(:first-child) {
  border-top: 1px solid var(--line-soft);
  margin-top: 3.6rem; padding-top: 3.4rem;
}
.detail .section-head { margin-bottom: 2.4rem; }
.detail .section-head .eyebrow::before { width: 30px; }
.detail .cards .card { box-shadow: var(--shadow-soft); border-radius: 12px; }

/* footer 按分店分組 (2026-10-09) */
.footer-contact .branch-block{display:flex;flex-direction:column;gap:2px;margin:8px 0 14px;}
.footer-contact .branch-block>span{display:block;max-width:300px;font-size:13px;line-height:1.55;color:var(--ink-soft);word-break:break-word;}
.footer-contact .branch-block .branch-name{font-weight:500;color:var(--ink);margin-bottom:3px;}
