/* 好厝 HaoCuo — 全站樣式（無外部 CDN 相依） */
:root{
  --ink:#12212e; --ink2:#3d4f5c; --sub:#6b7c89; --line:#e2e8ed; --line2:#eef2f5;
  --bg:#f5f8fa; --card:#ffffff;
  --brand:#0f5c8c; --brand-dark:#0b4368; --brand-light:#e8f1f7;
  --green:#127a6e; --green-light:#e7f3f1;
  --gold:#b57d17; --gold-light:#fdf5e4;
  --red:#c0392b; --red-light:#fdefed;
  --amber:#b06f10; --amber-light:#fdf3e5;
  --radius:10px; --shadow:0 1px 3px rgba(18,33,46,.07),0 6px 20px rgba(18,33,46,.05);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg); color:var(--ink); font-size:17px; line-height:1.75;
  text-size-adjust:100%; -webkit-text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; display:block}
button,input,select,textarea{font-family:inherit; font-size:inherit}
.wrap{max-width:1200px; margin:0 auto; padding:0 20px}
.wrap-narrow{max-width:820px; margin:0 auto; padding:0 20px}

/* ---------- Header ---------- */
.site-head{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50}
.site-head .bar{display:flex; align-items:center; gap:24px; height:62px}
.logo{display:flex; align-items:center; gap:10px; font-weight:900; font-size:22px; color:var(--brand); text-decoration:none; flex:none}
.logo:hover{text-decoration:none}
.logo .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--green));display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;font-weight:900;flex:none}
.logo small{display:block;font-size:10.5px;letter-spacing:.14em;color:var(--sub);font-weight:600;line-height:1.3}
.nav{display:flex; gap:4px; flex:1; flex-wrap:wrap}
.nav a{padding:9px 14px; border-radius:8px; color:var(--ink2); font-weight:700; font-size:16px}
.nav a:hover{background:var(--brand-light); color:var(--brand); text-decoration:none}
.nav a.on{background:var(--brand); color:#fff}
.head-right{display:flex; align-items:center; gap:8px; flex:none}

/* ---------- 按鈕 ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 17px; border-radius:8px; border:1px solid transparent; cursor:pointer;
  font-weight:700; font-size:16px; background:var(--brand); color:#fff; transition:.15s; white-space:nowrap}
.btn:hover{background:var(--brand-dark); text-decoration:none; color:#fff}
.btn.ghost{background:#fff; color:var(--ink2); border-color:var(--line)}
.btn.ghost:hover{background:var(--bg); color:var(--brand); border-color:var(--brand)}
.btn.green{background:var(--green)} .btn.green:hover{background:#0e6259}
.btn.danger{background:var(--red)} .btn.danger:hover{background:#a13124}
.btn.sm{padding:9px 15px; font-size:14.5px; border-radius:8px}
.btn.lg{padding:15px 28px; font-size:18px}
.btn.block{width:100%}
.btn[disabled]{opacity:.5; cursor:not-allowed}

/* ---------- 徽章 ---------- */
.badge{display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:20px;
  font-size:13.5px; font-weight:700; line-height:1.8; white-space:nowrap}
.badge.gray{background:#eef1f4; color:#6b7c89}
.badge.slate{background:#e8edf1; color:#4a5c6b}
.badge.blue{background:var(--brand-light); color:var(--brand)}
.badge.gold{background:var(--gold-light); color:var(--gold)}
.badge.green{background:var(--green-light); color:var(--green)}
.badge.red{background:var(--red-light); color:var(--red)}
.badge.amber{background:var(--amber-light); color:var(--amber)}
.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}

.fresh{font-size:13.5px; font-weight:700}
.fresh.fresh{color:var(--green)} .fresh.ok{color:var(--brand)}
.fresh.warn{color:var(--amber)} .fresh.stale{color:var(--red)}

/* ---------- 卡片 ---------- */
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow)}
.card-pad{padding:20px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:18px}
.panel h3{margin:0 0 14px; font-size:19px}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(155deg,#0b2d45 0%,#0f5c8c 55%,#127a6e 100%); color:#fff; position:relative; overflow:hidden}
.hero:after{content:'';position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:60px 60px}
.hero .inner{position:relative; z-index:1; padding:54px 20px 46px}
.hero h1{font-size:38px; font-weight:900; margin:0 0 12px; line-height:1.32; letter-spacing:.01em}
.hero p.sub{font-size:18px; opacity:.92; margin:0 0 26px; line-height:1.7}
.hero .trust{display:flex; gap:26px; flex-wrap:wrap; margin-top:26px; font-size:15px}
.hero .trust b{display:block; font-size:27px; font-weight:900; line-height:1.3}
.hero .trust span{opacity:.8}

/* ---------- AI 搜尋框 ---------- */
.ai-box{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); border-radius:14px; padding:16px; backdrop-filter:blur(6px)}
.ai-box .lbl{font-size:15px; font-weight:700; opacity:.92; margin-bottom:10px; display:flex; align-items:center; gap:6px}
.ai-row{display:flex; gap:9px}
.ai-row input{flex:1; padding:15px 18px; border-radius:9px; border:none; font-size:17px; color:var(--ink); outline:none; min-width:0}
.ai-row button{padding:15px 26px; border-radius:9px; border:none; background:#fff; color:var(--brand); font-weight:800; cursor:pointer; font-size:17px; white-space:nowrap}
.ai-row button:hover{background:#eaf3f8}
.ai-hints{display:flex; gap:7px; flex-wrap:wrap; margin-top:11px}
.ai-hints a{background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.24); color:#fff;
  padding:7px 14px; border-radius:20px; font-size:14.5px}
.ai-hints a:hover{background:rgba(255,255,255,.28); text-decoration:none}

/* ---------- 物件卡 ---------- */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(268px,1fr)); gap:18px}
.lc{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.18s; display:flex; flex-direction:column}
.lc:hover{box-shadow:0 8px 26px rgba(18,33,46,.1); transform:translateY(-2px)}
.lc a{color:inherit; text-decoration:none}
.lc .ph{position:relative; aspect-ratio:4/3; background:var(--line2); overflow:hidden}
.lc .ph img{width:100%; height:100%; object-fit:cover}
.lc .ph .tags{position:absolute; top:9px; left:9px; display:flex; gap:5px; flex-wrap:wrap}
.lc .ph .tags .badge{box-shadow:0 1px 4px rgba(0,0,0,.18)}
.lc .ph .fav{position:absolute; top:9px; right:9px; width:31px;height:31px;border-radius:50%;
  background:rgba(255,255,255,.94); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:15px; color:#8b98a3}
.lc .ph .fav.on{color:var(--red)}
.lc .ph .multi{position:absolute; bottom:9px; left:9px; background:rgba(18,33,46,.82); color:#fff;
  font-size:13px; font-weight:700; padding:4px 10px; border-radius:6px}
.lc .body{padding:13px 14px 15px; flex:1; display:flex; flex-direction:column}
.lc .title{font-weight:800; font-size:17px; line-height:1.5; margin:0 0 7px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.lc .meta{font-size:14.5px; color:var(--sub); margin-bottom:9px}
.lc .price{font-size:24px; font-weight:900; color:var(--red); margin-bottom:3px}
.lc .price small{font-size:13.5px; color:var(--sub); font-weight:600; margin-left:5px}
.lc .old{font-size:13.5px; color:var(--sub); text-decoration:line-through; margin-left:6px; font-weight:600}
.lc .twd{font-size:15px; color:var(--green); font-weight:800; margin-bottom:3px}
.lc .spec{font-size:14.5px; color:var(--ink2); margin-bottom:10px}
.lc .foot{margin-top:auto; padding-top:10px; border-top:1px solid var(--line2);
  display:flex; justify-content:space-between; align-items:center; font-size:13.5px; color:var(--sub)}

/* 推廣版位（明確標示且每頁上限 2 則） */
.promo-note{background:var(--amber-light); border:1px dashed #e3c48c; color:var(--amber);
  font-size:14px; padding:8px 13px; border-radius:8px; margin-bottom:12px; font-weight:600}
.lc.promo{border-color:#e3c48c}

/* ---------- 篩選列 ---------- */
.filters{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin-bottom:18px}
.frow{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:11px}
.frow:last-child{margin-bottom:0}
.frow label{font-size:15px; font-weight:700; color:var(--ink2); flex:none}
select,input[type=text],input[type=number],input[type=email],input[type=password],input[type=tel],input[type=date],textarea{
  padding:8px 11px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); outline:none}
select:focus,input:focus,textarea:focus{border-color:var(--brand); box-shadow:0 0 0 3px rgba(15,92,140,.12)}
textarea{width:100%; resize:vertical; line-height:1.7}
.chips{display:flex; gap:7px; flex-wrap:wrap}
.chip{display:inline-flex; align-items:center; gap:5px; padding:6px 13px; border-radius:20px;
  border:1px solid var(--line); background:#fff; font-size:15px; font-weight:600; color:var(--ink2); cursor:pointer}
.chip:hover{border-color:var(--brand); color:var(--brand); text-decoration:none}
.chip.on{background:var(--brand); border-color:var(--brand); color:#fff}
.chip.trust.on{background:var(--green); border-color:var(--green)}

/* ---------- 表格 ---------- */
table.tb{width:100%; border-collapse:collapse; font-size:16px; background:#fff}
table.tb th{background:var(--brand); color:#fff; text-align:left; padding:12px 13px; font-weight:700; font-size:15px; white-space:nowrap}
table.tb td{padding:10px 12px; border-bottom:1px solid var(--line2); vertical-align:middle}
table.tb tr:hover td{background:#fafcfd}
table.tb.alt th{background:var(--green)}

/* ---------- 詳情頁 ---------- */
.detail-head{display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; align-items:flex-start}
.gal{display:grid; grid-template-columns:2fr 1fr 1fr; gap:6px; border-radius:var(--radius); overflow:hidden; margin-bottom:20px}
.gal img{width:100%; height:100%; object-fit:cover; aspect-ratio:4/3}
.gal .main{grid-row:span 2; aspect-ratio:auto}
.gal .main img{aspect-ratio:16/11}
.spec-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.spec-grid div{background:#fff; padding:13px 14px}
.spec-grid .k{font-size:14px; color:var(--sub); margin-bottom:3px}
.spec-grid .v{font-size:19px; font-weight:800}
.two-col{display:grid; grid-template-columns:1fr 330px; gap:24px; align-items:start}
.sticky{position:sticky; top:78px}

/* ---------- 驗證區塊 ---------- */
.verify-box{border:1px solid var(--green); background:var(--green-light); border-radius:var(--radius); padding:15px 17px}
.verify-box .h{font-weight:800; color:var(--green); margin-bottom:8px; display:flex; align-items:center; gap:7px}
.verify-list{display:grid; grid-template-columns:1fr; gap:6px; font-size:15px}
.verify-list span{display:flex; align-items:center; gap:6px}
.verify-box.unverified{border-color:#e3c48c; background:var(--amber-light)}
.verify-box.unverified .h{color:var(--amber)}

/* ---------- 提示框 ---------- */
.alert{padding:14px 17px; border-radius:8px; margin-bottom:16px; font-size:16px; line-height:1.75; border-left:4px solid}
.alert.info{background:var(--brand-light); border-color:var(--brand); color:#0b4368}
.alert.ok{background:var(--green-light); border-color:var(--green); color:#0d5c53}
.alert.warn{background:var(--amber-light); border-color:var(--amber); color:#8a5709}
.alert.err{background:var(--red-light); border-color:var(--red); color:#96291d}
.alert b{display:block; margin-bottom:3px}

/* ---------- 地圖 ---------- */
#map{height:calc(100vh - 190px); min-height:460px; border-radius:var(--radius); border:1px solid var(--line); overflow:hidden; background:#e8eef2}
.map-layout{display:grid; grid-template-columns:380px 1fr; gap:16px}
.map-list{height:calc(100vh - 190px); min-height:460px; overflow-y:auto; padding-right:4px}
.mini-lc{display:flex; gap:11px; background:#fff; border:1px solid var(--line); border-radius:9px; padding:9px; margin-bottom:9px; cursor:pointer}
.mini-lc:hover{border-color:var(--brand); text-decoration:none}
.mini-lc img{width:92px; height:70px; object-fit:cover; border-radius:6px; flex:none}
.mini-lc .t{font-weight:700; font-size:15.5px; line-height:1.45; margin-bottom:4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mini-lc .p{color:var(--red); font-weight:800; font-size:17px}
.mini-lc .m{font-size:13.5px; color:var(--sub)}
.fx-note{font-size:13.5px;color:var(--sub);margin-top:4px}

/* ---------- 表單 ---------- */
.form-row{margin-bottom:16px}
.form-row label.lb{display:block; font-weight:700; font-size:16px; margin-bottom:7px; color:var(--ink2)}
.form-row label.lb .req{color:var(--red); margin-left:3px}
.form-row .hint{font-size:14.5px; color:var(--sub); margin-top:6px; line-height:1.7}
.form-row input[type=text],.form-row input[type=number],.form-row input[type=email],
.form-row input[type=password],.form-row input[type=tel],.form-row input[type=file],
.form-row select,.form-row textarea{width:100%; max-width:100%}
.form-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px}
.check-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px}
.check-grid label{display:flex; align-items:center; gap:9px; font-size:16px; cursor:pointer; min-height:44px;
  padding:8px 11px; border:1px solid var(--line); border-radius:7px; background:#fff}
.check-grid label:has(input:checked){border-color:var(--brand); background:var(--brand-light); color:var(--brand); font-weight:700}

/* ---------- 統計 ---------- */
.kpi-row{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:13px; margin-bottom:20px}
.kpi{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px}
.kpi .n{font-size:30px; font-weight:900; color:var(--brand); line-height:1.25}
.kpi .l{font-size:14.5px; color:var(--sub); margin-top:3px}
.kpi .d{font-size:13.5px; margin-top:6px; font-weight:700}
.kpi .d.up{color:var(--green)} .kpi .d.down{color:var(--red)}

/* 漏斗 */
.funnel{display:flex; align-items:flex-end; gap:10px; margin:14px 0 6px}
.funnel .step{flex:1; display:flex; flex-direction:column; align-items:center; gap:6px}
.funnel .track{width:100%; height:96px; display:flex; align-items:flex-end}
.funnel .bar{width:100%; background:linear-gradient(180deg,#1b7bb5,var(--brand)); border-radius:6px 6px 0 0; min-height:5px}
.funnel .lab{font-size:13.5px; color:var(--sub); text-align:center}
.funnel .val{font-size:16px; font-weight:800}

/* 走勢條 */
.spark{display:flex; align-items:flex-end; gap:2px; height:44px}
.spark i{flex:1; background:var(--brand-light); border-radius:2px 2px 0 0; min-height:2px}
.spark i.hi{background:var(--brand)}

/* ---------- 分頁 ---------- */
.pager{display:flex; gap:6px; justify-content:center; margin:26px 0; flex-wrap:wrap}
.pager a,.pager span{padding:11px 17px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:16px; font-weight:700}
.pager a:hover{border-color:var(--brand); text-decoration:none}
.pager .on{background:var(--brand); color:#fff; border-color:var(--brand)}

/* ---------- Footer ---------- */
.site-foot{background:#0b2231; color:#9fb3c1; margin-top:56px; padding:34px 0 26px; font-size:15px}
.site-foot .cols{display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:28px; margin-bottom:24px}
.site-foot h4{color:#fff; font-size:16.5px; margin:0 0 11px}
.site-foot a{color:#9fb3c1; display:block; padding:2px 0}
.site-foot a:hover{color:#fff}
.site-foot .legal{border-top:1px solid rgba(255,255,255,.1); padding-top:16px; font-size:13.5px; line-height:1.9; color:#8ba2b2}

/* ---------- 其他 ---------- */
.section-head{display:flex; justify-content:space-between; align-items:flex-end; margin:34px 0 16px; gap:14px; flex-wrap:wrap}
.section-head h2{font-size:25px; margin:0; font-weight:900}
.section-head p{margin:5px 0 0; font-size:15.5px; color:var(--sub); line-height:1.7}
.empty{text-align:center; padding:60px 20px; color:var(--sub)}
.empty .big{font-size:52px; margin-bottom:12px; opacity:.4}
.muted{color:var(--sub)}
.small{font-size:14.5px}
.mb0{margin-bottom:0} .mb8{margin-bottom:8px} .mb16{margin-bottom:16px} .mb24{margin-bottom:24px}
.mt24{margin-top:24px}
.flex{display:flex} .between{justify-content:space-between} .center{align-items:center} .gap8{gap:8px} .gap12{gap:12px}
.tabs{display:flex; gap:4px; border-bottom:2px solid var(--line); margin-bottom:20px; flex-wrap:wrap}
.tabs a{padding:12px 18px; font-weight:700; color:var(--sub); border-bottom:3px solid transparent; margin-bottom:-2px; font-size:16.5px; white-space:nowrap}
.tabs a:hover{color:var(--brand); text-decoration:none}
.tabs a.on{color:var(--brand); border-bottom-color:var(--brand)}

.price-hist{display:flex; flex-direction:column; gap:7px}
.price-hist .r{display:flex; justify-content:space-between; font-size:15.5px; padding:9px 0; border-bottom:1px dashed var(--line)}
.price-hist .r:last-child{border-bottom:none}
.price-hist .down{color:var(--green); font-weight:700}

.offer-row{display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--line2)}
.offer-row:last-child{border-bottom:none}
.offer-row .who{font-size:15.5px}
.offer-row .who b{display:block}
.offer-row .amt{font-weight:800; color:var(--red)}

/* ==================== 手機／平板 RWD ==================== */

/* 表格一律可橫向捲動，永遠不撐破版面 */
.tb-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%}
/* grid／flex 子項目的 min-width 預設是 auto，內容太寬就會撐破版面，一律歸零 */
.two-col>*,.grid>*,.map-layout>*,.kpi-row>*,.form-grid>*,.spec-grid>*,.filters>*{min-width:0}
.two-col>*{overflow-wrap:anywhere}
.panel table.tb, .tb-scroll table.tb{min-width:560px}
table.tb td,table.tb th{word-break:keep-all; overflow-wrap:normal}
/* 可橫向捲動時右邊給一道漸層，提示「還有內容可以滑」 */
.tb-scroll{background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)),
  linear-gradient(90deg,rgba(255,255,255,0),#fff 70%) 100% 0,
  radial-gradient(farside 40% 50% at 0 50%,rgba(18,33,46,.12),transparent),
  radial-gradient(farside 40% 50% at 100% 50%,rgba(18,33,46,.12),transparent) 100% 0;
  background-repeat:no-repeat; background-size:40px 100%,40px 100%,14px 100%,14px 100%;
  background-attachment:local,local,scroll,scroll}

/* --- 漢堡選單（預設隱藏，手機才出現） --- */
.navtoggle{display:none; align-items:center; justify-content:center; width:46px; height:46px;
  border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; flex:none}
.navtoggle span{display:block; width:22px; height:2.5px; background:var(--ink); border-radius:2px; position:relative}
.navtoggle span::before,.navtoggle span::after{content:""; position:absolute; left:0; width:22px; height:2.5px;
  background:var(--ink); border-radius:2px}
.navtoggle span::before{top:-7px} .navtoggle span::after{top:7px}

/* ---------- 平板 ---------- */
@media (max-width:1080px){
  .two-col{grid-template-columns:1fr}
  .map-layout{grid-template-columns:1fr}
  .map-list{height:auto; max-height:340px}
  #map{height:420px}
  .site-foot .cols{grid-template-columns:1fr 1fr}
  .sticky{position:static}
  .site-head .bar{gap:14px}
  .nav a{padding:8px 11px; font-size:15px}
  .hero h1{font-size:32px}
}

/* ---------- 手機 ---------- */
@media (max-width:760px){
  body{font-size:17.5px; line-height:1.8}
  .wrap,.wrap-narrow{padding:0 16px}

  /* 頁首：logo ＋ 漢堡，選單改為展開式 */
  .site-head .bar{height:auto; min-height:60px; padding:10px 0; gap:10px; flex-wrap:wrap}
  .navtoggle{display:flex; order:3; margin-left:auto}
  .logo{font-size:20px}
  .head-right{order:2; margin-left:auto; display:flex; gap:6px; align-items:center}
  .head-right .btn{padding:9px 13px; font-size:14.5px}
  /* flex:0 0 100% 一定要寫，否則會被基礎樣式的 flex:1（basis:0）壓成窄窄一條 */
  .nav{order:4; flex:0 0 100%; width:100%; display:none; flex-direction:column; gap:2px;
    border-top:1px solid var(--line); padding-top:10px; margin-top:6px}
  .nav.open{display:flex}
  .nav a{display:block; padding:14px 12px; font-size:18px; font-weight:700; border-radius:9px}
  .nav a.on{background:var(--brand-light); color:var(--brand)}

  /* Hero */
  .hero .inner{padding:34px 16px 30px}
  .hero h1{font-size:27px; line-height:1.42}
  .hero p.sub{font-size:16.5px; margin-bottom:22px}
  .hero .trust{gap:16px 22px; font-size:14px}
  .hero .trust>div{min-width:44%}
  .hero .trust b{font-size:24px}

  /* AI 搜尋列改成上下堆疊，按鈕整條 */
  .ai-row{flex-direction:column; gap:10px}
  .ai-row input{width:100%; font-size:17px; padding:15px 16px}
  .ai-row button{width:100%; padding:16px; font-size:18px}
  .ai-hints{gap:7px}
  .ai-hints a{font-size:14.5px; padding:8px 13px}

  /* 卡片一律單欄 */
  .grid{grid-template-columns:1fr !important; gap:16px}
  .lc .title{font-size:18px}
  .lc .price{font-size:26px}
  .lc .twd{font-size:16px}
  .lc .spec,.lc .meta{font-size:15px}

  /* 相簿：主圖＋橫向縮圖 */
  .gal{grid-template-columns:1fr}
  .gal .main{grid-row:auto}
  .gal img:not(.main img){display:none}
  .gal .main img{height:auto; aspect-ratio:4/3; object-fit:cover}

  /* 篩選列：每個欄位整條寬 */
  .filters{padding:14px}
  .frow{flex-direction:column; align-items:stretch; gap:10px}
  .frow>*{width:100%}
  .frow input,.frow select{width:100% !important; min-width:0 !important; font-size:17px; padding:13px 14px; min-height:48px}
  .frow .btn{width:100%; justify-content:center; padding:14px; font-size:17px}

  /* 表單元件放大到好按 */
  input,select,textarea{font-size:17px !important; min-height:48px; padding:12px 14px}
  textarea{min-height:120px}
  .btn{min-height:48px; display:inline-flex; align-items:center; justify-content:center}
  .btn.sm{min-height:42px}
  .form-grid{grid-template-columns:1fr}
  .check-grid{grid-template-columns:1fr}

  /* 表格：字略縮但可橫向捲 */
  .panel{padding:16px}
  .panel table.tb{font-size:15px}
  table.tb th,table.tb td{padding:10px}

  /* 規格格、KPI、漏斗 */
  .spec-grid{grid-template-columns:1fr 1fr}
  .panel table.tb{min-width:680px}
  table.tb td,table.tb th{padding:11px 10px; white-space:nowrap}
  table.tb td .small,table.tb td div{white-space:normal}
  input[type=file]{max-width:100%}
  .spec-grid .v{font-size:18px}
  .kpi-row{grid-template-columns:1fr 1fr}
  .kpi .n{font-size:26px}
  .funnel{gap:8px}
  .funnel .lab{font-size:12.5px}

  /* 分頁與頁尾 */
  .tabs{overflow-x:auto; flex-wrap:nowrap; -webkit-overflow-scrolling:touch}
  .tabs::-webkit-scrollbar{display:none}
  .section-head{flex-direction:column; align-items:flex-start; gap:10px}
  .section-head h2{font-size:22px}
  .pager a,.pager span{min-width:46px; min-height:46px; display:inline-flex; align-items:center; justify-content:center}
  .site-foot .cols{grid-template-columns:1fr; gap:22px}
  .verify-list{grid-template-columns:1fr}
  .offer-row{flex-direction:column; align-items:flex-start; gap:5px}

  /* 地圖 */
  #map{height:340px}
  .map-list{max-height:none}
}

/* ---------- 小手機 ---------- */
@media (max-width:400px){
  .wrap,.wrap-narrow{padding:0 13px}
  .hero h1{font-size:24px}
  .logo{font-size:18px}
  .logo small{display:none}
  .spec-grid{grid-template-columns:1fr 1fr}
  .kpi-row{grid-template-columns:1fr}
  .lc .price{font-size:24px}
}

/* 尊重使用者的「減少動態」設定 */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
