/* ============================================================
   備而不慌 · 家庭防災手帖
   版型、互動與全部樣式為本站自製。
   ============================================================ */

:root {
  --bh-paper: #f6f1e6;
  --bh-paper-deep: #eee7d4;
  --bh-card: #fffdf7;
  --bh-ink: #2b3431;
  --bh-ink-soft: #5f6a63;
  --bh-pine: #2e5345;
  --bh-pine-deep: #213d31;
  --bh-pine-mist: #e3e9e0;
  --bh-persimmon: #c2571f;
  --bh-persimmon-soft: #f4e0d0;
  --bh-sand: #e6dabd;
  --bh-line: #d9cfb6;
  --bh-risk: #a23c28;
  --bh-risk-bg: #f5e2da;
  --bh-note-bg: #ede5cd;
  --bh-shadow: 0 1px 2px rgba(43, 52, 49, .06), 0 10px 28px -18px rgba(43, 52, 49, .35);
  --bh-serif: "Noto Serif TC", "PMingLiU", serif;
  --bh-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --bh-kai: "LXGW WenKai TC", "DFKai-SB", "Noto Serif TC", serif;
  --bh-side-w: 19.5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body.bh-body {
  margin: 0;
  background:
    radial-gradient(rgba(46, 83, 69, .045) 1px, transparent 1.6px) 0 0 / 26px 26px,
    var(--bh-paper);
  color: var(--bh-ink);
  font: 400 17px/1.85 var(--bh-sans);
  letter-spacing: .015em;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* 紙張顆粒：印刷手帖質感（極淡，固定貼層） */
body.bh-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--bh-sand); color: var(--bh-pine-deep); }

a { color: var(--bh-pine); text-decoration-color: rgba(46, 83, 69, .4); text-underline-offset: 3px; }
a:hover { color: var(--bh-persimmon); }

:focus-visible {
  outline: 2px solid var(--bh-persimmon);
  outline-offset: 2px;
  border-radius: 2px;
}

.bh-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bh-pine-deep);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 99;
}
.bh-skip:focus { left: .5rem; top: .5rem; }

/* 閱讀進度條（文章頁，由 JS 注入） */
.bh-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--bh-persimmon), #e89b5c);
  box-shadow: 0 0 8px rgba(194, 87, 31, .4);
  z-index: 70;
  transition: width .12s linear;
  pointer-events: none;
}

/* ---------- 行動版頂欄 ---------- */

