/* 有一占 Youi Zen — 單頁預約網站
   Layout: 置中單欄敘事，奶油底與白色區塊交替；班表與預約放在白色卡片內。 */
:root {
  /* 品牌配色（依指定色票） */
  --bg: #F7F4EF;          /* 主背景 */
  --surface: #FFFFFF;     /* 內容背景 */
  --ink: #333A35;         /* 主要文字 */
  --ink-soft: #77736C;    /* 次要文字 */
  --btn: #5A53AC;         /* 主要按鈕：有一占深紫 */
  --btn-hover: #4A4497;
  --line: #E6E1D9;        /* 邊框 */
  --line-strong: #D6D0C6;
  --wash: #FBF9F6;        /* 極淺底（格子、提示） */
  --ink-warm: #3F3D39;    /* 原預約頁標題色 */
  --eyebrow: #b3ab9e;     /* 原預約頁小標色 */
  --pill-line: #E5E2DB;

  /* 老師標記色（低彩度） */
  --t-sage: #6F7F6C;  --t-sage-bg: #EEF1EC;
  --t-clay: #9A7461;  --t-clay-bg: #F5EEEA;
  --t-stone: #7D7768; --t-stone-bg: #F1EFEA;
  --t-slate: #5E6B73; --t-slate-bg: #EDF0F2;
  /* 班表老師標籤（低彩度實色，對應班表海報：Cindi 粉、柏芸 綠、Dici 藍、由一 紫） */
  --t-rose: #8A4A52;   --t-rose-bg: #F1DCDD;
  --t-green: #46653F;  --t-green-bg: #DCE7D7;
  --t-blue: #3D5B76;   --t-blue-bg: #D9E3EC;
  --t-lav: #4F4A9A;    --t-lav-bg: #E3DFF6;
  --t-past: #8A857C;   --t-past-bg: #EEECE7;

  /* 字體 */
  --f-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --wrap: 1080px;
  --narrow: 620px;
  --radius: 2px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: #fff; padding: 8px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: calc(var(--narrow) + 48px); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(247, 244, 239, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark img { height: 34px; width: auto; }
.wordmark-text { display: flex; align-items: baseline; gap: 10px; }
.wm-zh { font-family: var(--f-serif); font-weight: 600; font-size: 19px; letter-spacing: .2em; }
.wm-en { font-family: var(--f-serif); font-size: 13px; letter-spacing: .18em; color: var(--ink-soft); }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .14em; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; margin-right: -10px; }
.nav-toggle-bar { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle-bar:nth-child(1) { top: 18px; }
.nav-toggle-bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: var(--narrow); margin: 0 auto clamp(36px, 5vw, 52px); display: grid; gap: 10px; justify-items: center; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: .28em; color: var(--eyebrow); text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 3vw, 30px); letter-spacing: .06em; line-height: 1.5; color: var(--ink-warm); text-wrap: balance; }
.section-lead { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 34em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 30px; border-radius: 999px;
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .08em; text-decoration: none;
  border: 1px solid var(--btn); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { background: #fff; color: var(--ink-warm); border-color: var(--pill-line); }
.btn-ghost:hover { border-color: var(--ink-warm); }
.btn[aria-disabled="true"] { border-color: var(--line-strong); color: var(--ink-soft); background: var(--wash); cursor: not-allowed; }
.btn-line { background: var(--btn); color: #fff; width: 100%; margin-top: 28px; }
.btn-line:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

/* ---------- Segmented tabs ---------- */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; background: var(--surface); gap: 3px; }
.seg-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 14px; letter-spacing: .14em; padding: 9px 22px; min-height: 42px; cursor: pointer; border-radius: 1px;
  transition: background .2s, color .2s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-selected="true"] { background: var(--btn); color: #fff; }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-month { margin: 0; font-family: var(--f-serif); font-size: 20px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

.cal-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head { border-bottom: 1px solid var(--line); background: var(--wash); }
.cal-head span { text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); padding: 10px 0; }
.cal-head span:first-child, .cal-head span:last-child { color: var(--ink); }

.cal-day {
  min-height: 112px; padding: 10px 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left;
  background: var(--surface); font: inherit; color: inherit; border-top: 0; border-left: 0;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-blank { background: var(--wash); }
.cal-day.has-shift { cursor: pointer; transition: background .2s; }
.cal-day.has-shift:hover { background: #FAF8F4; }
.cal-num { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-soft); letter-spacing: .04em; line-height: 1; }
.cal-day.is-today .cal-num { color: #fff; background: #3E4640; border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; margin: -5px 0 -5px -5px; }
.cal-day.is-past { background: #FCFBF9; }
.cal-day.is-past .cal-num { color: #B5B0A6; }
.cal-day.is-past .chip { --tc: var(--t-past); --tbg: var(--t-past-bg); }
.cal-names { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.chip {
  display: block; font-size: 13px; letter-spacing: .06em; line-height: 1.4; padding: 3px 8px; border-radius: 2px;
  color: var(--tc); background: var(--tbg); border: 1px solid transparent; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.chip .chip-short { display: none; }
.tone-sage  { --tc: var(--t-sage);  --tbg: var(--t-sage-bg); }
.tone-clay  { --tc: var(--t-clay);  --tbg: var(--t-clay-bg); }
.tone-stone { --tc: var(--t-stone); --tbg: var(--t-stone-bg); }
.tone-slate { --tc: var(--t-slate); --tbg: var(--t-slate-bg); }
.tone-rose  { --tc: var(--t-rose);  --tbg: var(--t-rose-bg); }
.tone-green { --tc: var(--t-green); --tbg: var(--t-green-bg); }
.tone-blue  { --tc: var(--t-blue);  --tbg: var(--t-blue-bg); }
.tone-lav   { --tc: var(--t-lav);   --tbg: var(--t-lav-bg); }

.cal-empty { padding: 56px 20px; text-align: center; }
.cal-empty-title { margin: 0; font-family: var(--f-serif); font-size: 18px; letter-spacing: .2em; }
.cal-empty-text { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }

.legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .chip { font-size: 12px; padding: 1px 7px; }

/* ---------- Readers ---------- */
.readers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.reader-photo { aspect-ratio: 4 / 5; background: var(--wash); border-bottom: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; letter-spacing: .2em; overflow: hidden; max-width: 100%; }
.reader-photo img { width: 100%; height: 100%; object-fit: cover; }
.reader-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.reader-name { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: 20px; letter-spacing: .16em; }
.reader-intro { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.9; }
.reader-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.reader-tags li { font-size: 12px; letter-spacing: .1em; border: 1px solid var(--line); padding: 2px 10px; color: var(--ink-soft); }
.reader-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.reader-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); letter-spacing: .08em; }
.reader-links a:hover { color: var(--ink); border-color: var(--ink); }
.reader .btn { margin-top: auto; width: 100%; padding: 0 16px; }

/* ---------- Booking ---------- */
.booking-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); max-width: 860px; margin: 0 auto; }
.seg-services { display: flex; flex-wrap: wrap; margin: 0 auto 20px; width: fit-content; max-width: 100%; }
.rv-mount { min-height: 0; }
.rv-mount:empty { display: none; }
.rv-state { text-align: center; padding: clamp(32px, 6vw, 56px) 8px; display: grid; justify-items: center; gap: 14px; }
.rv-badge { font-size: 12px; letter-spacing: .24em; color: var(--t-clay); border: 1px solid #E3D5CB; background: var(--t-clay-bg); padding: 4px 14px; }
.rv-state h3 { margin: 4px 0 0; font-family: var(--f-serif); font-weight: 500; font-size: 20px; letter-spacing: .16em; }
.rv-state p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 30em; }
.rv-state .btn { margin-top: 10px; }
.rv-url { font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; word-break: break-all; }
.rv-loading { color: var(--ink-soft); font-size: 14px; letter-spacing: .2em; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.course { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.course-tag { margin: 0; font-family: var(--f-serif); font-size: 11px; letter-spacing: .34em; color: var(--ink-soft); }
.course-name { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: 21px; letter-spacing: .14em; }
.course-desc { margin: 0; font-size: 14px; line-height: 1.95; color: var(--ink); flex: 1; }
.course .btn { align-self: flex-start; margin-top: 10px; min-height: 46px; padding: 0 28px; }
.pending-tag { font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); min-width: 0; display: flex; flex-direction: column; }
.panel-title { margin: 0 0 20px; font-family: var(--f-serif); font-weight: 500; font-size: 18px; letter-spacing: .16em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-list { margin: 0; display: grid; gap: 16px; }
.info-list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.info-list dt { color: var(--ink-soft); font-size: 13px; letter-spacing: .14em; padding-top: 1px; }
.info-list dd { margin: 0; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.mono { letter-spacing: .02em; font-size: 14px; }
.notice-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: 14px; }
.notice-pending { border: 1px dashed var(--line-strong); background: var(--wash); padding: 22px; text-align: center; color: var(--ink-soft); font-size: 14px; flex: 1; display: grid; place-content: center; gap: 4px; }
.notice-pending strong { color: var(--ink); font-weight: 500; letter-spacing: .16em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px; text-align: center; }
.footer-inner { display: grid; gap: 8px; justify-items: center; }
.footer-inner p { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); }
.footer-mark .wm-zh { font-size: 16px; color: var(--ink); }
.footer-link { font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ================= Tablet ================= */
@media (max-width: 960px) {
  .readers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 20px; }
}

/* ================= Mobile ================= */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(24px, env(safe-area-inset-right, 0px)) 16px max(24px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.is-active { border-bottom-color: var(--line); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .wm-en { display: none; }

  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-toolbar .seg { width: 100%; }
  .cal-toolbar .seg-btn { flex: 1; padding: 9px 8px; }
  .cal-month { text-align: center; }

  /* 手機版月曆：格子只放日期 + 老師簡稱，完整名單在下方列表 */
  .cal-day { min-height: 64px; padding: 6px 3px 6px; gap: 4px; align-items: center; }
  .cal-num { font-size: 12px; }
  .cal-day.is-today .cal-num { margin: -4px 0 -2px; width: 22px; height: 22px; }
  .cal-names { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .chip { padding: 0; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; line-height: 1; border-radius: 50%; }
  .chip .chip-full { display: none; }
  .chip .chip-short { display: inline; }
  .legend .chip { width: 20px; }

  .readers-grid, .course-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .reader { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .reader-photo { aspect-ratio: auto; height: 100%; min-height: 140px; border-bottom: 0; border-right: 1px solid var(--line); }
  .reader-body { padding: 18px; }

  .btn { width: 100%; padding: 0 20px; }
  .course .btn { align-self: stretch; }
  .info-list > div { grid-template-columns: 72px minmax(0, 1fr); }

  .mobile-cta {
    display: flex; position: fixed; z-index: 15;
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 50px; align-items: center; justify-content: center;
    background: var(--btn); color: #fff; text-decoration: none; letter-spacing: .28em; font-size: 15px;
    border-radius: var(--radius); box-shadow: 0 6px 20px rgba(51, 58, 53, .18);
    transition: opacity .25s, transform .25s;
  }
  .mobile-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .site-footer { padding-bottom: calc(44px + 70px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .chip { width: 18px; height: 18px; font-size: 10px; }
}

/* ---------- 預約：服務選擇（有一占紫） ---------- */
.booking-card { --lav: #C5C0FB; --violet: #5A53AC; }
.svc-tabs { display: flex !important; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.svc-tabs[hidden] { display: none !important; }
.svc-btn {
  appearance: none; font: inherit; cursor: pointer; min-width: 0; max-width: 100%;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: 15px; letter-spacing: .06em; line-height: 1.4; text-align: left;
  transition: border-color .2s, background .2s, color .2s;
}
.svc-btn:hover { border-color: var(--violet); color: var(--violet); }
.svc-btn[aria-selected="true"] { background: var(--lav); border-color: var(--lav); color: var(--ink); }
.svc-btn[aria-selected="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex: none; }
.svc-btn:focus-visible { outline-color: var(--violet); }
.booking-card .rv-state .btn-primary { background: var(--violet); border-color: var(--violet); }
.booking-card .rv-state .btn-primary:hover { background: #4A4497; border-color: #4A4497; }
@media (max-width: 520px) { .svc-btn { width: 100%; justify-content: flex-start; } }
.svc-label { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); }

.band .panel { background: var(--bg); }

/* ---------- 預約：服務說明（摺疊） ---------- */
.svc-info { display: grid; gap: 10px; margin: 0 0 24px; }
.svc-notice { margin: 0; font-size: 13px; letter-spacing: .04em; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; }
.svc-fold { border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.svc-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 16px; font-size: 15px; letter-spacing: .08em; color: var(--ink);
}
.svc-fold > summary::-webkit-details-marker { display: none; }
.svc-fold > summary:hover .svc-fold-title { color: #5A53AC; }
.svc-fold > summary:focus-visible { outline: 2px solid #5A53AC; outline-offset: -2px; }
.svc-fold-title { font-family: var(--f-serif); }
.svc-fold-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5A53AC; letter-spacing: .08em; white-space: nowrap; }
.svc-fold-hint::before { content: "展開"; }
.svc-fold-hint::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.svc-fold[open] > summary { border-bottom: 1px solid var(--line); }
.svc-fold[open] .svc-fold-hint::before { content: "收合"; }
.svc-fold[open] .svc-fold-hint::after { transform: rotate(-135deg) translateY(-2px); }
.svc-fold-body { padding: 18px 18px 20px; font-size: 14px; line-height: 1.95; color: var(--ink); display: grid; gap: 12px; }
.svc-fold-body a { color: #5A53AC; text-underline-offset: 3px; }
.svc-h { margin: 6px 0 0; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.svc-p { margin: 0; overflow-wrap: anywhere; }
.svc-divider { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.svc-alert { padding: 12px 14px; border-radius: 2px; border: 1px solid; overflow-wrap: anywhere; }
.svc-alert-info { background: #F4F2FE; border-color: #DEDAFC; }
.svc-alert-warning { background: #FBF7EE; border-color: #EADFC6; }
.svc-guidelines { white-space: pre-line; }
@media (max-width: 520px) {
  .svc-fold-body { padding: 14px 14px 16px; font-size: 14px; }
  .svc-fold > summary { padding: 12px 14px; font-size: 14px; }
}

/* ---------- 預約規則（小工具正上方） ---------- */
.booking-rules { margin: 0 0 24px; padding: 20px 22px 22px; background: var(--bg); border: 1px solid #C5C0FB; border-radius: 2px; }
.rules-title { margin: 0 0 14px; font-family: var(--f-serif); font-weight: 500; font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.rules-group { min-width: 0; }
.rules-heading { margin: 0 0 8px; font-size: 13px; letter-spacing: .16em; color: #5A53AC; font-weight: 500; }
.rules-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.85; }
.rules-list li { position: relative; padding-left: 16px; overflow-wrap: anywhere; }
.rules-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: #5A53AC; }
.rules-list a, .svc-notes a { color: #5A53AC; text-underline-offset: 3px; }
.svc-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-notes li { position: relative; padding-left: 16px; overflow-wrap: anywhere; }
.svc-notes li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: #C5C0FB; }
.svc-intro { display: grid; gap: 12px; }
.store-panel { max-width: 640px; margin: 0 auto; }
.store-panel .info-list a { color: #5A53AC; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-rules { padding: 16px 16px 18px; }
}

/* 順序：小工具在上，服務說明與預約規則在下 */
.svc-info { margin: 28px 0 12px; }
.booking-rules { margin: 0; }
.rv-mount + .rv-state:not([hidden]) + .svc-info { margin-top: 12px; }

/* 注意事項：預約規則併入摺疊區 */
.rules-stack { display: grid; gap: 16px; }
.svc-info { margin-bottom: 0; }

/* ---------- 跟由一老師學占卜：單一課程展示 ---------- */
.course-feature {
  max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: clamp(18px, 3vw, 32px);
}
.course-feature.no-dm { grid-template-columns: minmax(0, 1fr); max-width: 640px; text-align: center; }
.course-dm { display: block; min-width: 0; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); line-height: 0; }
.course-dm img { width: 100%; height: auto; display: block; }
.course-dm:focus-visible { outline: 2px solid #5A53AC; outline-offset: 3px; }
.course-body { min-width: 0; display: grid; gap: 14px; justify-items: start; padding-block: 8px; }
.course-feature.no-dm .course-body { justify-items: center; }
.course-body .course-tag { margin: 0; font-size: 11px; letter-spacing: .34em; color: var(--eyebrow); }
.course-body .course-name { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(24px, 3vw, 30px); letter-spacing: .12em; color: var(--ink-warm); line-height: 1.4; }
.course-body .course-desc { margin: 0; font-size: 15px; line-height: 2; color: var(--ink); }
.course-rule { width: 40px; border: 0; border-top: 1px solid var(--line-strong); margin: 6px 0; }
.course-guide { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.btn-course { margin-top: 6px; background: #5A53AC; border-color: #5A53AC; color: #fff; }
.btn-course:hover { background: #4A4497; border-color: #4A4497; }
@media (max-width: 760px) {
  .course-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 14px 14px 22px; }
  .course-body { padding: 0 6px; }
  .btn-course { width: 100%; }
}

/* ---------- Footer：品牌關係 ---------- */
.footer-inner { gap: 10px; }
.footer-inner .footer-brand { margin: 0; font-family: var(--f-serif); font-size: 14px; letter-spacing: .14em; color: var(--ink); }
.footer-inner .footer-link { font-size: 13px; letter-spacing: .1em; color: #5A53AC; border-bottom-color: #C5C0FB; padding-bottom: 2px; }
.footer-inner .footer-link:hover { border-bottom-color: #5A53AC; }
.footer-inner .footer-copy { margin: 6px 0 0; font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }

/* 老師圖例：電腦版不顯示（格子內已有完整姓名）；手機版保留，用來對照 C／柏／D／由 簡稱 */
@media (min-width: 681px) { .legend { display: none !important; } }


/* =========================================================
   手機版細節優化（2026-10-24）
   只在窄螢幕生效，桌面版不受影響；節奏參考由一塔羅預約諮詢頁的手機版
   （小標 10px、標題 26px 宋體、內文 13–14px、區塊內距 44px 22px）。
   ========================================================= */
.course-dm-hint { display: none; }
.footer-part { white-space: nowrap; }

@media (max-width: 680px) {
  /* 區塊節奏 */
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; gap: 8px; }
  .section-title { font-size: 24px; }
  .section-lead { font-size: 13px; line-height: 1.8; text-wrap: balance; text-wrap: pretty; }
  #about.yth-ed { padding-top: 0; }               /* 詩句到門市影片之間不再疊三層留白 */
  #about .yth-ed-inner { padding-left: 20px; padding-right: 20px; }   /* 與其他區塊左右對齊 */

  /* 班表：簡稱圓點與日期稍大，仍維持七欄 */
  .cal-day { min-height: 60px; }
  .cal-num { font-size: 13px; }

  /* 預約區：拿掉外層卡片，讓預約工具與說明文字更寬 */
  .booking-card { background: transparent; border: 0; padding: 0; }
  .svc-tabs { margin-bottom: 18px; }
  .svc-info { margin-top: 22px; gap: 10px; }
  .svc-fold > summary { padding: 12px 14px; min-height: 50px; }
  .svc-fold-body { padding: 14px 14px 16px; font-size: 14px; line-height: 1.85; gap: 10px; }
  .svc-alert { padding: 10px 12px; }

  /* 門市資訊 */
  .panel { padding: 22px 20px 24px; }
  .panel-title { margin-bottom: 14px; padding-bottom: 14px; }
  .info-list { gap: 12px; }
  .info-list dd { word-break: keep-all; overflow-wrap: anywhere; }
  .btn-line { margin-top: 22px; }

  /* 招生 DM：滿版顯示，下方提示可放大 */
  .course-feature { padding: 0 0 22px; gap: 18px; overflow: hidden; }
  .course-dm { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .course-dm-hint { display: block; padding: 8px 0 10px; font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); text-align: center; line-height: 1.4; background: var(--surface); }
  .course-body { padding: 0 20px; gap: 12px; }

  /* 頁尾：從「｜」處分成兩行；固定預約按鈕不再出現在頁尾，底部留白改回一般 */
  .footer-brand .footer-sep { display: none; }
  .footer-brand .footer-part { display: block; }
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 360px) and (max-width: 680px) {
  .chip { width: 22px; height: 22px; font-size: 12px; }
}

@media (max-width: 400px) {
  /* 門市資訊：標題在上、內容在下，避免「營業時間」斷行 */
  .info-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .info-list dt { font-size: 12px; }
}

@media (max-width: 380px) {
  /* 首頁兩顆按鈕：上下等寬排列 */
  .yth-ed-actions { flex-direction: column; }
  .yth-ed-actions .yth-ed-cta { width: 100%; text-align: center; }
}

/* =========================================================
   Google 試算表串接（2026-10-26）
   ========================================================= */
/* 老師顏色：試算表「老師管理」顏色選項對應 */
.tone-apricot { --tc: #9A5B37; --tbg: #F6E5D8; }   /* 杏桃 */
.tone-tea     { --tc: #7A634C; --tbg: #EEE6DC; }   /* 奶茶 */
.tone-olive   { --tc: #5E6430; --tbg: #E8EAD6; }   /* 橄欖 */
/* 灰藍＝slate、薰衣草紫＝lav、霧藍＝blue、鼠尾草綠＝green、玫瑰粉＝rose（沿用原色） */

/* 服務按鈕上的小標籤（新服務、期間限定） */
.svc-tag {
  display: inline-block; flex: none; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; letter-spacing: .1em; line-height: 1.7;
  color: #5A53AC; background: #fff; border: 1px solid #C5C0FB;
}

/* 首頁推薦 */
.featured { background: #F7F4EF; padding-block: 0 clamp(56px, 8vw, 88px); }
.featured-eyebrow { text-align: center; margin-bottom: 18px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 960px; margin: 0 auto; }
.featured-grid.is-single { max-width: 620px; }
.featured-card {
  min-width: 0; display: grid; gap: 10px; justify-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #C5C0FB; border-radius: 2px;
  padding: clamp(24px, 4vw, 34px) clamp(20px, 4vw, 36px);
}
.featured-tag { margin: 0; font-size: 11px; letter-spacing: .2em; color: #5A53AC; }
.featured-name { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: .12em; color: var(--ink-warm); line-height: 1.5; }
.featured-desc { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink); max-width: 30em; }
.featured-meta { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); }
.featured-btn { margin-top: 6px; background: #5A53AC; border-color: #5A53AC; color: #fff; }
.featured-btn:hover { background: #4A4497; border-color: #4A4497; }
@media (max-width: 680px) {
  .featured { padding-block: 0 48px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .featured-card { padding: 24px 20px; }
  .featured-btn { width: 100%; }
}

/* 多個課程時上下排列 */
.course-feature + .course-feature { margin-top: clamp(20px, 3vw, 32px); }

/* 次月班表尚未公布的提示：長句換行平均 */
.cal-empty-title { line-height: 1.8; text-wrap: balance; }
.cal-empty-title .nobr { display: inline-block; }
@media (max-width: 680px) { .cal-empty-title { font-size: 16px; letter-spacing: .12em; } }

/* 預約建立後直接前往付款：隱藏小工具內建的「預約已送出」成功畫面與「查看預約單」按鈕 */
.rv-service #resultStateSuccess,
.rv-service #btnViewReservation { display: none !important; }
.rv-redirect { text-align: center; padding: 28px 12px; display: grid; gap: 8px; justify-items: center; }
.rv-redirect-title { margin: 0; font-family: var(--f-serif); font-size: 18px; letter-spacing: .14em; color: var(--ink); }
.rv-redirect-text { margin: 0; font-size: 13px; color: var(--ink-soft); }
.rv-redirect-link { margin-top: 8px; background: #5A53AC; border-color: #5A53AC; color: #fff; }

/* Reservalue 服務介紹中的條列（如有） */
.svc-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; overflow-wrap: anywhere; }

/* ---------- 價格（2026-11：資料直接取自 Reservalue） ---------- */
/* 服務按鈕上的起價 */
.svc-price { flex: none; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-btn[aria-selected="true"] .svc-price { color: var(--ink); }
.svc-btn:hover .svc-price { color: inherit; }
@media (max-width: 520px) {
  .svc-btn { padding: 11px 18px; column-gap: 8px; }
  .svc-btn .svc-name { flex: 1 1 0; min-width: 0; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
  .svc-btn .svc-price { margin-left: auto; }
}
/* 價格方案 */
.price-plan { display: grid; gap: 6px; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-name { min-width: 0; overflow-wrap: anywhere; }
.price-note { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; line-height: 1.6; }
.price-amount { flex: none; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink); font-weight: 500; white-space: nowrap; }
.price-sub { margin: 10px 0 0; }
.price-foot { margin: 6px 0 0; font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
/* 首頁推薦卡片的價格 */
.featured-price { margin: 0; font-size: 15px; letter-spacing: .08em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 服務介紹的段落整理（通用：條列行、小標題、避免手機出現過短的末行） ---------- */
.svc-p, .svc-li, .svc-alert, .svc-list li, .rules-list li, .featured-desc { text-wrap: pretty; line-break: strict; }
.svc-lines { display: grid; gap: 2px; }
.svc-li { margin: 0; padding-left: 1em; text-indent: -1em; overflow-wrap: anywhere; }
.svc-subhead { margin: 8px 0 0; }

/* ---------- 期間限定服務按鈕（通用：Reservalue 活動型服務自動套用） ----------
   一般服務：白底、淺灰細框（不變）
   期間限定（未選取）：極淡薰衣草紫底、柔紫細框、標籤在名稱前
   選取中（不分類型）：實心淡紫＋深紫圓點，與期間限定的淡底明顯不同 */
.svc-btn .svc-price { margin-left: 6px; }
.svc-btn.is-event { background: #F7F5FE; border-color: #D9D4FB; }
.svc-btn.is-event:hover { border-color: var(--violet); color: var(--violet); }
.svc-btn.is-event[aria-selected="true"] { background: var(--lav); border-color: var(--lav); color: var(--ink); }
.svc-btn.is-event .svc-tag { margin-right: 2px; }
.svc-btn[aria-selected="true"] .svc-tag { border-color: #fff; }

/* 手機（所有服務同一套規則，依 Reservalue 資料自動套用）：
   一般服務：名稱靠左、價格固定靠右上；名稱較長時只在名稱欄內換行，價格位置不變
   期間限定（活動型）：第一行「期間限定」標籤＋價格，第二行起完整名稱
   選取圓點放在左側留白內，不擠壓文字、不造成位移 */
@media (max-width: 520px) {
  .svc-btn {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price"; align-items: baseline;
    column-gap: 14px; row-gap: 6px; border-radius: 24px; padding: 11px 18px 11px 24px;
  }
  .svc-btn::before { position: absolute; left: 11px; top: 50%; margin-top: -3.5px; }
  .svc-btn .svc-name { grid-area: name; min-width: 0; word-break: normal; text-wrap: balance; }
  .svc-btn .svc-price { grid-area: price; margin-left: 0; justify-self: end; }
  .svc-btn.is-event { grid-template-areas: "tag price" "name name"; align-items: center; padding-top: 12px; padding-bottom: 12px; }
  .svc-btn.is-event .svc-tag { grid-area: tag; justify-self: start; margin: 0; }
}
.svc-seg { display: inline-block; max-width: 100%; vertical-align: top; }
@media (max-width: 380px) {
  .svc-btn { letter-spacing: .02em; padding-right: 16px; column-gap: 10px; }
}
/* 很窄的手機（< 360px）：一般服務一律改為上下兩行（名稱／價格靠右），名稱有完整寬度，不在詞中間斷開 */
@media (max-width: 359px) {
  .svc-btn:not(.is-event) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "price"; row-gap: 2px; }
}

/* 首頁期間限定推薦卡片（活動型服務自動套用）：極淡薰衣草紫底＋柔紫細框，保留頂部紫線 */
.featured-card.is-event { background: #F5F2FF; border-left-color: #DED9FB; border-right-color: #DED9FB; border-bottom-color: #DED9FB; }
