/* 豊寓島嶼風水 活動網站 共用樣式（數值取自 design/site-demo/Main.dc.html） */
/* 楷體（LXGW 文楷）的「即」是標準字形，看起來像錯字：只為這個字另載明體，字型清單排在楷體前面 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500&text=%E5%8D%B3&display=swap');
:root {
  --ink: #2A2320;
  --muted: #6B5F57;
  --soft: #8C8178;
  --paper: #F7F1E6;
  --line: #EDE4D6;
  --gold-line: rgba(201,166,90,0.35);
  --red: #A3241A;
  --teal: #2E5B57;
  --green: #2F3B33;
  --gold: #B38A3A;
  --gold-text: #8A6A2A;
  --orange: #B5651D;
  --line-green: #06A13A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  position: relative;
  isolation: isolate;
  -webkit-text-size-adjust: 100%;
}
/* 底圖「道韻金霧仙境」固定不捲動，上覆一層淡米白 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255,252,245,0.38), rgba(255,252,245,0.38)), url('../img/bg.jpg') center top / cover no-repeat;
}
a { color: var(--red); }
img { max-width: 100%; }
.kai { font-family: 'Noto Serif TC', 'LXGW WenKai TC', 'PMingLiU', serif; font-synthesis: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
[hidden] { display: none !important; }

/* 印章與區塊標題 */
.seal { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: 0.04em; }
.sec-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 480px) { .sec-head h2 { font-size: 26px; } }

