/* ===========================================================
   V Love 時尚美學 — 網站樣式表
   設計理念：薰衣草紫主色、細線留白，簡潔現代、行動裝置優先(RWD)
   =========================================================== */

:root {
  --color-primary: #736184;      /* 薰衣草紫 */
  --color-primary-dark: #493b58; /* 深紫 */
  --color-accent: #7f6d91;       /* 點綴紫（白字可讀） */
  --color-soft: #d9cdec;         /* 按鈕淡紫底 */
  --color-line: #dfd7e8;         /* 細分隔線 */
  --color-muted: #706579;        /* 次要小字 */
  --color-bg: #fdfcfe;
  --color-bg-alt: #eee8f5;
  --color-bg-soft: #f6f2fa;
  --color-text: #403848;
  --color-text-light: #655c6e;
  --color-white: #ffffff;
  /* Noto 由 layout.njk 載入 Google Fonts，全裝置一致；後面為字型載入失敗時的備援 */
  --font-heading: "Noto Serif TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --radius: 3px;
  --shadow: none;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-text-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--alt { background: var(--color-bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
  display: inline-block;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Skip link (無障礙) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 254, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

/* ponytail: index 專用頂欄變體，只掛 index.html；其餘頁沿用上面的 .site-header 不受影響 */
/* fixed 讓頂欄蓋在 hero 上，頂部透明時才透出眼睛圖＝真去背；hero 文字已 72px 上留白＋垂直置中不被遮 */
.site-header--hero {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.site-header--hero.at-top {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  white-space: nowrap;
}
.logo span {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--color-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--color-soft);
  color: var(--color-primary-dark);
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  white-space: nowrap;
}
.header-cta:hover { background: #cbbde2; }

/* 線上預約旁的教學連結；窄螢幕（≤560px）頂欄放不下，改顯示在漢堡選單最後一項 */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-guide {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.header-guide:hover,
.header-guide[aria-current="page"] { border-color: var(--color-primary); }
.main-nav__guide { display: none; }
@media (max-width: 560px) {
  .header-guide { display: none; }
  .main-nav__guide { display: list-item; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .site-header__inner { flex-wrap: wrap; }
  /* 首頁頂欄是透明／半透明，選單展開時要換成實底，否則選單字會疊在 hero 文字上 */
  .site-header--hero:has(.main-nav.is-open) {
    background: #fdfcfe;
    border-bottom-color: var(--color-line);
  }
}

/* ---------- Hero ---------- */
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero__img {
  width: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-soft); color: var(--color-primary-dark); }
.btn--primary:hover { background: #cbbde2; }
.btn--outline { border: 1.5px solid var(--color-primary); color: var(--color-primary-dark); }

.img-placeholder {
  background: repeating-linear-gradient(45deg, var(--color-bg-alt), var(--color-bg-alt) 10px, #e4dcee 10px, #e4dcee 20px);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
  min-height: 220px;
  border: 1px dashed var(--color-primary);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-bg-alt);
}
/* 作品卡統一正方框（首頁精選＋作品集頁），維持原尺寸不縮小 */
#workGrid .card__img,
.card__img--poster { aspect-ratio: 1 / 1; }
/* 雜誌款直式海報：正方框內完整置中、兩側淡色留白，不裁切文字 */
.card__img--poster { object-fit: contain; background: var(--color-bg-alt); }
.card__body { padding: 22px; }
.card__body h3 { margin-bottom: 8px; }
/* 作品卡：移除設計師標示後，標題留白收緊 */
.work-card .card__body { padding: 12px 16px; }
.work-card .card__body h3 { margin-bottom: 0; }
.card__link { color: var(--color-primary-dark); font-weight: 600; font-size: 0.9rem; }

/* ---------- Portfolio 篩選 / 分頁 / 單頁作品 ---------- */
.portfolio-subnav,
.pricing-subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.portfolio-subnav a,
.pricing-subnav a {
  padding: 10px 26px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.portfolio-subnav a:hover,
.pricing-subnav a:hover { background: var(--color-bg-alt); }
.portfolio-subnav a.is-active,
.pricing-subnav a.is-active { background: var(--color-primary); color: #fff; }

.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 22px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  padding-left: 4px;
}
.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  padding: 11px 44px 11px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  min-width: 170px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23493b58' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.filter-group select:focus { outline: none; border-color: var(--color-primary-dark); }
.filter-count { text-align: center; color: var(--color-text-light); font-size: 0.85rem; margin: 0 0 26px; }

.work-card { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(73, 59, 88, 0.16); }
.work-card:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 3px; }

.no-result { text-align: center; color: var(--color-text-light); padding: 40px 0; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pagination button:hover:not(:disabled) { background: var(--color-bg-alt); }
.pagination button.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.is-hidden { display: none !important; }

/* ---------- Table (價目表) ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.price-table caption {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  padding: 16px 20px 0;
  font-weight: 700;
}
.price-table th, .price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-bg-alt);
  text-align: left;
}
.price-table th { color: var(--color-text-light); font-weight: 600; font-size: 0.85rem; }
.price-table tr:last-child td { border-bottom: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--color-primary-dark); }
.breadcrumb ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-text-light); }

/* ---------- Page banner ---------- */
.page-banner {
  padding: 16px 0 4px;
  text-align: center;
}
/* 分頁首屏收緊：banner 後的第一個 section 上緣留白減半 */
.page-banner + .section { padding-top: 28px; }

/* ---------- News list ---------- */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}
.news-item time {
  color: var(--color-accent);
  font-size: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 6px; }
}

/* ---------- Service info panel (collapsible) ---------- */
.info-panel {
  margin-top: 16px;
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
}
.info-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.info-panel > summary::-webkit-details-marker { display: none; }
.info-panel > summary::after {
  content: "＋";
  color: var(--color-accent);
  font-weight: 400;
  font-size: 1.3rem;
}
.info-panel[open] > summary::after { content: "－"; }
.info-panel > summary:hover { background: var(--color-bg-alt); }
.info-panel__body { padding: 4px 20px 24px; }
.info-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}
.info-flow figure { margin: 0; }
.info-flow img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-flow img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.info-flow figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-top: 8px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .info-flow { grid-template-columns: 1fr; }
}

/* ---------- Lightbox (image zoom) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(64, 56, 72, 0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 92vw;
  max-height: calc(100vh - 120px);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.lightbox__caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.lightbox__caption:empty { display: none; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(90deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-bg-alt); }
.contact-list .label { color: var(--color-text-light); min-width: 84px; font-size: 0.9rem; }

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--color-bg-alt);
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-row .label { display: block; color: var(--color-text-light); font-size: 0.78rem; margin-bottom: 2px; }
.contact-row .value { margin: 0; font-size: 0.95rem; color: var(--color-text); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 56px 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 25px 35px;
}
.site-footer p { margin: 10px 0 0; color: inherit; max-width: 22em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--color-primary); }
.site-footer a:hover { color: var(--color-primary-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer small { align-self: flex-end; font-size: inherit; }

/* ---------- Placeholder note banner ---------- */
.draft-notice {
  background: #fff3cd;
  color: #6b5300;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}

/* 價目表照片呈現 */
.pricelist-figure { margin: 0; text-align: center; }
.pricelist-figure a { display: block; }
.pricelist-figure img {
  width: 100%;
  height: auto;
  max-width: 1100px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-bg-alt);
}
.pricelist-figure figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.pricelist-figure--poster img { max-width: 720px; display: block; margin-left: auto; margin-right: auto; }

/* 首頁 Hero 圖：原圖為 2000×800 寬幅橫幅，改用原始比例框完整顯示，不裁切左右資訊 */
.hero__img {
  min-height: 0;
  max-height: none;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  background: var(--color-bg-alt);
}

/* ===========================================================
   首頁（Claude Design 設計稿 (1) 版面）
   =========================================================== */
.home h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.375rem);
  line-height: 1.55;
  letter-spacing: 2px;
  color: var(--color-text);
}
.home h3 { color: var(--color-text); }
.home-section { padding: clamp(56px, 8vw, 100px) 0; }
.home-section--alt { background: var(--color-bg-alt); }
.home-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  letter-spacing: 2px;
  color: var(--color-primary);
}
.home-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
  margin-bottom: 44px;
}
.home-lead { margin: 0; font-size: 0.9375rem; line-height: 2; }
.text-link {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid #9c8daa;
  color: var(--color-text);
  font-size: 0.875rem;
}
.text-link:hover { color: var(--color-primary-dark); border-bottom-color: var(--color-primary-dark); }

