/* ==================================================================
 * 台灣電動床工廠 house93m.com — 全站樣式
 * 2026-10-16 全站改版（取代舊 Lotus 飯店模板 + Bootstrap 3 + 8 支外掛 CSS）
 *
 * 設計方向：溫暖、安心、可信賴的居家照護感
 *   主色  森林綠（品牌、信任）
 *   輔色  米白／沙色（居家、寢具）
 *   強調  暖木色（價格、重點）
 *   LINE  官方綠（主要聯絡管道）
 * 字型：使用系統中文字型，不載入網路字型（中文字型檔動輒數 MB）
 * 版型：手機優先（mobile-first），斷點 640 / 960 / 1200
 * ================================================================== */

:root {
    --green-900: #1d3a27;
    --green-800: #24482f;
    --green: #2f5d3a;
    --green-600: #3d7a4b;
    --green-100: #e6efe7;
    --green-50: #f2f7f2;
    --cream: #faf7f1;
    --sand: #f1eadf;
    --sand-600: #d9cbb4;
    --wood: #a8622d;
    --wood-50: #fbf1e8;
    --ink: #1e2621;
    --text: #333d36;
    --muted: #66706a;
    --rule: #e3ddd2;
    --white: #fff;
    --line: #06c755;
    --line-dark: #05a849;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(30, 38, 33, .06), 0 6px 20px rgba(30, 38, 33, .07);
    --shadow-lg: 0 10px 40px rgba(30, 38, 33, .14);
    --wrap: 1180px;
    --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
    padding-bottom: 64px; /* 手機底部聯絡列 */
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: .02em; }
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(23px, 3.6vw, 32px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { background: var(--line-dark); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--sand); color: var(--green-900); }
.btn-sm { padding: .5em 1em; font-size: 14px; }
.btn-lg { padding: .9em 1.6em; font-size: 18px; }

