:root {
  --bg: #f5f1ea;
  --bg-2: #ece5da;
  --paper: #fbf9f5;
  --ink: #2b2622;
  --ink-2: #4a423c;
  --muted: #8a7f75;
  --line: #d9cfc2;
  --accent: #8a6a55;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: .1em; line-height: 1.5; }

main, .site-footer { overflow-x: clip; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-zh { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; white-space: nowrap; }
.footer-brand .brand-zh { letter-spacing: .2em; }
.brand-en { font-family: var(--latin); font-size: 13px; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; letter-spacing: .15em; }
.nav a { position: relative; padding: 4px 0; color: var(--ink-2); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right .35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 640px) {
  .brand-en { display: none; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 6px; }
  .site-header .brand-zh { font-size: 15px; letter-spacing: .08em; }
  .nav { gap: 22px; }
  .nav a { white-space: nowrap; }
  .nav { gap: 14px; font-size: 13px; letter-spacing: .08em; }
  .nav .nav-cta { display: none; }
}

/* ---------- common ---------- */
.eyebrow-label {
  font-family: var(--latin); font-style: italic; font-size: 15px;
  letter-spacing: .12em; color: var(--accent);
}
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 34em; margin-top: 14px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.num { font-family: var(--latin); font-size: 15px; color: var(--muted); letter-spacing: .1em; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px; border: 1px solid var(--ink);
  font-size: 14px; letter-spacing: .2em;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { display: inline-block; width: 22px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero h1 { font-size: clamp(30px, 4.8vw, 50px); line-height: 1.45; letter-spacing: .12em; margin: 14px 0 28px; }
.hero-lead { color: var(--ink-2); max-width: 26em; }
.hero-index { display: flex; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.hero-index a {
  flex: 1; padding: 18px 0 4px; display: flex; flex-direction: column; gap: 2px;
  font-family: var(--serif); font-size: 17px; letter-spacing: .2em;
  transition: color .3s;
}
.hero-index a:hover { color: var(--accent); }
.hero-media .slot { aspect-ratio: 4 / 5; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .slot { aspect-ratio: 4 / 3; }
}

/* ---------- comparison ---------- */
.compare-head { display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: clamp(28px, 6vw, 80px); align-items: end; }
.compare-head .section-head { margin-bottom: 0; }
.compare-chart { margin-bottom: clamp(36px, 6vw, 64px); }
.compare-chart .slot-frame { --ratio: 1132 / 1042; background: #fff; }
.compare-chart .slot-frame img { object-fit: contain; object-position: center; }
@media (max-width: 820px) { .compare-head { grid-template-columns: 1fr; } .compare-chart { max-width: 360px; } }

.compare { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.compare-col { padding: 32px clamp(16px, 2.4vw, 32px) 36px; border-right: 1px solid var(--line); }
.compare-col:first-child { padding-left: 0; }
.compare-col:last-child { border-right: 0; padding-right: 0; }
.compare-col h3 { font-size: 24px; letter-spacing: .25em; }
.compare-col .en { font-family: var(--latin); font-style: italic; color: var(--muted); font-size: 15px; letter-spacing: .08em; }
.compare dl { margin: 26px 0 0; }
.compare dt { font-size: 12px; letter-spacing: .25em; color: var(--muted); margin-top: 20px; }
.compare dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.85; }
.compare .for {
  margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-family: var(--serif); font-size: 15px; line-height: 1.85;
}

@media (max-width: 820px) {
  .compare { grid-template-columns: 1fr; border-top: 0; }
  .compare-col, .compare-col:first-child, .compare-col:last-child {
    padding: 28px 0 32px; border-right: 0; border-top: 1px solid var(--ink);
  }
}

/* ---------- style feature ---------- */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.feature.is-flip { grid-template-columns: 7fr 5fr; }
.feature.is-flip .feature-text { order: 2; }
.feature-text { position: sticky; top: 110px; }
.feature-text h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: .3em; margin: 8px 0 4px; }
.feature-text .en { font-family: var(--latin); font-style: italic; color: var(--muted); font-size: 17px; letter-spacing: .06em; }
.feature-text .desc { margin-top: 26px; color: var(--ink-2); }
.feature-text h4 { font-size: 14px; letter-spacing: .25em; margin: 30px 0 10px; color: var(--accent); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 14.5px; line-height: 1.8; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: 9px; height: 1px; background: var(--ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; line-height: 1.8; }

@media (max-width: 820px) {
  .feature, .feature.is-flip { grid-template-columns: 1fr; }
  .feature.is-flip .feature-text { order: 0; }
  .feature-text { position: static; }
}

/* ---------- gallery & slots ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.gallery[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.gallery[data-cols="1"] { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .gallery[data-cols="3"] { grid-template-columns: repeat(2, 1fr); }
}
.slot { position: relative; margin: 0; }
.slot-frame {
  position: relative; overflow: hidden; background: var(--bg-2);
  aspect-ratio: var(--ratio, 3 / 4);
}
.hero-media .slot-frame { aspect-ratio: auto; height: 100%; }
.hero-media .slot { display: flex; flex-direction: column; }
.hero-media .slot-frame { flex: 1; }
.slot-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 35%);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.slot:hover .slot-frame img { transform: scale(calc(var(--z, 1) * 1.03)); }
.slot-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 12px; letter-spacing: .3em;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(138,106,85,.05) 10px 11px);
}
.slot figcaption {
  font-size: 12.5px; letter-spacing: .15em; color: var(--muted); margin-top: 10px; min-height: 1em;
}
.slot figcaption:empty { display: none; }
body.is-editing .slot figcaption:empty { display: block; }
.gallery:not(.is-editing) .slot-frame img { cursor: zoom-in; }

/* 拼接的前後對照圖：不裁切，照原比例顯示 */
.gallery[data-natural] { align-items: start; }
.gallery[data-natural] .slot-frame, .hero-media .gallery[data-natural] .slot-frame { aspect-ratio: auto; height: auto; }
.gallery[data-natural] .slot-frame img { height: auto; }
.hero-media .gallery[data-natural] .slot { aspect-ratio: auto; display: block; }
.gallery[data-natural] .slot-ph { position: static; aspect-ratio: 1; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.from-left, .reveal.from-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 28px 24px 0 0; border-top: 1px solid var(--line); }
.step h3 { font-size: 17px; letter-spacing: .2em; margin: 6px 0 10px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 20px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- band / cta ---------- */
.band { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 112px) 0; }
.band .eyebrow-label { color: #c9b29f; }
.band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 18px; }
.band p { color: #cfc6bc; max-width: 32em; }
.band .btn { border-color: var(--bg); margin-top: 16px; }
.band .btn:hover { background: var(--bg); color: var(--ink); }
.band-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.band-grid > :last-child { justify-self: end; }
@media (max-width: 720px) { .band-grid { grid-template-columns: 1fr; } .band-grid > :last-child { justify-self: start; } }

/* ---------- lightening page ---------- */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.need { padding-top: 22px; border-top: 1px solid var(--ink); }
.need h3 { font-size: 17px; letter-spacing: .15em; margin: 8px 0 10px; }
.need p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
@media (max-width: 900px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .needs { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 6vw, 80px); }
.split h2 { font-size: clamp(24px, 3.2vw, 30px); margin-top: 6px; }
.split .body { color: var(--ink-2); font-size: 16px; }
.split .body strong { font-weight: 500; color: var(--ink); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.pull {
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.8;
  letter-spacing: .1em; padding-left: 24px; border-left: 2px solid var(--accent); margin: 32px 0;
}

/* stone diagram */
.stones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 48px; }
.stone-step { background: var(--paper); padding: 28px 24px 26px; border: 1px solid var(--line); }
.stone-art { height: 110px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.stone-art span { display: block; background: var(--accent); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
.s1 span { width: 74px; height: 64px; }
.s2 { gap: 5px; width: 120px; margin-inline: auto; align-content: center; }
.s2 span { width: 18px; height: 16px; opacity: .9; }
.s2 span:nth-child(3n) { width: 12px; height: 11px; }
.s3 { width: 120px; margin-inline: auto; gap: 10px; align-content: center; }
.s3 span { width: 8px; height: 8px; opacity: .35; }
.s3 span:nth-child(2n) { opacity: .2; width: 6px; height: 6px; }
.stone-step h3 { font-size: 16px; letter-spacing: .15em; margin: 4px 0 8px; }
.stone-step p { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin: 0; }
@media (max-width: 720px) { .stones { grid-template-columns: 1fr; } }

.factors { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; padding: 0; list-style: none; }
.factors li { border: 1px solid var(--line); padding: 6px 16px; font-size: 14px; letter-spacing: .12em; background: var(--paper); }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: 36px; }
.case { padding: 30px 28px; background: var(--paper); border: 1px solid var(--line); }
.case .big { font-family: var(--latin); font-size: clamp(44px, 6vw, 60px); line-height: 1; letter-spacing: 0; color: var(--accent); }
.case .big small { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-left: 6px; letter-spacing: .15em; }
.case h3 { font-size: 15px; letter-spacing: .2em; color: var(--muted); margin-bottom: 18px; font-weight: 400; font-family: var(--sans); }
.case p { font-size: 14.5px; color: var(--ink-2); margin: 16px 0 0; line-height: 1.85; }
@media (max-width: 720px) { .cases { grid-template-columns: 1fr; } }

.timeline { display: flex; align-items: center; gap: 0; margin: 36px 0 8px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.timeline .bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--ink), var(--line)); margin: 0 14px; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(64px, 9vw, 104px) 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .3em; color: var(--muted); font-weight: 400; font-family: var(--sans); margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 14.5px; line-height: 2; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .brand-zh { font-size: 24px; }
.footer-bottom { margin-top: 64px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: .15em; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(30, 26, 23, .92); opacity: 0; pointer-events: none; transition: opacity .3s;
  padding: 24px; cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; object-fit: contain; }
.lightbox p { color: #d9d0c6; font-size: 13px; letter-spacing: .15em; margin-top: 14px; text-align: center; }

/* ---------- edit mode ---------- */
.editbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 150;
  background: var(--ink); color: var(--bg); padding: 12px 14px 12px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .06em; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100vw - 32px);
}
.editbar strong { font-weight: 500; }
.editbar button {
  font: inherit; letter-spacing: .1em; padding: 7px 14px; cursor: pointer;
  background: transparent; color: var(--bg); border: 1px solid rgba(245,241,234,.5);
}
.editbar button:hover { background: var(--bg); color: var(--ink); }
.editbar .hint { color: #bdb2a7; font-size: 12px; }

body.is-editing .slot { cursor: grab; }
body.is-editing .slot.is-dragging { opacity: .35; }
body.is-editing .slot-frame { outline: 1px dashed rgba(138,106,85,.6); outline-offset: -1px; }
body.is-editing .slot.is-over .slot-frame { outline: 2px solid var(--accent); outline-offset: -2px; }
body.is-editing .slot.is-over .slot-frame::after {
  content: "放在這裡"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(138,106,85,.35); color: #fff; letter-spacing: .3em; font-size: 13px;
}
body.is-editing .slot figcaption { outline: 1px dashed var(--line); padding: 2px 6px; cursor: text; }
body.is-editing .slot figcaption:empty::before { content: "（點這裡輸入說明，可留空）"; color: var(--line); }
.slot-tools { display: none; position: absolute; top: 8px; right: 8px; gap: 6px; z-index: 2; }
body.is-editing .slot-tools { display: flex; }
.slot-tools button {
  font: inherit; font-size: 12px; letter-spacing: .1em; padding: 4px 10px; cursor: pointer;
  background: rgba(251,249,245,.92); color: var(--ink); border: 1px solid var(--line);
}
.slot-tools button:hover { background: var(--ink); color: var(--bg); }
.add-slot {
  display: none; border: 1px dashed var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; letter-spacing: .2em; cursor: pointer; min-height: 120px;
}
body.is-editing .add-slot { display: block; }
.add-slot:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- about page ---------- */
.about-sub { font-family: var(--serif); letter-spacing: .2em; color: var(--muted); margin: -12px 0 26px; }
.about-intro p { color: var(--ink-2); max-width: 30em; }
.timeline-list { list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; border-top: 1px solid var(--ink); }
.timeline-list li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline-list .year { font-family: var(--latin); font-size: 26px; color: var(--accent); line-height: 1.2; }
.timeline-list h3 { font-size: 17px; letter-spacing: .15em; margin-bottom: 4px; }
.timeline-list p { margin: 0; font-size: 14px; color: var(--muted); }
.gallery.certs { gap: clamp(14px, 2.4vw, 28px); }
.line-block { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.line-block h2 { font-size: clamp(24px, 3.2vw, 30px); margin: 6px 0 16px; }
.line-block p { color: var(--ink-2); max-width: 30em; }
.line-block .btn { margin-top: 10px; }
.qr { max-width: 300px; justify-self: center; width: 100%; }
.qr .slot-frame { background: var(--paper); border: 1px solid var(--line); padding: 14px; }
@media (max-width: 720px) {
  .timeline-list li { grid-template-columns: 70px 1fr; gap: 14px; }
  .timeline-list .year { font-size: 22px; }
  .line-block { grid-template-columns: 1fr; }
  .qr { justify-self: start; max-width: 240px; }
}

section[id] { scroll-margin-top: 100px; }

/* ---------- in-page editor ---------- */
.editbar { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; flex-wrap: nowrap; gap: 8px; padding: 8px 10px 8px 16px; }
.editbar-info { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; }
.editbar-info .hint { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.editbar-status { color: #e6d3c2; font-size: 12px; flex: 0 0 auto; order: -1; }
.editbar button { flex: 0 0 auto; padding: 6px 12px; }
@media (max-width: 900px) {
  .editbar { flex-wrap: wrap; }
  .editbar-info { flex: 1 1 100%; }
  .editbar-info .hint { display: none; }
}
.editbar button.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); font-weight: 500; }
.editbar button.primary:hover { background: #fff; }
body.is-editing { padding-bottom: 90px; }
body.is-editing [contenteditable="true"] { outline: 1px dashed transparent; outline-offset: 3px; cursor: text; }
body.is-editing [contenteditable="true"]:hover { outline-color: rgba(138,106,85,.55); }
body.is-editing [contenteditable="true"]:focus { outline: 1px solid var(--accent); background: rgba(255,255,255,.55); }
body.is-editing .band [contenteditable="true"]:focus { background: rgba(255,255,255,.08); }
body.is-editing .reveal { opacity: 1; transform: none; }
body.is-editing .ed-current:not(.ed-section) { box-shadow: 0 0 0 1px rgba(138,106,85,.35); }
body.is-editing .ed-section.ed-current { box-shadow: inset 0 0 0 1px rgba(138,106,85,.25); }
.ed-float {
  display: none; position: absolute; z-index: 140; gap: 4px; align-items: center;
  background: var(--ink); padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.ed-float-label { color: #bdb2a7; font-size: 11px; letter-spacing: .1em; padding: 0 6px 0 4px; }
.ed-float button {
  font: inherit; font-size: 12px; letter-spacing: .06em; padding: 4px 9px; cursor: pointer;
  background: transparent; color: var(--bg); border: 1px solid rgba(245,241,234,.35);
}
.ed-float button:hover { background: var(--bg); color: var(--ink); }
.slot.is-adjusting .slot-frame { outline: 2px solid var(--accent); outline-offset: -2px; cursor: move; touch-action: none; }
.slot.is-adjusting .slot-tools { display: none; }
.slot.is-adjusting .slot-frame img { transition: none; }
.adjust-panel {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  background: rgba(43,38,34,.85); padding: 6px; color: var(--bg); font-size: 12px; cursor: default;
}
.adjust-panel span { flex: 1 1 100%; letter-spacing: .08em; }
.adjust-panel button { font: inherit; padding: 3px 10px; cursor: pointer; background: transparent; color: var(--bg); border: 1px solid rgba(245,241,234,.5); }
.adjust-panel button:last-child { background: var(--bg); color: var(--ink); margin-left: auto; }

/* ---------- FAQ page ---------- */
.faq-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.faq-hero .hero-lead { max-width: 30em; }
.faq-group { padding-top: clamp(40px, 6vw, 72px) !important; padding-bottom: clamp(40px, 6vw, 72px); }
.faq-wrap { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(24px, 5vw, 72px); }
.faq-side h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 6px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1px; background: var(--ink);
  transition: transform .3s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 44px 22px 0; color: var(--ink-2); }
.faq-a p { font-size: 15px; margin-bottom: .8em; }
.faq-a a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } .faq-item summary { font-size: 16px; } }
@media (max-width: 640px) { .nav { gap: 16px; font-size: 12.5px; } }

/* ---------- calls to action ---------- */
.nav { align-items: center; }
.nav .nav-cta { padding: 6px 18px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); transition: background .3s, color .3s; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: transparent; color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.band .btn-solid { background: var(--bg); color: var(--ink); }
.band .btn-solid:hover { background: transparent; color: var(--bg); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.text-link { font-size: 14px; letter-spacing: .15em; padding-bottom: 3px; border-bottom: 1px solid currentColor; transition: color .3s; }
.text-link:hover { color: var(--accent); }
.cta-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.book-steps { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.book-steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

/* mobile: header nav scrolls sideways instead of wrapping; sticky booking bar */
@media (max-width: 640px) {
  .nav { gap: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(251, 249, 245, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; height: 46px;
    font-size: 14px; letter-spacing: .15em; border: 1px solid var(--ink);
  }
  .mobile-cta .primary { background: var(--ink); color: var(--bg); font-weight: 400; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.is-editing .mobile-cta { display: none; }
}

/* ---------- reviews page ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.review { display: flex; flex-direction: column; padding: 30px 28px 26px; background: var(--paper); border: 1px solid var(--line); }
.review .stars { color: var(--accent); letter-spacing: .3em; font-size: 13px; margin: 0 0 14px; }
.review .quote { font-family: var(--serif); font-size: 15.5px; line-height: 1.95; color: var(--ink-2); flex: 1; }
.review .quote::before { content: "“"; display: block; font-family: var(--latin); font-size: 44px; line-height: .6; color: var(--line); margin-bottom: 10px; }
.review .who { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; letter-spacing: .15em; color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* edit mode: hidden sections stay visible (faded) so they can be filled in and switched on */
body.is-editing main > section[hidden] { display: block; position: relative; opacity: .55; }
body.is-editing main > section[hidden]::before {
  content: "這個區塊目前隱藏，網站上看不到（滑到區塊上按「顯示區塊」即可公開）";
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--accent); color: #fff; font-size: 12px; letter-spacing: .1em; padding: 4px 12px; white-space: nowrap;
}

/* review card screenshot */
.review .review-shot { margin-bottom: 18px; }
.review .review-shot .slot-frame { border: 1px solid var(--line); }
.review .quote:empty { display: none; }

/* editor: keep the floating toolbar on one line; highlight drop target */
.ed-float { width: max-content; white-space: nowrap; }
.add-slot.is-over { border-color: var(--accent); color: var(--accent); background: rgba(138,106,85,.08); }

/* review columns: cards share one height and the screenshots spread to fill it, so all three end on the same line */
.review { padding: 22px; }
.review .review-shot { flex: 1; margin: 0; align-content: space-between; }
.review .review-shot .slot figcaption:empty { display: none; }

/* header: six menu items — never break a label; stack brand above menu before it gets crowded */
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .brand-en { display: none; } .nav { gap: clamp(14px, 2vw, 28px); } }
@media (max-width: 980px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 6px; }
}
@media (max-width: 640px) { .nav { gap: 11px; letter-spacing: .06em; } }

/* phones: footer studio name fits the screen; menu fits small phones */
@media (max-width: 720px) {
  .footer-brand .brand-zh { font-size: 19px; letter-spacing: .08em; white-space: normal; }
}
@media (max-width: 400px) {
  .nav { gap: 9px; font-size: 12px; letter-spacing: .04em; }
}
@media (max-width: 340px) { .nav { gap: 7px; font-size: 11.5px; letter-spacing: 0; } }

/* reviews: keep three equal columns on tablets, one column on phones */
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 12px; } .review { padding: 12px; } }
@media (max-width: 720px) { .reviews { grid-template-columns: 1fr; gap: 16px; } .review { padding: 16px; } }

/* keyword line above each page's main heading (tells Google and visitors what the page is about) */
.h1-kicker { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.6; letter-spacing: .25em; color: var(--accent); margin-bottom: 12px; }

/* LINE icon on every LINE booking button (phones rewrite the link but it still points at line.me) */
.nav .nav-cta, .btn[href*="line.me"], .mobile-cta .primary { display: inline-flex; align-items: center; gap: 8px; }
.mobile-cta .primary { display: flex; justify-content: center; }
.nav .nav-cta::before, .btn[href*="line.me"]::before, .mobile-cta .primary::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%2306C755'/%3E%3Cpath d='M20 8.5c-7.5 0-13.5 4.8-13.5 10.8 0 5.3 4.8 9.8 11.2 10.6.4.1 1 .3 1.2.7.1.4.1.9 0 1.3l-.2 1.2c-.1.4-.3 1.4 1.2.8 1.5-.6 7.9-4.7 10.8-8 2-2.2 2.9-4.4 2.9-6.9 0-6-6.1-10.8-13.6-10.8z' fill='white'/%3E%3Ctext x='20' y='22.4' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='7' fill='%2306C755'%3ELINE%3C/text%3E%3C/svg%3E") center / contain no-repeat;
}
.nav .nav-cta::before { width: 20px; height: 20px; }
@media (max-width: 640px) { .nav .nav-cta { display: none; } }
.step .text-link, .faq-a .text-link { margin-left: 6px; font-size: 13px; }
.band p .text-link { font-size: inherit; letter-spacing: inherit; }
.split .body .text-link { font-size: inherit; letter-spacing: inherit; }