.bh-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 230, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bh-line);
  padding-top: env(safe-area-inset-top);
}
.bh-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1rem;
}
.bh-topbar .bh-wordmark { font-size: 1.25rem; }
.bh-menubtn {
  appearance: none;
  border: 1.5px solid var(--bh-pine);
  background: transparent;
  color: var(--bh-pine);
  font: 500 .95rem/1 var(--bh-sans);
  border-radius: 8px;
  padding: 0 .9rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.bh-menubtn:active { background: var(--bh-pine-mist); }

/* ---------- 框架：側欄 + 主欄 ---------- */

.bh-frame { min-height: 100vh; }

.bh-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--bh-side-w);
  background:
    linear-gradient(180deg, #25433716 0%, transparent 30%),
    linear-gradient(180deg, #244336 0%, var(--bh-pine-deep) 52%, #182f25 100%);
  color: #e9e4d2;
  overflow-y: auto;
  padding: 2.3rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(0, 0, 0, .22);
  box-shadow: inset -1px 0 0 rgba(243, 238, 221, .05);
}
.bh-side > div:first-child {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(243, 238, 221, .1);
}

.bh-wordmark {
  font-family: var(--bh-kai);
  font-size: 1.75rem;
  letter-spacing: .12em;
  color: #f3eedd;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
}
.bh-wordmark:hover { color: #f0c9a8; }
.bh-wordmark .bh-wordmark-seal {
  display: inline-block;
  width: .62em; height: .62em;
  margin-left: .32em;
  background: var(--bh-persimmon);
  border-radius: 2px;
  vertical-align: .12em;
  box-shadow: 0 0 0 3px rgba(194, 87, 31, .22);
}
.bh-brand-sub {
  margin: .45rem 0 0;
  font-size: .8rem;
  letter-spacing: .34em;
  color: #aab8a8;
}

.bh-nav { flex: 1; }
.bh-nav-label {
  font-family: var(--bh-kai);
  font-size: .82rem;
  letter-spacing: .26em;
  color: #dcae87;
  margin: 1.6rem 0 .55rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.bh-nav-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(220, 174, 135, .35), transparent);
}
.bh-nav-label:first-child { margin-top: 0; }
.bh-nav ul { list-style: none; margin: 0; padding: 0; }
.bh-nav li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #e3ddca;
  text-decoration: none;
  font-size: .97rem;
  padding: .5rem .5rem;
  min-height: 44px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.bh-nav li a:hover { background: rgba(233, 228, 210, .08); color: #fff; }
.bh-nav li a:hover .bh-ic { stroke: #e8c39f; }
.bh-nav li a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(194, 87, 31, .22), rgba(194, 87, 31, .08));
  color: #fbdcc1;
  font-weight: 500;
}
.bh-nav li a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 24px;
  border-radius: 0 3px 3px 0;
  background: var(--bh-persimmon);
}
.bh-nav li a[aria-current="page"] .bh-ic { stroke: #f0a86e; }
.bh-nav .bh-ic { flex: none; width: 19px; height: 19px; stroke: #bb9876; transition: stroke .15s ease; }

.bh-lang {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .83rem;
  color: #b3c0b1;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(243, 238, 221, .14);
  border-radius: 10px;
  padding: .7rem .85rem;
}
.bh-lang::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab8a8' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/%3E%3C/svg%3E");
}
.bh-lang strong { color: #f3eedd; font-weight: 600; }
.bh-lang span { opacity: .6; }

.bh-side-note {
  font-size: .77rem;
  line-height: 1.7;
  color: #8a9a8c;
  margin: 0;
  padding-top: .2rem;
}

/* ---------- 主欄 ---------- */

.bh-main {
  margin-left: var(--bh-side-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bh-content {
  flex: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3.2rem clamp(1.1rem, 4vw, 3rem) 4rem;
}

.bh-content--wide { max-width: 70rem; }

/* ---------- 文章 ---------- */

.bh-crumbs {
  font-size: .85rem;
  color: var(--bh-ink-soft);
  margin: 0 0 1.4rem;
}
.bh-crumbs a { color: var(--bh-ink-soft); }
.bh-crumbs a:hover { color: var(--bh-persimmon); }

.bh-kicker {
  font-family: var(--bh-kai);
  color: var(--bh-persimmon);
  letter-spacing: .3em;
  font-size: .95rem;
  margin: 0 0 .6rem;
}

h1.bh-title {
  font: 900 clamp(1.75rem, 4.2vw, 2.55rem)/1.38 var(--bh-serif);
  letter-spacing: .02em;
  color: var(--bh-pine-deep);
  margin: 0 0 1rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bh-lede {
  font-size: 1.08rem;
  color: var(--bh-ink-soft);
  margin: 0 0 1.3rem;
  max-width: 44em;
}

.bh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  font-size: .83rem;
  color: var(--bh-ink-soft);
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  padding: .85rem 1.2rem;
  margin-bottom: 2.4rem;
  box-shadow: var(--bh-shadow);
}
.bh-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.bh-meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bh-persimmon);
  opacity: .6;
}
.bh-meta b { font-weight: 600; color: var(--bh-pine); }

article.bh-article { counter-reset: bh-sec; }

.bh-article h2 {
  font: 700 1.5rem/1.45 var(--bh-serif);
  color: var(--bh-pine-deep);
  margin: 3rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--bh-sand);
}
.bh-article section[id] > h2::before {
  counter-increment: bh-sec;
  content: counter(bh-sec, cjk-ideographic) "、";
  color: var(--bh-persimmon);
}
.bh-article h3 {
  font: 700 1.16rem/1.5 var(--bh-serif);
  color: var(--bh-pine);
  margin: 2rem 0 .6rem;
}
.bh-article p { margin: .9rem 0; }
.bh-article ul, .bh-article ol { padding-left: 1.5em; }
.bh-article li { margin: .4rem 0; }
.bh-article strong { color: var(--bh-pine-deep); }

/* 要點先行 */
.bh-keypoints {
  background: linear-gradient(180deg, #e8eee4, var(--bh-pine-mist));
  border: 1px solid #c4d1c0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.45rem;
  margin: 0 0 1.9rem;
  box-shadow: var(--bh-shadow);
}
.bh-keypoints > h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font: 700 1.02rem/1.4 var(--bh-kai);
  letter-spacing: .18em;
  color: var(--bh-pine-deep);
  margin: 0 0 .7rem;
  border: 0;
  padding: 0;
}
.bh-keypoints > h2::before {
  content: "";
  width: .82em; height: .82em;
  flex: none;
  background: var(--bh-persimmon);
  border-radius: 3px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bh-persimmon) 22%, transparent);
}
.bh-keypoints ul { margin: 0; padding: 0; list-style: none; }
.bh-keypoints li {
  position: relative;
  padding-left: 1.7em;
  margin: .5rem 0;
}
.bh-keypoints li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: .85em; height: .85em;
  border: 2px solid var(--bh-pine);
  border-radius: 3px;
  background:
    linear-gradient(transparent, transparent) padding-box,
    var(--bh-card);
}
.bh-keypoints li::after {
  content: "";
  position: absolute;
  left: .18em; top: .46em;
  width: .5em; height: .28em;
  border-left: 2.5px solid var(--bh-persimmon);
  border-bottom: 2.5px solid var(--bh-persimmon);
  transform: rotate(-48deg);
}

