/* =====================================================================
   網站規劃工具（精靈介面 + 網站預覽）
   ===================================================================== */
.planner-section { padding: var(--space-7, 3rem) 0 var(--space-8, 4.5rem); scroll-margin-top: var(--header-h, 7rem); }
.planner-app { position: relative; }
.planner-noscript { padding: 1rem 1.25rem; background: #fff3cd; border: 1px solid #f0d78c; }

/* ---------- 進度 ---------- */
.pl-progress { height: 4px; background: var(--color-line, #d9cfc0); border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.pl-progress i { display: block; height: 100%; width: 0; background: var(--color-seal, #c0392b); transition: width .35s ease; }
.pl-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.pl-steps::-webkit-scrollbar { display: none; }
.pl-steps li { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; font-size: var(--fs-xs, .8125rem); color: var(--color-muted, #6b625a); cursor: pointer; padding: .35rem .7rem .35rem .35rem; border-radius: 30px; border: 1px solid transparent; }
.pl-steps li b { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper-warm, #efe6d8); font-size: .75rem; }
.pl-steps li.is-done b { background: var(--color-ok, #2e7d4f); color: #fff; }
.pl-steps li.is-on { border-color: var(--color-ink, #14110f); color: var(--color-ink, #14110f); font-weight: 700; }
.pl-steps li.is-on b { background: var(--color-ink, #14110f); color: #fff; }

/* ---------- 版面 ---------- */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
.pl-panel { background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); padding: 1.75rem; box-shadow: var(--shadow-sm); min-width: 0; }
.pl-title { font-size: var(--fs-lg, 1.75rem); margin: 0 0 .35rem; }
.pl-sub { color: var(--color-muted, #6b625a); margin: 0 0 1.25rem; font-size: var(--fs-sm, .9375rem); }
.pl-h3 { font-size: 1.05rem; margin: 1.5rem 0 .75rem; font-family: var(--font-sans); }
.pl-h3 small { font-weight: 400; color: var(--color-muted, #6b625a); }
.pl-nav-btns { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line, #d9cfc0); }
.pl-nav-btns .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.pl-tip { margin: 1.25rem 0 0; padding: .85rem 1rem; background: var(--color-paper, #f7f2ea); border-left: 3px solid var(--color-accent, #d4a017); font-size: var(--fs-sm, .9375rem); color: var(--color-ink-soft, #2a2420); }
.pl-peek { display: none; }

/* ---------- 行業 ---------- */
.pl-ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; }
.pl-ind { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; padding: .9rem; background: #fff; border: 2px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s; }
.pl-ind:hover { border-color: var(--color-ink-soft, #2a2420); transform: translateY(-2px); }
.pl-ind.is-on { border-color: var(--color-seal, #c0392b); background: #fff6f4; }
.pl-ind-icon { font-size: 1.6rem; line-height: 1; margin-bottom: .25rem; }
.pl-ind strong { font-size: .95rem; line-height: 1.35; }
.pl-ind small { color: var(--color-muted, #6b625a); font-size: .78rem; line-height: 1.45; }

/* ---------- 欄位 ---------- */
.pl-fields { display: grid; gap: .9rem; margin-top: 1.25rem; }
.pl-fields-2 { grid-template-columns: 1fr 1fr; }
.pl-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: var(--fs-sm, .9375rem); font-weight: 500; }
.pl-fields input, .pl-fields textarea { font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius, 4px); background: #fff; color: var(--color-ink, #14110f); width: 100%; }
.pl-fields input:focus, .pl-fields textarea:focus { outline: 2px solid var(--color-seal, #c0392b); outline-offset: 0; border-color: transparent; }

/* ---------- 範本 ---------- */
.pl-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.pl-style { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .55rem; background: #fff; border: 2px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s; }
.pl-style:hover { transform: translateY(-2px); border-color: var(--color-ink-soft, #2a2420); }
.pl-style.is-on { border-color: var(--color-seal, #c0392b); box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.pl-style strong { font-size: .92rem; padding: 0 .2rem; }
.pl-style strong em { font-style: normal; font-size: .68rem; background: var(--color-accent, #d4a017); color: #fff; padding: .05rem .4rem; border-radius: 20px; vertical-align: 2px; }
.pl-style small { color: var(--color-muted, #6b625a); font-size: .75rem; padding: 0 .2rem .2rem; }
.pl-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); display: block; }
.pl-thumb i { position: absolute; display: block; }
.pl-thumb-nav { left: 0; right: 0; top: 0; height: 14%; }
.pl-thumb-nav b { position: absolute; left: 8%; top: 35%; width: 22%; height: 30%; border-radius: 2px; }
.pl-thumb-hero { left: 8%; right: 8%; top: 22%; height: 38%; border-radius: 3px; opacity: .9; }
.pl-thumb-line { left: 8%; width: 70%; top: 67%; height: 5%; opacity: .75; border-radius: 2px; }
.pl-thumb-line.short { top: 76%; width: 45%; opacity: .5; }
.pl-thumb-btn { left: 8%; top: 86%; width: 26%; height: 7%; }
.pl-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.pl-swatch { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--color-line, #d9cfc0); cursor: pointer; padding: 0; }
.pl-swatch.is-on { box-shadow: 0 0 0 3px var(--color-ink, #14110f); }
.pl-swatch-auto { width: auto; border-radius: 30px; padding: 0 .85rem; background: #fff; font: inherit; font-size: .8rem; }

/* ---------- 區塊排序 ---------- */
.pl-sort { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; user-select: none; -webkit-user-select: none; }
.pl-sort-item.is-chosen { box-shadow: var(--shadow-md); border-color: var(--color-ink, #14110f); }
.sortable-fallback { opacity: .9 !important; box-shadow: var(--shadow-lg); }
.pl-sort-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; background: #fff; border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); }
.pl-sort-item.is-ghost { opacity: .4; background: var(--color-paper-warm, #efe6d8); }
.pl-handle { cursor: grab; color: var(--color-muted, #6b625a); font-size: 1.1rem; padding: .2rem .35rem; touch-action: none; user-select: none; }
.pl-handle:active { cursor: grabbing; }
.pl-sort-ico { font-size: 1.2rem; }
.pl-sort-label { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pl-sort-label strong { font-size: .92rem; }
.pl-sort-label small { font-size: .75rem; color: var(--color-muted, #6b625a); }
.pl-sort-btns { display: flex; gap: .25rem; }
.pl-sort-btns button { width: 1.9rem; height: 1.9rem; border: 1px solid var(--color-line, #d9cfc0); background: #fff; border-radius: 6px; cursor: pointer; font-size: .85rem; color: var(--color-ink, #14110f); }
.pl-sort-btns button:hover:not([disabled]) { background: var(--color-ink, #14110f); color: #fff; }
.pl-sort-btns button[disabled] { opacity: .3; cursor: default; }
.pl-sort-btns button[data-remove]:hover { background: var(--color-seal, #c0392b); border-color: var(--color-seal, #c0392b); }
.pl-sort-empty { padding: 1rem; text-align: center; color: var(--color-muted, #6b625a); border: 1px dashed var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); }

/* ---------- Chips / 功能 ---------- */
.pl-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pl-chip { font: inherit; font-size: .85rem; padding: .5rem .9rem; border-radius: 30px; border: 1px solid var(--color-line, #d9cfc0); background: #fff; color: var(--color-ink, #14110f); cursor: pointer; transition: all .15s; }
.pl-chip:hover { border-color: var(--color-ink, #14110f); }
.pl-chip.is-on { background: var(--color-ink, #14110f); border-color: var(--color-ink, #14110f); color: #fff; }
.pl-chip.is-on::before { content: '✓ '; }
.pl-chip-add { border-style: dashed; }
.pl-feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.pl-feat { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); background: #fff; cursor: pointer; color: inherit; position: relative; }
.pl-feat strong { font-size: .9rem; }
.pl-feat small { font-size: .74rem; color: var(--color-muted, #6b625a); }
.pl-feat.is-on { border-color: var(--color-ok, #2e7d4f); background: #f1f8f3; box-shadow: inset 0 0 0 1px var(--color-ok, #2e7d4f); }
.pl-feat.is-on::after { content: '✓'; position: absolute; right: .6rem; top: .55rem; color: var(--color-ok, #2e7d4f); font-weight: 700; }
.pl-estimate { margin-top: 1.25rem; padding: 1rem 1.15rem; background: var(--color-ink, #14110f); color: #fff; border-radius: var(--radius-lg, 10px); display: flex; flex-direction: column; gap: .2rem; }
.pl-estimate span { font-size: .78rem; opacity: .7; }
.pl-estimate strong { font-family: var(--font-price, sans-serif); font-size: 1.45rem; letter-spacing: .02em; color: var(--color-accent, #d4a017); }
.pl-estimate small { font-size: .8rem; opacity: .85; }

/* ---------- 聯絡 ---------- */
.pl-summary { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .35rem .75rem; margin: 0 0 1rem; padding: 1rem 1.1rem; background: var(--color-paper, #f7f2ea); border-radius: var(--radius-lg, 10px); font-size: .88rem; }
.pl-summary dt { color: var(--color-muted, #6b625a); }
.pl-summary dd { margin: 0; overflow-wrap: anywhere; }
.pl-pref { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0 .5rem; font-size: .92rem; }
.pl-radio { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.pl-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; color: var(--color-ink-soft, #2a2420); margin: .75rem 0 1.25rem; cursor: pointer; }
.pl-consent input { margin-top: .3rem; }
.pl-submit { width: 100%; font-size: 1.05rem; padding: 1rem; }
.pl-submit[disabled] { opacity: .6; }

/* ---------- 預覽外框 ---------- */
.pl-preview-wrap { position: sticky; top: calc(var(--header-h, 7rem) + 1rem); border-radius: 12px; overflow: hidden; background: #2b2b2e; box-shadow: var(--shadow-lg); transition: max-width .3s ease; margin-inline: auto; width: 100%; min-width: 0; }
.pl-preview-wrap.is-mobile { max-width: 340px; border-radius: 28px; padding: 0 8px 10px; }
.pl-preview-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; color: #ccc; font-size: .75rem; }
.pl-dots { display: flex; gap: 5px; }
.pl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.pl-dots i:nth-child(2) { background: #febc2e; }
.pl-dots i:nth-child(3) { background: #28c840; }
.pl-url { flex: 1; background: #1e1e20; padding: .2rem .7rem; border-radius: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-view-btns { display: flex; gap: 2px; background: #1e1e20; border-radius: 20px; padding: 2px; }
.pl-view-btns button { font: inherit; font-size: .72rem; color: #aaa; background: none; border: 0; padding: .15rem .6rem; border-radius: 20px; cursor: pointer; }
.pl-view-btns button.is-on { background: #fff; color: #111; }
.pl-preview { background: #fff; max-height: calc(100vh - var(--header-h, 7rem) - 5rem); overflow-y: auto; overscroll-behavior: contain; }
.pl-preview-wrap.is-mobile .pl-preview { border-radius: 0 0 20px 20px; }
.pl-empty { padding: 4rem 2rem; text-align: center; color: #888; }
.pl-empty span { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* =====================================================================
   模擬網站（.pv-*）— 使用範本變數，獨立於本站樣式
   ===================================================================== */
.pv-site { overflow-wrap: anywhere; --pv-font: "Noto Sans TC", "PingFang TC", sans-serif; position: relative; background: var(--pv-bg); color: var(--pv-text); font-family: var(--pv-font); font-size: 12px; line-height: 1.6; text-align: left; }
.pv-site.pv-font-serif { --pv-font: "Noto Serif TC", "Songti TC", "PMingLiU", serif; }
.pv-site.pv-font-round { --pv-font: "Noto Sans TC", "Arial Rounded MT Bold", "PingFang TC", sans-serif; }
.pv-site.pv-font-display { --pv-font: "Oswald", "Noto Sans TC", sans-serif; }
.pv-font-serif { font-family: "Noto Serif TC", "Songti TC", serif; }
.pv-font-display { font-family: "Oswald", "Noto Sans TC", sans-serif; }
.pv-site h1, .pv-site h2, .pv-site h3 { font-family: var(--pv-font); color: inherit; margin: 0 0 .4em; line-height: 1.3; letter-spacing: 0; }
.pv-site h1 { font-size: 22px; font-weight: 800; }
.pv-site h2 { font-size: 16px; font-weight: 700; }
.pv-site h3 { font-size: 12.5px; font-weight: 700; }
.pv-site p { margin: 0 0 .5em; }
.pv-font-display h1, .pv-font-display h2 { text-transform: uppercase; letter-spacing: .02em; }
.pv-muted { color: var(--pv-muted); }
.pv-c { text-align: center; }
.pv-eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-primary); font-weight: 700; }
.pv-nav { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--pv-surface); border-bottom: 1px solid rgba(127, 127, 127, .15); position: sticky; top: 0; z-index: 2; }
.pv-logo { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.pv-nav nav { display: flex; gap: 10px; margin-left: auto; font-size: 11px; overflow: hidden; white-space: nowrap; }
.pv-nav nav span { opacity: .75; }
.pv-nav nav span.is-on { opacity: 1; color: var(--pv-primary); font-weight: 700; }
.pv-burger { display: none; margin-left: auto; }
.pv-btn { display: inline-block; padding: 6px 13px; border-radius: var(--pv-radius); background: var(--pv-primary); color: #fff; font-size: 11px; font-weight: 700; }
.pv-dark .pv-btn { color: #111; }
.pv-btn-ghost, .pv-dark .pv-btn-ghost { background: transparent; color: var(--pv-text); box-shadow: inset 0 0 0 1px currentColor; }
.pv-btn-light { background: #fff; color: var(--pv-primary); }
.pv-btn-sm { padding: 4px 10px; margin-top: 6px; }
.pv-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pv-img { width: 100%; border-radius: var(--pv-radius); background: linear-gradient(135deg, var(--pv-primary), var(--pv-accent)); opacity: .85; display: grid; place-items: center; position: relative; overflow: hidden; }
.pv-img span { font-size: 22px; filter: saturate(.6); opacity: .85; }
.pv-img::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 8px, transparent 8px 16px); }

.pv-block { position: relative; }
.pv-tag { display: none; position: absolute; left: 6px; top: 6px; z-index: 1; font: 700 9.5px/1 "Noto Sans TC", sans-serif; background: rgba(17, 17, 17, .78); color: #fff; padding: 3px 6px; border-radius: 3px; pointer-events: none; }
.pv-show-tags .pv-tag { display: block; }
.pv-show-tags .pv-block { outline: 1px dashed rgba(127, 127, 127, .35); outline-offset: -1px; }
.pv-sec { padding: 22px 16px; }
.pv-alt { background: var(--pv-surface); }
.pv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.pv-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pv-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pv-card { background: var(--pv-surface); border-radius: var(--pv-radius); padding: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.pv-alt .pv-card { background: var(--pv-bg); }
.pv-card-flat { padding: 0; background: transparent; box-shadow: none; }
.pv-card-flat h3 { margin-top: 6px; }
.pv-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--pv-primary); color: #fff; display: grid; place-items: center; font-size: 11px; margin-bottom: 6px; }
.pv-lines { display: grid; gap: 4px; }
.pv-lines i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: .12; width: 100%; }
.pv-site .pv-price { color: var(--pv-primary); font-weight: 700; margin: 0; }
.pv-hero { position: relative; }
.pv-hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; padding: 28px 16px; }
.pv-hero-center { text-align: center; padding: 42px 20px; background: linear-gradient(160deg, var(--pv-surface), var(--pv-bg)); }
.pv-hero-center .pv-btns { justify-content: center; }
.pv-hero-center p { max-width: 80%; margin-inline: auto; }
.pv-hero-full { min-height: 190px; display: grid; }
.pv-hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(135deg, var(--pv-primary), var(--pv-accent)); display: grid; place-items: center; font-size: 60px; opacity: .95; }
.pv-hero-over { position: relative; align-self: end; padding: 20px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; }
.pv-hero-over .pv-btn { background: #fff; color: #111; }
.pv-band { background: var(--pv-primary); color: #fff; }
.pv-stat { text-align: center; }
.pv-stat strong { display: block; font-size: 18px; font-weight: 800; }
.pv-stat span { font-size: 10.5px; opacity: .85; }
.pv-site .pv-stars { color: #f5b301; letter-spacing: 1px; margin: 0; }
.pv-plan { text-align: center; }
.pv-plan.is-hot { box-shadow: 0 0 0 2px var(--pv-primary); }
.pv-big { font-size: 17px; font-weight: 800; color: var(--pv-primary); }
.pv-member { text-align: center; }
.pv-avatar { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px; background: var(--pv-surface); box-shadow: inset 0 0 0 2px var(--pv-primary); display: grid; place-items: center; font-size: 18px; }
.pv-step { text-align: center; padding: 8px 4px; }
.pv-step b { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; background: var(--pv-primary); color: #fff; }
.pv-dark .pv-step b, .pv-dark .pv-ico { color: #111; }
.pv-step span { font-size: 10.5px; }
.pv-faq { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid rgba(127, 127, 127, .2); }
.pv-faq b { color: var(--pv-primary); }
.pv-video { aspect-ratio: 16 / 9; border-radius: var(--pv-radius); background: #111; display: grid; place-items: center; }
.pv-video span { width: 44px; height: 44px; border-radius: 50%; background: var(--pv-primary); color: #fff; display: grid; place-items: center; font-size: 16px; }
.pv-logos { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pv-logos i { display: block; width: 50px; height: 20px; border-radius: 4px; background: currentColor; opacity: .14; }
.pv-cta { text-align: center; background: linear-gradient(135deg, var(--pv-primary), var(--pv-accent)); color: #fff; }
.pv-map { aspect-ratio: 4 / 3; border-radius: var(--pv-radius); background:
  linear-gradient(90deg, rgba(127, 127, 127, .15) 1px, transparent 1px) 0 0 / 16px 16px,
  linear-gradient(rgba(127, 127, 127, .15) 1px, transparent 1px) 0 0 / 16px 16px, var(--pv-surface); display: grid; place-items: center; font-size: 22px; }
.pv-form { display: grid; gap: 6px; max-width: 75%; margin: 0 auto; }
.pv-form i { display: block; height: 20px; border-radius: var(--pv-radius); background: var(--pv-bg); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); }
.pv-form .pv-ta { height: 44px; }
.pv-form .pv-btn { justify-self: start; }
.pv-port { position: relative; }
.pv-port span { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 9.5px; padding: 1px 6px; border-radius: 3px; }
.pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pv-gallery .pv-img { border-radius: 2px; }
.pv-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 14px 16px; font-size: 10px; background: var(--pv-text); color: var(--pv-bg); }
.pv-wa { position: absolute; right: 10px; bottom: 44px; width: 32px; height: 32px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }

/* 手機預覽 */
.is-mobile .pv-site { font-size: 11.5px; }
.is-mobile .pv-site h1 { font-size: 19px; }
.is-mobile .pv-nav nav { display: none; }
.is-mobile .pv-burger { display: block; }
.is-mobile .pv-logo { max-width: 80%; }
.is-mobile .pv-hero-split, .is-mobile .pv-two { grid-template-columns: 1fr; }
.is-mobile .pv-grid3, .is-mobile .pv-grid2 { grid-template-columns: 1fr; }
.is-mobile .pv-grid4 { grid-template-columns: repeat(2, 1fr); }
.is-mobile .pv-stat strong { font-size: 16px; }
.is-mobile .pv-band .pv-grid3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 結果頁 ---------- */
.pl-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
.pl-result-card { background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); padding: 1.75rem; }
.pl-ref { display: inline-block; font-family: var(--font-price, sans-serif); font-size: 1.1rem; letter-spacing: .06em; background: var(--color-ink, #14110f); color: #fff; padding: .2rem .7rem; border-radius: 4px; }
.pl-result .pl-preview-wrap { position: static; }
.pl-result-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0; }
.pl-result-table td { overflow-wrap: anywhere; }
.pl-result-table th, .pl-result-table td { text-align: left; vertical-align: top; padding: .45rem .3rem; border-bottom: 1px solid var(--color-line, #d9cfc0); }
.pl-result-table th { width: 6.5rem; color: var(--color-muted, #6b625a); font-weight: 500; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* ---------- 行業指南（SEO 內容） ---------- */
.pl-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.pl-guide { background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); padding: 1.25rem; }
.pl-guide h3 { font-size: 1.1rem; font-family: var(--font-sans); display: flex; gap: .5rem; align-items: center; }
.pl-guide p { font-size: .92rem; color: var(--color-ink-soft, #2a2420); }
.pl-guide ul { font-size: .85rem; color: var(--color-muted, #6b625a); margin: 0 0 .75rem; }
.pl-guide a { font-size: .9rem; font-weight: 700; }

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  .pl-layout, .pl-result { grid-template-columns: 1fr; }
  .pl-preview-wrap { position: relative; top: 0; }
  .pl-preview { max-height: 70vh; overscroll-behavior: auto; }
  .pl-peek { display: block; position: fixed; left: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 50; font: inherit; font-size: .85rem; font-weight: 700; padding: .6rem 1rem; border: 0; border-radius: 30px; background: var(--color-ink, #14110f); color: #fff; box-shadow: var(--shadow-md); cursor: pointer; }
}
@media (max-width: 600px) {
  .pl-panel, .pl-result-card { padding: 1.15rem; }
  .pl-title { font-size: 1.35rem; }
  .pl-fields-2 { grid-template-columns: 1fr; }
  .pl-ind-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-style-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-steps li span { display: none; }
  .pl-steps li.is-on span { display: inline; }
  .pv-grid4 { grid-template-columns: repeat(2, 1fr); }
  .pv-nav nav { display: none; }
  .pv-burger { display: block; }
  .pl-sort-label small { display: none; }
}

/* 後台使用 */
.admin-body .pl-preview-wrap { position: static; max-width: 100%; }
.admin-body .pl-preview { max-height: 900px; }

/* 「睇預覽」按鈕：WhatsApp 在左時改放右邊；第一步或已捲離規劃工具時隱藏 */
.pl-peek.is-right { left: auto; right: 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.is-first-step .pl-peek, .pl-peek.is-away { display: none !important; }

/* 舊版 Safari（不支援 aspect-ratio）後備 */
@supports not (aspect-ratio: 1 / 1) {
  .pl-thumb { height: 0; padding-top: 75%; }
  .pv-img { min-height: 90px; }
  .pv-video, .pv-map { min-height: 140px; }
}

/* =====================================================================
   行業網站專頁
   ===================================================================== */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ind-card { background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); border-left: 4px solid var(--color-seal, #c0392b); border-radius: var(--radius-lg, 10px); padding: 1.25rem 1.35rem; }
.ind-card h3 { font-family: var(--font-sans); font-size: 1.08rem; margin-bottom: .5rem; }
.ind-card p { margin: 0; font-size: .95rem; color: var(--color-ink-soft, #2a2420); }
.ind-list { list-style: none; counter-reset: ind; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 1.5rem; }
.ind-list li { counter-increment: ind; position: relative; padding-left: 3rem; }
.ind-list li::before { content: counter(ind); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--color-ink, #14110f); color: #fff; display: grid; place-items: center; font-family: var(--font-price, sans-serif); font-weight: 700; }
.ind-list strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.ind-list span { display: block; font-size: .93rem; color: var(--color-muted, #6b625a); }
.ind-check { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ind-check li { position: relative; padding-left: 1.8rem; }
.ind-check li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-ok, #2e7d4f); font-weight: 700; }
.ind-demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ind-demo-preview { position: static; }
.ind-demo-preview .pl-preview { max-height: 640px; }
.ind-demo-side h3 { font-family: var(--font-sans); font-size: 1.02rem; margin: 1.1rem 0 .5rem; }
.ind-demo-side h3:first-child { margin-top: 0; }
.ind-mini { margin: 0; padding-left: 1.3rem; font-size: .93rem; columns: 2; column-gap: 1.5rem; }
.ind-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.ind-tags span { font-size: .82rem; padding: .3rem .7rem; border-radius: 30px; background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); }
.ind-tags span.is-extra { border-style: dashed; color: var(--color-muted, #6b625a); }
.ind-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ind-hub-grid-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ind-hub-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem; background: var(--color-white, #fffdf9); border: 1px solid var(--color-line, #d9cfc0); border-radius: var(--radius-lg, 10px); color: var(--color-ink, #14110f); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ind-hub-card:hover { transform: translateY(-3px); border-color: var(--color-seal, #c0392b); box-shadow: var(--shadow-md); color: var(--color-ink, #14110f); }
.ind-hub-icon { font-size: 1.9rem; line-height: 1; }
.ind-hub-card strong { font-size: 1.05rem; }
.ind-hub-card small { color: var(--color-muted, #6b625a); font-size: .85rem; }
.ind-hub-card em { font-style: normal; font-size: .85rem; font-weight: 700; color: var(--color-seal, #c0392b); margin-top: auto; padding-top: .35rem; }
.pl-guide-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media (max-width: 980px) { .ind-demo { grid-template-columns: 1fr; } .ind-demo-preview .pl-preview { max-height: 70vh; overscroll-behavior: auto; } }
@media (max-width: 600px) { .ind-mini { columns: 1; } .ind-list li { padding-left: 2.6rem; } }
.ind-plan-link { display: inline-block; margin-top: .5rem; color: var(--color-accent, #d4a017); font-size: .85rem; font-weight: 700; }
.ind-plan-link:hover { color: #fff; }
