/* 淺色主題：整頁固定背景 + 深藍文字 + 黃色重點 */
:root {
  --navy: #0B2A5B;
  --navy-muted: #3E5478;
  --yellow: #FFC20E;
  --yellow-mark: #FFD43B;
  --gold-text: #9A6A00;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(11, 42, 91, 0.16);
}
body.lt { background-color: #F4F6FA !important; color: var(--navy) !important; }
body.lt::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)), url("hero-bg.webp") center / cover no-repeat;
}

/* 區塊：透明，讓背景照片透出來 */
body.lt main > section { background-color: transparent !important; border-color: var(--line) !important; }

/* 卡片：半透明白卡 */
body.lt main .bg-black, body.lt main .bg-\[\#1A1A1A\], body.lt main .bg-\[\#111\], body.lt main .bg-\[\#222\],
body.lt main .bg-gray-900, body.lt main .bg-\[\#181818\], body.lt main .bg-\[\#0A0A0A\], body.lt main .bg-\[\#141414\],
body.lt main .bg-\[\#151515\], body.lt main .bg-\[\#0F0F0F\] {
  background-color: var(--card) !important;
}
body.lt main > section.bg-\[\#111\], body.lt main > section.bg-\[\#0A0A0A\], body.lt main > section.bg-\[\#141414\],
body.lt main > section.bg-\[\#151515\], body.lt main > section.bg-\[\#0F0F0F\], body.lt main > section.bg-\[\#1A1A1A\] {
  background-color: transparent !important;
}
/* 圖片上的說明條維持深色，字才看得清楚 */
body.lt main .bg-opacity-80 { background-color: rgba(11, 42, 91, 0.85) !important; }
body.lt main .bg-opacity-80 .text-gold { color: var(--yellow) !important; }
body.lt main .bg-opacity-80 .text-gray-300 { color: #E6ECF5 !important; }

/* 表單 */
body.lt main .bg-\[\#1F1F1F\] { background-color: #fff !important; color: var(--navy) !important; border-color: var(--line) !important; }

/* 文字 */
body.lt main .text-white, body.lt main .text-gray-200, body.lt main .text-gray-300 { color: var(--navy) !important; }
body.lt main .text-gray-400, body.lt main .text-gray-500, body.lt main .text-gray-600 { color: var(--navy-muted) !important; }
body.lt main .text-gold, body.lt main .text-\[\#D4AF37\] { color: var(--gold-text) !important; }
body.lt main .text-red-400 { color: #C62828 !important; }
body.lt main h2.text-gold, body.lt main h2 .text-gold {
  color: var(--navy) !important;
  display: inline-block;
  background: linear-gradient(transparent 60%, var(--yellow-mark) 60%); padding: 0 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* 按鈕上的字維持原色 */
body.lt main .bg-red-600, body.lt main .bg-red-600 *, body.lt main .bg-\[\#0B2A5B\], body.lt main .bg-\[\#00B900\] { color: #fff !important; }
body.lt main .gold-gradient, body.lt main .bg-\[\#D4AF37\], body.lt main .text-black { color: #111 !important; }

/* 邊框、分隔線、滑過效果 */
body.lt main .border-gray-800, body.lt main .border-gray-700, body.lt main .divide-gray-700 > * + * { border-color: var(--line) !important; }
body.lt main .hover\:bg-\[\#252525\]:hover { background-color: rgba(11, 42, 91, 0.06) !important; }

/* 頁首、頁尾：深藍底 + 黃色公司名 */
body.lt nav { background-color: var(--navy) !important; border-color: transparent !important; }
body.lt nav .text-gold, body.lt footer .text-gold { color: var(--yellow) !important; }
body.lt nav .text-gray-400 { color: #C9D4E6 !important; }
body.lt footer { background-color: var(--navy) !important; color: #C9D4E6 !important; border-color: transparent !important; }
body.lt footer .text-gray-600 { color: #9FB0CC !important; }

/* 試算器：建物類型選項 */
body.lt main .peer:checked + div { background-color: var(--navy) !important; color: var(--yellow) !important; border-color: var(--navy) !important; }
body.lt main .peer + div { background-color: #fff; }

/* 置中的區塊標題：螢光筆寬度只包住文字，同時保持置中 */
body.lt main h2.text-gold.text-center { display: table; margin-left: auto; margin-right: auto; }

/* ============================================================
   全站共用元件（導覽、頁首、頁尾、卡片）
   ============================================================ */
body.lt { font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif; padding-bottom: 64px; }
@media (min-width: 768px) { body.lt { padding-bottom: 0; } }

/* 導覽列 */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(11, 42, 91, 0.25); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; position: relative; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.brand-name { color: var(--yellow); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.12em; line-height: 1.2; }
.brand-sub { color: #C9D4E6; font-size: 0.72rem; letter-spacing: 0.05em; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links > a, .nav-drop > button { color: #fff; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-links > a:hover, .nav-drop > button:hover, .nav-links > a.is-active, .nav-drop.is-active > button { color: var(--yellow); }
.nav-links > a.is-active, .nav-drop.is-active > button { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-drop { position: relative; }
.drop-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(11, 42, 91, 0.2); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.15s; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 12px; color: var(--navy); font-weight: 700; border-radius: 6px; text-decoration: none; }
.drop-menu a:hover, .drop-menu a.is-active { background: #FFF6D6; }
.nav-cta { display: none; align-items: center; gap: 12px; }
.nav-phone { color: var(--yellow); font-weight: 900; text-decoration: none; white-space: nowrap; }
.nav-line { background: #06C755; color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.nav-mobile summary { list-style: none; cursor: pointer; color: #fff; font-size: 1.5rem; line-height: 1; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: rgba(255, 255, 255, 0.15); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 30px rgba(11, 42, 91, 0.25); padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-menu a.sub { padding-left: 20px; font-weight: 500; color: var(--navy-muted); }
.mobile-menu a.is-active { color: var(--gold-text); }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-mobile { display: none; }
}

/* 內頁頁首：英文小標 + 標題 + 分隔線 + 波浪 */
.page-hero { position: relative; padding: 56px 16px 100px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.82)); overflow: hidden; }
.page-hero .inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.25; margin: 4px 0 0; }
.page-hero .lead { color: var(--navy-muted); font-size: 1.05rem; max-width: 660px; line-height: 1.85; font-weight: 500; }
.page-hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.eyebrow { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--navy); }
.eyebrow-sm { display: block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.bar { display: block; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--yellow) 0 55%, var(--navy) 55% 100%); margin: 14px 0 20px; }
.bar.center { margin-left: auto; margin-right: auto; }

/* 內容區 */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.block { padding: 56px 0; }
.block-soft { background: rgba(255, 255, 255, 0.92); }
.sec-title { color: var(--navy); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.3; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(11, 42, 91, 0.06); }
.txt { color: var(--navy); line-height: 1.85; }
.muted { color: var(--navy-muted); }
.hl { background: linear-gradient(transparent 60%, var(--yellow-mark) 60%); padding: 0 3px; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.pill.on { background: var(--navy); color: var(--yellow); }
.photo { position: relative; border-radius: 16px; overflow: hidden; background: #E9EEF6; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tag { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: var(--navy); font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-call { background: #DC2626; color: #fff; }
.btn-call:hover { background: #B91C1C; }
.btn-line { background: #06C755; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.cta-band { background: var(--navy); border-radius: 20px; padding: 40px 24px; text-align: center; }
.cta-band h2 { color: #fff; font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { color: #C9D4E6; }
.cta-band .y { color: var(--yellow); }
.step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.alert { background: #FFF4F4; border-left: 5px solid #DC2626; border-radius: 0 12px 12px 0; padding: 20px; }
.note-box { background: #FFFBEA; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 20px; }

/* 表格（價目表、熱水器頁） */
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 20px; }
.ptable th { background: var(--navy); color: #fff; text-align: left; padding: 14px 16px; font-weight: 800; }
.ptable td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--navy); vertical-align: top; }
.ptable tr:hover td { background: #FFFBEA; }
.ptable .price { color: var(--gold-text); font-weight: 800; white-space: nowrap; }
.ptable .note { color: var(--navy-muted); font-size: 0.92rem; }
.ptable a, .txt a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }
@media (max-width: 640px) { .ptable th, .ptable td { padding: 10px; font-size: 0.9rem; } .ptable .note { display: block; } }

/* 頁尾 */
.site-footer { background: var(--navy); color: #C9D4E6; padding: 48px 16px 24px; }
.site-footer .cols { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--yellow); font-weight: 900; margin-bottom: 12px; font-size: 1.05rem; }
.site-footer .fname { color: var(--yellow); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.site-footer p { margin-bottom: 6px; line-height: 1.7; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer li { margin-bottom: 8px; }
.site-footer .copy { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8rem; color: #9FB0CC; text-align: center; }

/* 手機底部常駐列 */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); height: 64px; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; }
.mobile-bar .mb-call { background: #DC2626; color: #fff; }
.mobile-bar .mb-quote { background: var(--yellow); color: var(--navy); }
.mobile-bar .mb-line { background: #06C755; color: #fff; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* 施工案例 */
.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-card .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.case-cat { display: inline-block; font-size: 0.75rem; font-weight: 800; color: var(--navy); background: #FFF1B8; padding: 3px 10px; border-radius: 999px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; }
.ba .photo { aspect-ratio: 4 / 3; }
.case-card .photo img, .ba .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; bottom: 8px; left: 8px; background: rgba(11, 42, 91, 0.85); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* 內頁白色區塊：優先於首頁的透明區塊規則 */
body.lt main > section.block-soft { background-color: rgba(255, 255, 255, 0.92) !important; }

/* 急修按鈕光圈 */
.emergency-pulse { animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); } 70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }

/* 選單：文字不折行；1024–1279 較窄螢幕精簡顯示 */
.brand-name, .nav-links > a, .nav-drop > button, .nav-line { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand-sub { display: none; }
  .nav-links > a, .nav-drop > button { padding: 8px 8px; font-size: 0.92rem; }
  .brand-name { font-size: 1.2rem; letter-spacing: 0.08em; }
}

/* 導覽列右側：電話與 LINE 上下排列 */
@media (min-width: 1024px) {
  .nav-cta { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-phone { text-align: center; font-size: 0.95rem; line-height: 1.3; }
  .nav-line { text-align: center; padding: 4px 14px; font-size: 0.85rem; }
}

/* 施工案例：縮圖列 */
.case-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 6px 0; }
.case-thumb { aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; background: #E9EEF6; cursor: pointer; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb.on { border-color: var(--yellow); }
.case-area { font-size: 0.8rem; font-weight: 700; color: var(--navy-muted); margin-left: 4px; }