/* 目錄 */
.bh-toc {
  border: 1px dashed var(--bh-line);
  background: var(--bh-card);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1rem;
}
.bh-toc > h2 {
  font: 700 .95rem/1.4 var(--bh-kai);
  letter-spacing: .3em;
  color: var(--bh-ink-soft);
  margin: 0 0 .5rem;
  border: 0;
  padding: 0;
}
.bh-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 2.5rem;
  font-size: .95rem;
}
.bh-toc li { margin: .3rem 0; break-inside: avoid; }
.bh-toc a { text-decoration: none; }
.bh-toc a:hover { text-decoration: underline; }

/* 標註框：風險 / 避坑 / 資料 */
.bh-callout {
  position: relative;
  border-radius: 12px;
  padding: 1.05rem 1.3rem 1.05rem 3.45rem;
  margin: 1.6rem 0;
  font-size: .97rem;
  line-height: 1.8;
  border: 1px solid;
  border-left-width: 4px;
}
.bh-callout::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.15rem;
  width: 22px; height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.bh-callout > p:first-of-type { margin-top: .15rem; }
.bh-callout > p:last-child { margin-bottom: .1rem; }
.bh-callout-tag {
  display: inline-block;
  font: 700 .76rem/1 var(--bh-kai);
  letter-spacing: .22em;
  padding: .42em .78em .36em .92em;
  border-radius: 5px;
  margin: 0 0 .45rem;
  color: #fff;
}
.bh-callout--risk { background: var(--bh-risk-bg); border-color: color-mix(in srgb, var(--bh-risk) 38%, var(--bh-line)); border-left-color: var(--bh-risk); }
.bh-callout--risk .bh-callout-tag { background: var(--bh-risk); }
.bh-callout--risk::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a23c28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20Z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17.5h.01'/%3E%3C/svg%3E"); }
.bh-callout--trap { background: var(--bh-persimmon-soft); border-color: color-mix(in srgb, var(--bh-persimmon) 38%, var(--bh-line)); border-left-color: var(--bh-persimmon); }
.bh-callout--trap .bh-callout-tag { background: var(--bh-persimmon); }
.bh-callout--trap::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2571f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6 18.4 18.4'/%3E%3C/svg%3E"); }
.bh-callout--note { background: var(--bh-note-bg); border-color: #c3b07a; border-left-color: #ad9a64; }
.bh-callout--note .bh-callout-tag { background: #8d7c4d; }
.bh-callout--note::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d7c4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E"); }

/* 表格 */
.bh-tablewrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--bh-line);
  border-radius: 13px;
  box-shadow: var(--bh-shadow);
}
table.bh-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  background: var(--bh-card);
  font-size: .94rem;
  line-height: 1.65;
}
.bh-table caption {
  caption-side: top;
  text-align: left;
  font: 700 .88rem/1.5 var(--bh-kai);
  letter-spacing: .12em;
  color: var(--bh-pine-deep);
  background: var(--bh-paper-deep);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bh-line);
}
.bh-table th, .bh-table td {
  padding: .68rem .95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--bh-line);
}
.bh-table tbody tr:last-child td { border-bottom: 0; }
.bh-table thead th {
  background: var(--bh-pine);
  color: #f3eedd;
  font-weight: 600;
  letter-spacing: .05em;
  border-bottom: 0;
}
.bh-table tbody tr:nth-child(even) { background: rgba(230, 218, 189, .22); }
.bh-table tbody tr { transition: background .15s ease; }
.bh-table tbody tr:hover { background: var(--bh-pine-mist); }