/* 按鈕 */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid transparent; background: none; font-family: inherit; cursor: pointer; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line-o { border-color: var(--line-green); color: var(--line-green); min-height: 42px; font-size: 14px; }
.btn-ghost { border-color: #CDBFA8; color: var(--ink); min-height: 40px; font-size: 14px; }
.btn-sm { min-height: 40px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.price { font-family: 'Noto Serif TC', 'LXGW WenKai TC', serif; font-size: 24px; font-weight: 700; color: var(--red); }

/* 頁首 */
.hdr { border-bottom: 1px solid var(--gold-line); background: rgba(255,253,248,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; display: block; }
.brand b { display: block; font-size: 21px; letter-spacing: 0.06em; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 20px; font-size: 15px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--red); }
.hdr-login { min-height: 40px; padding: 0 16px; border-radius: 4px; background: #A3241A; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.hdr-acts { display: flex; gap: 8px; align-items: center; }
.hdr-font { min-height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--gold-line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hdr-font b { font-size: 16px; }
/* 字體放大：整頁等比放大 */
html.fs-l body { zoom: 1.15; }
html.fs-xl body { zoom: 1.3; }
@media (max-width: 760px) {
  .hdr { position: relative; }
  .nav { order: 3; flex: 1 1 100%; }
  .hdr-acts { order: 2; }
}

/* 首頁大圖 */
.hero { position: relative; background: #2A1A12; }
.hero img { display: block; width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; object-position: center 28%; }
@media (max-width: 760px) { .hero img { height: 240px; } }

/* 跑馬燈（往左） */
.marquee { overflow: hidden; position: relative; background: rgba(251,247,240,0.86); border-bottom: 1px solid var(--gold-line); }
.marquee-track { display: flex; width: max-content; animation: mq 36s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.mq-item { display: flex; gap: 12px; align-items: baseline; padding: 16px 36px; white-space: nowrap; text-decoration: none; color: var(--ink); border-right: 1px solid #E6D9C4; }
.mq-item b { font-weight: 700; font-size: 17px; }
.mq-item span { font-size: 15px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* 海報：依圖片原比例顯示，不裁切；沒有海報時用色塊 */
.poster { position: relative; border-radius: 4px; overflow: hidden; background: #F2ECE2; display: block; text-decoration: none; }
.poster img { width: 100%; height: auto; display: block; }
.poster.ph { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; }
.ph-red { background: linear-gradient(170deg, #8E2418, #C9862B); color: #FFF4DE; }
.ph-teal { background: linear-gradient(165deg, #2B3B38, #4F6B5F); color: #EAD9A8; }
.ph-gold { background: linear-gradient(165deg, #6E5320, #B38A3A); color: #FFF4DE; }
.ph-name { font-size: 26px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; }
.ph-sub { font-size: 15px; letter-spacing: 0.25em; }

.section { padding-top: 72px; }
.band { margin-top: 72px; }
.band-teal { background: rgba(236,243,240,0.72); border-top: 1px solid #DCE6E2; border-bottom: 1px solid #DCE6E2; }
.band-teal > .wrap { padding-top: 56px; padding-bottom: 60px; }

/* 本月活動 */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.feat { display: flex; gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; align-items: flex-start; }
.feat .poster { flex: 0 0 220px; width: 220px; }
.feat-body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.feat h3 { margin: 0; font-size: 24px; line-height: 1.4; }
.feat p { margin: 0; font-size: 15px; color: #4A3F38; line-height: 1.9; }
.feat .when { font-size: 14px; color: var(--muted); }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) {
  .feat { flex-direction: column; }
  .feat .poster { width: 100%; flex-basis: auto; }
  .feat .poster.ph { aspect-ratio: 16 / 9; }
}

/* 永續活動 */
.ong-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 540px)); gap: 24px; }
.ong { display: flex; gap: 20px; padding: 18px; background: #fff; border: 1px solid #DCE6E2; border-radius: 6px; flex-wrap: wrap; align-items: flex-start; }
.ong .poster { flex: 0 0 132px; width: 132px; }
.ong-body { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.ong h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.ong p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.ong .price { color: var(--teal); }
.ong .btn { margin-top: auto; }

/* 專業服務分類 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; }
.cat:hover { border-color: #CDBFA8; }
.cat b { font-size: 20px; }
.cat span { font-size: 13px; color: var(--muted); }
.cat em { font-style: normal; font-size: 14px; color: var(--red); font-weight: 700; margin-top: 4px; }
.btn-outline-green { border-color: var(--green); color: var(--green); }

/* 未來活動 */
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); gap: 28px; }
.soon { display: flex; flex-direction: column; gap: 10px; }
.soon h3 { margin: 2px 0 0; font-size: 16px; }
.soon .when { font-size: 13px; color: var(--gold-text); font-weight: 700; }
.soon .more { font-size: 13px; text-align: center; color: var(--muted); }
@media (max-width: 480px) { .soon-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* 老師介紹 */
.teacher { margin-top: 72px; background: var(--green); color: #F1EADC; }
.teacher .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding-top: 52px; padding-bottom: 52px; }
.teacher-img { flex: 0 0 210px; display: block; }
.teacher-img img { width: 210px; height: auto; border-radius: 4px; display: block; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.teacher-body { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.teacher h2 { margin: 0; font-size: 30px; color: #fff; letter-spacing: 0.06em; }
.teacher p { margin: 0; font-size: 15px; line-height: 1.9; max-width: 34em; }
.teacher .role { color: #CFC4B0; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border: 1px solid #6E7F70; border-radius: 4px; font-size: 14px; }
.media { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 16px; border-top: 1px solid #4A5A4E; }
.media b { font-size: 17px; color: #E9CF95; font-weight: 400; }
.media a { color: #F1EADC; font-size: 14px; line-height: 1.7; }
.media a.all { color: #E9CF95; }
.btn-on-dark { border-color: #8E9C8F; color: #F1EADC; }

/* Podcast／評價 */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.9); }
.panel h2 { margin: 0; font-size: 24px; }
.panel p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-dark { background: var(--ink); color: #fff; min-height: 40px; font-size: 14px; }

/* 過往活動 */
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 176px)); gap: 22px; }
.past { display: flex; flex-direction: column; gap: 8px; }
.past h3 { margin: 0; font-size: 14px; line-height: 1.5; }
.past span { font-size: 12px; color: var(--soft); }
@media (max-width: 480px) { .past-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* 頁尾 */
.ftr { margin-top: 72px; background: var(--ink); color: #E6DCCD; border-top: 3px solid var(--gold); }
.ftr .wrap { padding-top: 44px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-size: 14px; line-height: 2; }
.ftr-col { display: flex; flex-direction: column; }
.ftr-col a { color: #E9CF95; }
.ftr-col a.plain { color: #E6DCCD; text-decoration: none; }
.ftr-logo { width: 64px; height: 64px; display: block; margin-bottom: 10px; }
.ftr-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0.06em; margin-bottom: 6px; }
.ftr-motto { color: #CFC0A8; margin-bottom: 8px; }
.ftr-bottom { flex: 1 1 100%; margin-top: 8px; padding-top: 16px; border-top: 1px solid #4A403A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: #B5A897; line-height: 1.8; }

/* 狀態訊息 */
.notice { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.9); color: var(--muted); font-size: 15px; line-height: 1.8; }
.notice.err { border-color: #E3B9B3; color: var(--red); }
.loading { color: var(--muted); font-size: 15px; padding: 24px 0; }

/* ============ 內頁與表單 ============ */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; display: flex; flex-direction: column; gap: 28px; }
.page-narrow { max-width: 760px; }
@media (max-width: 480px) { .page { padding: 24px 16px 64px; } }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 480px) { .card { padding: 16px; } }
.card h2 { margin: 0; font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.in { min-height: 44px; padding: 0 10px; border: 1px solid #CDBFA8; border-radius: 4px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
textarea.in { padding: 10px; resize: vertical; min-height: 88px; line-height: 1.7; }
.in:disabled { background: #F1EEEA; color: var(--soft); }
/* 欄位標題：「必填」跟在標題同一行，其他（說明、輸入框、按鈕組）各自換行 */
.lb { display: block; font-size: 14px; font-weight: 500; }
.lb > * { margin-top: 6px; }
.lb > .req { display: inline; margin: 0 0 0 4px; color: var(--red); font-size: 12px; font-weight: 400; }
.lb > .hint { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.lb > .in { display: block; }
.lb > .seg { display: flex; width: fit-content; }
.lb > .link-btn { display: inline; margin: 0 0 0 10px; padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 200px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; }

/* 分段按鈕（國曆／農曆、善男／信女） */
.seg { display: inline-flex; border: 1px solid #CDBFA8; border-radius: 22px; overflow: hidden; align-self: flex-start; }
.seg button { min-height: 40px; min-width: 76px; padding: 0 14px; border: none; background: #fff; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid #CDBFA8; }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.bday { display: flex; flex-direction: column; gap: 8px; }
.bday-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 6px; }
.bday-preview { font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 4px; background: #F4F1EC; line-height: 1.6; }
.bday-preview.ok { background: #FBF6EE; color: var(--ink); }
.bday-preview.warn { background: #FBEAEA; color: #8E1F14; }
.bday-leap { font-size: 14px; }
.bday-u { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bday-u .in { flex: 1; min-width: 0; }
.bday-u span { flex: none; color: var(--muted); font-size: 14px; }
.bday:has(.with-hour) .bday-leap { grid-column: 1 / -1; }

/* 活動頁頭 */
.ev-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ev-poster { flex: 1 1 320px; max-width: 460px; }
.ev-poster img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 10px 28px rgba(60,40,20,0.18); }
.ev-info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.ev-info .tag-line { margin: 0; font-size: 14px; letter-spacing: 0.1em; color: var(--red); font-weight: 700; }
.ev-info h1 { margin: 0; font-size: 34px; line-height: 1.35; letter-spacing: 0.03em; }
.ev-info .intro { font-size: 15px; line-height: 1.95; color: #4A3F38; }
.ev-info .intro p { margin: 0 0 .8em; }
.ev-meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 6px; background: rgba(251,246,238,0.92); border: 1px solid #E6D6BE; font-size: 15px; }
@media (max-width: 480px) { .ev-info h1 { font-size: 27px; } .ev-head { gap: 22px; } }

/* 方案卡片 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid #E6D6BE; border-radius: 8px; background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.plan:hover { border-color: #CDBFA8; }
.plan[aria-pressed="true"] { border: 2px solid var(--red); padding: 19px; background: #FFFCF7; }
.plan:disabled { cursor: not-allowed; opacity: .55; }
.plan .p-name { font-size: 17px; font-weight: 700; }
.plan .p-price { font-family: 'Noto Serif TC', 'LXGW WenKai TC', serif; font-size: 26px; font-weight: 700; color: var(--red); }
.plan .p-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.plan .p-left { font-size: 12px; color: var(--gold-text); font-weight: 700; }
.plan img { width: 100%; height: auto; border-radius: 4px; }

/* 步驟 */
.steps { display: flex; gap: 6px; }
.steps span { flex: 1 1 0; height: 4px; border-radius: 2px; background: #ECE4D8; }
.steps span.on { background: var(--red); }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.step-title h2 { margin: 0; font-size: 22px; }
.step-title span { font-size: 13px; color: var(--muted); }
.person { margin: 0; padding: 18px; border: 1px solid #E6D6BE; border-radius: 8px; display: flex; flex-direction: column; gap: 14px; background: #FFFDF9; }
.person legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
.person .p-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { border: none; background: none; padding: 6px 0; font: inherit; font-size: 14px; color: #8E2418; cursor: pointer; }
.add-btn { min-height: 48px; border: 1px dashed #A89A88; border-radius: 8px; background: #fff; font: inherit; cursor: pointer; color: var(--ink); }
.counter { display: flex; align-items: center; gap: 8px; }
.counter button { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #C9B79C; background: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.counter b { min-width: 32px; text-align: center; font-size: 18px; }

/* 金額列 */
.sum { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 8px; background: #FBF6EE; font-size: 15px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum hr { border: none; height: 1px; background: #E6D6BE; margin: 0; width: 100%; }
.sum .total { font-size: 18px; font-weight: 700; }
.sum .total b { color: var(--red); }
.bar { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,0.97); border-top: 1px solid #E6D6BE; box-shadow: 0 -4px 16px rgba(0,0,0,0.06); }
.bar .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .amt { display: flex; flex-direction: column; }
.bar .amt span { font-size: 13px; color: var(--muted); }
.bar .amt b { font-size: 22px; color: #8E2418; }
.bar .acts { display: flex; gap: 10px; }
.err-box { padding: 12px 14px; border-radius: 6px; background: #FDECE9; color: #8E2418; font-size: 14px; line-height: 1.7; }
.ok-box { padding: 12px 14px; border-radius: 6px; background: #EAF5EC; color: #1F5F2E; font-size: 14px; line-height: 1.7; }

/* 完成頁 */
.done { align-items: center; text-align: center; gap: 12px; }
.done .oid { font-size: 30px; font-weight: 700; letter-spacing: 0.12em; font-family: ui-monospace, Consolas, monospace; }
.done .sum { width: 100%; text-align: left; }
.copy { border: 1px solid #CDBFA8; background: #fff; border-radius: 4px; font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; margin-left: 6px; }

/* ============ 專業服務 ============ */
.svc-hero { background: var(--green); color: #F1EADC; }
.svc-hero .wrap { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.svc-hero h1 { margin: 0; font-size: 34px; color: #fff; letter-spacing: 0.06em; }
.svc-hero p { margin: 0; font-size: 15px; line-height: 1.9; max-width: 40em; color: #DCD2C0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid #CDBFA8; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.tabs button span { font-size: 12px; opacity: .7; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.svc img { width: 100%; height: auto; border-radius: 4px; }
.svc-cat { align-self: flex-start; padding: 2px 10px; border-radius: 4px; background: #F1F5F3; color: var(--teal); font-size: 12px; }
.svc h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.svc p { margin: 0; font-size: 14px; line-height: 1.8; color: #574B43; }
.svc-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } /* 價格一排、按鈕一排，貼齊卡片底部（2026/10/28） */
.svc-price { font-size: 22px; font-weight: 700; color: var(--red); }

/* ============ 年度點燈 ============ */
.taisui { padding: 14px 18px; border-radius: 8px; background: #FDF3EE; border: 1px solid #EBC9BD; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.8; }
.taisui strong { color: #8E2418; font-size: 17px; }
.taisui div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.taisui b { color: #8E2418; }
.lamp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.lamp-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #F0E3CF; border-radius: 6px; background: #FFFCF6; }
.lamp-item img { width: 100%; height: auto; border-radius: 4px; }
.pack-note { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 6px; background: #FBF3E6; font-size: 14px; line-height: 1.7; color: #574B43; }
.pack-note b { color: var(--ink); }
.all-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fam-list { display: flex; flex-direction: column; gap: 12px; }
.fam { padding: 16px; border: 1px solid #E6D6BE; border-radius: 8px; background: #FFFDF9; display: flex; flex-direction: column; gap: 10px; }
.fam-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-head b { font-size: 17px; }
.fam-sub { font-size: 14px; color: #4A3F38; line-height: 1.8; }
.fam-total { text-align: right; font-size: 14px; color: var(--muted); }
.fam-total b { color: var(--ink); font-size: 16px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag-hit { background: #FDE7E2; color: #8E2418; }
.tag-ok { background: #EAF5EC; color: #1F5F2E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid #C9B79C; background: #fff; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip:disabled { opacity: .55; cursor: not-allowed; }
.chip-gold { border-color: #8A6420; color: #8A6420; }
.chip-gold[aria-pressed="true"] { background: #8A6420; border-color: #8A6420; color: #fff; }
.chip-sm { min-height: 34px; font-size: 13px; padding: 0 10px; }

/* ============ 網站政策 ============ */
#policies { display: flex; flex-direction: column; gap: 18px; }
.policy { font-size: 15px; line-height: 1.9; color: #3F3530; }
.policy h2 { font-size: 24px; }
.policy h3 { margin: 6px 0 0; font-size: 17px; color: var(--ink); }
.policy p { margin: 0; }
.policy ul { margin: 0; padding-left: 1.4em; }

/* 後台預覽視窗裡的提示列 */
.preview-banner { position: relative; z-index: 30; background: #8A6A2A; color: #fff; font-size: 13px; text-align: center; padding: 6px 12px; }

/* ============ 會員中心 ============ */
.or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #E6D9C4; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #E6D6BE; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #574B43; flex: 0 0 48px; }
.mtabs { display: flex; border-bottom: 2px solid #E6D9C4; }
.mtabs button { min-height: 48px; padding: 0 18px; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; background: transparent; font: inherit; font-size: 16px; color: #4A3F38; cursor: pointer; }
.mtabs button[aria-selected="true"] { border-bottom-color: var(--red); color: var(--red); font-weight: 700; }
#tabBody { display: flex; flex-direction: column; gap: 16px; }
.flash { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 10px 20px; border-radius: 8px; background: #2B2522; color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.addr { display: flex; flex-direction: column; gap: 6px; }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* 綠界 ATM 虛擬帳號 */
.pay-box { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 8px; border: 2px solid #2E5B57; background: #F4F8F6; text-align: left; }
.pay-box b { font-size: 16px; }

/* 訂單查詢：Email 驗證後的訂單清單 */
.order-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid #EDE4D6; border-radius: 8px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; line-height: 1.6; }
.order-row:hover { border-color: #B38A3A; }

/* 報名三步驟：① 選擇方案 → ② 填寫資料 → ③ 支付結緣金 */
.stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.stepper li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; position: relative; }
.stepper li span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ECE4D8; color: #6B5F57; font-weight: 700; font-size: 14px; }
.stepper li.on { color: var(--red); font-weight: 700; }
.stepper li.on span { background: var(--red); color: #fff; }
.stepper li.done span { background: #2E5B57; color: #fff; }
.stepper li + li::before { content: ''; position: absolute; top: 15px; right: calc(50% + 20px); width: calc(100% - 34px); height: 2px; background: #ECE4D8; }
.pay-pick { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid #E5DCCB; border-radius: 8px; background: #fff; line-height: 1.7; cursor: pointer; }
.pay-opt input { margin-top: 6px; accent-color: #2E5B57; }
.pay-opt:hover { border-color: #B9CFCB; }
.pay-opt:has(input:checked), .pay-opt.on { border-color: #2E5B57; background: #F3F7F6; box-shadow: 0 0 0 3px rgba(46,91,87,.12); }
.pay-opt input { width: 18px; height: 18px; }
.pay-ec { flex-direction: column; gap: 0; cursor: default; }
.pay-ec:not(:has(.pay-ec-head input:checked)) { border-color: #E5DCCB; background: #fff; box-shadow: none; }
.pay-ec-head { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pay-sub { display: none; flex-direction: column; gap: 8px; margin: 10px 0 2px 28px; }
.pay-ec:has(.pay-ec-head input:checked) .pay-sub { display: flex; }
.pay-sub-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #E5DCCB; border-radius: 8px; background: #fff; cursor: pointer; }
.pay-sub-opt:has(input:checked) { border-color: #2E5B57; }
.pay-sub-opt input { margin-top: 6px; accent-color: #2E5B57; width: 16px; height: 16px; }
.member-tip { font-size: 14px; color: #574B43; background: #FBF7F0; border: 1px dashed #D9CBB4; border-radius: 8px; padding: 10px 14px; }
.member-pick { display: flex; flex-direction: column; gap: 10px; background: #F3F7F6; border: 1px solid #C9DAD7; border-radius: 8px; padding: 14px; }
.member-pick .chip input { margin: 0 4px 0 0; accent-color: #2E5B57; }
.sub-title { margin: 6px 0 0; font-size: 18px; }

/* 專業服務的方案選項（原價刪除線＋優惠價） */
.svc-opts { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.svc-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #FBF7F0; }
.svc-opt > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.6; }
.svc-opt-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.svc-opt-price s { color: var(--muted); font-size: 13px; }
.svc-opt-price b { color: var(--red); font-size: 16px; }
.svc-opt .btn { flex: 0 0 auto; white-space: nowrap; }

/* 詢問單（專業服務） */
.btn-inq { min-height: 36px; padding: 0 12px; border: 1px solid var(--teal); color: var(--teal); background: #fff; border-radius: 4px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-inq[aria-pressed="true"] { background: var(--teal); color: #fff; }
.inq-panel { position: fixed; inset: 0; z-index: 50; background: rgba(30,24,20,0.45); display: flex; align-items: flex-end; justify-content: center; }
.inq-panel[hidden] { display: none !important; }
.inq-box { background: #fff; width: min(560px, 100%); max-height: 88vh; overflow: auto; border-radius: 12px 12px 0 0; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .inq-panel { align-items: center; } .inq-box { border-radius: 12px; } }
.inq-head { display: flex; justify-content: space-between; align-items: center; }
.inq-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EDE4D6; font-size: 15px; }
.inq-item b { color: var(--red); white-space: nowrap; }
.svc-opt { flex-wrap: wrap; }
.svc-opt > div { flex: 1 1 170px; }
.svc-opt-price s, .svc-opt-price b { white-space: nowrap; }

/* 成功案例（活動頁報名框下方）：一列左右滑動，圖片同高、寬度依原比例不裁切，滑到才載入；點了放大 */
.cases { margin-top: 24px; }
.cases-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case-arrows { margin-left: auto; display: flex; gap: 6px; }
.case-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--red); }
.case-arrows button:disabled { opacity: .35; cursor: default; }
.case-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; overscroll-behavior-x: contain; }
.case { flex: none; margin: 0; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; max-width: 80vw; }
.case button { padding: 0; border: 0; background: var(--line); cursor: zoom-in; display: block; border-radius: 6px; }
.case img { height: 280px; width: auto; min-width: 160px; max-width: 80vw; object-fit: contain; display: block; border-radius: 6px; border: 1px solid var(--line); }
.case figcaption { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 260px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20,16,12,0.9); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 4px; }
.lightbox figcaption { color: #F3EBDD; font-size: 15px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lightbox .lb-n { font-size: 13px; opacity: .7; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,0.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.24); }
.lightbox .lb-x { top: 12px; right: 12px; }
.lightbox .lb-p { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nx { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .case img { height: 220px; }
  .case-arrows { display: none; }
  .lightbox { padding: 56px 8px 24px; }
  .lightbox .lb-p, .lightbox .lb-nx { top: auto; bottom: 12px; transform: none; }
}

/* 人機驗證：平常看不到；需要點的時候才在畫面下方出現 */
.human-check { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; }
.human-check:empty { display: none; }

/* 金額前的「結緣金」小字（2026/10/22：網站上的價格一律稱結緣金） */
.jy-label { font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 4px; letter-spacing: .05em; }

/* 加供勾選（活動報名每位參加者，2026/10/22） */
.addons { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #FBF7EF; border: 1px solid var(--line); border-radius: 6px; }

/* 活動報名一頁完成（2026/10/22）：每位參加者卡片裡選登記項目（單選），確認視窗 */
.item-opts { display: flex; flex-direction: column; gap: 8px; }
.item-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E6D6BE; border-radius: 8px; background: #fff; cursor: pointer; }
.item-opt:hover { border-color: #CDBFA8; }
.item-opt:has(input:checked) { border: 2px solid var(--red); padding: 9px 11px; background: #FFFCF7; }
.item-opt.full { opacity: .55; cursor: not-allowed; }
.item-opt input { flex: none; width: 18px; height: 18px; accent-color: var(--red); }
.item-opt .io-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-opt .io-main b { font-size: 15px; }
.io-price { flex: none; text-align: right; font-weight: 700; color: var(--red); white-space: nowrap; }
.io-price small.muted { font-weight: 400; font-size: 12px; }
.io-left { font-size: 12px; color: var(--gold-text); font-weight: 700; }
.item-one { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #FBF6EE; }
.pick-first { margin: 0; padding: 10px 12px; border: 1px dashed #E6D6BE; border-radius: 8px; text-align: center; }
.person .p-sub { font-weight: 700; color: var(--red); }
.confirm-panel { position: fixed; inset: 0; z-index: 55; background: rgba(30,24,20,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.confirm-dialog { background: #fff; border-radius: 10px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
@media (max-width: 480px) {
  .item-opt { flex-wrap: wrap; }
  .item-opt .io-main { flex: 1 1 0; }
  .item-opt .io-price { width: 100%; text-align: left; padding-left: 28px; }
  .confirm-panel { padding: 0; align-items: stretch; }
  .confirm-dialog { max-height: none; border-radius: 0; }
}
.item-note { margin: -6px 0 0; padding: 8px 12px; border-radius: 6px; background: #FBF6EE; line-height: 1.7; }

/* 活動報名：每一區各自一張卡片（2026/10/22） */
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack .persons { display: flex; flex-direction: column; gap: 18px; }
.form-sec .sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form-sec .pay-pick > b:first-child { display: none; }
.form-stack .person { background: #fff; border: 1px solid #E6D6BE; border-top: 4px solid var(--red); border-radius: 8px; padding: 0 18px 18px; box-shadow: 0 2px 10px rgba(60,40,20,0.06); }
.person .p-band { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 -18px; padding: 10px 18px; background: #FBF3EA; border-bottom: 1px solid #EFE3D2; }
.person .p-no { background: var(--red); color: #fff; font-weight: 700; font-size: 15px; padding: 3px 14px; border-radius: 999px; }
.person .p-kind { color: var(--muted); }
.person .p-band .p-sub { margin-left: auto; font-weight: 700; color: var(--red); }
.form-stack .person.dead { border-top-color: #2E5B57; }
.person.dead .p-band { background: #EEF4F2; border-bottom-color: #DCE8E5; }
.person.dead .p-no { background: #2E5B57; }
.person.dead .p-band .p-sub { color: #2E5B57; }

/* 欄位錯誤：標紅出錯的那一格（2026/10/22） */
.field-bad .in, .field-bad .seg, .field-bad .bday select, .field-bad .bday input { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(163, 36, 26, 0.15); }
.field-bad .seg { border-radius: 8px; }
.field-msg { display: block; color: var(--red); font-size: 13.5px; font-weight: 700; }
.check.field-bad { color: var(--red); flex-wrap: wrap; }
.check.field-bad input { outline: 2px solid var(--red); outline-offset: 2px; }
/* 暫存：要繼續上次填的內容嗎？ */
.draft-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; background: #FFF8E8; border: 1px solid #E8D3A2; border-radius: 8px; }
.draft-ask .btns { display: flex; gap: 8px; }
.draft-ask .btn { min-height: 40px; padding: 6px 16px; }

/* 點燈頁一頁完成：錯誤時整張家人卡片／新增家人表單標紅（2026/10/22） */
.fam.field-bad, .person.field-bad, .fam-list.field-bad { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.add-btn.field-bad { border-color: var(--red); color: var(--red); }


/* 闔家組合：10 格燈位＋每位家人直接填寫（2026/10/22） */
.pack-meter { border: 1px solid #E8D3A2; background: #FFF8E8; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pm-head b { font-size: 17px; color: var(--red); }
.pm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pm-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 2px; border: 1.5px dashed #D9C6A3; border-radius: 8px; background: #fff; color: #B9A88C; font: inherit; font-size: 12px; text-align: center; line-height: 1.3; }
.pm-slot b { font-size: 13px; white-space: nowrap; letter-spacing: -0.5px; }
.pm-slot span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-slot.on { border: 1.5px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.pm-slot.on.over { background: #fff; color: var(--red); }
.fam-edit { gap: 12px; }
.fam-edit.has-pick { border-color: var(--red); box-shadow: 0 0 0 1px rgba(163, 36, 26, 0.15); }
@media (min-width: 640px) { .pm-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

/* 燈位看板懸浮（2026/10/22）：往下填家人時一直停在頁首下方，捲出方案卡片就收起 */
.pack-meter { position: sticky; top: calc(var(--hdr-h, 0px) + 6px); z-index: 15; box-shadow: 0 6px 16px rgba(60, 40, 20, 0.12); }
@media (max-width: 639px) {
  .pack-meter { padding: 8px 10px; gap: 6px; }
  .pm-head b { font-size: 15px; }
  .pm-grid { gap: 4px; }
  .pm-slot { min-height: 40px; font-size: 11px; }
  .pm-slot b { font-size: 12px; }
}

/* 點燈頁上方「燈種與方案」：只做介紹（2026/10/22） */
#lampInfo .lamp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#lampInfo .lamp-item { align-items: center; text-align: center; gap: 6px; padding: 16px 8px; border-color: #EAD9BD; background: linear-gradient(180deg, #FFFDF8 0%, #FBF1E2 100%); }
#lampInfo .lamp-item b { font-size: 18px; font-weight: 500; color: var(--ink); }
.lamp-dot { width: 26px; height: 32px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 50% 40%, #F7C76A 0%, #E0892E 55%, #A3241A 100%); box-shadow: 0 0 12px rgba(224, 137, 46, 0.45); position: relative; }
.lamp-dot::before, .lamp-dot::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 12px; height: 4px; border-radius: 2px; background: #8A6420; }
.lamp-dot::before { top: -3px; } .lamp-dot::after { bottom: -3px; }
.lamp-price { color: var(--red); font-size: 17px; font-weight: 700; white-space: nowrap; }
.lamp-price small { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0 2px; }
.lamp-price.big { font-size: 22px; }
.pack-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
#lampInfo .pack-note { position: relative; gap: 6px; padding: 18px 16px 14px; border: 1.5px solid #C9A45C; background: #FFF8E8; }
#lampInfo .pack-note b { font-size: 19px; font-weight: 500; }
.pack-tag { align-self: flex-start; background: #8A6420; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
@media (min-width: 900px) { #lampInfo .lamp-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 639px) { #lampInfo .lamp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } #lampInfo .lamp-item .lamp-price small:first-child { display: block; margin: 0 0 -2px; } }

/* 燈種功效小視窗：浮在滑鼠旁（手機點一下出現在卡片下方）（2026/10/22） */
#lampInfo .lamp-item.has-fx { cursor: help; outline: none; transition: border-color .2s, box-shadow .2s; }
#lampInfo .lamp-item.has-fx:hover, #lampInfo .lamp-item.has-fx:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(163, 36, 26, 0.15); }
.lamp-tip { position: fixed; z-index: 60; left: 0; top: 0; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #A3241A 0%, #7A1A12 100%); color: #FFF6E6; font-size: 14px; line-height: 1.7; box-shadow: 0 10px 28px rgba(60, 20, 10, 0.3);
  display: flex; flex-direction: column; gap: 4px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.lamp-tip.on { opacity: 1; transform: none; }
.lamp-tip b { font-size: 16px; font-weight: 500; color: #F7D58A; }
.lamp-tip span { font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .lamp-tip { transition: none; } }

/* 地址：第 2 位起可勾「同上一位的地址」（2026/10/22） */
.same-addr { min-height: 0; font-size: 14px; font-weight: 400; align-self: flex-start; gap: 6px; color: var(--red); cursor: pointer; }
.same-addr input { width: 18px; height: 18px; accent-color: var(--red); }

/* 參加者卡片精簡（2026/10/22）：姓名＋性別一排、出生年月日時一排 */
.bday-row.with-hour { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
.bday:has(.with-hour) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.bday:has(.with-hour) .bday-preview { grid-column: 1 / -1; padding: 4px 10px; }
.row-tight > .lb { flex: 1 1 110px; min-width: 0; }
.row-tight > .lb-gender { flex: 0 0 auto; }
@media (max-width: 520px) {
  /* 手機：曆別＋時辰一排、年月日一排 */
  .bday:has(.with-hour) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bday:has(.with-hour) .bday-row { display: contents; }
  .bday:has(.with-hour) .seg { grid-column: 1 / 3; grid-row: 1; justify-self: start; }
  .bday:has(.with-hour) select[data-f="hour"] { grid-column: 3; grid-row: 1; }
  .bday:has(.with-hour) .bday-preview { grid-column: 1 / -1; }
}

/* ---------- 線上預約（appt.html，2026/10/27） ---------- */
.appt-rules { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #FBF3EA; border: 1px solid #EFE3D2; }
.appt-rules p { margin: 0; line-height: 1.8; }
.appt-rules p + p { margin-top: 4px; }
.appt-plans { display: flex; flex-direction: column; gap: 10px; }
.appt-plan { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid #E5DCCB; border-radius: 8px; background: #fff; cursor: pointer; }
.appt-plan.on { border-color: var(--red); background: #FFF8F4; }
.appt-plan input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.appt-plan .ap-main { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.appt-plan .ap-price { display: flex; flex-direction: column; align-items: flex-end; color: var(--red); white-space: nowrap; }
.appt-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.appt-day-btn { flex: none; min-width: 92px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid #D9CBB4; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; padding: 6px 10px; }
.appt-day-btn.on { border-color: var(--red); background: var(--red); color: #fff; }
.appt-day-btn:disabled { opacity: .45; cursor: not-allowed; }
.appt-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.appt-time { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #D9CBB4; border-radius: 8px;
  background: #fff; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; }
.appt-time .small { font-weight: 400; color: var(--muted); }
.appt-time.on { border-color: var(--red); background: var(--red); color: #fff; }
.appt-time.on .small { color: #fff; }
.appt-time:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 560px) {
  .appt-plan { flex-wrap: wrap; }
  .appt-plan .ap-main { flex: 1 1 calc(100% - 40px); }
  .appt-plan .ap-price { flex: 1 1 100%; flex-direction: row; justify-content: flex-end; align-items: baseline; gap: 8px; }
}
/* 預約月曆（2026/10/27） */
.appt-cal { border: 1px solid #E6D6BE; border-radius: 10px; padding: 12px; background: #FFFDF9; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 19px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #D9CBB4; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; min-height: 58px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid transparent; background: none; font: inherit; color: #C2B8AA; padding: 4px 2px; }
.cal-cell b { font-size: 16px; }
.cal-cell span { font-size: 11px; }
.cal-cell.empty { min-height: 0; }
.cal-cell.rest span, .cal-cell.full span { color: #B8AC9C; }
.cal-cell.today { border-color: #E6D6BE; }
.cal-cell.open { background: #fff; border-color: #D9CBB4; color: var(--ink); cursor: pointer; }
.cal-cell.open span { color: #2E5B57; font-weight: 500; }
.cal-cell.open:hover { border-color: var(--red); }
.cal-cell.open.on { background: var(--red); border-color: var(--red); color: #fff; }
.cal-cell.open.on span { color: #fff; }
.cal-cell i { position: absolute; top: 2px; right: 3px; font-style: normal; font-size: 10px; color: #8A6420; }
.cal-cell.on i { color: #FFE7C2; }
/* 洽詢星期（2026/10/28）：滑過出現提示小視窗，點一下開 LINE */
.cal-cell.ask { color: var(--ink); text-decoration: none; border-color: #E6D6BE; border-style: dashed; cursor: pointer; }
.cal-cell.ask span { color: #8A6420; }
.cal-cell.ask:hover, .cal-cell.ask:focus-visible { border-color: #B38A3A; }
.cal-cell.ask[data-tip]:not([data-tip=""]):hover::after, .cal-cell.ask[data-tip]:not([data-tip=""]):focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% + 6px); right: 0; width: max-content; max-width: 200px;
  padding: 8px 10px; border-radius: 8px; background: #2F3B33; color: #fff; font-size: 12px; line-height: 1.5; text-align: left; white-space: normal;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); }
#dayTitle { display: block; font-size: 16px; }
#dayTitle:empty { display: none; }
@media (max-width: 420px) { .cal-cell { min-height: 52px; } .cal-cell span { font-size: 10px; } .cal-cell i { display: none; } .cal-cell.urgent b::after { content: '・'; color: #8A6420; } }
.appt-pick { display: flex; flex-direction: column; gap: 14px; }
.appt-side { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 860px) {
  .appt-pick { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: start; gap: 20px; }
  .appt-side .appt-times { grid-template-columns: repeat(2, 1fr); }
}
.ap-who { font-size: 15px; color: var(--red); }
.ap-two { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px dashed #E6D6BE; }
.appt-plan.ap-pair { border-style: dashed; }
.appt-plan.ap-pair input { accent-color: var(--red); }
/* 已選時段、預約明細（2026/10/27） */
.appt-picked { font-size: 15px; color: var(--muted); line-height: 1.7; }
.appt-picked.on { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; background: #FFF8F4; border: 2px solid var(--red); color: var(--ink); }
.appt-picked.on span { font-size: 13px; color: var(--muted); }
.appt-picked.on b { font-size: 19px; color: var(--red); }
.appt-picked.on em { font-style: normal; font-size: 15px; color: #8A6420; font-weight: 500; }
.appt-sum { font-size: 15px; }
.appt-sum .total b { font-size: 22px; }
.cal-cell em.cal-hol { font-style: normal; font-size: 10px; line-height: 1.15; color: #A3241A; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 420px) { .cal-cell em.cal-hol { font-size: 9px; letter-spacing: -.5px; } }
/* 全戶家人（2026/10/30）：收在第一位的卡片裡，一位一排（姓名＋生辰） */
.hh-box { border-top: 1px dashed #E0CFB4; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hh-list { display: flex; flex-direction: column; gap: 6px; }
.form-stack .person.hh-row, .person.hh-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border: 1px solid #EFE3D2; border-radius: 8px; background: #FFF; box-shadow: none; }
/* 還沒填的提示字只在第一位顯示；填了之後的換算（農曆、生肖、虛歲）照常出現 */
.person.hh-row .bday-preview:not(.ok):not(.warn) { display: none; }
.person.hh-row .bday-preview { padding: 2px 8px; margin-top: 4px; }
.person.hh-row .p-no { font-size: 13px; padding: 2px 10px; background: #B5651D; flex: 0 0 auto; }
.person.hh-row .lb { margin: 0; }
.person.hh-row .hh-name { flex: 0 1 150px; min-width: 110px; }
.person.hh-row .hh-bday { flex: 1 1 360px; min-width: 0; }
.person.hh-row [data-rm] { margin-left: auto; }
.hh-add { align-self: flex-start; }
@media (max-width: 600px) {
  .person.hh-row .hh-name { flex: 1 1 0; min-width: 0; }
  .person.hh-row .hh-bday { flex: 1 1 100%; order: 3; }
}
.cal-cell b.hol-n { color: #A3241A; } /* 連假日期紅字（2026/10/30） */
.ev-items { margin-top: 4px; } /* 一般活動的項目商品圖（2026/11/02） */
.item-note-row { display: flex; gap: 10px; align-items: flex-start; }
.item-note-row .item-note { flex: 1 1 auto; margin: 0; }
.item-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #EFE3D2; flex: 0 0 auto; }
