:root {
  --bg1: #fffaf7;
  --bg2: #fde6e6;
  --bg3: #f6ead3;
  --ink: #54413f;
  --muted: #7a6561;
  --rose: #eba2ac;
  --rose-text: #a04862;
  --gold: #dcbd8d;
  --line: #f2dbd5;
  --wa-from: #a9ecc4;
  --wa-to: #6fd69f;
  --wa-ink: #0e4a2b;
  --card: #ffffff;
  --grad-main: linear-gradient(135deg, var(--rose), var(--gold));
  --grad-wa: linear-gradient(135deg, var(--wa-from), var(--wa-to));
  --grad-band: linear-gradient(135deg, #fff5f3, var(--bg2) 60%, #f9efdc);
  --shadow-card: 0 10px 26px -16px var(--rose);
  --radius: 16px;
  --gutter: 16px;
  --header-h: 65px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg1); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
a { color: inherit; }
h1, h2, h3 { letter-spacing: .04em; }
h2 { font-size: 1.5rem; margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--rose-text); outline-offset: 2px; }

/* 頁頭：手機兩行（logo＋WhatsApp / 選單），電腦一行並置頂固定 */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px var(--gutter); background: rgba(255, 250, 247, .92); border-bottom: 1px solid var(--line); z-index: 10;
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { order: 3; flex: 1 0 100%; display: flex; justify-content: space-around; }
.site-nav a { padding: 8px 10px; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--rose); font-weight: 600; }
@media (min-width: 700px) {
  .site-header { position: sticky; top: 0; min-height: var(--header-h); backdrop-filter: blur(8px); }
  .site-nav { order: 0; flex: 0 1 auto; justify-content: center; gap: 28px; }
}

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; color: var(--ink);
}
.btn:hover { filter: brightness(1.03); }
.btn--primary { background: var(--grad-main); box-shadow: 0 8px 22px -10px var(--rose); }
.btn--wa { background: var(--grad-wa); color: var(--wa-ink); box-shadow: 0 8px 22px -12px #4cc786; }
.btn--ghost { background: var(--card); border: 1px solid var(--line); }

section { padding: 36px var(--gutter); max-width: 1200px; margin: 0 auto; }
.band { background: var(--grad-band); }
.note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.section-link { color: var(--rose-text); font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }
.empty { color: var(--muted); }

/* 首頁 hero 同內頁橫幅（水彩背景）；首頁 hero 係輪播嘅第 1 版 */
.hero-slides { position: relative; --hero-h: 400px; max-width: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .hero-slides { --hero-h: 460px; } }
.hero-slides__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-slides__track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
figure.hero-slide { position: relative; height: var(--hero-h); background: var(--bg2); }
figure.hero-slide::after { /* 底部柔和暗角，令相上面嘅按鈕更突出 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none;
  background: linear-gradient(to top, rgba(60, 40, 40, .42), rgba(60, 40, 40, 0));
}
.hero-slide__cta {
  position: absolute; left: 0; right: 0; bottom: 38px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 12px; padding: 0 var(--gutter);
}
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slides__nav { display: none; }
@media (min-width: 700px) and (hover: hover) {
  .hero-slides__nav {
    display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; padding: 0 0 4px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-card);
  }
  .hero-slides__nav--prev { left: 16px; }
  .hero-slides__nav--next { right: 16px; }
  .hero-slides__nav:disabled { opacity: .35; cursor: default; }
}
.hero-slides__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; pointer-events: none; }
.hero-slides__dots button { pointer-events: auto; position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-slides__dots button::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid var(--rose-text); background: rgba(255, 255, 255, .85);
}
.hero-slides__dots button[aria-current="true"]::before { background: var(--rose-text); }
.hero-home {
  display: grid; place-items: center; text-align: center; min-height: var(--hero-h); padding: 56px var(--gutter);
  background: url(../assets/img/hero-bg.webp) 18% center / cover no-repeat, var(--bg2);
}
.hero-home__inner {
  max-width: 640px; padding: 24px 8px;
  background: radial-gradient(ellipse at center, rgba(255, 252, 250, .72) 0%, rgba(255, 252, 250, .55) 45%, rgba(255, 252, 250, 0) 75%);
}
.hero-home h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 6.2vw, 2.4rem); line-height: 1.3; text-wrap: balance; }
.hero-home p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.hero-home .btn { margin: 4px 6px; }
.banner {
  display: grid; place-items: center; text-align: center; min-height: 150px; padding: 28px var(--gutter);
  background: linear-gradient(rgba(255, 252, 250, .25), rgba(255, 252, 250, .25)), url(../assets/img/hero-bg.webp) 18% 22% / cover no-repeat, var(--bg2);
}
.banner h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.3; }
.banner p { margin: 0; color: var(--ink); }
@media (min-width: 700px) {
  .hero-home { background-position: center, 0 0; }
  .banner { min-height: 200px; background-position: 0 0, center 22%, 0 0; }
}

/* 首頁區塊 */
.features { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }
.entry-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .entry-cards { grid-template-columns: repeat(2, 1fr); } }
.entry {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.entry:hover { border-color: var(--rose); }
.entry__thumb { height: 160px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.entry__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.entry h3 { margin: 0; }
.entry p { margin: 0; color: var(--muted); }
.entry .btn { align-self: flex-start; }
.teaser__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.teaser__head h2 { margin: 0; }
.teaser__grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .teaser__grid { grid-template-columns: repeat(4, 1fr); } }
.teaser__grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.teaser__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 常見問題（<details> 摺疊） */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; box-shadow: var(--shadow-card); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.faq a { color: var(--rose-text); }

/* 款式預覽頁：手機輸入欄固定喺頂部（頁頭唔固定），電腦版輸入欄貼住固定頁頭 */
.kinds { margin: 4px 0 10px; }
.previewer__form {
  display: grid; gap: 6px 10px; grid-template-columns: 1fr 1fr; margin: 8px 0;
  position: sticky; top: 0; z-index: 5; background: var(--bg1); padding: 6px 0;
}
.previewer__form label { display: grid; gap: 2px; font-size: .75rem; color: var(--muted); }
.previewer__form label:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.previewer__form label:last-child input { flex: 1; width: auto; }
.previewer__form input {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 7px 10px; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.notice { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: #fff4e0; color: #8a5a00; font-size: .9rem; }
.hint { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) {
  .previewer__form { grid-template-columns: 1fr 1fr 1fr; gap: 12px; top: var(--header-h); padding: 8px 0; }
  .previewer__form label { gap: 4px; font-size: .85rem; }
  .previewer__form input { padding: 10px 12px; }
  .previewer__form label:last-child { grid-column: auto; display: grid; gap: 4px; }
  .previewer__form label:last-child input { width: 100%; }
}
.tile {
  position: relative; display: grid; place-items: center; padding: 0; width: 100%;
  aspect-ratio: 1654 / 886; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; font: inherit; box-shadow: var(--shadow-card);
}
.tile:hover { border-color: var(--rose); }
.tile__thumb { width: 100%; height: 100%; object-fit: contain; }
.tile__no { position: absolute; top: 6px; left: 10px; font-size: .75rem; color: var(--muted); }
.stage { width: max-content; text-align: center; white-space: nowrap; line-height: 1.2; }
.stage__line { display: block; }
.stage__connector { margin: 0 .45em; }
.stage__date { margin-top: .15em; }
.stage[data-layout="staggered"] .stage__names { text-align: left; }
.stage[data-layout="staggered"] .stage__line:nth-child(2) { padding-left: 1.4em; }
.logo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo {
  position: relative; display: grid; place-items: center; padding: 0; width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; font: inherit; box-shadow: var(--shadow-card);
}
.logo:hover { border-color: var(--rose); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo__no { position: absolute; top: 6px; left: 10px; font-size: .75rem; color: var(--muted); }

/* 大預覽 */
.detail { border: 0; border-radius: var(--radius); padding: 16px; width: min(92vw, 720px); background: var(--bg1); color: var(--ink); }
.detail::backdrop { background: rgba(60, 40, 40, .5); }
.detail__bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.detail__title { margin: 0; font-size: 1.1rem; }
.detail__close { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); padding: 6px 10px; }
.detail__stage {
  display: grid; place-items: center; aspect-ratio: 1654 / 886; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
.detail__stage--logo { aspect-ratio: 1 / 1; width: min(100%, 62vh); margin-inline: auto; background: #fff; }
.detail__thumb { width: 100%; height: 100%; object-fit: contain; }
.detail__wa { display: flex; text-align: center; }

/* 分類標籤、客人作品 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips button {
  font: inherit; font-size: .9rem; min-height: 40px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chips button[aria-pressed="true"] { background: var(--grad-main); border-color: transparent; font-weight: 600; }
.works__grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .works__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .works__grid { grid-template-columns: repeat(4, 1fr); } }
.work { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.works-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.lightbox { border: 0; padding: 12px; border-radius: var(--radius); background: var(--bg1); max-width: 96vw; }
.lightbox::backdrop { background: rgba(60, 40, 40, .65); }
.lightbox form { text-align: right; margin: 0; }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: .9rem; padding-top: 8px; }

/* 產品、組合、流程、頁尾 */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.card .card__size { color: var(--ink); font-weight: 600; margin-bottom: 0; }
.package__box { max-width: 460px; background: var(--card); border: 2px solid var(--rose); border-radius: var(--radius); padding: 20px; text-align: center; }
.package__tag { margin: 0 0 8px; font-weight: 600; color: var(--rose-text); }
.package__box ul { list-style: none; padding: 0; margin: 0 0 12px; }
.package__price { font-size: 1.6rem; font-weight: 700; margin: 0 0 14px; }
.steps { padding-left: 1.2rem; display: grid; gap: 10px; }
.steps strong { display: block; }
.site-footer { padding: 28px var(--gutter); background: var(--grad-band); text-align: center; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.site-footer__title { color: var(--ink); font-weight: 600; }
.site-footer__copy { font-size: .8rem; margin-top: 14px; }

.not-found { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.not-found .btn { margin: 4px 6px; }
