/* 文字對比加深 · 2026-11-09（討論串「加深官網文字讓字更清楚」）
   只調文字顏色與粗細，版面不動。顏色用 html:root 蓋過各頁內嵌的 :root。 */
html:root{
  --brown:#4d4842;      /* 原 #6F6A63 */
  --brown-l:#55504a;    /* 原 #8A8A8A */
  --gray:#55504a;       /* 原 #888 */
  --gray-l:#625d56;     /* 原 #aaa */
  --terra-l:#6a5c4e;    /* 原 #9C8B7A */
  --ink-soft:#55504a;
  --ref-muted:#4d4842;
  --ref-soft:#55504a;
}
/* 深色底上的淡咖啡字：維持亮一點才看得到 */
.article-cta-eyebrow{color:#d6c7b3 !important;}
.f-col-head{color:#c2b09a !important;}
.f-copy,.f-credit{color:rgba(255,255,255,.62) !important;}
/* 文章「重點摘要」左欄標題（淺灰底上） */
.key-answer dt{color:#5c4f42 !important;}
/* 行程書上方選單：目前這期的按鈕是深底，字要用淺色 */
html body .topnav-links a.active{color:var(--paper,#f5f1e8) !important;}
/* 颱風全室調查報告頁的強調色（只有這頁用 --a） */
html:root{--a:#8a6a50;}
/* 老宅延壽補助試算的小字 */
.njc-f .hint,.njc-in .u{color:#6a5c4e !important;}
/* 傑凱工程頁淺底上的金色小字 */
.cert-tag,.cert-check,.hero-left .label{color:#8a6f28 !important;}
.hstat .n{color:#9a7f2e !important;}

/* 首頁小字 */
.nav-meta{color:#55504a !important;}
.hero-scroll{color:rgba(23,23,23,.68) !important;}
.nb-date,.nb-go{color:rgba(255,255,255,.82) !important;}
.cpms-band .ai-band-tag,.cpms-band .ai-band-in:not(:hover) .ai-band-go{color:#6e5a43 !important;}

html body.hansun-home.site-refined .nav-links li a{color:#3a3632 !important;}
html body.hansun-home.site-refined .hero-desc{color:rgba(23,23,23,.84) !important;}
html body.hansun-home.site-refined .hero-project-meta{color:rgba(23,23,23,.78) !important;}

/* 內文從 300（細）改 400（一般），細字在 Mac / 手機上最容易看不清 */
body{font-weight:400 !important;}

/* ── 夜間模式 ──────────────────────────────────────────────
   全站 120 多頁各自寫顏色，所以用「整頁反轉、照片影片再轉回來」的做法，
   每一頁都一致；照片、影片、地圖、深色區塊、LINE／AI 按鈕維持原色。
   開關在 theme.js（html 加 data-theme="dark"）。 */
html[data-theme="dark"]{filter:invert(1) hue-rotate(180deg);background:#fff;}
html[data-theme="dark"] :is(img,video,picture,iframe,canvas,embed,object,.th-media):not(#bx-x){filter:invert(1) hue-rotate(180deg) brightness(.92) !important;}
html[data-theme="dark"] :is(.th-media,picture) :is(img,video,picture,iframe,canvas,.th-media):not(#bx-x){filter:none !important;}

#bx-theme-btn{position:fixed;left:16px;bottom:calc(100px + env(safe-area-inset-bottom));z-index:9000;
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(23,23,23,.18);background:rgba(255,253,248,.94);
  color:#171717;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
  box-shadow:0 6px 18px rgba(45,37,29,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
#bx-theme-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
#bx-theme-btn:focus-visible{outline:2px solid #6a5a4a;outline-offset:2px;}
@media print{#bx-theme-btn{display:none}}
