/* 禾嶼廠房地產（示範）：前台與後台示意共用樣式
 * 深藍底＋金線、照片斜切角；文字不換行、區塊上下約 40px */
:root {
  --nv: #0b1f3a; --nv2: #10284a; --nv3: #163463; --gold: #c9a24a; --gold2: #e0bd6c;
  --bg: #f3f6fb; --card: #fff; --tx: #0b1f3a; --tx2: #4a5d79; --ln: rgba(11,31,58,.12);
  --ok: #06c755; --sh: 0 8px 24px rgba(11,31,58,.1); --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; background: var(--bg); color: var(--tx); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nw { white-space: nowrap; }
.muted, .hint { color: var(--tx2); font-size: 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== 示範橫條 ===== */
.demobar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #1c1c1c; color: #f2f2f2; font-size: 13px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.demobar::-webkit-scrollbar { display: none; }
.demobar .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.demobar .s { display: none; }
.demobar a { flex: none; padding: 3px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.demobar a.pri { background: var(--gold); border-color: var(--gold); color: var(--nv); }
@media (max-width: 760px) { .demobar .l { display: none; } .demobar .s { display: inline; } .demobar { gap: 6px; padding: 6px 8px; font-size: 12px; } .demobar a { padding: 3px 8px; font-size: 12px; } }

/* ===== 按鈕 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer; line-height: 1; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--gold); color: var(--nv); }
.btn-p:hover { background: var(--gold2); }
.btn-g { background: transparent; border-color: var(--gold); color: #86651a; }
.dk .btn-g { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-l { min-height: 50px; padding: 0 26px; font-size: 17px; }
.btn-s { min-height: 34px; padding: 0 12px; font-size: 14px; }
.lnk { color: #86651a; font-weight: 700; white-space: nowrap; }
.lnk:hover { text-decoration: underline; }

/* ===== 頁首 ===== */
.hd { position: sticky; top: 33px; z-index: 50; background: var(--nv); color: #fff; border-bottom: 1px solid rgba(201,162,74,.35); }
.hd.sc { box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.hd-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.brand b i { font-style: normal; font-size: 12px; color: var(--gold); font-weight: 700; margin-left: 2px; }
.brand small { font-size: 10.5px; letter-spacing: .18em; color: #9fb0c8; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 11px; font-size: 15px; white-space: nowrap; color: #dbe5f5; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.hd-cta { min-height: 38px; padding: 0 16px; font-size: 15px; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 4px; font-size: 22px; cursor: pointer; }
@media (max-width: 980px) {
  .burger { display: grid; place-items: center; }
  .hd-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; background: var(--nv); padding: 8px 16px 14px; border-bottom: 1px solid rgba(201,162,74,.35); }
  .nav.on { display: flex; }
  .nav a { padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 760px) { .hd { top: 31px; } }

/* ===== 區塊 ===== */
.sec { padding: 40px 0; }
.band { background: #e8eef8; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #86651a; white-space: nowrap; }
.dk .eyebrow { color: var(--gold); }
.sec-h { margin-bottom: 20px; }
.sec-h.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-h h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.3; margin-top: 4px; }
.sec-h .sub { color: var(--tx2); margin-top: 4px; }
.dk { background: var(--nv); color: #fff; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 3px; font-size: 12px; font-weight: 700; background: rgba(201,162,74,.16); color: #86651a; white-space: nowrap; }
.shot-tag { position: absolute; left: 10px; top: 10px; padding: 1px 8px; font-size: 11px; background: rgba(11,31,58,.75); color: #fff; border-radius: 3px; white-space: nowrap; }

/* ===== 首屏 ===== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(201,162,74,.3); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(201,162,74,.05) 0 1px, transparent 1px 22px); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 34px; align-items: center; padding-top: 32px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.22; margin: 8px 0 12px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #c9d6ea; font-size: 17px; max-width: 540px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hl { display: grid; gap: 6px; margin-top: 16px; color: #dbe5f5; font-size: 15px; }
.hl li { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.hl .ph { color: var(--gold); font-size: 18px; }
.srch { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; padding: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,74,.35); }
.srch select { min-height: 44px; padding: 0 10px; border: 1px solid rgba(255,255,255,.2); background: var(--nv2); color: #fff; border-radius: 3px; min-width: 0; }
.hero-ph { position: relative; height: 430px; }
.hero-ph figure { position: absolute; overflow: hidden; background: var(--nv3); }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.hph-1 { right: 0; top: 0; width: 82%; height: 74%; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.hph-2 { left: 0; bottom: 4%; width: 46%; height: 40%; clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px); box-shadow: 0 0 0 4px var(--nv); outline: 2px solid var(--gold); outline-offset: -2px; }
.hph-3 { right: 4%; bottom: 0; width: 36%; height: 30%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.hero-ph > .shot-tag { left: auto; right: 54px; top: 10px; z-index: 2; }
.hero-ph::before { content: ""; position: absolute; right: -10px; top: 24px; width: 82%; height: 74%; border: 2px solid var(--gold); opacity: .55; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.nums li { padding: 8px 10px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.04); }
.nums b { display: block; font-size: 17px; white-space: nowrap; }
.nums span { font-size: 12.5px; color: #9fb0c8; white-space: nowrap; }

/* ===== 服務、流程 ===== */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { padding: 20px; background: var(--card); border: 1px solid var(--ln); border-top: 3px solid var(--gold); position: relative; }
.svc .ico { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(201,162,74,.14); color: #86651a; font-size: 24px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.svc h3 { font-size: 19px; font-weight: 900; margin: 10px 0 6px; white-space: nowrap; }
.svc li { display: flex; gap: 8px; font-size: 15px; line-height: 1.55; margin-top: 5px; }
.svc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.flow li { position: relative; padding: 18px 16px 16px; background: var(--card); border: 1px solid var(--ln); }
.flow li::before { counter-increment: s; content: "0" counter(s); font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1; display: block; margin-bottom: 6px; }
.flow b { display: flex; align-items: center; gap: 6px; font-size: 17px; white-space: nowrap; }
.flow b .ph { color: #86651a; }
.flow span { display: block; font-size: 14px; color: var(--tx2); margin-top: 4px; }

/* ===== 物件卡 ===== */
.lcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--ln); transition: transform .18s, box-shadow .18s, border-color .18s; min-width: 0; }
.lc:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--sh); }
.lc-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nv3); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.lc-ph img { width: 100%; height: 100%; object-fit: cover; }
.lc-ph .deal { position: absolute; right: 10px; bottom: 8px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--gold); color: var(--nv); white-space: nowrap; }
.lc-ph .deal.r { background: #fff; }
.lc-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lc-k { font-size: 13px; color: #86651a; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-t { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-a { font-size: 14px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-s { display: flex; gap: 12px; font-size: 14px; color: var(--tx2); white-space: nowrap; overflow: hidden; margin-top: 2px; }
.lc-s b { color: var(--tx); }
.lc-p { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--ln); font-weight: 900; color: var(--nv); white-space: nowrap; display: flex; justify-content: space-between; align-items: center; }
.lc-p small { font-weight: 400; color: var(--tx2); font-size: 12.5px; }
.empty { padding: 30px; text-align: center; background: var(--card); border: 1px dashed var(--ln); color: var(--tx2); grid-column: 1 / -1; }

/* ===== 篩選 ===== */
.flt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 16px; background: var(--card); border: 1px solid var(--ln); margin-bottom: 18px; }
.flt-g { display: flex; align-items: center; gap: 8px; min-width: 0; }
.flt-g > b { font-size: 14px; white-space: nowrap; }
.pills { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pills button { padding: 5px 12px; border: 1px solid var(--ln); background: #fff; border-radius: 999px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pills button.on { background: var(--nv); color: #fff; border-color: var(--nv); }
.flt .cnt { margin-left: auto; font-size: 14px; color: var(--tx2); white-space: nowrap; }

/* ===== 內頁首屏 ===== */
.ph-hero { padding: 26px 0 28px; }
.ph-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; margin: 4px 0 4px; }
.ph-hero p { color: #c9d6ea; }
.crumb { font-size: 13px; color: #9fb0c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb a:hover { color: var(--gold); }
.sec .crumb { color: var(--tx2); margin-bottom: 10px; }

/* ===== 單一物件 ===== */
.ld { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.ld-t { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.3; margin-top: 4px; }
.gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 190px 190px; gap: 8px; margin-top: 12px; }
.gal figure { position: relative; overflow: hidden; background: var(--nv3); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal .g0 { grid-row: span 2; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
.gal .g2 { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.spec { margin-top: 18px; background: var(--card); border: 1px solid var(--ln); }
.spec table { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 9px 14px; border-bottom: 1px solid var(--ln); text-align: left; font-size: 15px; white-space: nowrap; }
.spec th { width: 30%; color: var(--tx2); font-weight: 500; background: #f7f9fc; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.feat li { padding: 3px 12px; border: 1px solid rgba(201,162,74,.5); background: rgba(201,162,74,.08); font-size: 14px; white-space: nowrap; }
.prose p { margin-top: 10px; }
.side { display: grid; gap: 14px; position: sticky; top: 112px; }
.card { background: var(--card); border: 1px solid var(--ln); }
.side-p { padding: 16px 18px; border-top: 3px solid var(--gold); }
.side-p .price { font-size: 26px; font-weight: 900; color: var(--nv); white-space: nowrap; }

/* ===== 表單 ===== */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
.form h2 { grid-column: 1 / -1; font-size: 20px; font-weight: 900; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld.full, .form .full { grid-column: 1 / -1; }
.fld label, .fld > span { font-size: 14px; font-weight: 700; white-space: nowrap; }
.fld label em { color: #c0392b; font-style: normal; margin-left: 2px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #c8d2e1; border-radius: 3px; background: #fff; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld.bad input { border-color: #c0392b; background: #fff6f5; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--tx2); }
.agree input { margin-top: 5px; }
.err { color: #c0392b; font-size: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.stp { display: grid; gap: 10px; counter-reset: s; }
.stp li { display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--ln); }
.stp li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; background: var(--nv); color: var(--gold); font-weight: 900; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.stp b { white-space: nowrap; }
.stp span { font-size: 14px; color: var(--tx2); }
.chk { display: grid; gap: 6px; margin-top: 10px; }
.chk li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.chk .ph { color: #86651a; font-size: 18px; flex: none; }
.chk-h { font-size: 19px; font-weight: 900; margin-bottom: 10px; }

/* ===== 其他單元、照片牆 ===== */
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.unit { display: flex; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--ln); border-left: 3px solid var(--gold); cursor: pointer; text-align: left; min-width: 0; }
.unit .ph { font-size: 26px; color: #86651a; flex: none; }
.unit b { display: block; font-size: 16px; white-space: nowrap; }
.unit span { font-size: 13.5px; color: var(--tx2); line-height: 1.5; display: block; }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 10px; }
.mosaic figure { position: relative; overflow: hidden; background: var(--nv3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m0 { grid-row: span 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.mosaic .m3 { grid-column: span 2; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; padding: 3px 10px; background: rgba(11,31,58,.78); color: #fff; font-size: 12.5px; white-space: nowrap; }

/* ===== FAQ、聯絡 ===== */
.faq-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa { background: var(--card); border: 1px solid var(--ln); }
.qa summary { padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: #86651a; font-weight: 900; }
.qa[open] summary::after { content: "−"; }
.qa .a { padding: 0 16px 14px; color: var(--tx2); font-size: 15px; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.3; }
.cta p { color: #c9d6ea; margin-top: 6px; }
.info { display: grid; gap: 8px; }
.info li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(255,255,255,.05); border-left: 2px solid var(--gold); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .ph { color: var(--gold); font-size: 19px; flex: none; }
.map { margin-top: 8px; padding: 14px; border: 1px dashed rgba(201,162,74,.6); color: #c9d6ea; font-size: 14px; text-align: center; }

/* ===== 頁尾 ===== */
.ft { background: #081729; color: #9fb0c8; padding: 26px 0 92px; font-size: 14px; }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.ft-l { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ft-l a { white-space: nowrap; }
.ft-l a:hover, .ft-c a:hover { color: var(--gold); }
.ft-c { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ft-c span, .ft-c a { white-space: nowrap; }
.ft-c a { color: #dbe5f5; }

/* ===== 浮動按鈕 ===== */
.fab { position: fixed; right: 16px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; gap: 10px; }
.fab button { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 25px; color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.fab .f-line { background: var(--ok); }
.fab .f-tel { background: var(--nv); border: 2px solid var(--gold); color: var(--gold); }
.fab .f-ig { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }

/* ===== 說明視窗、提示 ===== */
.lm { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5,14,28,.6); }
.lm-box { position: relative; width: 100%; max-width: 400px; padding: 26px 22px 20px; background: #fff; text-align: center; border-top: 4px solid var(--gold); }
.lm-x { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.lm-ic { width: 54px; height: 54px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--nv); color: var(--gold); font-size: 28px; }
.lm-ic.g { background: var(--ok); color: #fff; }
.lm h3 { font-size: 19px; font-weight: 900; white-space: nowrap; }
.lm-desc { margin-top: 8px; color: var(--tx2); font-size: 15px; }
.lm-desc span { display: block; }
.lm-acts { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; background: var(--nv); color: #fff; border-left: 3px solid var(--gold); font-size: 14.5px; white-space: nowrap; transition: .2s; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== 手機 ===== */
@media (max-width: 980px) {
  .hero-in, .cta-in, .two, .ld { grid-template-columns: minmax(0, 1fr); }
  .hero-ph { height: 320px; }
  .svcs, .lcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: static; }
}
@media (max-width: 640px) {
  .sec { padding: 32px 0; }
  .wrap { padding: 0 16px; }
  .svcs, .lcs, .faq-g { grid-template-columns: minmax(0, 1fr); }
  .flow, .units { grid-template-columns: minmax(0, 1fr); }
  .srch { grid-template-columns: 1fr 1fr; }
  .srch .btn { grid-column: 1 / -1; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ph { height: 250px; }
  .sec-h.row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 120px 120px; }
  .mosaic .m0 { grid-column: span 2; grid-row: auto; }
  .mosaic .m3 { grid-column: span 2; }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; }
  .gal .g0 { grid-column: span 2; grid-row: auto; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .flt { gap: 10px; }
  .flt-g { width: 100%; }
  .flt .cnt { margin-left: 0; }
  .spec th, .spec td { padding: 8px 10px; font-size: 14px; }
  .btn-l { padding: 0 18px; font-size: 16px; }
  .info li { font-size: 14px; }
}

/* ===== 後台示意 ===== */
body.adm { background: #eef2f8; }
.ad-top { position: sticky; top: 33px; z-index: 50; background: var(--nv); color: #fff; }
.ad-top .in { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px; }
.ad-top .sp { flex: 1; }
.ad-top .who { font-size: 14px; color: #c9d6ea; white-space: nowrap; }
.ad-top .brand span { font-size: 12px; color: var(--gold); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 89px); }
.aside { background: #fff; border-right: 1px solid var(--ln); padding: 12px 10px; }
.aside button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 4px; font-size: 15px; cursor: pointer; white-space: nowrap; text-align: left; color: var(--tx2); }
.aside button .ph { font-size: 19px; }
.aside button:hover { background: #f2f5fa; color: var(--tx); }
.aside button.on { background: var(--nv); color: #fff; }
.aside button.on .ph { color: var(--gold); }
.aside button i:not(.ph) { margin-left: auto; font-style: normal; font-size: 12px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e74c3c; color: #fff; text-align: center; }
.main { padding: 22px; min-width: 0; }
.view-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.view-h h1 { font-size: 22px; font-weight: 900; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.view-h h1 .ph { color: #86651a; }
.view-h .acts { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { padding: 14px 16px; background: #fff; border: 1px solid var(--ln); border-top: 3px solid var(--gold); }
.kpi span { font-size: 13.5px; color: var(--tx2); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.kpi b { display: block; font-size: 28px; font-weight: 900; line-height: 1.2; margin-top: 2px; }
.kpi small { font-size: 12.5px; color: var(--tx2); white-space: nowrap; }
.box { background: #fff; border: 1px solid var(--ln); margin-bottom: 14px; }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--ln); cursor: pointer; }
.box-h h2 { font-size: 16px; font-weight: 900; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.box-h .tg { font-size: 18px; color: var(--tx2); transition: transform .2s; }
.box.cl .box-h { border-bottom: 0; }
.box.cl .box-h .tg { transform: rotate(-90deg); }
.box.cl .box-b { display: none; }
.box-b { padding: 6px 16px 12px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--ln); text-align: left; white-space: nowrap; }
.tbl th { font-size: 13px; color: var(--tx2); font-weight: 500; }
.tbl tr.me td { background: #fff8e6; }
.tbl .thumb { width: 64px; height: 42px; object-fit: cover; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #eef2f8; color: var(--tx2); }
.st.ok { background: #e3f6ea; color: #1e7e44; }
.st.new { background: #fde8e6; color: #c0392b; }
.st.wip { background: #fff3d6; color: #8a6200; }
.st.me { background: var(--gold); color: var(--nv); }
.ib { width: 32px; height: 32px; border: 1px solid var(--ln); background: #fff; border-radius: 4px; cursor: pointer; display: inline-grid; place-items: center; font-size: 16px; color: var(--tx2); }
.ib:hover { border-color: var(--gold); color: var(--nv); }
.rows { display: grid; gap: 2px; }
.rows .r { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ln); font-size: 14.5px; white-space: nowrap; overflow: hidden; }
.rows .r:last-child { border-bottom: 0; }
.rows .r .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rows .r small { color: var(--tx2); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tools input, .tools select { min-height: 38px; padding: 0 10px; border: 1px solid #c8d2e1; border-radius: 3px; background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.line-l { display: grid; gap: 8px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 12px; background: #f1f3f6; font-size: 14.5px; }
.bub.me { margin-left: auto; background: #d9f7e3; }
.bub small { display: block; font-size: 11.5px; color: var(--tx2); }
.set { display: grid; gap: 10px; }
.set .fld input, .set .fld textarea { min-height: 40px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .aside { display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--ln); position: sticky; top: 89px; z-index: 40; scrollbar-width: none; }
  .aside button { width: auto; flex: none; padding: 8px 11px; font-size: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 14px; }
  .ad-top .who { display: none; }
}
@media (max-width: 760px) { .ad-top { top: 31px; } .aside { top: 87px; } }
.form .full > .btn { width: 100%; }
