/* 阿姆姆 男士身心調理 — 共用樣式 */
:root {
  --bg: oklch(0.205 0.018 165);
  --surface: oklch(0.245 0.02 165);
  --surface-2: oklch(0.285 0.022 165);
  --fg: oklch(0.945 0.006 120);
  --muted: oklch(0.76 0.012 140);
  --border: oklch(0.36 0.02 165);
  --accent: oklch(0.74 0.095 62);
  --accent-hover: oklch(0.82 0.085 62);
  --on-accent: oklch(0.19 0.02 165);
  --paper: oklch(0.965 0.004 165);
  --paper-2: oklch(0.925 0.007 165);
  --ink: oklch(0.23 0.02 165);
  --ink-muted: oklch(0.45 0.015 165);
  --ink-border: oklch(0.84 0.01 165);
  --danger: oklch(0.68 0.16 28);
  --danger-ink: oklch(0.5 0.17 28);
  --ok: oklch(0.72 0.11 155);
  --font-display: "Noto Serif TC", "Songti TC", serif;
  --font-body: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; letter-spacing: 0.04em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding: 112px 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper :focus-visible { outline-color: var(--ink); }
.section--surface { background: var(--surface); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.6; }
.section--paper .eyebrow { color: var(--ink-muted); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 20px; }
.lead { color: var(--muted); max-width: 40em; font-size: 17px; }
.section--paper .lead { color: var(--ink-muted); }

/* 待填標籤 */
.tbd {
  display: inline-flex; align-items: center;
  font-size: 12px; letter-spacing: 0.08em; line-height: 1;
  padding: 6px 10px; border: 1px dashed currentColor; border-radius: 999px;
  color: var(--muted); white-space: nowrap;
}
.section--paper .tbd { color: var(--ink-muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(0.205 0.018 165 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 0.16em; }
.brand-sub { font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 15px; padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center; border-radius: var(--radius);
  color: var(--fg);
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--fg);
  font: inherit; font-size: 14px; padding: 0 16px; height: 44px; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.text-link {
  color: var(--fg); text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--border); text-decoration-thickness: 1px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.text-link:hover { text-decoration-color: var(--accent); }
.section--paper .text-link { color: var(--ink); text-decoration-color: var(--ink-border); }
.section--paper .text-link:hover { text-decoration-color: var(--ink); }

/* Disclaimer */
.disclaimer {
  margin-top: 32px; padding: 18px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; line-height: 1.8; color: var(--muted);
  max-width: 46em;
}
.section--paper .disclaimer { border-color: var(--ink-border); color: var(--ink-muted); background: var(--paper); }
.disclaimer strong { color: var(--fg); font-weight: 500; margin-right: 6px; }
.section--paper .disclaimer strong { color: var(--ink); }

/* Photo slot（照片待提供） */
.photo-slot {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, oklch(0.34 0.03 70 / 0.55), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: flex-end;
}
.photo-slot .photo-label {
  margin: 16px; padding: 8px 12px; font-size: 12px; letter-spacing: 0.08em;
  background: oklch(0.18 0.015 165 / 0.85); color: var(--fg);
  border-radius: 2px; box-shadow: 0 4px 16px oklch(0 0 0 / 0.25);
}

/* Floating CTA */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta .btn { min-width: 152px; box-shadow: 0 10px 30px oklch(0 0 0 / 0.35); }
.float-cta .btn--dm { background: oklch(0.18 0.016 165 / 0.92); color: var(--fg); border-color: var(--border); backdrop-filter: blur(8px); }
.float-cta .btn--dm:hover { background: var(--surface-2); border-color: var(--muted); }
.float-cta svg { width: 18px; height: 18px; flex: none; }
.float-spacer { height: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 120px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-size: 13px; letter-spacing: 0.24em; color: var(--fg); margin-bottom: 14px; font-family: var(--font-body); font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--fg); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-brand .brand-name { color: var(--fg); }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; letter-spacing: 0.08em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-cta { transition: none; }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .brand-sub { display: none; }
  .float-cta {
    left: 0; right: 0; bottom: 0; flex-direction: row-reverse; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: oklch(0.18 0.016 165 / 0.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .float-cta .btn { min-width: 0; box-shadow: none; min-height: 48px; padding: 0 12px; }
  .float-cta .btn--primary { flex: 2; }
  .float-cta .btn--dm { flex: 1; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== v3 共用元件 ===== */
.nav { flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 14px; padding: 10px 11px; }

/* 文章卡片（首頁預覽、最新消息頁共用） */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink-border); border-radius: var(--radius);
  transition: border-color .2s, transform .2s; text-align: left; font: inherit; padding: 0; cursor: pointer;
}
.post:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-cover {
  aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  background: radial-gradient(90% 90% at 25% 15%, oklch(0.4 0.04 70 / 0.5), transparent 60%), oklch(0.27 0.022 165);
  display: flex; align-items: flex-end;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover span { margin: 14px; font-size: 12px; letter-spacing: 0.1em; color: var(--fg); background: oklch(0.18 0.015 165 / 0.85); padding: 6px 10px; border-radius: 2px; }
.post-body { padding: 22px 24px 26px; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); letter-spacing: 0.06em; margin-bottom: 10px; }
.post h3 { font-size: 20px; margin-bottom: 10px; }
.post p { color: var(--ink-muted); font-size: 15px; }
.demo-tag { display: inline-block; font-size: 12px; letter-spacing: 0.08em; padding: 2px 8px; border: 1px dashed var(--ink-muted); border-radius: 999px; color: var(--ink-muted); }

/* 分頁按鈕 */
.tabbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar .tab {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink-border);
  background: transparent; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; letter-spacing: 0.06em;
}
.tabbar .tab:hover { background: var(--paper-2); }
.tabbar .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabbar .tab[aria-selected="true"]:hover { background: oklch(0.32 0.02 165); color: var(--paper); }

/* 對話框（須知、放大圖、文章） */
dialog.modal {
  width: min(760px, 100% - 32px); max-height: calc(100svh - 48px); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px oklch(0 0 0 / 0.5);
}
dialog.modal::backdrop { background: oklch(0.12 0.01 165 / 0.75); }
.modal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; background: var(--paper); border-bottom: 1px solid var(--ink-border); }
.modal-head h2 { font-size: 20px; }
.modal-close { min-width: 44px; min-height: 44px; border: 1px solid var(--ink-border); background: transparent; color: var(--ink); border-radius: var(--radius); font: inherit; cursor: pointer; }
.modal-close:hover { background: var(--paper-2); }
.modal-body { padding: 24px; }
dialog.modal--image { width: min(900px, 100% - 32px); background: var(--bg); border-color: var(--border); }
dialog.modal--image .modal-head { background: var(--bg); border-color: var(--border); color: var(--fg); }
dialog.modal--image .modal-close { color: var(--fg); border-color: var(--border); }
dialog.modal--image .modal-close:hover { background: var(--surface-2); }

/* 服務須知條列（about 頁、預約頁彈窗共用） */
.notice-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notice-list li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--ink-border); }
.notice-list li::before { content: "0" counter(n); font-family: var(--font-display); color: var(--ink-muted); font-size: 18px; padding-top: 2px; }
.notice-list h3 { font-size: 19px; margin-bottom: 8px; }
.notice-list p { color: var(--ink-muted); }