/* 勾選清單 */
ul.bh-check { list-style: none; padding: 0; margin: 1rem 0; }
ul.bh-check li {
  position: relative;
  padding: .35rem 0 .35rem 2rem;
  border-bottom: 1px dotted var(--bh-line);
}
ul.bh-check li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .85em;
  width: .9em; height: .9em;
  border: 2px solid var(--bh-pine);
  border-radius: 3px;
  background: var(--bh-card);
}

/* 文內 FAQ */
.bh-faqblock h3 {
  font-family: var(--bh-sans);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--bh-ink);
  margin: 1.6rem 0 .35rem;
  padding-left: 1.1rem;
  border-left: 4px solid var(--bh-persimmon);
}
.bh-faqblock h3 + p { margin-top: .35rem; }

/* 資料來源 */
.bh-sources {
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-top: 3rem;
  font-size: .9rem;
}
.bh-sources > h2 {
  font: 700 1rem/1.4 var(--bh-kai);
  letter-spacing: .2em;
  margin: 0 0 .6rem;
  border: 0;
  padding: 0;
  color: var(--bh-ink-soft);
}
.bh-sources ul { margin: .4rem 0; padding-left: 1.3em; }
.bh-disclaimer { color: var(--bh-ink-soft); font-size: .84rem; margin-bottom: 0; }

/* 接著讀 */
.bh-related { margin-top: 3rem; }
.bh-related > h2 {
  font: 700 1.05rem/1.4 var(--bh-kai);
  letter-spacing: .25em;
  color: var(--bh-ink-soft);
  border: 0;
  margin: 0 0 1rem;
}
.bh-cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.bh-card {
  position: relative;
  --acc: var(--bh-persimmon);
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: var(--bh-shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bh-card::before {
  content: "";
  position: absolute;
  left: 1.35rem; right: 1.35rem; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.bh-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--acc) 45%, var(--bh-line));
  box-shadow: 0 20px 42px -24px rgba(43, 52, 49, .55);
}
.bh-card:hover::before { transform: scaleX(1); }
.bh-card > .bh-ic {
  width: 48px; height: 48px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 13px;
  background: color-mix(in srgb, var(--acc) 14%, var(--bh-card));
  stroke: var(--acc);
  transition: background .18s ease, stroke .18s ease;
}
.bh-card:hover > .bh-ic { background: var(--acc); stroke: #fff8ee; }
.bh-card h3, .bh-card .bh-card-t {
  font: 800 1.1rem/1.45 var(--bh-serif);
  margin: 0;
  color: var(--bh-pine-deep);
}
.bh-card a { text-decoration: none; color: inherit; }
.bh-card a::after { content: ""; position: absolute; inset: 0; }
.bh-card p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--bh-ink-soft); }
.bh-card-meta {
  font-size: .77rem;
  color: var(--bh-ink-soft);
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px dotted var(--bh-line);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bh-card-meta::after {
  content: "→";
  margin-left: auto;
  color: var(--acc);
  font-size: .95rem;
  transition: transform .18s ease;
}
.bh-card:hover .bh-card-meta::after { transform: translateX(4px); }

/* 單篇分類：橫向 feature 卡 */
.bh-cardgrid--solo { grid-template-columns: 1fr; }
.bh-cardgrid--solo .bh-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.4rem;
  row-gap: .4rem;
  align-items: start;
  padding: 1.6rem 1.8rem;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--acc) 7%, var(--bh-card)), var(--bh-card) 60%);
}
.bh-cardgrid--solo .bh-card > .bh-ic {
  grid-row: 1 / 4;
  align-self: start;
  width: 58px; height: 58px;
  padding: 15px;
}
.bh-cardgrid--solo .bh-card h3 { font-size: 1.22rem; }
.bh-cardgrid--solo .bh-card p { font-size: .94rem; }
.bh-cardgrid--solo .bh-card-meta { border-top: 0; padding-top: .15rem; }