/* ---------- 頂部資訊列 ---------- */
.topbar { background: var(--green-900); color: #dfe9e0; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-r { display: flex; gap: 18px; }
@media (max-width: 959px) { .topbar { display: none; } }

/* ---------- 頁首 ---------- */
/* 注意：不可加 backdrop-filter／transform，會讓手機選單（position:fixed）以頁首為定位基準而被裁切 */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; color: var(--green); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; color: var(--green-900); letter-spacing: .04em; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; background: var(--green-50); border-radius: 12px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--green-900); border-radius: 2px; position: relative; transition: transform .2s; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
/* 選單內的按鈕：.site-nav a 的深色字優先順序較高，會蓋掉按鈕原本的白字，這裡指定回來 */
.site-nav .btn-line, .site-nav .btn-line:hover { color: #fff; }
.site-nav .btn-ghost { color: var(--green); }
.site-nav .btn-ghost:hover { color: #fff; }
.sub-toggle { display: none; }

/* 手機選單：全螢幕抽屜 */
@media (max-width: 1199px) {
    .nav-open .site-nav {
        display: block; position: fixed; inset: 68px 0 0 0; background: #fff; overflow-y: auto;
        padding: 8px 20px 120px; border-top: 1px solid var(--rule);
    }
    .site-nav > ul > li { border-bottom: 1px solid var(--rule); position: relative; }
    .site-nav > ul > li > a { display: block; padding: 14px 4px; font-size: 18px; }
    .site-nav .is-active > a { color: var(--green); }
    .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
    .sub-toggle::after { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
    .sub-open > .sub-toggle::after { transform: rotate(-135deg); }
    .site-nav .sub { display: none; padding: 0 0 10px 12px; }
    .site-nav .sub-open > .sub { display: block; }
    .site-nav .sub a { display: block; padding: 8px 4px; color: var(--muted); font-weight: 500; }
    .nav-cta { display: grid; gap: 10px; margin-top: 20px; }
    .nav-cta .btn { width: 100%; }
}

/* 桌機選單 */
@media (min-width: 1200px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; align-items: center; gap: 18px; }
    .site-nav > ul { display: flex; gap: 2px; }
    .site-nav > ul > li { position: relative; }
    .site-nav > ul > li > a { display: block; padding: 22px 9px; font-size: 15.5px; border-bottom: 3px solid transparent; }
    .site-nav > ul > li > a:hover, .site-nav .is-active > a { color: var(--green); border-bottom-color: var(--green); }
    .site-nav .sub {
        display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: #fff;
        border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px 0; border: 1px solid var(--rule);
    }
    .site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: block; }
    .site-nav .sub a { display: block; padding: 9px 18px; font-weight: 500; font-size: 15px; }
    .site-nav .sub a:hover { background: var(--green-50); color: var(--green); }
    .nav-cta { display: flex; gap: 8px; }
    .nav-cta .btn-ghost { display: none; }
}

/* ---------- 共用區塊 ---------- */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-white { background: #fff; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green-900); color: #e5eee6; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head .eyebrow, .eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--wood); letter-spacing: .14em; margin-bottom: 6px; }
.section-more { text-align: center; margin-top: 28px; }
@media (min-width: 960px) { .section { padding: 84px 0; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid { gap: 26px; } }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-link { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img, .card-media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.contain img { object-fit: contain; background: #fff; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 18px; margin: 0; color: var(--ink); line-height: 1.45; }
.card-text { color: var(--muted); font-size: 15px; margin: 0; }
.card-meta { font-size: 13px; color: var(--muted); }
/* 卡片底部「閱讀全文」按鈕（照護知識列表，2026-10-16）
   整張卡片本身就是連結，按鈕是視覺提示，不再巢狀 <a>（巢狀連結不合 HTML 規範）。
   margin-top:auto 讓按鈕在同一排卡片中對齊底部。 */
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--green-50); color: var(--green); font-weight: 700; font-size: 14.5px; border: 1px solid var(--green-100); transition: background .15s, color .15s; white-space: nowrap; }
.card-btn-arrow { transition: transform .15s; }
.card-link:hover .card-btn, .card-link:focus-visible .card-btn { background: var(--green); color: #fff; border-color: var(--green); }
.card-link:hover .card-btn-arrow { transform: translateX(3px); }
.card-text { flex: 0 0 auto; }
.card-body > .tag { align-self: flex-start; }
.tag { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 600; }
.price { color: var(--wood); font-weight: 800; font-size: 20px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; font-weight: 400; }

/* ---------- 首頁 Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 首頁主視覺（業主 2026-10-16）：左深右淺的綠色漸層 —— 左側壓文字確保易讀，右側讓照片透出來
 * 桌機：文字只佔左半，遮罩在 35% 之後快速變淡，右側照片接近原色
 * 手機：文字佔滿整個寬度，改用整體較深的遮罩，照片以人物所在的偏右位置為中心 */
.hero-media img { filter: saturate(.9); object-position: 62% 50%; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(20, 40, 27, .97) 0%,
        rgba(20, 40, 27, .94) 32%,
        rgba(20, 40, 27, .82) 46%,
        rgba(20, 40, 27, .45) 60%,
        rgba(20, 40, 27, .15) 76%,
        rgba(20, 40, 27, .05) 100%);
}
@media (max-width: 959px) {
    .hero-media::after {
        background: linear-gradient(180deg, rgba(20, 40, 27, .88) 0%, rgba(20, 40, 27, .8) 60%, rgba(20, 40, 27, .9) 100%);
    }
}
.hero-in { position: relative; padding: 64px 20px 72px; }
.hero h1 { color: #fff; font-size: clamp(30px, 6vw, 52px); max-width: 15em; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; color: #e8f0e9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: 15px; color: #d9e6da; }
.hero-points li::before { content: "✓"; color: #8fd19e; font-weight: 800; margin-right: 6px; }
@media (min-width: 960px) { .hero-in { padding: 110px 20px 120px; } }

/* 信任數據列 */
.trust { background: #fff; border-bottom: 1px solid var(--rule); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; }
.trust-list li { padding: 18px 12px; text-align: center; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust-list strong { display: block; font-size: 24px; color: var(--green); line-height: 1.3; }
.trust-list span { font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .trust-list { grid-template-columns: repeat(4, 1fr); } .trust-list li { border-bottom: 0; } .trust-list li:last-child { border-right: 0; } }

/* 分類捷徑 */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; height: 100%; }
.quick a:hover { color: var(--green); box-shadow: var(--shadow-lg); }
.quick img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .quick { grid-template-columns: repeat(6, 1fr); } .quick a { flex-direction: column; text-align: center; padding: 20px 10px; } .quick img { width: 56px; height: 56px; flex-basis: auto; } }

/* 特色列表 */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--green-100); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.feature h3 { margin-bottom: .3em; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 「為什麼選擇」區塊（首頁，2026-10-16 重新設計） */
.why { position: relative; overflow: hidden; color: #dbe7dc; padding: 64px 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(61, 122, 75, .45), transparent 60%), linear-gradient(160deg, var(--green-800), var(--green-900) 70%); }
.why::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .03); pointer-events: none; }
.why .eyebrow { color: #e9c9a6; }
.why h2 { color: #fff; margin-bottom: .4em; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; position: relative; z-index: 1; }
.why-lead { font-size: 17px; color: #cfdfd1; max-width: 40em; margin-bottom: 28px; }
.why-stats { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-stats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.why-stats strong { display: block; color: #fff; font-size: clamp(24px, 4.4vw, 36px); line-height: 1.15; letter-spacing: .01em; }
.why-stats small { font-size: .45em; margin-left: 4px; color: #e9c9a6; font-weight: 700; }
.why-stats span { display: block; margin-top: 6px; font-size: 13.5px; color: #bcd0bf; }
.why-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 28px; }
.why-services li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.why-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(233, 201, 166, .14); color: #e9c9a6; }
.why-ico svg { width: 24px; height: 24px; }
.why-services h3 { color: #fff; font-size: 17px; margin: 0 0 2px; }
.why-services p { margin: 0; font-size: 15px; color: #bcd0bf; line-height: 1.6; }
.why-cert { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.why-cert figure { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); padding: 22px; color: var(--text); transform: rotate(-1.2deg); }
.why-cert figure a { display: block; background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.why-cert figure img { width: 100%; max-width: 360px; height: auto; display: inline-block; }
.why-cert figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.why-cert figcaption strong { color: var(--ink); font-size: 18px; }
.why-cert figcaption span:not(.tag) { font-size: 14.5px; color: var(--muted); }
.why-cert figcaption .tag { align-self: flex-start; }
.why-cert .btn { align-self: flex-start; }
@media (min-width: 640px) { .why-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .why { padding: 96px 0; }
    .why-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: center; }
    .why-stats { gap: 16px; }
    .why-stats li { padding: 22px 12px; }
}

/* 客戶回饋（首頁，2026-10-16 重新設計：手機框卡片橫向滑動） */
.voices { padding: 64px 0; background: var(--sand); overflow: hidden; }
.voices-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.voices-intro p { color: var(--muted); max-width: 30em; }
.voices-facts { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; gap: 28px; }
.voices-facts strong { display: block; font-size: 30px; color: var(--green); line-height: 1.1; }
.voices-facts span { font-size: 14px; color: var(--muted); }
.voices-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.voices-rail { position: relative; min-width: 0; }
.voices-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 16px 20px 52px; margin: -16px -20px -30px; /* 留空間給卡片陰影，避免被捲動容器裁切 */ scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.voices-track::-webkit-scrollbar { display: none; }
.voices-track:focus-visible { outline: 3px solid var(--wood); outline-offset: -3px; }
.phone { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; position: relative; display: block; margin: 0; aspect-ratio: 9 / 16; border-radius: 28px; background: #1d2420; padding: 10px; box-shadow: 0 14px 34px rgba(30, 38, 33, .22); transition: transform .2s; }
.phone-bar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); z-index: 1; }
.phone picture, .phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px; background: #fff; }
/* 按鈕要疊在滑動區之上：滑動區為了不裁切陰影往下延伸 30px，且 mask-image 會形成新的圖層，原本蓋住按鈕上半部導致點不到 */
.voices-nav { display: none; gap: 12px; justify-content: flex-end; position: relative; z-index: 2; margin-top: 4px; }
.voices-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--green-900); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding: 0; transition: background .15s, color .15s, opacity .15s; }
.voices-btn:hover:not(:disabled) { background: var(--green); color: #fff; border-color: var(--green); }
.voices-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
@media (min-width: 640px) { .phone { flex-basis: 220px; } }
@media (min-width: 960px) {
    .voices { padding: 90px 0; }
    .voices-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; }
    .voices-track { margin: -16px 0 -30px; padding: 16px 4px 52px; scroll-padding: 0 4px;
        /* 右側淡出，提示還可以往右滑 */
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .voices-nav { display: flex; }
}

/* 雙欄圖文 */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.split-media img { width: 100%; display: block; }
.split.top { align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse .split-media { order: 2; } }


/* ---------- 內頁版頭 ---------- */
.page-hero { background: var(--green-900); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-hero.has-img { background-image: linear-gradient(90deg, rgba(20, 40, 27, .9), rgba(20, 40, 27, .6)), var(--hero-img); background-size: cover; background-position: center; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .lead { margin: 10px 0 0; color: #dce8dd; max-width: 46em; font-size: 17px; }
@media (min-width: 960px) { .page-hero { padding: 70px 0 62px; } }

/* 麵包屑 */
.crumb ol { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.crumb li + li::before { content: "›"; margin: 0 6px; color: var(--sand-600); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--green); }

/* 內頁主體＋側欄 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 60px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.sidebar-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.sidebar-box h2 { font-size: 18px; margin-bottom: 10px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--rule); text-decoration: none; color: var(--text); }
.sidebar-box li a:hover, .sidebar-box li a[aria-current] { color: var(--green); font-weight: 700; }
.sidebar-cta { background: var(--green-900); color: #e5eee6; }
.sidebar-cta h2 { color: #fff; }
.sidebar-cta .btn { width: 100%; margin-top: 8px; }

/* 篩選列 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.filters a { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--text); font-size: 15px; }
.filters a:hover { border-color: var(--green); color: var(--green); }
.filters a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 文章內容 ---------- */
.prose { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto !important; border-radius: var(--radius-sm); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose h2 { font-size: 24px; margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--green); }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose table { margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 8px 10px; }
.prose > :first-child { margin-top: 0; }
.prose center { text-align: left; }
/* 從 Facebook／Word 貼上的內容常帶固定寬高（例：width:500px; height:500px 的空 div），手機上會撐破版面 */
.prose [style*="width"] { width: auto !important; max-width: 100% !important; }
.prose div[style*="height"], .prose span[style*="height"] { height: auto !important; }
.prose [style*="margin-left: -"], .prose [style*="margin-right: -"] { margin-left: 0 !important; margin-right: 0 !important; }
@media (min-width: 960px) { .prose { padding: 40px 48px; } }
/* 文章開頭「重點摘要」（照護知識，先給答案，利於 AI 搜尋引用） */
.prose .art-summary { background: var(--green-50); border: 1px solid var(--green-100); border-left: 5px solid var(--green); border-radius: var(--radius-sm); padding: 16px 20px 6px; margin: 0 0 24px; }
.prose .art-summary > p:first-child { margin-bottom: 6px; color: var(--green-900); font-size: 17px; }
.prose .art-summary ul { margin: 0 0 10px; padding-left: 1.2em; }
.prose .art-summary li { margin-bottom: 4px; }
.prose ol.steps { padding-left: 0; }
.prose .steps li { box-shadow: none; border: 1px solid var(--rule); }
.prose small { color: var(--muted); }
/* 安裝案例「過往紀錄」提示 */
.case-note { background: var(--wood-50); border: 1px solid #efd9c4; border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; font-size: 15px; color: var(--text); }
.case-note strong { color: var(--wood); }
.case-note p { margin: 4px 0 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* 相簿 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery img, .gallery picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* 燈箱 */
.lightbox { position: fixed; inset: 0; background: rgba(10, 15, 12, .92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 50px 10px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; }
.lb-next { right: 10px; top: 50%; }

/* ---------- 產品 ---------- */
.product-top { display: grid; gap: 28px; margin-bottom: 36px; }
.product-cover { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product-cover img { width: 100%; display: block; }
.product-info h1 { font-size: clamp(26px, 4vw, 36px); }
.spec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 18px; font-size: 16px; }
.spec p { margin: 0 0 .3em; }
.price-box { background: var(--wood-50); border: 1px solid #efd9c4; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.price-box .price { font-size: 30px; }
.price-box small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .product-top { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.product-blocks { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.product-blocks img { width: 100%; max-width: 900px; display: block; margin: 0 auto; }
.product-blocks .pb-text { text-align: left; max-width: 900px; margin: 16px auto; }
@media (min-width: 960px) { .product-blocks { padding: 32px; } }

/* 產品內頁改版（2026-10-16）：重點標籤、區塊導覽、特色卡片、規格表、常見問題 */
.pd-sku { margin: -6px 0 10px; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.pd-badges { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-badges li { font-size: 14px; font-weight: 700; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); border-radius: 999px; padding: 4px 12px; }
.price-box small a { color: var(--wood); font-weight: 700; }
.pd-promise { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 15px; color: var(--text); }
.pd-promise li { padding-left: 26px; position: relative; }
.pd-promise li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
/* 區塊導覽：捲動時固定在頁首下方（頁首高 68px）。父層不可有 overflow，否則 sticky 失效 */
.pd-nav { position: sticky; top: 68px; z-index: 40; background: rgba(250, 247, 241, .97); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 24px 0 8px; }
.pd-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-nav .wrap::-webkit-scrollbar { display: none; }
.pd-nav a { flex: 0 0 auto; padding: 14px 14px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; }
.pd-nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.pd-section { padding-top: 40px; scroll-margin-top: 130px; }
.pd-section > h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 18px; }
.pd-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pd-features li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.pd-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: 10px; }
.pd-ico svg { width: 26px; height: 26px; }
.pd-features h3 { font-size: 18px; margin: 0 0 6px; }
.pd-features p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pd-spec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pd-spec table { font-size: 16px; }
.pd-spec th { width: 34%; text-align: left; font-weight: 700; color: var(--green-900); background: var(--green-50); padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pd-spec td { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.pd-spec tr:last-child th, .pd-spec tr:last-child td { border-bottom: 0; }
.pd-faq .faq-a table { margin: 10px 0; font-size: 15px; }
.pd-faq .faq-a th, .pd-faq .faq-a td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.pd-faq .faq-a th { background: var(--green-50); }
.pd-more { color: var(--muted); margin-top: 14px; }
@media (min-width: 640px) { .pd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pd-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pd-spec { max-width: 860px; } }
@media (max-width: 1199px) { .pd-nav { top: 68px; } }

/* 價格表 */
.price-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-table table { font-size: 16px; }
.price-table th { background: var(--green-900); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; }
.price-table td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td.num { white-space: nowrap; }
@media (max-width: 639px) {
    .price-table thead { display: none; }
    .price-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
    .price-table td { display: block; padding: 2px 0; border: 0; }
    .price-table td[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: 14px; }
}

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group > h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--green-100); }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); position: relative; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--green); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text); }
.faq-item .faq-a img { max-width: 100%; height: auto; }

/* ---------- 體驗館 ---------- */
.visit-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.visit-card dl { margin: 0; display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px 12px; }
.visit-card dt { color: var(--muted); }
.visit-card dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 18px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; color: var(--ink); }

/* 服務範圍 */
.region { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.region h3 { font-size: 18px; color: var(--green); }
.region ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region li { background: var(--green-50); border-radius: 999px; padding: 3px 12px; font-size: 15px; }

/* 合作招商（partner.php 與首頁／關於頁入口，2026-10-16） */
.partner-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 8px 0 36px; }
.partner-intro p { color: var(--text); }
.partner-cta-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px; }
.partner-cta-card .btn { width: 100%; }
.partner-cta-title { font-weight: 800; font-size: 19px; color: var(--ink); margin: 0 0 4px; }
.partner-cta-card small { color: var(--muted); text-align: center; }
.partner-offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.partner-offers li { background: var(--cream); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--green); }
.partner-offers strong { display: block; font-size: 30px; color: var(--green); line-height: 1.1; }
.partner-offer-label { display: block; font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
.partner-offers p { margin: 0; color: var(--muted); font-size: 15px; }
.partner-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.partner-cats li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.partner-cats h3 { font-size: 18px; margin: 0 0 4px; color: var(--green-900); }
.partner-cats p { margin: 0; color: var(--muted); font-size: 15px; }
.partner-checklist { list-style: none; padding: 0; margin: 0; }
.partner-checklist li { padding: 8px 0 8px 30px; border-bottom: 1px dashed var(--rule); position: relative; }
.partner-checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
/* 首頁細橫幅 */
.partner-band { background: var(--wood-50); border-top: 1px solid #efd9c4; border-bottom: 1px solid #efd9c4; }
.partner-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; }
.partner-band strong { color: var(--ink); font-size: 18px; }
.partner-band p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.partner-band .btn { border-color: var(--wood); color: var(--wood); }
.partner-band .btn:hover { background: var(--wood); color: #fff; }
/* 關於頁區塊 */
.partner-about { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.partner-about h2 { font-size: 22px; margin: 0 0 4px; }
.partner-about p { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .partner-offers, .partner-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .partner-intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding-bottom: 56px; }
    .partner-offers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .partner-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 分頁 ---------- */
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 36px 0 0; }
.pager a, .pager span { display: inline-block; min-width: 42px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); text-align: center; text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager span[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.pager .gap { padding: 8px 4px; }

/* ---------- CTA 色帶 ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #e5eee6; padding: 48px 0; }
.cta-band h2 { color: #fff; }
.cta-in { display: grid; gap: 22px; align-items: center; }
.cta-in p { margin: 0; max-width: 44em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .cta-in { grid-template-columns: 1fr auto; gap: 40px; } .cta-band { padding: 64px 0; } }

/* ---------- 頁尾 ---------- */
.site-footer { background: #17271c; color: #b9c7bc; font-size: 15px; padding: 48px 0 0; }
.site-footer a { color: #e3ece4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-line, .site-footer .btn-line:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; color: #fff; }
.footer-brand .brand-mark { color: var(--green-600); width: 36px; height: 36px; flex-basis: 36px; }
.footer-h { color: #fff; font-size: 16px; margin-bottom: 10px; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }

/* ---------- 手機底部聯絡列 ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--green-900); }
.mobile-bar .mb-line { background: var(--line); color: #fff; }
.mobile-bar .mb-visit { background: var(--green); color: #fff; }
.ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ico-line { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 4 3.6 7.3 8.4 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s5.9-3.5 8-6C21.4 14.3 22 12.7 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
@media (min-width: 960px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* 列印 */
@media print { .site-header, .topbar, .mobile-bar, .cta-band, .site-footer, .sidebar { display: none !important; } body { background: #fff; } }