/* Hero */
.home-hero { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; min-height: 600px; background: var(--color-bg-soft); overflow: hidden; }
.home-hero__text {
  position: relative;
  z-index: 1;
  flex: 0 1 46%;
  min-width: 0;
  padding: 72px 9% 56px 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.625rem);
  line-height: 1.4;
  letter-spacing: 2px;
  color: var(--color-text);
}
.home-hero .home-eyebrow { margin-bottom: 24px; font-size: 0.875rem; }
.home-hero .home-lead { font-size: 1rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 30px 0 38px; }
.home-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid #dcd2e6;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-muted);
}
/* 頂欄透明疊在圖上，頂端罩一層淡色讓選單字在深色髮絲上仍清楚 */
.home-hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 140px; background: linear-gradient(var(--color-bg-soft), transparent); opacity: 0.85; pointer-events: none; }
/* 圖片鋪滿整個 Banner 當底，由左（眼部）往右漸淡，文案疊在右側 */
.home-hero__media {
  position: absolute;
  inset: 0;
  /* 第二層遮罩＝進場用的柔邊擦拭，--wipe 由 0% 跑到 130% 即整張露出 */
  --wipe: 130%;
  --wipe-mask: linear-gradient(to right, #000 calc(var(--wipe) - 30%), transparent var(--wipe));
  -webkit-mask-image: linear-gradient(to right, #000 40%, rgba(0, 0, 0, 0.3) 80%), var(--wipe-mask);
  mask-image: linear-gradient(to right, #000 40%, rgba(0, 0, 0, 0.3) 80%), var(--wipe-mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 45%;
}
/* 進場：圖片由左往右浮現；有信封進場動畫（.intro）時等信封拆開才開始 */
.home-hero__media { animation: hero-wipe 1.6s cubic-bezier(.4, 0, .2, 1) both; }
.intro ~ main .home-hero__media { animation-delay: 1.7s; }
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
@keyframes hero-wipe { from { --wipe: 0%; } }
@media (prefers-reduced-motion: reduce) { .home-hero__media { animation: none; } }
@media (max-width: 900px) {
  /* 手機頂欄 fixed 高約 82px（logo 兩行＋選單鈕），上留白須大於它才不被蓋住 */
  /* 窄版改回上文下圖，圖片不疊字、不漸淡 */
  .home-hero { min-height: 0; }
  .home-hero::before { display: none; }
  .home-hero__text { flex-basis: 100%; padding: 96px 20px 40px; }
  .home-hero__media { position: relative; inset: auto; flex: 1 1 100%; height: max(300px, 56vw); -webkit-mask-image: var(--wipe-mask); mask-image: var(--wipe-mask); }
}

/* 作品 */
.home-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.home-works img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--color-bg-alt); }
.home-works h3 { margin: 18px 0 4px; font-size: 1.1875rem; }
.home-works p { margin: 0; font-size: 0.75rem; letter-spacing: 1px; color: var(--color-muted); }

/* 服務 */
.home-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px 45px; }
.home-services a { display: block; }
.home-services img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; }
.home-services em { font: italic 20px Georgia, serif; color: #6e5c80; }
.home-services h3 { margin: 10px 0 16px; font-size: 1.6875rem; }
.home-services p { margin: 0; font-size: 0.9375rem; }
.home-services__more { display: block; margin-top: 26px; font-size: 0.875rem; color: var(--color-primary); }

/* 價目／FAQ：左文右列表 */
.home-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 100px; }
.home-split > * { flex: 1 1 320px; min-width: 0; }
.home-split > :last-child { flex: 1.4 1 420px; }
.home-split--top { align-items: flex-start; gap: 20px 60px; }
.home-split .home-lead { margin-top: 24px; }
.home-split .text-link { margin-top: 18px; }
.home-prices a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 25px 0;
  border-bottom: 1px solid var(--color-line);
}
.home-prices__name { display: block; font-size: 1.25rem; }
.home-prices__sub { display: block; font-size: 0.8125rem; color: var(--color-muted); }
.home-prices__price { font-size: 0.75rem; white-space: nowrap; }
.home-prices__price b { font: 30px Georgia, serif; color: var(--color-primary); }
.home-note { margin: 22px 0 0; font-size: 0.75rem; }