/* 贊助卡（全站唯一廣告位：文章底部） */
.bh-sponsor {
  position: relative;
  margin-top: 2.8rem;
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(-45deg, rgba(194, 87, 31, .045) 0 9px, transparent 9px 18px),
    var(--bh-paper-deep);
  padding: 1.2rem 1.4rem 1.3rem;
  font-size: .88rem;
  color: var(--bh-ink-soft);
}
.bh-sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bh-ink-soft);
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 100px;
  padding: .32em .75em;
  margin: 0 0 .65rem;
}
.bh-sponsor-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bh-ink-soft);
}
.bh-sponsor-name {
  font: 800 1.12rem/1.3 var(--bh-sans);
  color: var(--bh-ink);
  letter-spacing: .02em;
  margin: 0 0 .3rem;
}
.bh-sponsor p { margin: .25rem 0; line-height: 1.7; }
.bh-sponsor a {
  display: inline-flex;
  align-items: center;
  margin-top: .65rem;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--bh-card);
  border: 1.5px solid var(--bh-line);
  border-radius: 9px;
  color: var(--bh-ink);
  text-decoration: none;
  font-size: .88rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.bh-sponsor a:hover { border-color: var(--bh-persimmon); color: var(--bh-persimmon); background: var(--bh-paper); }

/* ---------- 首頁 ---------- */

.bh-hero { margin: .4rem 0 3rem; }

.bh-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.9rem, 4vw, 3.4rem);
  border-radius: 22px;
  background:
    radial-gradient(125% 150% at 88% 6%, rgba(194, 87, 31, .32), transparent 46%),
    linear-gradient(158deg, #2c4f40 0%, #213d31 56%, #1a3228 100%);
  color: #ece7d6;
  box-shadow: 0 28px 64px -32px rgba(20, 38, 30, .75);
}
.bh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
.bh-hero-bg svg { width: 100%; height: 100%; display: block; }
.bh-hero-copy, .bh-hero-art { position: relative; z-index: 1; }

.bh-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--bh-kai);
  letter-spacing: .26em;
  font-size: .9rem;
  color: #f1cba9;
  margin: 0 0 1.05rem;
}
.bh-hero-kicker .bh-hero-seal {
  width: .72em; height: .72em;
  background: var(--bh-persimmon);
  border-radius: 2px;
}
.bh-hero h1 {
  font: 900 clamp(2.15rem, 5vw, 3.4rem)/1.26 var(--bh-serif);
  color: #fbf7ea;
  letter-spacing: .01em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.bh-hero h1 em { font-style: normal; color: #f4a368; }
.bh-hero-lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.9;
  color: #ccd4c7;
  max-width: 34em;
  margin: 0;
}
.bh-hero-art { text-align: center; }
.bh-hero-art svg {
  width: 100%;
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, .3));
}

.bh-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 1.1rem 0 0;
  padding: 0;
  background: var(--bh-line);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--bh-shadow);
}
.bh-trust li {
  background: var(--bh-card);
  padding: 1.05rem 1.15rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--bh-ink-soft);
}
.bh-trust strong {
  display: block;
  font: 800 1.02rem/1.3 var(--bh-serif);
  color: var(--bh-pine-deep);
  margin-bottom: .2rem;
}