@media (max-width: 1080px) { .nav a { padding: 10px 8px; } }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } .tabbar .tab { padding: 0 16px; } }

/* LINE */
.btn--line { background: var(--accent); color: var(--on-accent); }
.btn--line:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn svg.line-ico { width: 20px; height: 20px; flex: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px); z-index: 80; padding: 12px 20px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px oklch(0 0 0 / 0.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .float-cta .btn--line { flex: 1; } }

/* 已放入真實圖片的版位 */
.photo-slot.has-img { background: var(--surface-2); }
.photo-slot.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-od-id="therapist-photo"] > img, [data-od-id="about-photo"] > img { object-position: 50% 20%; }
/* 塔羅／紫微卡片：圖片改為一般排版，確保一定撐出高度 */
.mind-card .photo-slot.has-img { aspect-ratio: auto; display: block; }
.mind-card .photo-slot.has-img > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* ── 無印風（暖白・淺木色）：覆蓋原本深色配色。舊版備份在 site-dark.css ── */
:root {
  --bg: oklch(0.965 0.008 85);
  --surface: oklch(0.935 0.012 85);
  --surface-2: oklch(0.905 0.016 83);
  --fg: oklch(0.27 0.01 80);
  --muted: oklch(0.5 0.012 80);
  --border: oklch(0.86 0.014 83);
  --accent: oklch(0.52 0.07 68);
  --accent-hover: oklch(0.44 0.07 68);
  --on-accent: oklch(0.985 0.005 85);
  --paper: oklch(0.99 0.004 85);
  --paper-2: oklch(0.95 0.01 85);
  --ink: oklch(0.27 0.01 80);
  --ink-muted: oklch(0.5 0.012 80);
  --ink-border: oklch(0.88 0.012 83);
  --radius: 6px;
}
.site-header { background: oklch(0.965 0.008 85 / 0.92); }
.photo-slot { background: var(--surface-2); }
.photo-slot .photo-label { background: oklch(0.99 0.004 85 / 0.9); box-shadow: 0 4px 16px oklch(0.3 0.01 80 / 0.12); }
.float-cta .btn { box-shadow: 0 8px 24px oklch(0.3 0.01 80 / 0.18); }
.float-cta .btn--dm { background: oklch(0.99 0.004 85 / 0.92); }
.post-cover { background: var(--surface-2); }
.post-cover span { background: oklch(0.99 0.004 85 / 0.9); }
.tabbar .tab[aria-selected="true"]:hover { background: oklch(0.36 0.01 80); }
dialog.modal { box-shadow: 0 30px 80px oklch(0.3 0.01 80 / 0.3); }
dialog.modal::backdrop { background: oklch(0.3 0.01 80 / 0.5); }
.toast { box-shadow: 0 10px 30px oklch(0.3 0.01 80 / 0.2); }
@media (max-width: 860px) { .nav { background: var(--bg); } }
.pin-tag { display: inline-block; font-size: 12px; letter-spacing: 0.1em; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