/* 空間 */
.home-space { display: flex; flex-wrap: wrap; background: var(--color-bg-soft); }
.home-space img { flex: 1.2 1 420px; min-width: 0; height: 500px; object-fit: cover; }
.home-space__text {
  flex: 1 1 360px;
  min-width: 0;
  padding: 65px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-space__text h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 20px; }
.home-space__text .text-link { align-self: flex-start; margin-top: 24px; }
@media (max-width: 900px) {
  .home-space img { height: 300px; }
  .home-space__text { padding: 48px 20px; }
}

/* FAQ */
.home-faq h2 { font-size: clamp(1.4rem, 2.6vw, 1.875rem); }
.home-faq details { border-bottom: 1px solid var(--color-line); }
.home-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 0;
  cursor: pointer;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "＋"; color: var(--color-primary); }
.home-faq details[open] > summary::after { content: "－"; }
.home-faq details p { margin: 0; padding: 0 20px 23px 0; font-size: 0.9375rem; }
.home-faq details a { color: var(--color-primary); text-decoration: underline; }

/* 結尾 CTA */
.home-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 75px 20px;
  background: #e8dff1;
  color: var(--color-primary-dark);
  text-align: center;
}
.home-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6875rem); line-height: 1.5; color: inherit; }
.home-cta p { margin: 0; color: inherit; font-size: 0.8125rem; }
.home-cta .home-cta__kicker { font-size: 0.875rem; letter-spacing: 4px; }
.home-cta .btn { background: var(--color-bg); color: var(--color-primary-dark); }