/* 首頁旗艦指南特色橫幅 */
.bh-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  text-decoration: none;
  background:
    radial-gradient(120% 150% at 93% 12%, rgba(194, 87, 31, .18), transparent 55%),
    linear-gradient(160deg, #2c4f40, #213d31 70%);
  color: #ece7d6;
  border-radius: 18px;
  padding: 1.55rem 1.85rem;
  margin: 0 0 2.8rem;
  box-shadow: 0 20px 46px -28px rgba(20, 38, 30, .72);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bh-feature:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -28px rgba(20, 38, 30, .82); }
.bh-feature-badge {
  align-self: start;
  font: 700 .74rem/1 var(--bh-kai);
  letter-spacing: .2em;
  color: #2a1c10;
  background: #f0c9a8;
  border-radius: 6px;
  padding: .55em .7em;
}
.bh-feature-body strong {
  display: block;
  font: 800 1.28rem/1.4 var(--bh-serif);
  color: #fbf7ea;
  margin-bottom: .4rem;
}
.bh-feature-body span { font-size: .95rem; line-height: 1.75; color: #ccd4c7; }
.bh-feature-cta { font-weight: 600; color: #f4a368; white-space: nowrap; }

/* 首頁贊助位（廣告，清楚標示、與正文視覺區隔） */
.bh-homead {
  margin: 2.6rem 0;
  border: 1px solid var(--bh-line);
  border-left: 4px solid var(--bh-persimmon);
  border-radius: 16px;
  background:
    repeating-linear-gradient(-45deg, rgba(194, 87, 31, .06) 0 9px, transparent 9px 18px),
    var(--bh-paper-deep);
  padding: 1.35rem 1.55rem 1.5rem;
  box-shadow: var(--bh-shadow);
}
.bh-homead-tag {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bh-ink-soft);
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 100px;
  padding: .32em .8em;
  margin-bottom: .8rem;
}
.bh-homead-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bh-ink-soft); }
.bh-homead-row { display: flex; align-items: center; gap: 1.1rem 1.6rem; flex-wrap: wrap; }
.bh-homead-row > div { flex: 1 1 19rem; }
.bh-homead-name { font: 800 1.3rem/1.2 var(--bh-sans); color: var(--bh-ink); letter-spacing: .03em; margin: 0 0 .35rem; }
.bh-homead-desc { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--bh-ink-soft); max-width: 42em; }
.bh-homead-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--bh-persimmon);
  border: 1.5px solid var(--bh-persimmon);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bh-homead-cta:hover { background: #a8480f; transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(194, 87, 31, .6); }

/* 按鈕 */
.bh-btnrow { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.bh-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 50px;
  padding: 0 1.5rem;
  border-radius: 11px;
  font: 500 1rem/1 var(--bh-sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.bh-btn:hover { transform: translateY(-2px); }
.bh-btn--solid { background: var(--bh-pine); color: #f3eedd; border-color: var(--bh-pine); }
.bh-btn--solid:hover { background: var(--bh-pine-deep); color: #fff; box-shadow: 0 14px 26px -12px rgba(33, 61, 49, .7); }
.bh-btn--ghost { color: var(--bh-pine); background: transparent; border-color: var(--bh-pine); }
.bh-btn--ghost:hover { background: var(--bh-pine-mist); color: var(--bh-pine-deep); }
.bh-btn--persim { background: var(--bh-persimmon); color: #fff; border-color: var(--bh-persimmon); }
.bh-btn--persim:hover { background: #a8480f; color: #fff; box-shadow: 0 16px 28px -12px rgba(194, 87, 31, .7); }
.bh-btn--cream { background: transparent; color: #f3eedd; border-color: rgba(243, 238, 221, .5); }
.bh-btn--cream:hover { background: rgba(243, 238, 221, .12); border-color: #f3eedd; color: #fff; }

/* 區段標題 */
.bh-sect { margin: 3.6rem 0; }
.bh-sect-head { margin-bottom: 1.5rem; }
.bh-sect-head .bh-sect-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--bh-kai);
  font-size: .82rem;
  letter-spacing: .26em;
  color: var(--bh-persimmon);
  margin-bottom: .5rem;
}
.bh-sect-head .bh-sect-tag::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: var(--bh-persimmon);
  border-radius: 2px;
}
.bh-sect-head h2 {
  font: 800 clamp(1.4rem, 2.6vw, 1.78rem)/1.35 var(--bh-serif);
  color: var(--bh-pine-deep);
  margin: 0;
}

.bh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  counter-reset: bh-step;
  padding: 0; margin: 0;
  list-style: none;
}
.bh-steps li {
  counter-increment: bh-step;
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 16px;
  padding: 1.7rem 1.35rem 1.35rem;
  position: relative;
  box-shadow: var(--bh-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bh-steps li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--bh-persimmon) 40%, var(--bh-line));
  box-shadow: 0 18px 38px -22px rgba(43, 52, 49, .5);
}
.bh-steps li::before {
  content: counter(bh-step, cjk-ideographic);
  position: absolute;
  top: -0.9rem;
  left: 1.3rem;
  width: 2rem; height: 2rem;
  display: grid;
  place-items: center;
  background: var(--bh-persimmon);
  color: #fff;
  font: 700 .95rem/1 var(--bh-kai);
  border-radius: 9px;
  box-shadow: 0 7px 15px -6px rgba(194, 87, 31, .65);
}
.bh-steps h3 { margin: .3rem 0 .45rem; font: 800 1.12rem/1.5 var(--bh-serif); color: var(--bh-pine-deep); }
.bh-steps p { margin: 0 0 .65rem; font-size: .92rem; line-height: 1.7; color: var(--bh-ink-soft); }
.bh-steps a { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--bh-pine); }
.bh-steps a:hover { color: var(--bh-persimmon); }

.bh-updates { list-style: none; margin: 0; padding: 0; }
.bh-updates li {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .8rem .2rem .8rem 1.5rem;
  border-bottom: 1px dotted var(--bh-line);
}
.bh-updates li::before {
  content: "";
  position: absolute;
  left: .15rem; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bh-card);
  border: 2px solid var(--bh-persimmon);
}
.bh-updates time {
  flex: none;
  width: 5.6rem;
  font-size: .8rem;
  color: var(--bh-ink-soft);
  font-variant-numeric: tabular-nums;
}
.bh-updates a { text-decoration: none; color: var(--bh-pine-deep); font-weight: 500; }
.bh-updates a:hover { color: var(--bh-persimmon); }
.bh-updates .bh-up-cat {
  flex: none;
  font-size: .72rem;
  color: var(--bh-persimmon);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: .12em .6em;
}

.bh-editors {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(125% 135% at 90% 8%, rgba(194, 87, 31, .24), transparent 50%),
    linear-gradient(158deg, #244336, var(--bh-pine-deep) 60%, #182f25);
  color: #d9d4c2;
  border-radius: 18px;
  padding: 2.1rem 2.2rem;
  margin: 3.6rem 0 1rem;
  box-shadow: 0 24px 52px -30px rgba(20, 38, 30, .7);
}
.bh-editors h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 700 1.22rem/1.5 var(--bh-kai);
  letter-spacing: .16em;
  color: #f3cba6;
  margin: 0 0 .85rem;
}
.bh-editors h2::before {
  content: "";
  width: .8em; height: .8em;
  background: var(--bh-persimmon);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(194, 87, 31, .25);
}
.bh-editors p { margin: .55rem 0; font-size: .96rem; line-height: 1.85; }
.bh-editors a { color: #f6d9bd; }

/* ---------- 互動清單頁 ---------- */

.bh-checklist { list-style: none; margin: 1.2rem 0; padding: 0; }
.bh-checklist li { border-bottom: 1px dotted var(--bh-line); }
.bh-checklist label {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .7rem .6rem;
  min-height: 48px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .14s ease;
}
.bh-checklist label:hover { background: var(--bh-pine-mist); }
.bh-checklist input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .2rem;
  accent-color: var(--bh-pine);
  cursor: pointer;
}
.bh-checklist input:checked + span { color: var(--bh-ink-soft); text-decoration: line-through; text-decoration-color: rgba(194, 87, 31, .55); }
.bh-checklist .bh-cl-note { display: block; font-size: .82rem; color: var(--bh-ink-soft); text-decoration: none; }

.bh-cl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.1rem;
  background: var(--bh-card);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  box-shadow: var(--bh-shadow);
}
.bh-cl-progress {
  font-size: .85rem;
  color: var(--bh-pine-deep);
  font-weight: 500;
  align-self: center;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  background: var(--bh-pine-mist);
  border: 1px solid #c6d2c2;
  border-radius: 100px;
  padding: 0 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- 頁尾 ---------- */

.bh-foot {
  position: relative;
  border-top: 1px solid var(--bh-line);
  background: linear-gradient(180deg, var(--bh-paper-deep), #e9e1cd);
  font-size: .87rem;
  color: var(--bh-ink-soft);
}
.bh-foot::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bh-pine), var(--bh-persimmon) 65%, transparent);
}
.bh-foot-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 3rem) calc(2.2rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.8rem;
}
.bh-foot .bh-wordmark { color: var(--bh-pine-deep); font-size: 1.3rem; }
.bh-foot .bh-wordmark:hover { color: var(--bh-persimmon); }
.bh-foot p { margin: .5rem 0; line-height: 1.75; }
.bh-foot h3 {
  font: 700 .88rem/1.4 var(--bh-kai);
  letter-spacing: .25em;
  color: var(--bh-ink);
  margin: 0 0 .5rem;
}
.bh-foot ul { list-style: none; margin: 0; padding: 0; }
.bh-foot li { margin: .35rem 0; }
.bh-foot a { color: var(--bh-ink-soft); text-decoration: none; }
.bh-foot a:hover { color: var(--bh-persimmon); text-decoration: underline; }
.bh-foot-base {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--bh-line);
  padding-top: 1rem;
  font-size: .8rem;
}

