:root {
  --navy: #0f172a;
  --navy-2: #16233a;
  --ivory: #f7f1e8;
  --ivory-2: #fffaf3;
  --wood: #b88752;
  --wood-deep: #8e6037;
  --whatsapp: #25d366;
  --amber: #e2a45d;
  --ink: #13233a;
  --line: rgba(184, 135, 82, 0.32);
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: "Noto Sans TC", system-ui, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page-loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--ivory); background: var(--navy); transition: opacity .35s ease, visibility .35s ease; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(247,241,232,.3); border-radius: 50%; font-size: 38px; animation: breathe 1.35s ease-in-out infinite; }
.page-loader p { margin: 0; font-size: 16px; letter-spacing: .16em; }

.site-header { position: fixed; z-index: 80; top: 0; left: 50%; width: min(100%, 760px); transform: translateX(-50%); display: flex; justify-content: space-between; align-items: center; padding: max(16px, env(safe-area-inset-top)) 22px 12px; color: var(--ivory); background: linear-gradient(180deg, rgba(15,23,42,.82), rgba(15,23,42,0)); pointer-events: none; }
.site-header a { pointer-events: auto; text-decoration: none; }
.wordmark { font-family: "Noto Serif TC", serif; font-size: 20px; letter-spacing: .02em; }
.header-link { padding: 8px 14px; border: 1px solid rgba(247,241,232,.48); border-radius: 999px; font-size: 14px; }

main { width: min(100%, 760px); margin: 0 auto; background: var(--navy); }
.image-story { background: var(--navy); }
.page-image { position: relative; width: 100%; overflow: hidden; background: var(--navy); touch-action: pan-x pan-y pinch-zoom; }
.page-image img { display: block; width: 100%; height: auto; margin: 0; vertical-align: bottom; user-select: none; -webkit-user-drag: none; }
.image-hotspot { position: absolute; left: 6%; right: 6%; top: 78%; height: 11%; display: block; cursor: pointer; border-radius: 999px; }
.image-hotspot--final { top: 75%; height: 13%; }

.conversion-section, .faq-section { padding: 76px 24px 88px; background: var(--ivory); }
.conversion-section { border-top: 4px solid var(--wood); }
.section-heading { max-width: 680px; margin: 0 auto 32px; }
.section-heading--compact { margin-bottom: 26px; }
.eyebrow { margin: 0 0 12px; color: var(--wood-deep); font-size: 13px; font-weight: 800; letter-spacing: .15em; }
h1, h2 { margin: 0; color: var(--navy); font-family: "Noto Serif TC", serif; font-weight: 900; line-height: 1.25; }
h1 { font-size: clamp(30px, 7.6vw, 54px); }
h2 { font-size: clamp(29px, 7vw, 48px); }
.section-heading > p:last-child { margin: 18px 0 0; color: #415168; font-size: 18px; line-height: 1.8; }

.consultation-form { max-width: 680px; margin: 0 auto; padding: 24px; background: var(--ivory-2); border: 1px solid rgba(15,23,42,.12); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 8px; color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.4; }
.form-grid label span, .consent-row b { color: #b54735; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid rgba(15,23,42,.22); border-radius: 4px; padding: 13px 14px; color: var(--navy); background: #fff; outline: none; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--wood-deep); box-shadow: 0 0 0 3px rgba(184,135,82,.18); }
.field-full { grid-column: 1 / -1; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; color: #43536a; font-size: 15px; line-height: 1.65; }
.consent-row input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--wood-deep); }
.primary-button, .sticky-whatsapp, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button { width: 100%; color: white; background: var(--navy); }
.primary-button:hover, .sticky-whatsapp:hover, .secondary-button:hover, .floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.2); }
.form-status { min-height: 24px; margin-top: 15px; color: var(--wood-deep); font-size: 16px; line-height: 1.6; }

.faq-section { border-top: 4px solid var(--wood); background: var(--ivory-2); }
.faq-list { max-width: 680px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; padding: 19px 42px 19px 0; color: var(--navy); font-size: 18px; font-weight: 900; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--wood-deep); font-size: 26px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -2px 0 20px; padding-right: 24px; color: #485970; font-size: 17px; line-height: 1.8; }

.site-footer { width: min(100%, 760px); margin: 0 auto; display: grid; gap: 7px; padding: 42px 24px calc(130px + env(safe-area-inset-bottom)); color: var(--ivory); text-align: center; background: var(--navy); }
.site-footer strong { font-family: "Noto Serif TC", serif; font-size: 30px; }
.site-footer span { color: rgba(247,241,232,.84); font-size: 16px; }
.site-footer small { color: rgba(247,241,232,.62); font-size: 14px; }

.sticky-bar { position: fixed; z-index: 90; right: 0; bottom: 0; left: 50%; width: min(100%, 760px); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); color: var(--ivory); background: rgba(15,23,42,.96); box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
.sticky-bar > span { max-width: 40%; font-size: 13px; font-weight: 700; line-height: 1.35; }
.sticky-bar > div { display: flex; gap: 8px; }
.secondary-button { min-height: 42px; padding: 9px 13px; color: var(--navy); background: var(--ivory); font-size: 13px; }
.sticky-whatsapp { min-height: 42px; padding: 9px 13px; color: #062b16; background: var(--whatsapp); font-size: 13px; animation: pulse 2.8s ease-in-out infinite; }
.floating-whatsapp { position: fixed; z-index: 95; right: max(16px, calc((100vw - 760px) / 2 + 16px)); bottom: calc(82px + env(safe-area-inset-bottom)); width: 54px; height: 54px; display: grid; place-items: center; color: #062b16; background: var(--whatsapp); border-radius: 50%; box-shadow: 0 12px 26px rgba(0,0,0,.24); text-decoration: none; font-size: 28px; animation: pulse 2.8s ease-in-out infinite; }
.action-status { position: fixed; z-index: 120; right: 16px; bottom: calc(146px + env(safe-area-inset-bottom)); left: 16px; max-width: 640px; margin: 0 auto; padding: 12px 16px; color: var(--navy); background: var(--ivory); border-left: 4px solid var(--wood-deep); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.action-status.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.28); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .65; } 50% { transform: scale(1.04); opacity: 1; } }

@media (max-width: 560px) {
  .site-header { padding-right: 16px; padding-left: 16px; }
  .wordmark { font-size: 18px; }
  .header-link { padding: 7px 10px; font-size: 12px; }
  .conversion-section, .faq-section { padding-right: 20px; padding-left: 20px; }
  .consultation-form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .sticky-bar > span { display: none; }
  .sticky-bar { justify-content: flex-end; }
  .floating-whatsapp { right: 16px; }
}

@media (min-width: 761px) {
  .site-header { padding-top: 20px; }
  .image-story { box-shadow: 0 0 50px rgba(0,0,0,.18); }
}
