/* ========== 色彩與字體變數 ========== */
:root {
  /* 暗色系：近黑底 + 米白字 + 金色點綴 */
  --text: #ece6da;       /* 主要文字 */
  --text-soft: #9e978b;  /* 次要文字 */
  --bg: #111312;         /* 頁面背景 */
  --surface: #191c1a;    /* 深色區塊背景 */
  --card: #20241f;       /* 卡片背景 */
  --deep: #0a0b0b;       /* 頁尾、底部導覽 */
  --gold: #c8a46b;       /* 金色：重點 */
  --line: #06c755;       /* LINE 綠 */
  --rule: rgba(236, 230, 218, .1);

  --font: "Noto Sans TC", system-ui, sans-serif;
  --radius: 8px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
[hidden] { display: none !important; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 860px; }

/* ========== 按鈕 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .2s;
}
.btn:hover { filter: brightness(1.1); }
.btn-line { background: var(--line); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1712; }
.btn-disabled { background: rgba(255, 255, 255, .08); color: var(--text-soft); cursor: default; }
.btn-disabled:hover { filter: none; }
.btn-sm { padding: .45rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* 圖片佔位（正式版換成實際照片） */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #2b302c, #171a18);
  color: rgba(236, 230, 218, .5);
  font-size: .85rem;
  text-align: center;
}
.ph > span { padding: .4rem .8rem; border: 1px dashed rgba(236, 230, 218, .3); }
.ph-portrait { aspect-ratio: 3 / 4; }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.tags li { padding: .05rem .55rem; font-size: .75rem; color: var(--gold); border: 1px solid rgba(200, 164, 107, .4); border-radius: 999px; }

/* ========== 頂部導覽 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 60px; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.main-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.main-nav a { font-size: .95rem; color: var(--text-soft); transition: color .2s; }
.main-nav a:hover { color: var(--text); }

/* ========== 主視覺 ========== */
.hero { position: relative; display: grid; align-items: center; min-height: 380px; }
.hero-bg { position: absolute; inset: 0; align-items: start; justify-items: end; padding: 1rem; }
/* 照片上疊一層暗色，讓字看得清楚 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 11, 11, .9) 30%, rgba(10, 11, 11, .3));
}
.hero-content { position: relative; z-index: 2; padding: 3rem 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: .1em; }
.hero-lead { margin: .6rem 0 1.4rem; font-size: 1.05rem; color: var(--text-soft); }
.hero-today { margin: 0 0 1.4rem; }
.hero-today b { color: var(--gold); font-size: 1.3rem; margin: 0 .15rem; }

/* ========== 區塊共用 ========== */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--surface); }
.section-tint { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: 1.7rem; font-weight: 700; }
.section-hint { margin: .3rem 0 0; font-size: .9rem; color: var(--text-soft); }