/* ---------- 預約流程教學（booking-guide.njk） ---------- */
.guide { max-width: 760px; }
.guide h2 { margin-top: 56px; }
.guide ul { padding-left: 1.3em; color: var(--color-text-light); }
.guide ul li + li { margin-top: 4px; }
.guide__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.guide__actions--end { margin-top: 48px; }
.guide-prep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-prep > div { background: var(--color-bg-soft); border-radius: 10px; padding: 18px; }
.guide-prep h3 { margin-bottom: 6px; }
.guide-prep p { margin: 0; font-size: 0.9375rem; }
@media (max-width: 700px) { .guide-prep { grid-template-columns: 1fr; } }

/* 仿預約系統的進度列 */
.guide-stepsbar { display: flex; list-style: none; margin: 0 0 32px; padding: 0; border-block: 1px solid var(--color-line); font-size: 0.9rem; }
.guide-stepsbar li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; color: var(--color-text-light); border-bottom: 2px solid transparent; }
.guide-stepsbar b { font-family: var(--font-heading); }
.guide-stepsbar li.is-on { color: var(--color-primary-dark); font-weight: 700; border-bottom-color: var(--color-primary-dark); }

.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; position: relative; padding-bottom: 28px; }
.guide-steps > li:last-child { padding-bottom: 0; }
.guide-steps > li::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--color-line); }
.guide-steps > li:last-child::before { display: none; }
.guide-steps > li > div { min-width: 0; padding-top: 6px; }
.guide-steps h3 { margin-bottom: 6px; }
.guide-steps__num { width: 40px; height: 40px; border-radius: 50%; background: var(--color-soft); color: var(--color-primary-dark); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; }
.guide-tag { display: inline-block; font-size: 0.78rem; padding: 1px 10px; border-radius: 999px; background: var(--color-bg-alt); color: var(--color-primary); margin-bottom: 6px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1em; }
.guide-chips span { border: 1px solid var(--color-line); border-radius: 999px; padding: 2px 14px; font-size: 0.9rem; }

.guide-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 1em; font-size: 0.9rem; color: var(--color-text-light); }
.guide-legend span { display: inline-flex; align-items: center; gap: 8px; }
.guide-cell { width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; font-style: normal; font-variant-numeric: tabular-nums; position: relative; }
.guide-cell--ok { border: 1.5px solid var(--color-primary-dark); color: var(--color-primary-dark); font-weight: 700; }
.guide-cell--full { border: 1.5px solid var(--color-line); }
.guide-cell--full small { position: absolute; right: 2px; bottom: -1px; font-size: 0.6rem; font-weight: 700; color: var(--color-primary); }
.guide-cell--off { opacity: 0.45; }

.guide-box { background: var(--color-bg-soft); border-radius: 10px; padding: 14px 16px; }
.guide-box p { margin: 0; font-size: 0.9375rem; }
.guide-box p + p { margin-top: 8px; }

.guide-status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.guide-status > div { border: 1px solid var(--color-line); border-radius: 10px; padding: 16px 18px; }
.guide-status p { margin: 8px 0 0; font-size: 0.9375rem; }
@media (max-width: 600px) { .guide-status { grid-template-columns: 1fr; } }
.guide-pill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.guide-pill--wait { background: #fbf3e6; color: #7a5420; }
.guide-pill--done { background: var(--color-soft); color: var(--color-primary-dark); }
.guide-note { background: #fbf3e6; color: #7a5420; border-radius: 10px; padding: 12px 16px; font-size: 0.9375rem; }
