/* 吉佳藥局官網｜樣式
   色彩：暖白 #FAF9F4／深森綠 #244B40／原木 #E9D0A5／文字 #302F29 */
:root {
  --paper: #faf9f4; --cream: #f3eedf; --card: #fffefa;
  --green: #244b40; --green-deep: #173d33; --moss: #3e6b5a; --sage: #e3e8df;
  --wood: #e9d0a5; --wood-deep: #a47137; --wood-soft: #efe3c8;
  --ink: #302f29; --muted: #666b60; --line: #dddcd1;
  --serif: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(36, 75, 64, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.85 var(--sans); }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b47d34; outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- 狀態列 ---------- */
.status-bar { background: var(--green-deep); color: #e9ebdf; font-size: 13px; line-height: 1.5; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.status-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pill { display: inline-block; padding: 1px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.pill-prep { background: var(--wood); color: #4a2f17; }
.pill-open { background: #cfe6cd; color: #1b4a2a; }
.pill-closed { background: #f1cfc9; color: #6d2a21; }
.status-tel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.status-tel svg { width: 16px; height: 16px; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 244, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 48px; }
.brand-mark img { width: 40px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.mono { display: none; place-items: center; width: 40px; height: 48px; border-radius: 20px 20px 4px 4px; background: var(--green); color: var(--wood); font: 600 22px/1 var(--serif); }
.no-img > .mono { display: grid; }
.brand-name { display: block; font: 600 22px/1.1 var(--serif); letter-spacing: .14em; color: var(--green); }
.brand-name small { display: block; margin-top: 3px; font: 500 9px/1 var(--sans); letter-spacing: .28em; color: var(--muted); }
#nav { display: flex; align-items: center; gap: 24px; font-size: 14px; letter-spacing: .04em; }
#nav a { position: relative; padding: 6px 0; }
#nav a:hover { color: var(--wood-deep); }
#nav a[aria-current="page"]:not(.nav-contact) { color: var(--green); font-weight: 700; }
#nav a[aria-current="page"]:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wood-deep); }
#nav .nav-contact { padding: 9px 18px; background: var(--green); color: #fff; border-radius: 6px; }
#nav .nav-contact:hover { background: var(--green-deep); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #c9d0c2; border-radius: 8px; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--green); border-radius: 2px; }

/* ---------- 共用元件 ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wood-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--green); }
h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.3; font-weight: 600; letter-spacing: .02em; margin-bottom: 24px; }
h1 em { font-style: normal; color: var(--wood-deep); }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.4; font-weight: 600; letter-spacing: .02em; margin-bottom: 20px; }
h3 { font-size: 19px; line-height: 1.5; font-weight: 600; margin-bottom: 8px; }
.lead { font-size: 17px; line-height: 2; color: #4e5249; max-width: 40em; margin-bottom: 28px; }
.sub { color: var(--muted); max-width: 38em; }
.fine { font-size: 13px; line-height: 1.8; color: var(--muted); }
.center { text-align: center; margin-top: 36px; }
.empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 1px solid var(--green); border-radius: 6px; background: transparent; color: var(--green); font-size: 15px; font-weight: 500; letter-spacing: .04em; transition: transform .18s, background .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost:hover { background: #e8e9df; }
.btn-text { border-color: transparent; padding-inline: 8px; }
.btn-text:hover { color: var(--wood-deep); transform: none; }
.btn-wood { background: var(--wood); border-color: var(--wood); color: #3b2812; }
.btn-wood:hover { background: #f0dab4; }
.btn-light { border-color: #9db0a4; color: #f1eee1; }
.btn-light:hover { background: rgba(255, 255, 255, .1); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { display: inline-block; font-size: 14px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b9a27e; }
.text-link:hover { color: var(--wood-deep); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; font: 500 12px/1.7 var(--sans); letter-spacing: .06em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-on { background: #dcebdd; color: #1f5130; }
.badge-ask { background: #f6e7c6; color: #6b4a0e; }
.badge-plan { background: #e6e9ee; color: #3c4655; }
.badge-pause { background: #f2d9d5; color: #7a2e24; }

.prep-note { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding: 12px 16px; background: #f3e9d2; border-left: 3px solid var(--wood-deep); border-radius: 4px; font-size: 14px; line-height: 1.8; color: #5a431f; max-width: 40em; }
.prep-note svg { flex: none; margin-top: 3px; width: 18px; height: 18px; }
.callout { margin-top: 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; }
.callout strong { display: block; color: var(--green); margin-bottom: 4px; }
.callout p { margin: 0; color: #4e5249; font-size: 15px; }

/* ---------- 首頁主視覺 ---------- */
.hero { padding: 52px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-art { width: 100%; max-width: 440px; margin-inline: auto; position: relative; }
.hero-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(36, 75, 64, .22)); }
.svg-t { font-family: var(--serif); }
.art-cap { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.facts { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.facts li + li { border-left: 1px solid var(--line); }
.f-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--green); }
.facts div { min-width: 0; flex: 1; }
.f-label { margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.f-val { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.f-sub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.f-act { flex: none; font-size: 13px; color: var(--green); border-bottom: 1px solid #b9a27e; padding-bottom: 1px; }

/* ---------- 區塊 ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.tint { background: var(--cream); }
.sec-head { margin-bottom: 36px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec-head.split > p { max-width: 28em; margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.sec-head h2 { margin-bottom: 0; }

.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.task { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.task:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9b48a; }
.task-n { font: 600 14px/1 var(--serif); color: var(--wood-deep); letter-spacing: .12em; margin-bottom: 18px; }
.task p { color: var(--muted); font-size: 15px; flex: 1; }
.task .go { color: var(--green); font-size: 14px; font-weight: 500; }

.floors { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.floor { position: relative; overflow: hidden; }
.floor-inner { position: relative; padding: 72px max(24px, calc((100vw - 1160px) / 2)) 72px 56px; max-width: 100%; }
.floor-1 { background: var(--wood-soft); }
.floor-1 .floor-inner { padding-left: max(24px, calc((100vw - 1160px) / 2)); padding-right: 56px; }
.floor-2 { background: var(--green); color: #f1eee1; }
.floor-2 h2, .floor-2 .eyebrow { color: #f1eee1; }
.floor-2 .eyebrow { color: #c3c9a9; }
.floor-no { position: absolute; right: 36px; top: 12px; margin: 0; font: 400 120px/1 Georgia, serif; color: rgba(164, 113, 55, .22); pointer-events: none; }
.floor-2 .floor-no { color: rgba(233, 208, 165, .18); }
.floor-lead { color: #5c604e; max-width: 26em; }
.floor-2 .floor-lead { color: #c9d1c3; }
.svc-list { list-style: none; margin: 28px 0 32px; padding: 0; max-width: 30em; }
.svc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(48, 47, 41, .16); }
.floor-2 .svc-list li { border-color: rgba(241, 238, 225, .22); }
.note-line { margin: 22px 0 0; padding: 14px 18px; text-align: center; font-size: 14px; color: var(--muted); border: 1px dashed #c9b48a; border-radius: 8px; background: var(--card); }
.note-line strong { color: var(--green); }

.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.news { margin-bottom: 18px; }
.news-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-date { font: 500 14px/1.9 var(--serif); color: var(--wood-deep); letter-spacing: .06em; }
.news-body h3 { margin-bottom: 4px; }
.news-body p { margin-bottom: 8px; color: #4e5249; white-space: pre-line; }
.pin { position: absolute; right: 0; top: 20px; font-size: 11px; padding: 0 10px; border-radius: 999px; background: var(--wood); color: #4a2f17; letter-spacing: .1em; }
.lulu-card { padding: 32px; background: #ece9de; border-radius: 160px 160px 14px 14px; text-align: center; border: 1px solid #d6d2bf; }
.lulu-card.flat { border-radius: 14px; }
.lulu-portrait { width: 190px; height: 190px; margin: 0 auto 20px; display: grid; place-items: center; background: #e5d3b5; border-radius: 50% 50% 10px 10px; border: 1px solid #bfb9a7; }
.lulu-portrait img { height: 118px; width: auto; mix-blend-mode: multiply; }
.lulu-portrait .mono { width: 80px; height: 96px; font-size: 40px; }
.lulu-portrait.no-img .mono { display: grid; }
.lulu-card h3 { font-size: 24px; }
.lulu-card p { color: var(--muted); font-size: 15px; }
.lulu-message { margin: 16px 0; padding-left: 14px; border-left: 3px solid #7e8b65; color: #4e5249; }

.visit { background: var(--green); color: #f1eee1; background-image: repeating-linear-gradient(90deg, rgba(233, 208, 165, .05) 0 2px, transparent 2px 11px); }
.visit-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 0; }
.visit h2 { color: #f1eee1; margin-bottom: 8px; }
.visit p { margin: 0; color: #c9d1c3; }

/* ---------- 內頁 ---------- */
.page-hero { padding: 44px 0 40px; background: linear-gradient(180deg, var(--cream), var(--paper)); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--wood-deep); }
.page-hero h1 { max-width: 20em; }
.status-line { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 14px; color: var(--muted); }

.legend { margin: 0 0 28px; font-size: 14px; }
.legend summary { cursor: pointer; display: inline-block; color: var(--green); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b9a27e; }
.legend ul { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; color: #4e5249; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc p { color: #4e5249; font-size: 15px; }
.dark-band { background: var(--green); }
.svc-grid.on-dark { grid-template-columns: repeat(3, 1fr); }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li { position: relative; counter-increment: step; padding: 0 0 26px 62px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #b9a27e; font: 600 14px/1 var(--serif); color: var(--wood-deep); background: var(--paper); }
.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: #4e5249; font-size: 15px; }
.side-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 100px; }
.side-card .big { font: 600 22px/1.5 var(--serif); color: var(--green); margin-bottom: 20px; }
.side-card p { font-size: 15px; }
.foot-title { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check li { position: relative; padding-left: 30px; color: #3f423a; }
.check li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 9px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg) scale(.9); }
.soft-box { margin-top: 28px; padding: 22px; background: #f3e9d2; border-radius: 12px; }
.soft-box h3 { font-size: 17px; }
.soft-box ul { margin: 0 0 10px; padding-left: 20px; color: #5a431f; font-size: 15px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3f423a; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 寄宿表單 ---------- */
.composer { margin-top: 28px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.composer fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: #3f423a; }
.composer input, .composer textarea, .composer-result textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #c9ccbf; border-radius: 8px; }
.composer input:focus, .composer textarea:focus, .composer-result textarea:focus { outline: 3px solid rgba(180, 125, 52, .35); border-color: #b47d34; }
.composer textarea, .composer-result textarea { resize: vertical; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.req { font-style: normal; font-size: 11px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: #f6e7c6; color: #6b4a0e; }
.form-error { min-height: 1.6em; margin: 0 0 8px; color: #9a2f22; font-size: 14px; font-weight: 500; }
.composer-result { margin-top: 24px; padding: 24px; background: #fff; border: 2px solid var(--green); border-radius: 14px; }
.composer-result > label { display: block; font-weight: 700; color: var(--green); }
.composer-result .cta-row { margin: 16px 0; }

/* ---------- 商品 ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-card.is-hidden-item { opacity: .62; outline: 2px dashed #b0453a; outline-offset: -2px; }
.p-media { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.tone-care { background: #ece6d9; }
.tone-nature { background: #dce3d4; }
.ico svg { width: 148px; height: 99px; fill: none; stroke: #56644f; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.p-ph { position: absolute; left: 12px; bottom: 10px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #5a624f; font-size: 11px; letter-spacing: .12em; }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.p-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.floor-tag { padding: 0 8px; border-radius: 4px; background: var(--green); color: #f1eee1; font: 600 11px/1.7 Georgia, serif; letter-spacing: .06em; }
.p-body h3 { margin: 2px 0 0; font-size: 19px; }
.p-brand { margin: 0; font-size: 13px; color: var(--wood-deep); }
.p-sum { margin: 0; color: #4e5249; font-size: 14.5px; line-height: 1.8; flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.tags li { padding: 0 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.p-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 8px; }
.price { font: 600 16px/1 var(--serif); color: var(--green); }
.link-btn { align-self: flex-start; margin-top: 6px; padding: 8px 0 2px; border: 0; border-bottom: 1px solid #b9a27e; background: transparent; color: var(--green); font-size: 14px; font-weight: 500; }
.link-btn:hover { color: var(--wood-deep); }
.p-issue { margin: 0 0 6px; padding: 6px 10px; background: #fbe4df; color: #8a2a1e; border-radius: 6px; font-size: 12px; line-height: 1.6; }

.filters { display: grid; gap: 14px; margin-bottom: 22px; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-label { font-size: 13px; color: var(--muted); margin-right: 4px; letter-spacing: .08em; }
.chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: #4e5249; font-size: 14px; }
.chip:hover { border-color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.search input { width: min(320px, 100%); padding: 10px 16px; font: inherit; font-size: 15px; border: 1px solid #c9ccbf; border-radius: 999px; background: #fff; }
.search input:focus { outline: 3px solid rgba(180, 125, 52, .35); border-color: #b47d34; }
.count { min-height: 1.6em; margin: 0 0 14px; font-size: 14px; color: var(--muted); }

dialog { width: min(580px, calc(100vw - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 30, 25, .55); overflow: auto; }
dialog::backdrop { background: rgba(20, 35, 30, .58); }
#item-dialog-body { padding: 36px 32px 28px; }
.dlg-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(36, 75, 64, .08); color: var(--green); font-size: 16px; }
.dlg-close:hover { background: rgba(36, 75, 64, .16); }
#item-dialog-body h2 { font-size: 26px; margin-bottom: 8px; }
.dlg-sum { color: #4e5249; }
.spec { margin: 16px 0; }
.spec > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--muted); }
.spec dd { margin: 0; font-size: 15px; }
.dlg-note { margin: 16px 0; padding: 14px 16px; background: #f3e9d2; border-radius: 10px; font-size: 14px; color: #5a431f; }
.dlg-note strong { display: block; margin-bottom: 2px; }
.dlg-note p { margin: 0; }
.dlg-msg { margin: 16px 0; padding: 14px 16px; background: #fff; border: 1px dashed #b9c0b1; border-radius: 10px; }
.dlg-msg .lbl { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.dlg-msg p { margin: 4px 0 0; font-size: 15px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dlg-actions .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; }
#item-dialog-body .fine { margin: 16px 0 0; }

/* ---------- 其他內頁 ---------- */
.sign-fig { margin: 0; text-align: center; }
.sign-fig img { width: 100%; height: auto; object-fit: contain; max-width: 380px; margin-inline: auto; border-radius: 12px; background: var(--cream); }
.sign-fig.no-img::before { content: "招牌設計示意圖"; display: grid; place-items: center; min-height: 240px; border: 1px dashed #c9b48a; border-radius: 12px; color: var(--muted); }
.sign-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th, .info-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 11em; font-weight: 500; color: var(--muted); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.info-list { margin: 0 0 28px; }
.info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 13px; color: var(--muted); letter-spacing: .06em; padding-top: 3px; }
.info-list dd { margin: 0; font-size: 16px; }
.info-list dd small { display: block; font-size: 13px; color: var(--muted); }
.social-line { margin-top: 16px; font-size: 14px; }
.social-line a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b9a27e; }
.map-box { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #e7e6da; }
.map-box iframe { width: 100%; height: 360px; border: 0; filter: saturate(.7); }
.map-box > a { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--card); font-size: 14px; color: var(--green); font-weight: 500; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr .8fr; gap: 40px; padding: 56px 0 36px; font-size: 14px; }
.foot-grid p { margin: 0 0 6px; }
.foot-tag { margin-top: 14px !important; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a:hover, .foot-grid a:hover { color: var(--wood-deep); }
.foot-legal { display: grid; gap: 4px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-legal p { margin: 0; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 手機快速列、提示 ---------- */
.action-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: min(92vw, 420px); padding: 12px 20px; border-radius: 10px; background: var(--green-deep); color: #f1eee1; font-size: 14px; text-align: center; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.preview-bar { position: sticky; top: 0; z-index: 60; padding: 10px 20px; background: #a32b1f; color: #fff; font-size: 14px; text-align: center; }

/* ---------- 響應式 ---------- */
@media (max-width: 1040px) {
  .hero-grid { gap: 36px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid.on-dark { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  #nav { gap: 16px; font-size: 13px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(36, 75, 64, .35); font-size: 16px; }
  #nav.open { display: flex; }
  #nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  #nav a[aria-current="page"]:not(.nav-contact)::after { display: none; }
  #nav .nav-contact { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .tasks { grid-template-columns: 1fr; }
  .floors { grid-template-columns: 1fr; }
  .floor-inner, .floor-1 .floor-inner { padding: 52px 24px; }
  .floor-no { font-size: 88px; right: 20px; }
  .sec-head.split { display: block; }
  .sec-head.split > p { margin-top: 16px; }
  .duo, .two-col, .two-col.even, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .side-card { position: static; }
  .visit-row { flex-direction: column; align-items: flex-start; padding: 44px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section.tight { padding: 40px 0; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(250, 249, 244, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font-size: 12px; color: var(--green); font-weight: 500; }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 62px; }
  .toast { bottom: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .wrap, .narrow { width: calc(100% - 40px); }
  .status-row { padding: 7px 0; }
  .status-tel span { display: none; }
  .status-tel { padding: 4px 8px; border: 1px solid rgba(233, 235, 223, .4); border-radius: 6px; }
  .brand-name { font-size: 20px; }
  .p-grid { grid-template-columns: 1fr; }
  .svc-grid.on-dark { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .pin { top: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .composer { padding: 20px; }
  .info-list > div { grid-template-columns: 88px 1fr; }
  .info-table th { width: 7em; }
  #item-dialog-body { padding: 32px 22px 24px; }
  .btn { flex: 1 1 auto; }
  .cta-row .btn-text { flex: 0 0 auto; }
  .map-box iframe { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .status-bar, .site-header, .action-bar, .toast, .visit { display: none; }
}

/* ---------- 線上洽詢 ---------- */
.composer select { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #c9ccbf; border-radius: 8px; }
.send-box { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.send-box h3 { font-size: 18px; }
.send-box label:not(.consent) { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.send-box input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: 15px; border: 1px solid #c9ccbf; border-radius: 8px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; font-weight: 400 !important; line-height: 1.8; color: #4e5249; }
.consent input { flex: none; width: 20px !important; height: 20px; margin: 4px 0 0 !important; padding: 0 !important; accent-color: var(--green); }
.consent a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-status { min-height: 1.6em; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.inq-status.is-error { color: #9a2f22; font-weight: 500; }
.inq-done { margin-top: 20px; padding: 20px 22px; background: #dcebdd; border-radius: 12px; color: #1f5130; }
.inq-done strong { display: block; font-size: 17px; }
.inq-done p { margin: 4px 0 0; }


/* Original Jijia identity and Lulu photographs */
.lulu-portrait { overflow:hidden; }
.lulu-portrait img.lulu-photo { width:100%; height:100%; object-fit:cover; object-position:center 36%; mix-blend-mode:normal; display:block; }
.lulu-portrait-large { width:100%; max-width:360px; height:auto; aspect-ratio:4/5; margin-bottom:0; }
.lulu-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:40px; align-items:start; }
.lulu-gallery figure { margin:0; border:1px solid var(--line,#d6d2bf); border-radius:14px; overflow:hidden; background:var(--cream,#f8f6ef); }
.lulu-gallery img { display:block; width:100%; height:auto; }
.lulu-gallery figcaption { padding:14px; text-align:center; font-size:14px; }
@media(max-width:640px) { .lulu-gallery { grid-template-columns:1fr; gap:20px; } .lulu-gallery figure { max-width:440px; width:100%; margin:auto; } }

/* Cat team: fixed frames preserve each photo's proportions. */
.cat-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.cat-team-card { background:var(--cream,#faf8f1); border:1px solid #d6d2bf; border-radius:18px; overflow:hidden; min-width:0; }
.cat-team-photo { aspect-ratio:4/3; background:#e9e4d8; overflow:hidden; }
.cat-team-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.cat-team-copy { padding:24px; }
.cat-team-copy h3 { margin-top:0; }
.cat-team-note { margin-top:24px; }
#cat-team, #jidu, #xiduo { scroll-margin-top:100px; }
@media(max-width:700px) { .cat-team-grid { grid-template-columns:1fr; } .cat-team-card { width:100%; max-width:440px; margin-inline:auto; } }

/* Progressive enhancement: horizontal photo carousel, original proportions. */
.cat-carousel { display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:thin; position:relative; padding-bottom:12px; align-items:stretch; }
.cat-carousel > * { flex:0 0 100%; width:100%; max-width:none; min-width:0; margin:0; scroll-snap-align:start; scroll-snap-stop:always; }
.cat-carousel .cat-team-photo { height:clamp(240px,45vw,420px); aspect-ratio:auto; }
.lulu-gallery.cat-carousel img { width:100%; height:clamp(240px,50vw,480px); object-fit:contain; background:#e9e4d8; }
.cat-carousel-controls { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:14px; margin:18px auto 30px; }
.cat-carousel-controls button { min-width:44px; min-height:44px; border:1px solid #a7b0a0; border-radius:24px; background:#faf8f1; color:#244c40; padding:8px 18px; cursor:pointer; font:inherit; }
.cat-carousel:focus-visible, .cat-carousel-controls button:focus-visible { outline:3px solid #9c7446; outline-offset:3px; }
@media(min-width:800px) { .cat-team-grid.cat-carousel > .cat-team-card { display:grid; grid-template-columns:1fr 1fr; align-items:center; } }

.lulu-gallery.cat-carousel > figure, .cat-team-grid.cat-carousel > .cat-team-card { max-width:none; margin:0; }

/* Each cat keeps its own independent photo track; team cards stay still. */
.cat-own-photos { display:flex; gap:0; overflow-x:auto; position:relative; scroll-snap-type:x mandatory; padding-bottom:0; }
.cat-own-photos > figure { flex:0 0 100%; min-width:0; width:100%; margin:0; height:320px; scroll-snap-align:start; background:#e9e4d8; }
.cat-own-photos > figure img { display:block; width:100%; height:100%; object-fit:contain; }
.cat-team-card .cat-carousel-controls { gap:8px; padding:0 10px; margin:14px 0 0; }
.cat-team-card .cat-carousel-controls button { padding:8px 12px; }
@media(max-width:700px) { .cat-own-photos > figure { height:360px; } }