/* ========== 師傅名單 ========== */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.chip {
  padding: .35rem 1rem;
  font: inherit;
  font-size: .88rem;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: rgba(236, 230, 218, .3); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #1a1712; }

.therapist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.therapist { overflow: hidden; background: var(--card); border-radius: var(--radius); }
.therapist-photo { width: 100%; padding: 0; border: 0; font: inherit; cursor: pointer; }
.therapist.is-off .therapist-photo { filter: grayscale(1) brightness(.6); }

.status, .badge-new {
  position: absolute;
  top: 10px;
  font-style: normal;
  font-size: .75rem;
  padding: .1rem .6rem;
  border-radius: 999px;
}
.status { left: 10px; background: rgba(0, 0, 0, .6); color: var(--text); }
.status::before { content: "●"; margin-right: .3rem; font-size: .6rem; vertical-align: 1px; }
.status-today::before { color: #4ade80; }
.status-tomorrow::before { color: var(--gold); }
.status-off::before { color: #888; }
.badge-new { right: 10px; background: var(--gold); color: #1a1712; font-weight: 700; }

.therapist-body { padding: 1rem 1rem 1.1rem; }
.therapist h3 { font-size: 1.15rem; font-weight: 700; }
.therapist h3 small { font-size: .8rem; font-weight: 400; color: var(--text-soft); margin-left: .5rem; }
.therapist-focus { margin: .15rem 0 .6rem; font-size: .88rem; color: var(--text-soft); }

.therapist-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.from { margin: 0; font-size: .82rem; color: var(--text-soft); }
.from b { font-size: 1.1rem; color: var(--text); }

.empty-note { text-align: center; color: var(--text-soft); padding: 2rem 0; }

/* ========== 療程價目 ========== */
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.menu-row:first-child { border-top: 1px solid var(--rule); }
.menu-row h3 { font-size: 1.1rem; font-weight: 700; }
.menu-row p { margin: .1rem 0 0; font-size: .88rem; color: var(--text-soft); }
.menu-row dl { display: flex; gap: 2rem; margin: 0; }
.menu-row dl div { text-align: right; }
.menu-row dt { font-size: .8rem; color: var(--text-soft); }
.menu-row dd { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--gold); }

/* ========== 預約方式 ========== */
.steps { display: grid; gap: .8rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--card); border-radius: var(--radius); }
.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  font-size: .9rem;
  font-weight: 700;
  color: #1a1712;
  background: var(--gold);
  border-radius: 50%;
}

/* ========== 常見問題 ========== */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--text-soft); }

/* ========== 頁尾 ========== */
.site-footer { padding: 2.5rem 0; background: var(--deep); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-brand { margin: 0; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.footer-right { text-align: right; }
.footer-note, .copyright { margin: .5rem 0 0; font-size: .82rem; color: var(--text-soft); }

/* ========== 師傅彈窗 ========== */
.profile {
  width: min(780px, 100% - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.profile::backdrop { background: rgba(0, 0, 0, .75); }
.profile-inner { display: grid; grid-template-columns: 1fr 1.2fr; }
.profile-body { padding: 2rem; }
.profile-body h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .6rem; }
.profile-body > p { margin: 1rem 0; color: var(--text-soft); }
.profile-info { margin: 0 0 1.5rem; }
.profile-info div { display: flex; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--rule); font-size: .92rem; }
.profile-info dt { flex: 0 0 4.5em; color: var(--text-soft); }
.profile-info dd { margin: 0; }
.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  background: rgba(0, 0, 0, .5);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* 手機版底部導覽（桌機隱藏） */
.bottom-nav { display: none; }

/* ========== 平板 ========== */
@media (max-width: 1024px) {
  .therapist-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head { flex-wrap: wrap; }
  .filter { margin-left: 0; width: 100%; }
}

/* ========== 手機 ========== */
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .main-nav, .site-header .btn { display: none; }

  .hero { min-height: 300px; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 11, 11, .92) 35%, rgba(10, 11, 11, .4)); }
  .hero-content { align-self: end; padding: 2rem 0; }

  .section { padding: 3rem 0; }
  .section-head h2 { font-size: 1.45rem; }

  /* 篩選列改成橫向滑動 */
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; width: auto; }
  .filter::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  .therapist-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .therapist-body { padding: .8rem .8rem 1rem; }
  .therapist h3 { font-size: 1.05rem; }
  .therapist h3 small { display: block; margin: 0; }
  .therapist-foot { flex-direction: column; align-items: stretch; }
  .therapist-foot .btn { width: 100%; }

  .menu-row { grid-template-columns: 1fr; gap: .6rem; }
  .menu-row dl div { text-align: left; }

  .btn-lg { width: 100%; }
  .footer-right { text-align: left; }

  .profile-inner { grid-template-columns: 1fr; }
  .profile-inner .ph { aspect-ratio: 4 / 3; }
  .profile-body { padding: 1.5rem; }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: 64px;
    background: var(--deep);
    color: var(--text-soft);
    font-size: .8rem;
    text-align: center;
    border-top: 1px solid var(--rule);
  }
  .bottom-cta {
    margin: -16px 4px 0;
    padding: .75rem 0;
    color: #fff;
    background: var(--line);
    border-radius: 999px;
    font-weight: 700;
  }
}
