: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 { margin: .45rem 0 0; color: var(--brand); font-weight: 800; }
.product-card__price small { margin-right: .3rem; padding: .18rem .38rem; border-radius: 5px; color: white; background: var(--brand-deep); font-size: .64rem; }
.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; }
.product-detail h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.product-detail__region { display: block; margin-bottom: .5rem; color: var(--brand); font-size: .82rem; font-weight: 750; letter-spacing: .08em; }
.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: 1rem; left: 0; z-index: 3; display: flex; justify-content: center; gap: .55rem; }
.hero-carousel__dot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .25); transition: all .2s ease; }
.hero-carousel__dot.is-active { width: 26px; border-color: var(--brand); border-radius: 999px; background: var(--brand); 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; }

.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-template-columns: repeat(4, 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; }
.customer-support__link--line { background: #06c755; }
.customer-support__link--telegram { background: #229ed9; }
.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; }
  .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; }
}
