:root {
  --bg: #fcfaf7; --tint: #f6efe9; --ink: #2d2624; --muted: #6f6461; --line: #ebe1d9;
  --accent: #b9566a; --accent-dark: #93404f; --card: #fff; --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans TC', system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h1, h2 { font-family: 'Noto Serif TC', serif; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; border: 1.5px solid var(--accent); transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.light { background: #fff; color: var(--accent); border-color: #fff; }
.btn.ghost.light { background: transparent; color: #fff; }
.btn.ghost.light:hover { background: #fff; color: var(--accent); }

/* 導覽 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(252,250,247,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; margin: 0; }
.logo-mark { display: block; flex: none; width: 38px; height: 35px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(ellipse at 80% 20%, #f6e3e3, transparent 55%), radial-gradient(ellipse at 10% 90%, #efe9dc, transparent 50%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
/* 首頁大標上面的產品類別（搜尋、第一眼看得出是電子喜帖） */
.hero-kind { margin: 0 0 12px; color: var(--accent); font-size: 15px; font-weight: 500; letter-spacing: .12em; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: .02em; }
.lead { color: var(--muted); font-size: 17px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 26px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: '✓'; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.phone-cap { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* 手機框：iframe 用 375 寬渲染再縮小 */
.phone { --s: .72; width: calc(375px * var(--s) + 20px); padding: 10px; border-radius: 40px; background: #1d1a19; box-shadow: 0 24px 60px rgba(60,30,30,.22); }
.phone-screen { width: calc(375px * var(--s)); height: calc(760px * var(--s)); border-radius: 30px; overflow: hidden; background: #fff; }
.phone iframe { width: 375px; height: 760px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; }

/* 區塊 */
.sec { padding: 80px 0; }
/* 一分鐘介紹片 */
.intro-sec { padding-top: 40px; }
.intro-video { max-width: 560px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #f4ebe6; box-shadow: 0 24px 60px rgba(70, 30, 30, .16); }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.sec.tint { background: var(--tint); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); }
.sec-head p:not(.eyebrow) { color: var(--muted); margin: 12px 0 0; }

/* 款式 */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.theme-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; }
.theme-card .phone { --s: .6; margin-bottom: 20px; }
.theme-info { width: 100%; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.theme-info p { margin: 0; color: var(--muted); font-size: 14px; }
.theme-info .theme-en { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); font-size: 16px; }
.theme-info h3 { font-family: 'Noto Serif TC', serif; font-size: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.swatches { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.swatches small { color: var(--muted); margin-right: 4px; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.theme-btns { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.theme-btns .btn { padding: 0 14px; }

/* 整合 */
.bundle { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.bundle-item { display: flex; flex-direction: column; }
.bi-demos { margin-top: auto !important; padding-top: 14px; font-size: 13px !important; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); }
.bi-demos a { color: var(--accent); }
.bundle-item { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.bundle-item h3 { font-size: 19px; margin: 6px 0 8px; }
.bundle-item em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--accent); background: #f8e5e8; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.bundle-item p { margin: 0; color: var(--muted); font-size: 14px; }
.bi-step { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.bundle-arrow { display: grid; place-items: center; color: var(--accent); font-size: 22px; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.fi { font-size: 26px; }
.feature h3 { font-size: 17px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* 流程 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; }
.steps h3 { font-size: 18px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* 方案 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(185,86,106,.14); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.price { font-size: 36px; font-weight: 700; margin: 8px 0 4px; letter-spacing: .01em; }
.price small { font-size: 15px; font-weight: 500; margin-right: 4px; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 14px; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.addons { margin-top: 32px; background: var(--tint); border-radius: var(--radius); padding: 22px 26px; }
.addons h3 { font-size: 17px; margin-bottom: 10px; }
.addons ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; font-size: 14px; }
.addons li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* CTA / 頁尾 */
.cta { background: var(--accent); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { font-size: 30px; }
.cta p { opacity: .9; margin: 10px 0 26px; }
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.copy { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }

/* 過期頁 */
.expired main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.expired h1 { font-size: 28px; margin-top: 16px; }
.expired p { margin: 0; }
.expired .muted { color: var(--muted); margin: 18px 0 16px; }
.logo-mark.big { width: 84px; height: 76px; margin: 0 auto; }

/* 響應式 */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-points { justify-content: center; }
  .themes, .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .bundle { grid-template-columns: 1fr; }
  .bundle-arrow { transform: rotate(90deg); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 36px 0 56px; }
  .lead br { display: none; }
  .sec { padding: 60px 0; }
  .features, .steps, .addons ul { grid-template-columns: 1fr; }
  .phone { --s: .64; }
  .theme-card .phone { --s: .6; }
}
.nw { display: inline-block; }

/* 服務：左右交錯，展示 + 說明 */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0 44px; }
.svc + .svc { border-top: 1px solid var(--line); padding-top: 52px; }
.svc.rev .svc-show { order: 2; }
.svc-show { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.svc-info h3 { font-family: 'Noto Serif TC', serif; font-size: 26px; margin: 6px 0 10px; }
.svc-info > p { color: var(--muted); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; font-size: 15px; }
.ticks li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btns .bi-demos { margin: 0 !important; padding: 0; }
/* 16:9 大螢幕框：iframe 用 1280x720 渲染再縮小 */
.screen-frame { width: min(520px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 20px 50px rgba(60,30,30,.2); border: 8px solid #1d1a19; position: relative; container-type: inline-size; }
.screen-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform: scale(calc(100cqw / 1280px)); transform-origin: 0 0; }
.screen-frame.video video { width: 100%; height: 100%; display: block; background: #000; }
.vid-switch { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.vid-switch button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.vid-switch button.on { border-color: var(--accent); color: var(--accent); font-weight: 500; }
.steps.six { grid-template-columns: repeat(3, 1fr); }
.plan-prods { display: flex; gap: 6px; margin: 8px 0 0; }
.plan-prods span { font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.sec.tint .plan-prods span { background: #f8e5e8; }
.plan-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .svc.rev .svc-show { order: 0; }
  .ticks { justify-content: center; }
  .btns { justify-content: center; }
  .steps.six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .steps.six { grid-template-columns: 1fr; } }
/* 開通頁：同意條款 */
.agree { display: flex; gap: 8px; align-items: flex-start; max-width: 460px; width: fit-content; margin: 0 auto 16px; text-align: left; font-size: 14px; line-height: 1.6; }
.agree input { margin-top: 4px; flex-shrink: 0; }
.agree a { color: var(--accent-dark); }
.agree small { display: block; color: var(--muted, #6f6461); font-size: 13px; }
.nowrap { white-space: nowrap; }
.inapp-tip { max-width: 460px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; background: #fff4e5; border: 1px solid #f0d2a8; text-align: left; font-size: 14px; line-height: 1.7; }
.inapp-tip b { display: block; margin-bottom: 2px; }

/* 「聯絡我們」對話框（scripts/lib/contact.mjs、src/site/contact.js） */
dialog.contact { width: min(94vw, 560px); max-height: 92vh; overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(45, 38, 36, .22); }
dialog.contact::backdrop { background: rgba(45, 38, 36, .45); backdrop-filter: blur(3px); }
dialog.contact[open] { animation: contact-pop .22s ease; }
@keyframes contact-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.contact-form { display: grid; gap: 14px; padding: 26px; }
.contact-head { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.contact-head h2 { margin: 2px 0 0; font-family: 'Noto Serif TC', serif; font-size: 24px; }
.contact-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.75; }
.contact-head p.eyebrow { margin: 0; }
.contact-head a { color: var(--accent-dark); }
.contact-x { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); font-size: 16px; cursor: pointer; }
.contact-x:hover { color: var(--ink); border-color: var(--muted); }
.contact .field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; position: relative; }
.contact .field select, .contact .field input, .contact .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.contact .field textarea { resize: vertical; min-height: 130px; }
.contact .field select:focus, .contact .field input:focus, .contact .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 86, 106, .15); }
.contact .count { justify-self: end; font-size: 12px; color: var(--muted); font-weight: 400; }
.contact .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.contact .check input { margin-top: 6px; accent-color: var(--accent); }
.contact .check a { color: var(--accent-dark); }
.contact-ts { min-height: 65px; }
.contact .form-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.contact .form-status.ok { color: #2e7d4f; }
.contact .form-status.err { color: var(--accent-dark); font-weight: 600; }
.contact [data-submit] { width: 100%; }
.contact [data-submit]:disabled { opacity: .5; cursor: not-allowed; }
.contact .form-need { margin: 0; font-size: 13px; color: #a5620c; text-align: center; }
.contact .form-need:empty { display: none; }
.contact-note { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .contact-form { padding: 20px 16px; } }

/* 首頁：新人後台截圖 */
.portal { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.portal-tabs { display: grid; gap: 10px; }
.portal-tabs button { display: grid; gap: 4px; text-align: left; font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; }
.portal-tabs button b { font-size: 16px; }
.portal-tabs button span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.portal-tabs button.on { border-color: var(--accent); background: #fbf0f2; }
.browser { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 18px 40px rgba(45, 38, 36, .12); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1ebe7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dccfc8; }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; }
.browser img { display: block; width: 100%; height: auto; }
.browser img[hidden] { display: none; }
.browser figcaption { font-size: 12px; color: var(--muted); padding: 6px 12px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .portal { grid-template-columns: 1fr; gap: 16px; }
  .browser { order: -1; }
  .portal-tabs button { padding: 10px 14px; }
  .portal-tabs button span { display: none; }
  .portal-tabs button.on span { display: block; }
}

/* 款式縮圖（首頁精選、款式總覽） */
.theme-thumb, .style-thumb { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(60,30,30,.14); transition: transform .25s, box-shadow .25s; }
.theme-thumb:hover, .style-thumb:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(60,30,30,.2); }
.theme-thumb img, .style-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; background: var(--tint); }
.theme-thumb .phone, .style-thumb .phone { --s: .5; margin: 0 auto; box-shadow: none; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px auto 32px; max-width: 1000px; }
.cat-chips a, .cat-chips button { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.cat-chips small { font-size: 12px; color: var(--muted); }
.cat-chips a:hover, .cat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.cat-chips .on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-chips .on small { color: rgba(255,255,255,.8); }

/* 款式總覽頁 */
.styles-head { padding-bottom: 24px; }
.styles-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.styles-head .cat-chips { margin: 0 auto; }
.style-group + .style-group { margin-top: 56px; }
.style-group h2 { font-size: 24px; margin: 0 0 20px; display: flex; align-items: baseline; gap: 10px; }
.style-group h2 small { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 17px; color: var(--accent); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 20px; }
.style-info h3 { font-family: 'Noto Serif TC', serif; font-size: 18px; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.style-info h3 small { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 15px; color: var(--muted); }
.style-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.style-tags span { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.style-info .swatches { margin: 0; }
button.sw { border: 0; padding: 0; cursor: pointer; }
button.sw.on, button.sw:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* 款式預覽視窗 */
dialog.style-dlg { border: 0; padding: 0; border-radius: 22px; max-width: min(760px, calc(100vw - 24px)); width: 100%; background: var(--card); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog.style-dlg::backdrop { background: rgba(30,20,20,.55); }
.sd-in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 28px; align-items: center; }
.sd-phone .phone { --s: .66; }
.sd-info h2 { font-size: 28px; margin: 0 0 8px; }
.sd-info > p { color: var(--muted); margin: 0 0 10px; }
.sd-info .theme-en { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); font-size: 17px; margin: 0; }
.sd-pals { margin: 6px 0 20px; }
.sd-pals small { color: var(--muted); display: block; margin-bottom: 6px; }
.sd-pals > div { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-btn { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.sw-btn i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.sw-btn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sd-note { font-size: 13px; color: var(--muted); margin: 10px 0 0 !important; }
.sd-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }

@media (max-width: 1100px) { .themes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .themes { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}
@media (max-width: 640px) {
  .sd-in { grid-template-columns: 1fr; padding: 16px 16px 20px; gap: 14px; justify-items: center; }
  .sd-phone .phone { --s: .56; }
  .sd-info { text-align: center; width: 100%; }
  .sd-info h2 { font-size: 22px; }
  .sd-pals > div, .sd-info .style-tags { justify-content: center; }
  dialog.style-dlg { max-height: calc(100svh - 16px); overflow: auto; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .style-info h3 small { display: none; }
}
@media (max-width: 480px) {
  .themes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .theme-card { padding: 12px 10px; }
  .theme-card .theme-info > p:not(.theme-en) { display: none; }
  .theme-info h3 { font-size: 18px; }
  .theme-btns { grid-template-columns: 1fr; }
}

/* 方案：四樣單買＋組合價 */
.plans.four { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plans.four .plan h3 { font-size: 20px; }
.combos-title { text-align: center; font-family: 'Noto Serif TC', serif; font-size: 22px; margin: 44px 0 18px; }
.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.combo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: center; }
.combo.featured { border: 2px solid var(--accent); }
.combo h4 { font-family: 'Noto Serif TC', serif; font-size: 20px; margin: 0 0 8px; }
.combo .price { margin: 6px 0; }
.combo .price s { font-size: 14px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.combo .plan-prods { justify-content: center; }
@media (max-width: 1100px) { .plans.four { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }
@media (max-width: 760px) { .combos { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
@media (max-width: 520px) { .plans.four { grid-template-columns: 1fr; max-width: 460px; } }

/* 購買須知（首頁方案區、試做頁） */
.purchase-info { max-width: 860px; margin: 36px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.purchase-info h3 { font-family: 'Noto Serif TC', serif; font-size: 20px; margin: 0 0 12px; }
.purchase-info dl { margin: 0; display: grid; gap: 10px; }
.purchase-info dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.purchase-info dt { font-weight: 700; color: var(--accent); }
.purchase-info dd { margin: 0; color: var(--ink); }
.purchase-info .muted { font-size: 13px; margin: 14px 0 0; }
.purchase-info.compact { margin: 10px 0 0; padding: 14px 16px; font-size: 14px; }
.purchase-info.compact h3 { display: none; }
.purchase-info.compact dl > div { grid-template-columns: 1fr; gap: 2px; }
.purchase-fold { margin: 8px 0 14px; font-size: 14px; }
.purchase-fold summary { cursor: pointer; color: var(--accent); }
.more-fold { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.more-fold summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.more-fold[open] summary { margin-bottom: 12px; }
.more-fold label:last-child { margin-bottom: 0; }
.sec.why .features { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .sec.why .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .purchase-info dl > div { grid-template-columns: 1fr; gap: 2px; } .purchase-info { padding: 18px 16px; } .sec.why .features { grid-template-columns: 1fr; } }

.price .addon-tag { display: inline-block; font-size: 12px; background: var(--tint); color: var(--accent); border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: middle; }
.plan-req { font-size: 13px; color: var(--accent); margin: 10px 0 0; }

/* 斷行：標題平均分行、段落避免最後一行只剩一兩個字（不支援的瀏覽器照舊） */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, blockquote, figcaption, small { text-wrap: pretty; }

/* 手機點擊範圍：頁尾連結、示範連結、配色圓點 */
@media (max-width: 760px) {
  .foot-links { gap: 2px 6px; }
  .foot-links a { display: inline-block; padding: 10px 8px; }
  .bi-demos a { display: inline-block; padding: 6px 2px; }
  button.sw { position: relative; }
  button.sw::after { content: ''; position: absolute; inset: -9px; }
}

/* 電腦上按 LINE 按鈕：QR code 小視窗（src/site/line-pc.js） */
.line-pc { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.line-pc::backdrop { background: rgba(28, 18, 16, .55); }
.line-pc-in { position: relative; padding: 26px 26px 20px; text-align: center; }
.line-pc h2 { margin: 0 0 8px; font-size: 20px; }
.line-pc-lead { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.line-pc-lead b { color: var(--ink); }
.line-pc-qr { width: 240px; height: 240px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.line-pc-qr svg { width: 100%; height: 100%; display: block; }
.line-pc-wait { font-size: 13px; color: var(--muted); }
.line-pc-msg { text-align: left; background: var(--tint); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 12px; }
.line-pc-msg small { font-size: 12px; color: var(--muted); }
.line-pc-msg p { margin: 4px 0 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.line-pc-id { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.line-pc-id b { color: var(--ink); }
.line-pc-alt { margin: 0; font-size: 12.5px; }
.line-pc-alt a { color: var(--muted); }
.line-pc-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 15px; }
.line-pc-x:hover { color: var(--ink); }

/* 首頁「婚禮後台」的強項條列 */
.portal-feats { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portal-feats li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 46px; position: relative; display: grid; gap: 2px; }
.portal-feats li::before { content: '✓'; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.portal-feats b { font-size: 16px; color: var(--ink); }
.portal-feats span { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .portal-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .portal-feats { grid-template-columns: 1fr; } }