/* ---------- 響應式 ---------- */

@media (max-width: 1099px) {
  .bh-topbar { display: block; }
  .bh-side {
    transform: translateX(-105%);
    transition: transform .28s ease;
    z-index: 60;
    width: min(21rem, 86vw);
    box-shadow: 0 0 60px rgba(0, 0, 0, .35);
  }
  body.bh-side-open .bh-side { transform: translateX(0); }
  .bh-scrim {
    position: fixed;
    inset: 0;
    background: rgba(33, 61, 49, .45);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  body.bh-side-open .bh-scrim { opacity: 1; pointer-events: auto; }
  .bh-main { margin-left: 0; }
  .bh-content { padding-top: 2rem; }
  .bh-hero-panel { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; }
  .bh-hero-kicker { justify-content: center; }
  .bh-hero-lede { margin-inline: auto; }
  .bh-hero .bh-btnrow { justify-content: center; }
  .bh-hero-art { order: -1; }
  .bh-hero-art svg { max-width: 280px; }
  .bh-trust { grid-template-columns: 1fr 1fr; }
  .bh-toc ol { columns: 1; }
  .bh-foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .bh-feature { grid-template-columns: 1fr; gap: .9rem; }
  .bh-feature-badge { justify-self: start; }
}

@media (max-width: 560px) {
  body.bh-body { font-size: 16.5px; }
  .bh-hero h1 { font-size: 2rem; }
  .bh-trust { grid-template-columns: 1fr; }
  .bh-foot-inner { grid-template-columns: 1fr; }
  .bh-meta { font-size: .8rem; gap: .3rem .8rem; }
}

/* ---------- 列印（清單頁可印出貼冰箱） ---------- */

@media print {
  .bh-side, .bh-topbar, .bh-scrim, .bh-foot, .bh-sponsor, .bh-related, .bh-cl-tools, .bh-skip { display: none !important; }
  .bh-main { margin: 0; }
  body.bh-body { background: #fff; font-size: 12.5px; }
  .bh-checklist input[type="checkbox"] { accent-color: #000; }
  a { color: inherit; text-decoration: none; }
}
