:root {
  color-scheme: dark;
  --bg: #12131a;
  --surface: #1b1d27;
  --surface-2: #242632;
  --text: #f7f4f6;
  --muted: #aaa5ae;
  --line: rgba(255, 255, 255, .09);
  --radius: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background: radial-gradient(circle at 85% 0, var(--brand-glow), transparent 28rem), radial-gradient(circle at 0 40%, rgba(108, 78, 255, .09), transparent 24rem); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { color: inherit; font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .65rem; font-size: clamp(2rem, 7vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { line-height: 1.2; letter-spacing: -.025em; }

.article-card__cover { width: calc(100% + 2rem); max-width: none; height: 12rem; margin: -1rem -1rem 1rem; object-fit: cover; }
.article-cover { width: 100%; max-height: 38rem; margin: 1.5rem 0 2.5rem; border-radius: var(--radius); object-fit: cover; }
.error-page { width: min(100%, 720px); margin: 4rem auto; padding: clamp(2rem, 7vw, 4rem); border: 1px solid var(--line); border-radius: 24px; text-align: center; background: radial-gradient(circle at 50% 0, var(--brand-glow), transparent 60%), var(--surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
.error-page__code { margin-bottom: 1rem; color: var(--brand); font-size: clamp(4rem, 18vw, 9rem); font-weight: 900; line-height: .85; text-shadow: 0 0 32px var(--brand-glow); }
.error-page > p:not(.eyebrow, .error-page__code) { color: var(--muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(18, 19, 26, .86); backdrop-filter: blur(18px); }
.site-header__inner, .page-shell, .site-footer { width: min(calc(100% - 32px), var(--max-width)); margin-inline: auto; }
.site-header__inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; }
.site-logo { display: inline-flex; align-items: center; gap: .7rem; line-height: 1.1; }
.site-logo__mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); box-shadow: 0 0 24px var(--brand-glow); }
.site-logo strong, .site-logo small { display: block; }
.site-logo small { margin-top: .2rem; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .06em; }
.desktop-nav { display: flex; gap: 1.7rem; color: #d5d0d5; font-size: .92rem; font-weight: 650; }
.desktop-nav a:hover, .site-footer a:hover { color: var(--brand); }
.page-shell { min-height: 70vh; padding-block: 3.5rem 5rem; }

.hero-section { max-width: 780px; padding-block: clamp(2.5rem, 8vw, 6.5rem); }
.hero-section h1 { background: linear-gradient(100deg, #fff 25%, var(--brand)); background-clip: text; color: transparent; }
.hero-section > p:last-child, .listing-header > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: -1rem; margin-bottom: 2.5rem; }
.hero-actions .button { min-width: 10rem; }
.eyebrow { margin-bottom: .55rem; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .2em; }
.listing-header { padding: 1rem 0 2rem; }
.listing-header h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); }

.filter-panel { max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(27, 29, 39, .96); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.filter-panel__toggle { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; cursor: pointer; color: white; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); font-weight: 850; list-style: none; }
.filter-panel__toggle::-webkit-details-marker { display: none; }
.filter-panel__toggle:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.filter-panel__toggle small { flex: 0 0 auto; font-size: 1.2rem; transition: transform .15s ease; }
.filter-panel__label--open { display: none; }
.filter-panel[open] .filter-panel__label--closed { display: none; }
.filter-panel[open] .filter-panel__label--open { display: inline; }
.filter-panel[open] .filter-panel__toggle small { transform: rotate(180deg); }
.filter-bar { overflow: hidden; border-top: 1px solid var(--line); }
.filter-section { margin: 0; padding: 1rem; border: 0; border-bottom: 1px solid var(--line); }
.filter-section h2, .filter-section legend, .filter-section summary { color: var(--text); font-size: .9rem; font-weight: 850; }
.filter-section h2 { margin-bottom: .8rem; }
.filter-section legend { width: 100%; margin-bottom: .75rem; padding: 0; }
.filter-section summary { cursor: pointer; list-style-position: outside; }
.filter-section summary small { margin-left: .35rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
.filter-section--expandable[open] summary { margin-bottom: .8rem; }
.filter-fields, .filter-ranges { display: grid; gap: .7rem; }
.filter-field, .filter-range { display: grid; gap: .4rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.filter-field select, .filter-range input { width: 100%; min-width: 0; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: var(--surface-2); }
.filter-field select:focus, .filter-range input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.filter-ranges { margin-top: .7rem; }
.filter-range__inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; }
.filter-range__inputs i { color: var(--muted); font-style: normal; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .48rem; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-chip span, .filter-quick-link { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); font-size: .76rem; line-height: 1.15; transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease; }
.filter-chip:hover span, .filter-quick-link:hover { border-color: var(--brand); color: var(--text); }
.filter-chip input:checked + span { border-color: var(--brand); color: white; background: color-mix(in srgb, var(--brand) 28%, var(--surface-2)); box-shadow: 0 0 14px var(--brand-glow); }
.filter-chip input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.filter-chips--compact .filter-chip span { min-width: 34px; padding-inline: .55rem; }
.filter-quick-link { border-style: dashed; color: var(--brand); }
.filter-actions { display: flex; justify-content: flex-end; gap: .7rem; padding: 1rem; }
.filter-actions .button { min-width: 9rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .7rem 1.25rem; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; }
.button--primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 8px 28px var(--brand-glow); }
.button--quiet { color: var(--muted); background: transparent; }
.button--wide { width: 100%; margin-top: 1.25rem; }

.content-section { margin-top: 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.45rem, 4vw, 2.1rem); }
.section-heading > a { color: var(--brand); font-size: .88rem; font-weight: 750; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.area-chips { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: thin; }
.area-chips a { min-width: 105px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.area-chips a:hover { border-color: var(--brand); box-shadow: 0 0 20px var(--brand-glow); }
.area-chips span, .area-chips small { display: block; }
.area-chips span { font-weight: 750; }
.area-chips small { color: var(--muted); }
#district-navigation .area-chips { flex-wrap: wrap; overflow-x: visible; }
#district-navigation .area-chips a { flex: 1 1 120px; }

/* 城市頁地區指南（商品列表之後）。沿用深色霓虹 tokens；手機不得水平 overflow。 */
.region-guide__body { display: grid; gap: 1.1rem; max-width: 760px; overflow-wrap: anywhere; }
.region-guide__body > p { margin: 0; color: var(--muted); }
.region-guide__intro { color: var(--text) !important; font-size: 1.05rem; }
.region-guide__subtitle { margin: .9rem 0 -.1rem; color: var(--text); font-size: clamp(1.05rem, 3.4vw, 1.25rem); }
.region-guide__faq { display: grid; gap: .55rem; }
.region-guide__faq-item { padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.region-guide__faq-item summary { cursor: pointer; color: var(--text); font-weight: 700; list-style-position: inside; }
.region-guide__faq-item[open] summary { color: var(--brand); }
.region-guide__faq-item p { margin: .6rem 0 0; color: var(--muted); }
.region-guide__note { padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; background: var(--surface); }
.region-guide__updated { color: var(--muted); font-size: .8rem; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.35rem); }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.product-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(145deg, var(--surface-2), var(--brand-deep)); }
/* 詳情頁容器不可固定 aspect-ratio：高度需容納主圖＋縮圖列，
   否則 overflow:hidden 會把縮圖整條裁掉（多圖商品看起來只有一張）。 */
.product-detail__media { position: relative; display: block; overflow: hidden; background: linear-gradient(145deg, var(--surface-2), var(--brand-deep)); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__main { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle, var(--brand-glow), transparent 55%), linear-gradient(145deg, #272936, var(--brand-deep)); }
.image-placeholder span { color: var(--brand); font-size: 2rem; filter: drop-shadow(0 0 12px var(--brand)); }
.product-card__badge { position: absolute; top: .7rem; left: .7rem; padding: .25rem .55rem; border-radius: 999px; color: white; background: rgba(10, 10, 14, .72); font-size: .7rem; font-weight: 750; backdrop-filter: blur(8px); }
.product-card__badge--country { right: .7rem; left: auto; background: color-mix(in srgb, var(--brand) 76%, rgba(10, 10, 14, .72)); }
.product-card__body { padding: .85rem; }
.product-card__body h3 { overflow: hidden; margin-bottom: .25rem; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.product-card__location, .product-card__spec { margin-bottom: .2rem; color: var(--muted); font-size: .77rem; }
.product-card__price { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin: .45rem 0 0; color: var(--brand); font-weight: 800; }
.product-card__price small { padding: .18rem .38rem; border-radius: 5px; color: white; background: var(--brand-deep); font-size: .64rem; font-weight: 600; }
.product-card__price--contact { color: var(--muted); font-size: .78rem; }
.empty-state { display: grid; min-height: 180px; place-items: center; align-content: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty-state span { color: var(--brand); font-size: 2rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; color: var(--muted); }
.pagination a { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); }

.product-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.product-detail__media { border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem; }
.product-gallery__thumb { width: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .15s ease; }
.product-gallery__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.product-gallery__thumb.is-active, .product-gallery__thumb:hover { border-color: var(--brand); opacity: 1; }
.product-gallery__thumb:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.product-detail__content { position: sticky; top: 100px; }
/* 名字是商品頁的主視覺焦點，字級明顯大於原本的 2.2–4rem。 */
.product-detail h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 1.05; letter-spacing: -.01em; }
.product-detail__region { display: block; margin-bottom: .5rem; color: var(--brand); font-size: .82rem; font-weight: 750; letter-spacing: .08em; }
.product-detail__code { margin: .6rem 0 0; color: var(--muted); font-size: .84rem; letter-spacing: .06em; }
.product-detail__code span { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }

/* 主圖可點擊放大 */
.product-gallery__main-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.product-gallery__zoom { position: absolute; right: .8rem; bottom: .8rem; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: white; font-size: 1.1rem; opacity: 0; transition: opacity .15s ease; }
.product-gallery__main-button:hover .product-gallery__zoom,
.product-gallery__main-button:focus-visible .product-gallery__zoom { opacity: 1; }
.product-gallery__main-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* 全螢幕燈箱 */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: min(100%, 1100px); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: white; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; width: 3.2rem; height: 3.2rem; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: white; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lightbox__counter { position: absolute; bottom: 1.2rem; left: 50%; margin: 0; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: .85rem; letter-spacing: .1em; }
/* 燈箱開啟時鎖住背景捲動 */
body.is-lightbox-open { overflow: hidden; }

/* 商品卡片的計數列 */
.product-card__stats { display: flex; gap: .9rem; margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.product-card__stat { display: inline-flex; align-items: center; gap: .25rem; font-variant-numeric: tabular-nums; }
.product-card__stat--likes { color: var(--brand); }

/* 觀看次數、點讚、排序 */
.product-detail__meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .8rem 0 1.2rem; }
.view-count { font-size: .9rem; color: var(--muted); }
.like-button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; font-size: .9rem; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; transition: color .15s, border-color .15s, background .15s; }
.like-button:hover { color: var(--text); border-color: var(--brand); }
.like-button.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.like-button__count:empty { display: none; }
.like-button__count { padding-left: .3rem; font-variant-numeric: tabular-nums; opacity: .85; }
.link-button { font-size: .85rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.link-button:hover { color: var(--text); }
.sort-bar { display: flex; gap: .5rem; margin: 1.2rem auto; padding: 0 1.2rem; max-width: var(--max-w, 1200px); }
.sort-bar__option { padding: .4rem .9rem; font-size: .9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.sort-bar__option:hover { color: var(--text); border-color: var(--brand); }
.sort-bar__option.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 站內搜尋 */
.search-form { display: flex; gap: .6rem; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 1rem; }
.search-form input[type="search"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-summary { margin: 1rem 0 0; color: var(--muted); }
.search-summary strong { color: var(--brand); }
.search-empty { padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 16px; }
.search-empty p { margin: 0 0 .6rem; color: var(--text); }
.search-empty ul { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.9; }
.content-section--tight { padding-top: 0; }

/* 地區總覽：地圖式版面 */
.city-index__summary { margin: 1rem 0 0; color: var(--muted); }
.city-index__summary strong { color: var(--brand); }
/* 以 Grid 排出接近台灣地理位置的形狀：本島北→南堆疊於左，東部與離島置右。 */
.tw-map { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "north east" "central east" "south islands" "others others"; gap: 1rem; }
.tw-map__region { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, var(--surface-2), transparent); }
.tw-map__region--north { grid-area: north; }
.tw-map__region--central { grid-area: central; }
.tw-map__region--south { grid-area: south; }
.tw-map__region--east { grid-area: east; }
.tw-map__region--islands { grid-area: islands; }
.tw-map__region--others { grid-area: others; }
.tw-map__region-name { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .8rem; color: var(--brand); font-size: .82rem; font-weight: 750; letter-spacing: .12em; }
.tw-map__region-name small { color: var(--muted); font-weight: 400; letter-spacing: normal; }
.tw-map__cities { display: flex; flex-wrap: wrap; gap: .5rem; }
.tw-map__city { display: flex; flex-direction: column; gap: .1rem; min-width: 84px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.tw-map__city:hover, .tw-map__city:focus-visible { border-color: var(--brand); background: rgba(255, 255, 255, .04); transform: translateY(-2px); }
.tw-map__city strong { color: var(--text); font-size: 1.02rem; }
.tw-map__city small { color: var(--muted); font-size: .76rem; }

/* 首頁快捷入口與 FAQ */
/* 原本只用於 <nav>，後來 410 頁／文章頁／聚合頁改用 <ul>，
   需自行重置項目符號與縮排，否則圓點會跑出來（實測跑版）。 */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.quick-links a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.quick-links a:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick-links strong { color: var(--text); font-size: 1.02rem; }
.quick-links span { color: var(--muted); font-size: .84rem; }
/* 文章頁的延伸閱讀：標題較長，改為單欄清單而非 quick-links 的網格。 */
.related-articles { display: grid; gap: .6rem; }
.related-articles a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.related-articles a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related-articles__title { color: var(--text); font-size: .98rem; line-height: 1.5; }
.related-articles__meta { flex-shrink: 0; color: var(--muted); font-size: .8rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { cursor: pointer; color: var(--text); font-size: 1.02rem; font-weight: 650; }
.faq-item summary::marker { color: var(--brand); }
.faq-item p { margin: .7rem 0 0; color: var(--muted); line-height: 1.75; }
.product-spec { color: var(--muted); }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-table div { display: flex; justify-content: space-between; gap: .7rem; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; }
.product-info-section { margin: 1.5rem 0; }
.product-info-section h2 { margin-bottom: .75rem; font-size: 1.15rem; }
.price-plans { display: grid; gap: .7rem; }
.price-plan { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.price-plan strong { color: var(--brand); }
.price-plan span { color: var(--muted); }
.price-plan b { font-size: 1.05rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.detail-tags li { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.detail-tags--available li { border-color: rgba(65, 211, 137, .35); }
.detail-tags--additional li { border-color: var(--brand); }
.detail-tags--unavailable li { color: var(--muted); text-decoration: line-through; }
.product-intro { color: #d8d3d8; }

.hero-carousel { position: relative; margin-bottom: 2.5rem; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; min-height: 320px; background: var(--surface); }
.hero-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-carousel__slide.is-active { opacity: 1; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 10, 15, .82) 25%, rgba(10, 10, 15, .25) 65%, rgba(10, 10, 15, .45)); }
.hero-carousel__overlay { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; gap: .6rem; padding: clamp(1.2rem, 5vw, 3.5rem); }
.hero-carousel__overlay h1 { max-width: 15em; font-size: clamp(1.7rem, 4.5vw, 3.2rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .65); }
.hero-carousel__overlay > p:not(.eyebrow) { max-width: 34em; color: #e6e0e6; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.hero-carousel__overlay .hero-actions { margin-top: .7rem; }
.hero-carousel__dots { position: absolute; right: 0; bottom: .3rem; left: 0; z-index: 3; display: flex; justify-content: center; gap: 0; }
/* 觸控目標須達 24x24（WCAG 2.5.8）。視覺仍是 10px 小圓點，
   以透明 padding 撐開可點範圍，不改變外觀。 */
.hero-carousel__dot { box-sizing: content-box; width: 10px; height: 10px; padding: 7px 8px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .25); background-clip: padding-box; transition: background .2s ease, width .2s ease, border-color .2s ease; }
.hero-carousel__dot.is-active { width: 26px; border-color: var(--brand); border-radius: 999px; background: var(--brand); background-clip: padding-box; box-shadow: 0 0 12px var(--brand-glow); }

@media (max-width: 700px) {
  .hero-carousel { aspect-ratio: auto; min-height: 380px; }
}

.booking-open { overflow: hidden; }
/* 桌面版 .product-detail__content 是 sticky（會建立 stacking context），
   預約 dialog 的 z-index 會被關在裡面、被 DOM 較後的同區推薦蓋過；
   預約單開啟時把整個 sticky 容器抬到最上層。 */
.booking-open .product-detail__content { z-index: 200; }
.booking__backdrop[hidden], .booking__dialog[hidden], .booking__overlay[hidden], .booking__manual[hidden] { display: none; }
.booking__backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(4, 4, 8, .76); backdrop-filter: blur(7px); }
.booking__dialog { position: fixed; right: 0; bottom: 0; left: 0; z-index: 160; max-height: min(86vh, 820px); overflow-y: auto; padding: .7rem clamp(1rem, 4vw, 1.5rem) calc(1.5rem + env(safe-area-inset-bottom)); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-bottom: 0; border-radius: 24px 24px 0 0; background: rgba(27, 29, 39, .98); box-shadow: 0 -24px 70px rgba(0, 0, 0, .55), 0 0 35px var(--brand-glow); animation: booking-slide-up .25s ease-out; }
.booking__handle { width: 42px; height: 4px; margin: 0 auto .8rem; border-radius: 999px; background: var(--line); }
.booking__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.booking__header h2 { margin: 0; font-size: 1.2rem; }
.booking__close { width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: var(--muted); background: transparent; font-size: 1.2rem; }
.booking__group { margin: 1rem 0 0; padding: 0; border: 0; }
.booking__group legend { margin-bottom: .55rem; color: var(--muted); font-size: .78rem; font-weight: 750; }
.booking__plans, .booking__dates, .booking__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.booking__plans legend { grid-column: 1 / -1; }
.booking__choice, .booking__chip { position: relative; cursor: pointer; }
.booking__choice input, .booking__chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.booking__choice > span { display: grid; grid-template-columns: 1fr auto; padding: .75rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.booking__choice small { grid-column: 1 / -1; color: var(--muted); }
.booking__choice input:checked + span, .booking__chip input:checked + span { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, var(--surface-2)); box-shadow: 0 0 16px var(--brand-glow); }
.booking__choice input:focus-visible + span, .booking__chip input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.booking__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.booking__chip > span { display: block; min-height: 38px; padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: .78rem; text-align: center; }
.booking__chip small { display: block; font-size: .68rem; }
.booking__slots { margin-top: .55rem; }
.booking__summary { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; margin-top: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--bg); font-size: .85rem; }
.booking__summary span, .booking__summary strong { display: flex; justify-content: space-between; gap: .5rem; }
.booking__summary strong { grid-column: 1 / -1; padding-top: .35rem; border-top: 1px solid var(--line); color: var(--text); }
.booking__summary strong b { color: var(--brand); }
.booking__warning, .booking__unavailable { margin: .8rem 0; color: var(--muted); font-size: .78rem; text-align: center; }
.booking__unavailable { color: var(--brand); }
.booking__submit { width: 100%; }
.booking__submit:disabled { cursor: not-allowed; opacity: .45; }
.booking__manual { margin-top: 1rem; }
.booking__manual textarea { width: 100%; min-height: 190px; padding: .8rem; border: 1px solid var(--brand); border-radius: 10px; color: var(--text); background: var(--bg); }
.booking__overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; background: rgba(10, 10, 15, .96); }
.booking__overlay-card { max-width: 390px; text-align: center; }
.booking__overlay-card strong { display: block; margin: 1rem 0; padding: 1.2rem; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--brand) 17%, transparent); font-size: 1.25rem; }
.booking__overlay-card em { color: var(--brand); font-size: 1.5rem; font-style: normal; }
.booking__spinner { width: 48px; height: 48px; margin: 0 auto 1.2rem; border: 4px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: booking-spin .8s linear infinite; }
@keyframes booking-spin { to { transform: rotate(360deg); } }
@keyframes booking-slide-up { from { transform: translateY(100%); } }

@media (min-width: 720px) {
  .booking__dialog { right: 50%; left: auto; width: min(620px, calc(100% - 40px)); transform: translateX(50%); border-bottom: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 24px 24px 0 0; }
  @keyframes booking-slide-up { from { transform: translate(50%, 100%); } to { transform: translate(50%, 0); } }
}

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.article-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), rgba(27, 29, 39, .65)); }
.article-card h2, .article-card h3 { margin-bottom: .65rem; line-height: 1.35; }
.article-card p:not(.eyebrow) { color: var(--muted); }
.article-card > a:last-child { color: var(--brand); font-weight: 750; }
.category-badge { display: inline-flex; margin-bottom: .65rem; padding: .28rem .62rem; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 999px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); font-size: .75rem; font-weight: 750; }
.reading-shell { max-width: 780px; margin-inline: auto; }
.reading-shell > h1 { margin-bottom: 2.5rem; font-size: clamp(2.2rem, 6vw, 4rem); }
.article-body { color: #ded9de; font-family: Georgia, "Noto Serif TC", serif; font-size: 1.08rem; line-height: 1.9; }
.article-body h2, .article-body h3 { margin-top: 2.4em; color: var(--text) !important; font-family: system-ui, sans-serif; }
.article-body a { color: var(--brand) !important; text-decoration: underline; text-underline-offset: .2em; }
.article-body img { height: auto; margin: 1.5rem auto; border-radius: 14px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body td, .article-body th { padding: .7rem; border: 1px solid var(--line); }
.article-body div, .article-body section, .article-body nav, .article-body blockquote, .article-body ul { color: inherit !important; border-color: var(--line) !important; }
.article-body [style*="background"] { background: var(--surface) !important; }
.article-back { margin-top: 3rem; color: var(--brand); font-weight: 750; }

/* 產業數據報告的統計表。手機寬度會爆版，故可橫向捲動。 */
.data-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.data-table th, .data-table td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { background: var(--surface); font-weight: 750; }
.data-table td a { color: var(--brand); }
.data-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 45%, transparent); }
/* 樣本數與分母說明。揭露這個才有引用價值，但不該搶走主要數字的視覺重量。 */
.report-base { display: block; margin-top: .4rem; font-size: .85rem; opacity: .75; }

.gone-page { max-width: 680px; margin: 2rem auto; text-align: center; }
.gone-page__icon { display: grid; width: 96px; height: 96px; margin: 0 auto 1.5rem; place-items: center; border: 1px solid var(--brand); border-radius: 50%; color: var(--brand); box-shadow: 0 0 35px var(--brand-glow); font-size: 1.4rem; font-weight: 900; }
.redirect-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; padding: 0; list-style: none; }
.redirect-links a { display: block; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.site-footer { padding-block: 3rem 7rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.tab-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 35; display: none; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .5rem max(.6rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.6rem, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(18, 19, 26, .94); backdrop-filter: blur(18px); }
.tab-bar a { display: grid; place-items: center; color: var(--muted); font-size: .7rem; font-weight: 650; }
.tab-bar span { color: var(--brand); font-size: 1.25rem; line-height: 1.1; }
.customer-support { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 34; display: flex; flex-direction: column; gap: .65rem; }
.customer-support__link { display: grid; width: 56px; height: 56px; place-items: center; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; color: white; box-shadow: 0 10px 28px rgba(0, 0, 0, .42); font-size: .72rem; font-weight: 900; }
/* 白字在品牌原色上對比僅 2.25（LINE）與 3.01（TG），未達 4.5。
   品牌識別靠圖示形狀與位置，這裡加深底色以取得足夠對比。 */
.customer-support__link--line { background: #05913e; }
.customer-support__link--telegram { background: #17679a; }
.customer-support__link:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.age-gate[hidden] { display: none; }
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: rgba(7, 7, 10, .86); backdrop-filter: blur(16px); }
.age-gate__card { width: min(100%, 430px); padding: 2rem; border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); border-radius: 24px; text-align: center; background: var(--surface); box-shadow: 0 0 70px var(--brand-glow); }
.age-gate__badge { display: grid; width: 74px; height: 74px; margin: 0 auto 1.25rem; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); font-size: 1.35rem; font-weight: 900; }
.age-gate__card p { color: var(--muted); }
.age-gate__card .button { width: 100%; margin-top: .5rem; }
.age-gate-open { overflow: hidden; }

@media (min-width: 760px) {
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-section { padding: 1.2rem 1.35rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1020px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .desktop-nav { display: none; }
  /* 地圖式雙欄在 390px 會擠壓，行動版改單欄由北到南依序排列。 */
  .tw-map { grid-template-columns: 1fr; grid-template-areas: "north" "central" "south" "east" "islands" "others"; }
  .tw-map__city { flex: 1 1 calc(33.333% - .34rem); min-width: 0; }
  .search-form { flex-direction: column; }
  .search-form .button { width: 100%; }
  .page-shell { padding-block: 2rem 6rem; }
  .tab-bar { display: grid; }
  .filter-panel__toggle { padding-inline: .9rem; }
  .filter-actions { flex-direction: column-reverse; }
  .filter-actions .button { width: 100%; min-width: 0; }
  .customer-support { right: max(.85rem, env(safe-area-inset-right)); bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .customer-support__link { width: 50px; height: 50px; }
  .content-section { margin-top: 3rem; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__content { position: static; }
  .price-plan { grid-template-columns: auto 1fr; }
  .price-plan b { text-align: right; }
  .article-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
