/* =========================================================
   禾崧環境 網站樣式
   色系取自 Logo：磚紅 #A43F0F、金黃 #FBD016
   長者友善：基本字級 18px、行高 1.8、按鈕高度至少 56px、
   對比度皆符合 WCAG AA 以上
   ========================================================= */

:root {
  --hs-rust: #A43F0F;        /* Logo 磚紅：主色、按鈕、連結 */
  --hs-rust-dark: #7A2D08;   /* 滑過、標題強調 */
  --hs-rust-soft: #F8E9DF;   /* 淺磚紅底 */
  --hs-gold: #FBD016;        /* Logo 金黃：重點色塊（上面只放深色字） */
  --hs-gold-deep: #E0B000;
  --hs-gold-soft: #FFF5CC;
  --hs-cream: #FFFBF0;       /* 區塊交替底色 */
  --hs-ink: #2A1E14;         /* 主要文字（暖黑） */
  --hs-muted: #5A4A3C;       /* 次要文字，對比仍 > 7:1 */
  --hs-line: #E8DCC4;
  --hs-white: #FFFFFF;
  --hs-ok: #2F6B2F;
  --hs-err: #B3261E;
  --hs-radius: 14px;
  --hs-radius-lg: 22px;
  --hs-shadow: 0 6px 24px rgba(74, 40, 10, .10);
  --hs-shadow-lg: 0 18px 50px rgba(74, 40, 10, .16);
  --hs-serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  --hs-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --hs-header-h: 84px;
  --hs-dock-h: 72px;
}

/* ---------- 字級切換（中 / 大 / 特大），所有 rem 會一起放大 ---------- */
html { font-size: 20px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hs-header-h) + 12px); }
html[data-fs="l"]  { font-size: 22px; }
html[data-fs="xl"] { font-size: 24.5px; }

body.hs-home, body.hs-inner {
  margin: 0;
  font-family: var(--hs-sans);
  font-size: .9rem;            /* = 18px */
  line-height: 1.8;
  color: var(--hs-ink);
  background: var(--hs-white);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
body.hs-home h1, body.hs-home h2, body.hs-home h3,
body.hs-inner h1, body.hs-inner h2, body.hs-inner h3, body.hs-inner h4 {
  color: var(--hs-ink);
  letter-spacing: .03em;
  line-height: 1.4;
}
body.hs-home a, body.hs-inner a { color: var(--hs-rust); }
body.hs-home a:hover, body.hs-inner a:hover { color: var(--hs-rust-dark); }
body.hs-home img, body.hs-inner img { max-width: 100%; height: auto; }

/* 清楚的鍵盤焦點框 */
:focus-visible { outline: 3px solid var(--hs-gold-deep) !important; outline-offset: 3px; border-radius: 6px; }

.hs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hs-skip {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--hs-rust); color: #fff !important; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.hs-skip:focus { top: 1rem; }
.hs-center { text-align: center; }
.hs-right { text-align: right; }
.hs-narrow { max-width: 860px; }
.hs-br-md { display: none; }
@media (min-width: 768px) { .hs-br-md { display: inline; } }

.hs-ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.hs-ico--sm { width: .9em; height: .9em; }

/* ---------- 按鈕：高度 ≥ 56px、文字清楚、圖示輔助 ---------- */
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 2.6rem; padding: .5rem 1.25rem;
  font-family: var(--hs-sans); font-size: .9rem; font-weight: 700; line-height: 1.3; letter-spacing: .05em;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none !important; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.hs-btn:active { transform: translateY(1px); }
.hs-btn--lg { min-height: 2.9rem; padding: .6rem 1.6rem; font-size: .95rem; }
.hs-btn--block { display: flex; width: 100%; }
.hs-btn--primary { background: var(--hs-rust); color: #fff !important; box-shadow: 0 4px 14px rgba(164, 63, 15, .28); }
.hs-btn--primary:hover { background: var(--hs-rust-dark); }
.hs-btn--gold { background: var(--hs-gold); color: var(--hs-ink) !important; }
.hs-btn--gold:hover { background: #FFE04D; }
.hs-btn--outline { background: #fff; color: var(--hs-rust) !important; border-color: var(--hs-rust); }
.hs-btn--outline:hover { background: var(--hs-rust-soft); }
.hs-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.75); }
.hs-btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.hs-btn[disabled] { opacity: .65; cursor: wait; }

/* =========================================================
   頁首
   ========================================================= */
.hs-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--hs-line);
  box-shadow: 0 2px 12px rgba(74, 40, 10, .06);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .hs-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.hs-header::before { /* Logo 金色細線 */
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--hs-rust) 0 30%, var(--hs-gold) 30% 100%);
}
.hs-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--hs-header-h); }
.hs-logo { display: block; flex: none; }
.hs-logo img { display: block; width: auto; height: 52px; }
.hs-header__tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.hs-header__cta { display: none; }

/* 字級切換 */
.hs-fs { display: none; align-items: center; gap: 2px; background: var(--hs-cream); border: 1px solid var(--hs-line); border-radius: 999px; padding: 3px; }
.hs-fs__label { font-size: .7rem; color: var(--hs-muted); padding: 0 .4rem 0 .6rem; font-weight: 700; }
.hs-fs button {
  min-width: 2.1rem; min-height: 2rem; padding: 0 .55rem;
  border: 0; border-radius: 999px; background: transparent;
  font-size: .75rem; font-weight: 700; color: var(--hs-ink); cursor: pointer;
}
.hs-fs button[aria-pressed="true"] { background: var(--hs-rust); color: #fff; }

/* 選單按鈕：有文字「選單」，長輩一看就懂 */
.hs-menu-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 3.1rem; min-height: 3.1rem; padding: .25rem .5rem;
  background: var(--hs-rust); color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  font-size: .7rem; font-weight: 700; line-height: 1.1;
}
.hs-menu-btn .hs-ico { width: 1.5rem; height: 1.5rem; }

/* 桌機主選單 */
.hs-nav { display: none; margin-left: 1.25rem; }
.hs-nav__list, .hs-dd { list-style: none; margin: 0; padding: 0; }
.hs-nav__list { display: flex; gap: .15rem; }
.hs-nav__item { position: relative; }
.hs-nav__toggle {
  display: inline-flex; align-items: center; gap: .25rem;
  min-height: 2.6rem; padding: .3rem .8rem;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--hs-ink); white-space: nowrap;
}
.hs-nav__toggle:hover, .hs-nav__toggle[aria-expanded="true"] { background: var(--hs-rust-soft); color: var(--hs-rust); }
.hs-nav__toggle[aria-expanded="true"] .hs-ico { transform: rotate(180deg); }
.hs-dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 15rem;
  background: #fff; border: 1px solid var(--hs-line); border-top: 4px solid var(--hs-rust);
  border-radius: 0 0 var(--hs-radius) var(--hs-radius); box-shadow: var(--hs-shadow-lg);
  padding: .4rem; display: none;
}
.hs-nav__item.is-open .hs-dd { display: block; }
@media (hover: hover) {
  .hs-nav__item:hover .hs-dd { display: block; }
  .hs-nav__item:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
.hs-dd a {
  display: block; padding: .55rem .9rem; border-radius: 10px;
  color: var(--hs-ink) !important; text-decoration: none; font-size: .85rem; line-height: 1.5;
}
.hs-dd a:hover { background: var(--hs-cream); color: var(--hs-rust) !important; }

@media (min-width: 768px) {
  .hs-header__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .hs-nav { display: block; }
  .hs-menu-btn { display: none; }
  .hs-fs { display: inline-flex; }
  .hs-logo img { height: 58px; }
}

/* 手機全螢幕選單 */
.hs-panel {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1500;
  background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: hs-fade .18s ease-out;
}
.hs-panel[hidden] { display: none; }
@keyframes hs-fade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hs-panel__top {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; background: #fff; border-bottom: 1px solid var(--hs-line);
}
.hs-panel__top img { height: 40px; width: auto; min-width: 0; flex: 0 1 auto; }
.hs-panel__close {
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 2.6rem; padding: .3rem 1rem;
  background: var(--hs-cream); color: var(--hs-ink); border: 2px solid var(--hs-line); border-radius: 999px;
  font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none;
}
.hs-panel__body { padding: 1rem 1rem 2rem; max-width: 640px; margin: 0 auto; }
.hs-panel__home {
  display: flex; align-items: center; gap: .6rem;
  margin: 1rem 0 .5rem; padding: .7rem 1rem; border-radius: var(--hs-radius);
  background: var(--hs-cream); color: var(--hs-ink) !important; font-weight: 700; text-decoration: none;
}
.hs-panel__group { margin-top: 1.2rem; }
.hs-panel__gtitle {
  font-size: .8rem !important; color: var(--hs-rust) !important; font-weight: 700;
  margin: 0 0 .3rem; padding-left: .7rem; border-left: 5px solid var(--hs-gold);
}
.hs-panel__group ul { list-style: none; margin: 0; padding: 0; }
.hs-panel__group a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 2.8rem; padding: .55rem .7rem;
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-ink) !important; text-decoration: none; font-size: .95rem; line-height: 1.45;
}
.hs-panel__group a .hs-ico { color: var(--hs-rust); }
.hs-fs--panel { display: flex; justify-content: center; margin: 1.6rem auto 0; width: max-content; }
.hs-fs--panel .hs-fs__label { font-size: .8rem; }
.hs-fs--panel button { min-width: 2.8rem; min-height: 2.4rem; font-size: .85rem; }
.hs-panel__contact { display: grid; gap: .7rem; margin-top: 1.6rem; }
.hs-panel__addr { display: flex; gap: .4rem; justify-content: center; color: var(--hs-muted) !important; font-size: .85rem; }
body.hs-lock { overflow: hidden; }

/* 搜尋 */
.hs-search { display: flex; gap: .5rem; }
.hs-search input[type="search"], .hs-input {
  width: 100%; min-height: 2.8rem; padding: .55rem .9rem;
  font: inherit; font-size: .95rem; color: var(--hs-ink);
  background: #fff; border: 2px solid #CDBFA6; border-radius: 12px;
  -webkit-appearance: none; appearance: none;
}
.hs-search input[type="search"]:focus, .hs-input:focus { border-color: var(--hs-rust); box-shadow: 0 0 0 4px rgba(164, 63, 15, .15); outline: none; }
.hs-search .hs-btn { flex: none; white-space: nowrap; }
.hs-btn { white-space: nowrap; }
.hs-btn--block, .hs-hero__actions .hs-btn, .hs-cta__actions .hs-btn { white-space: normal; }
.hs-search__row { display: flex; gap: .5rem; width: 100%; }
.hs-search--footer, .hs-search--big { display: block; }

/* =========================================================
   區塊共用
   ========================================================= */
.hs-section { padding: 3.2rem 0; }
.hs-section--tight { padding: 2rem 0 3rem; }
.hs-section--cream { background: var(--hs-cream); }
.hs-h1 { font-family: var(--hs-serif); font-size: 1.8rem; font-weight: 900; margin: 0 0 .8rem; }
.hs-h2 {
  font-family: var(--hs-serif); font-size: 1.55rem; font-weight: 900; margin: 0 0 1.2rem; line-height: 1.45;
}
.hs-h2.hs-center::after, .hs-h2::after {
  content: ""; display: block; width: 3rem; height: 5px; margin-top: .6rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--hs-rust) 0 50%, var(--hs-gold) 50% 100%);
}
.hs-h2.hs-center::after { margin-left: auto; margin-right: auto; }
.hs-h3 { display: flex; align-items: center; gap: .4rem; font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; }
.hs-lead { font-size: 1rem; color: var(--hs-muted); margin: 0 0 1.8rem; }
.hs-text { font-size: .95rem; line-height: 2; color: var(--hs-ink); }
.hs-eyebrow {
  display: inline-block; margin: 0 0 .8rem; padding: .2rem .8rem; border-radius: 999px;
  background: var(--hs-gold); color: var(--hs-ink); font-size: .75rem; font-weight: 800; letter-spacing: .1em;
}
.hs-photo { margin: 0; border-radius: var(--hs-radius-lg); overflow: hidden; box-shadow: var(--hs-shadow); }
.hs-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-photo--banner { margin-bottom: 1.8rem; }
.hs-photo--banner img { aspect-ratio: 21 / 9; }

/* ---------- 主視覺 ---------- */
.hs-hero {
  position: relative; background-size: cover; background-position: center right; background-color: var(--hs-cream);
  padding: 2.4rem 0 2.8rem;
}
.hs-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(255, 251, 240, .97) 0%, rgba(255, 251, 240, .9) 45%, rgba(255, 251, 240, .35) 100%);
}
.hs-hero .container { position: relative; }
.hs-hero__box { max-width: 36rem; }
.hs-hero__title { font-family: var(--hs-serif); font-size: 1.9rem; font-weight: 900; line-height: 1.35; margin: 0 0 1rem; }
.hs-hero__mark {
  display: inline-block; color: var(--hs-rust);
  background: linear-gradient(transparent 62%, var(--hs-gold) 62% 92%, transparent 92%);
  padding: 0 .1em;
}
.hs-hero__lead { font-size: 1.05rem; line-height: 1.9; color: var(--hs-ink); margin: 0 0 1.6rem; }
.hs-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 575.98px) {
  .hs-hero::before { background: rgba(255, 251, 240, .93); }
  .hs-hero__actions .hs-btn { flex: 1 1 100%; }
}
@media (min-width: 992px) {
  .hs-hero { padding: 5rem 0 5.5rem; }
  .hs-hero__title { font-size: 2.6rem; }
}

/* ---------- 公告列（取代跑馬燈） ---------- */
.hs-notice { background: var(--hs-rust); color: #fff; }
.hs-notice__grid { display: grid; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }
.hs-notice__item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; }
.hs-notice__tag {
  flex: none; padding: .1rem .7rem; border-radius: 8px;
  background: var(--hs-gold); color: var(--hs-ink); font-size: .8rem; font-weight: 800;
}
@media (min-width: 768px) { .hs-notice__grid { grid-template-columns: 1fr 1fr; justify-items: center; } }

/* ---------- 風林火山 ---------- */
.hs-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.hs-value {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.2rem .5rem; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
}
.hs-value__char {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  font-family: var(--hs-serif); font-size: 1.8rem; font-weight: 900; color: var(--hs-rust);
  background: var(--hs-gold-soft); border: 3px solid var(--hs-gold);
}
.hs-value__text { font-size: 1rem; font-weight: 800; }
@media (min-width: 768px) { .hs-values { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; } }

/* ---------- 打勾清單 ---------- */
.hs-checks { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.hs-checks li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px dashed var(--hs-line); font-size: .95rem; line-height: 1.75;
}
.hs-checks .hs-ico {
  width: 1.5rem; height: 1.5rem; padding: .2rem; margin-top: .15rem;
  border-radius: 50%; background: var(--hs-rust); color: #fff; stroke-width: 3;
}

/* ---------- 服務項目 ---------- */
.hs-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hs-service {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.3rem 1.3rem 1.4rem; background: #fff;
  border: 1px solid var(--hs-line); border-top: 5px solid var(--hs-rust); border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
}
.hs-service__ico {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .3rem;
  border-radius: 14px; background: var(--hs-rust-soft); color: var(--hs-rust);
}
.hs-service__ico .hs-ico { width: 1.7rem; height: 1.7rem; }
.hs-service__title { font-size: 1.1rem !important; font-weight: 800; margin: 0; }
.hs-service__text { margin: 0; color: var(--hs-muted); font-size: .9rem; line-height: 1.75; }
.hs-service--cta { background: var(--hs-gold-soft); border-top-color: var(--hs-gold-deep); justify-content: center; }
.hs-service--cta .hs-btn { align-self: flex-start; margin-top: .6rem; }
@media (min-width: 768px) { .hs-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .hs-services { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; } }

/* ---------- 客戶實績 ---------- */
.hs-cases { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.hs-cases li { border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); background: #eee; }
.hs-cases img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 992px) { .hs-cases { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; } }

/* ---------- 聯絡區塊 ---------- */
.hs-cta {
  background: var(--hs-rust) radial-gradient(circle at 100% 0, rgba(251, 208, 22, .22), transparent 45%);
  color: #fff; padding: 2.6rem 0;
}
.hs-cta__inner { display: grid; gap: 1.4rem; align-items: center; }
.hs-cta__title { color: #fff !important; font-family: var(--hs-serif); font-size: 1.45rem; font-weight: 900; margin: 0 0 .4rem; }
.hs-cta__text { margin: 0; font-size: .95rem; color: #FFF3E6; }
.hs-cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 575.98px) { .hs-cta__actions .hs-btn { flex: 1 1 100%; } }
@media (min-width: 992px) { .hs-cta__inner { grid-template-columns: 1fr auto; } }

/* =========================================================
   頁尾 + 手機底部快捷列
   ========================================================= */
.hs-footer { background: #2A1E14; color: #EADFCF; padding: 3rem 0 1.5rem; font-size: .85rem; }
.hs-footer a { color: #fff !important; }
.hs-footer__row { row-gap: 2rem; }
.hs-footer__logo { height: 52px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; }
.hs-footer__about { margin: 1rem 0; line-height: 1.9; }
.hs-footer__contact, .hs-footer__links { list-style: none; margin: 0; padding: 0; }
.hs-footer__contact li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.hs-footer__contact .hs-ico { color: var(--hs-gold); margin-top: .3rem; }
.hs-footer__h { display: block; font-size: .9rem !important; font-weight: 800; color: var(--hs-gold) !important; margin: 0 0 .7rem; }
.hs-footer__links li { margin-bottom: .2rem; }
.hs-footer__links a { display: inline-block; padding: .3rem 0; }
.hs-footer .hs-search--footer { margin-top: 1.2rem; }
.hs-footer .hs-search input[type="search"] { border-color: #6B5A49; }
.hs-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hs-tags a {
  display: inline-flex; align-items: center; min-height: 2.3rem; padding: .25rem .9rem;
  border: 1px solid #6B5A49; border-radius: 999px; text-decoration: none; font-size: .8rem;
}
.hs-tags a:hover { background: var(--hs-gold); color: var(--hs-ink) !important; border-color: var(--hs-gold); }
.hs-footer__copy { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #4A3A2C; text-align: center; font-size: .75rem; color: #CBBBA6; }

.hs-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; height: calc(var(--hs-dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid var(--hs-line); box-shadow: 0 -4px 18px rgba(74, 40, 10, .12);
}
.hs-dock a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--hs-ink) !important; text-decoration: none; font-size: .72rem; font-weight: 700;
}
.hs-dock a .hs-ico { width: 1.6rem; height: 1.6rem; color: var(--hs-rust); }
.hs-dock a[aria-current="page"] { color: var(--hs-rust) !important; }
.hs-dock .hs-dock__main { flex: 1.4; background: var(--hs-rust); color: #fff !important; font-size: .8rem; }
.hs-dock .hs-dock__main .hs-ico { color: var(--hs-gold); }
body.hs-home, body.hs-inner { padding-bottom: calc(var(--hs-dock-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 992px) {
  .hs-dock { display: none; }
  body.hs-home, body.hs-inner { padding-bottom: 0; }
}

/* =========================================================
   內頁
   ========================================================= */
.hs-pagehead {
  background: var(--hs-cream) linear-gradient(180deg, var(--hs-gold-soft), var(--hs-cream));
  border-bottom: 1px solid var(--hs-line); padding: 1.4rem 0 1.8rem;
}
.hs-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--hs-muted); margin-bottom: .6rem; }
.hs-crumb a { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; font-weight: 700; }
.hs-pagehead__title { font-family: var(--hs-serif); font-size: 1.7rem; font-weight: 900; margin: 0; }
.hs-pagehead__lead { margin: .5rem 0 0; color: var(--hs-muted); font-size: .95rem; }
@media (min-width: 992px) { .hs-pagehead { padding: 2rem 0 2.4rem; } .hs-pagehead__title { font-size: 2.1rem; } }

/* 後台編輯的文章內容 */
.hs-prose { font-size: .95rem; line-height: 2; word-break: break-word; }
.hs-prose h2, .hs-prose h3, .hs-prose h4 { margin: 1.8em 0 .6em; font-weight: 800; }
.hs-prose h2 { font-size: 1.3rem; padding-left: .7rem; border-left: 6px solid var(--hs-rust); }
.hs-prose h3 { font-size: 1.12rem; color: var(--hs-rust-dark) !important; }
.hs-prose p, .hs-prose li { font-size: inherit; }
.hs-prose a { text-decoration: underline; text-underline-offset: 3px; }
.hs-prose img { border-radius: var(--hs-radius); height: auto !important; }
.hs-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .85rem; }
.hs-prose th, .hs-prose td { border: 1px solid var(--hs-line); padding: .5rem .7rem; }
.hs-prose th { background: var(--hs-cream); }
.hs-prose iframe, .hs-prose video { max-width: 100%; }

.hs-pager { display: grid; gap: .8rem; margin-top: 2.6rem; }
.hs-pager__link {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem;
  border: 2px solid var(--hs-line); border-radius: var(--hs-radius); text-decoration: none; background: #fff;
}
.hs-pager__link:hover { border-color: var(--hs-rust); }
.hs-pager__label { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 800; color: var(--hs-rust); }
.hs-pager__title { color: var(--hs-ink); font-weight: 700; line-height: 1.5; }
.hs-pager__link--next { text-align: right; align-items: flex-end; }
@media (min-width: 768px) { .hs-pager { grid-template-columns: 1fr 1fr; } }

/* 網站地圖 */
.hs-sitemap { display: grid; gap: 1.2rem; }
.hs-sitemap__group { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); padding: 1.2rem 1.3rem; box-shadow: var(--hs-shadow); }
.hs-sitemap__title { font-size: 1.1rem !important; font-weight: 800; color: var(--hs-rust) !important; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 3px solid var(--hs-gold); }
.hs-sitemap ul { list-style: none; margin: 0; padding: 0; }
.hs-sitemap li a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--hs-line); text-decoration: none; color: var(--hs-ink) !important; line-height: 1.5; }
.hs-sitemap li:last-child a { border-bottom: 0; }
.hs-sitemap li a::before { content: "›"; color: var(--hs-rust); font-weight: 900; margin-right: .5rem; }
@media (min-width: 768px) { .hs-sitemap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .hs-sitemap { grid-template-columns: repeat(3, 1fr); } }

/* 搜尋結果 */
.hs-result-count { margin: 1.6rem 0 .8rem; font-size: .95rem; }
.hs-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hs-results a {
  display: block; padding: 1rem 1.2rem; border: 2px solid var(--hs-line); border-radius: var(--hs-radius);
  text-decoration: none; background: #fff;
}
.hs-results a:hover { border-color: var(--hs-rust); }
.hs-results__title { display: block; font-size: 1.05rem; font-weight: 800; color: var(--hs-rust); margin-bottom: .2rem; }
.hs-results__snip { display: block; color: var(--hs-muted); font-size: .85rem; line-height: 1.8; }
.hs-results mark, .hs-prose mark { background: var(--hs-gold); color: var(--hs-ink); padding: 0 .15em; border-radius: 3px; }
.hs-empty { text-align: center; padding: 2rem 1.2rem; background: var(--hs-cream); border-radius: var(--hs-radius-lg); }
.hs-empty p { font-size: .95rem; }

/* 感謝頁 */
.hs-thanks { padding: 4rem 0; }
.hs-thanks__ico {
  display: inline-grid; place-items: center; width: 5rem; height: 5rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--hs-rust); color: #fff; box-shadow: 0 0 0 10px var(--hs-gold-soft);
}
.hs-thanks__ico .hs-ico { width: 2.6rem; height: 2.6rem; stroke-width: 3; }

/* =========================================================
   表單：標籤放上方、欄位加大、錯誤訊息紅字直接寫在欄位下
   ========================================================= */
.hs-card { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); padding: 1.4rem; box-shadow: var(--hs-shadow); margin-bottom: 1.4rem; }
.hs-card--ok { border: 2px solid var(--hs-ok); background: #F3FAF1; }
@media (min-width: 768px) { .hs-card { padding: 2rem; } }
.hs-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hs-field, .hs-form fieldset.hs-field { margin-bottom: 1.4rem; }
.hs-label { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 800; margin-bottom: .45rem; color: var(--hs-ink); padding: 0; float: none; width: auto; }
.hs-req, .hs-opt { font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 6px; letter-spacing: .05em; }
.hs-req { background: var(--hs-rust); color: #fff; }
.hs-opt { background: #EFE7D8; color: var(--hs-muted); }
textarea.hs-input { min-height: 8rem; line-height: 1.7; resize: vertical; }
select.hs-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A43F0F' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; padding-right: 2.6rem;
}
.is-invalid .hs-input { border-color: var(--hs-err); background: #FFF6F5; }
.hs-err { display: flex; gap: .3rem; margin: .4rem 0 0; color: var(--hs-err); font-weight: 700; font-size: .85rem; }
.hs-err::before { content: "⚠"; }
.hs-note { margin: .8rem 0 0; text-align: center; color: var(--hs-muted); font-size: .85rem; }
.hs-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

/* 選項按鈕（取代下拉選單，點起來更容易） */
.hs-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.hs-chip { position: relative; margin: 0; cursor: pointer; }
.hs-chip input, .hs-rating__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-chip span {
  display: flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .4rem .6rem;
  border: 2px solid #CDBFA6; border-radius: 12px; background: #fff; font-weight: 700; text-align: center; line-height: 1.3;
}
.hs-chip input:checked + span { border-color: var(--hs-rust); background: var(--hs-rust); color: #fff; }
.hs-chip input:checked + span::before { content: "✓"; margin-right: .3em; }
.hs-chip input:focus-visible + span, .hs-rating__opt input:focus-visible + .hs-rating__box { outline: 3px solid var(--hs-gold-deep); outline-offset: 2px; }
.is-invalid .hs-chip span { border-color: var(--hs-err); }
@media (min-width: 768px) { .hs-chips { grid-template-columns: repeat(3, 1fr); } }

/* 滿意度：大顆星星選項 */
.hs-rating { display: grid; gap: .6rem; }
.hs-rating__opt { margin: 0; cursor: pointer; position: relative; }
.hs-rating__box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.2rem; padding: .5rem 1.1rem;
  border: 2px solid #CDBFA6; border-radius: 14px; background: #fff;
}
.hs-rating__stars { font-size: 1.35rem; letter-spacing: .1em; color: var(--hs-gold-deep); line-height: 1; }
.hs-rating__off { color: #E6DCCB; }
.hs-rating__text { font-weight: 800; font-size: 1rem; }
.hs-rating__opt input:checked + .hs-rating__box { border-color: var(--hs-rust); background: var(--hs-gold-soft); box-shadow: inset 0 0 0 2px var(--hs-rust); }
.hs-rating__opt input:checked + .hs-rating__box .hs-rating__text::before { content: "✓ "; color: var(--hs-rust); }

.hs-letter { background: var(--hs-cream); border-left: 6px solid var(--hs-gold); border-radius: 0 var(--hs-radius) var(--hs-radius) 0; padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; font-size: .95rem; }
.hs-letter p:last-child { margin-bottom: 0; }
.hs-hl { color: var(--hs-rust); }

.hs-more { margin-bottom: 1.4rem; border: 2px dashed var(--hs-line); border-radius: 12px; padding: .2rem 1rem; }
.hs-more summary { cursor: pointer; min-height: 2.6rem; display: flex; align-items: center; font-weight: 800; color: var(--hs-muted); }
.hs-more[open] { padding-bottom: .4rem; }
.hs-more[open] summary { margin-bottom: .6rem; }

.hs-alert { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 700; margin-bottom: 1.2rem; font-size: .9rem; }
.hs-alert--error { background: #FDECEA; color: var(--hs-err); border: 2px solid #F3B8B3; }
.hs-alert--info { background: var(--hs-gold-soft); color: var(--hs-ink); border: 2px solid #F0DC8A; }
.hs-link { font-weight: 700; }

.hs-contact__list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.hs-contact__list li { display: flex; gap: .9rem; margin-bottom: 1.2rem; font-size: .95rem; }
.hs-contact__list .hs-btn { margin-top: .5rem; }
.hs-contact__ico { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--hs-rust-soft); color: var(--hs-rust); }
.hs-big-link { font-size: 1.3rem; font-weight: 800; }

/* 減少動態效果（系統設定開啟時） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hs-header, .hs-dock, .hs-footer, .hs-cta, .hs-panel { display: none !important; }
  body.hs-home, body.hs-inner { padding: 0; }
}

/* 欄距：手機維持標準間距避免橫向捲動，桌機再加寬 */
.row.hs-row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
@media (min-width: 992px) { .row.hs-row { --bs-gutter-x: 3rem; } }

/* =========================================================
   智慧化視覺（AI 風格）：深色主視覺、光暈、玻璃質感、節點網路
   仍沿用 Logo 磚紅／金黃，文字對比維持 WCAG AA 以上
   ========================================================= */
:root {
  --hs-night: #1A100A;
  --hs-night-2: #2B1A0F;
  --hs-orange: #F08A1C;
  --hs-grad: linear-gradient(110deg, #FBD016 0%, #F7A823 45%, #F07A2A 100%);
  --hs-grad-rust: linear-gradient(135deg, #C2541A 0%, #A43F0F 55%, #7A2D08 100%);
  --hs-glass: rgba(255, 255, 255, .08);
  --hs-glass-line: rgba(255, 255, 255, .18);
}

/* 漸層文字 */
.hs-grad {
  background: var(--hs-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- 主視覺 ---------- */
.hs-hero--ai {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--hs-night); background-size: cover; background-position: center;
  padding: 2.6rem 0 3rem;
}
.hs-hero--ai::before {
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(240, 122, 42, .35), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(251, 208, 22, .16), transparent 60%),
    linear-gradient(115deg, rgba(26, 16, 10, .97) 0%, rgba(34, 20, 11, .93) 55%, rgba(122, 45, 8, .82) 100%);
}
.hs-hero--ai::after { /* 細格線 */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hs-net { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hs-hero--ai .container { position: relative; z-index: 2; }
.hs-hero__grid { display: grid; gap: 2rem; align-items: center; }
.hs-hero--ai .hs-hero__title { color: #fff !important; font-size: 2rem; }
.hs-hero--ai .hs-hero__lead { color: #F3E6D6; font-size: 1rem; }
.hs-eyebrow--glow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(251, 208, 22, .1); color: var(--hs-gold); border: 1px solid rgba(251, 208, 22, .45);
  box-shadow: 0 0 24px rgba(251, 208, 22, .18);
}
.hs-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1.3rem 0 0; padding: 0; font-size: .85rem; color: #EADCC8; }
.hs-trust li { display: inline-flex; align-items: center; gap: .35rem; }
.hs-trust .hs-ico { color: var(--hs-gold); stroke-width: 3; }
@media (min-width: 992px) {
  .hs-hero--ai { padding: 4.5rem 0 5rem; }
  .hs-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hs-hero--ai .hs-hero__title { font-size: 2.7rem; }
}
@media (max-width: 575.98px) { .hs-hero--ai::before { background: linear-gradient(180deg, rgba(26,16,10,.95), rgba(43,26,15,.95)); } }

/* 發光按鈕＋掃光 */
.hs-btn--glow { position: relative; overflow: hidden; box-shadow: 0 0 0 0 rgba(251, 208, 22, .5), 0 8px 26px rgba(240, 138, 28, .35); }
.hs-btn--glow::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: hs-shine 3.2s ease-in-out infinite;
}
.hs-btn--gold.hs-btn--glow { background: var(--hs-grad); }
@keyframes hs-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* 速查預覽卡（玻璃質感） */
.hs-preview {
  background: var(--hs-glass); border: 1px solid var(--hs-glass-line); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 1.1rem; color: #fff;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .hs-preview { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.hs-preview__head { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--hs-glass-line); }
.hs-preview__head strong { display: block; font-size: .95rem; }
.hs-online { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: #C9F0C2; }
.hs-online::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #5BD66B; box-shadow: 0 0 0 4px rgba(91, 214, 107, .2); }
.hs-bot {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--hs-grad); color: var(--hs-night); box-shadow: 0 0 18px rgba(251, 208, 22, .45);
}
.hs-bot .hs-ico { width: 1.45rem; height: 1.45rem; }
.hs-bot--pulse { position: relative; }
.hs-bot--pulse::after {
  content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; border-radius: 50%;
  border: 2px solid rgba(251, 208, 22, .6); animation: hs-pulse 2.4s ease-out infinite;
}
@keyframes hs-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.hs-preview__body { padding: 1rem 0 .4rem; }
.hs-bubble {
  display: inline-block; margin: 0 0 .9rem; padding: .8rem 1rem; border-radius: 4px 18px 18px 18px;
  background: #FFF8E7; color: var(--hs-ink); font-size: .9rem; line-height: 1.7;
}
.hs-preview__opts { display: grid; gap: .5rem; }
.hs-preview__opts a {
  display: flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .4rem .8rem;
  border: 2px solid rgba(251, 208, 22, .55); border-radius: 14px; background: rgba(255,255,255,.04);
  color: #fff !important; text-decoration: none; font-weight: 800; font-size: .9rem; transition: background .15s, color .15s, transform .15s;
}
@media (hover: hover) { .hs-preview__opts a:hover { background: var(--hs-gold); color: var(--hs-ink) !important; transform: translateY(-1px); } }
@media (min-width: 576px) { .hs-preview__opts { grid-template-columns: repeat(3, 1fr); } }
.hs-preview__scan { position: relative; margin-top: 1rem; padding: .75rem .9rem; border-radius: 14px; background: rgba(0,0,0,.25); overflow: hidden; }
.hs-scan__label { display: block; font-size: .7rem; letter-spacing: .12em; color: #D9C7AE; margin-bottom: .4rem; }
.hs-scan__items { display: flex; justify-content: space-between; gap: .3rem; }
.hs-scan__items span { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 800; color: #FFE7A3; }
.hs-scan__items .hs-ico { width: 1.1rem; height: 1.1rem; }
.hs-scan__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 35%; background: var(--hs-grad); border-radius: 3px; animation: hs-scan 2.6s ease-in-out infinite; box-shadow: 0 0 12px rgba(251,208,22,.8); }
@keyframes hs-scan { 0% { left: -35%; } 100% { left: 100%; } }

/* 公告列 */
.hs-notice { background: var(--hs-grad-rust); }
.hs-notice__tag { display: inline-flex; align-items: center; gap: .3rem; }
.hs-notice__tag .hs-ico { width: 1rem; height: 1rem; }

/* 點陣背景區塊 */
.hs-section--grid {
  background-color: var(--hs-cream);
  background-image: radial-gradient(rgba(164, 63, 15, .10) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}
.hs-value { transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.hs-value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hs-grad); }
.hs-value:hover { transform: translateY(-4px); box-shadow: var(--hs-shadow-lg); }
.hs-value__char { background: radial-gradient(circle at 30% 30%, #FFF8D6, #FFE68A); box-shadow: 0 0 0 6px rgba(251, 208, 22, .18); }

/* 服務卡：漸層圖示、滑過發光 */
.hs-service { border-top: 0; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hs-service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--hs-grad-rust); }
.hs-service:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(164, 63, 15, .18); border-color: rgba(164, 63, 15, .35); }
.hs-service__ico { background: var(--hs-grad-rust); color: #fff; box-shadow: 0 8px 18px rgba(164, 63, 15, .3); }
.hs-service--cta { background: linear-gradient(160deg, #FFF8DA, #FFEFC0); border-color: #F2D68A; }
.hs-service--cta::before { background: var(--hs-grad); }

/* 深色流程區 */
.hs-section--dark {
  position: relative; color: #fff;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(240, 122, 42, .22), transparent 60%),
    radial-gradient(40% 70% at 0% 100%, rgba(251, 208, 22, .12), transparent 60%),
    var(--hs-night);
}
.hs-h2--light { color: #fff !important; }
.hs-flow { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.hs-flow__step {
  position: relative; padding: 1.3rem 1.3rem 1.2rem 1.3rem;
  background: var(--hs-glass); border: 1px solid var(--hs-glass-line); border-radius: 20px;
}
.hs-flow__num {
  position: absolute; top: 1rem; right: 1.1rem; font-family: var(--hs-serif); font-size: 2.2rem; font-weight: 900; line-height: 1;
  background: var(--hs-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; opacity: .9;
}
.hs-flow__ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: rgba(251, 208, 22, .14); color: var(--hs-gold); margin-bottom: .6rem; }
.hs-flow__ico .hs-ico { width: 1.5rem; height: 1.5rem; }
.hs-flow__title { color: #fff !important; font-size: 1.1rem !important; font-weight: 800; margin: 0 0 .3rem; }
.hs-flow__text { margin: 0; color: #E3D3BE; font-size: .9rem; line-height: 1.75; }
@media (min-width: 768px) { .hs-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .hs-flow { grid-template-columns: repeat(4, 1fr); }
  .hs-flow__step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.4rem; right: -1rem; width: 1rem; height: 2px; background: var(--hs-grad);
  }
}

/* ---------- 浮動入口（桌機） ---------- */
.hs-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1050;
  display: none; align-items: center; gap: .5rem; min-height: 3rem; padding: .4rem 1.3rem .4rem .45rem;
  border-radius: 999px; background: var(--hs-grad-rust); color: #fff !important; text-decoration: none !important;
  font-weight: 800; font-size: .9rem; box-shadow: 0 14px 34px rgba(122, 45, 8, .45);
  transition: transform .15s;
}
.hs-fab:hover { transform: translateY(-2px); }
.hs-fab__ico { position: relative; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--hs-grad); color: var(--hs-night); }
.hs-fab__ico::after { content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; border-radius: 50%; border: 2px solid rgba(251, 208, 22, .7); animation: hs-pulse 2.4s ease-out infinite; }
@media (min-width: 992px) { .hs-fab { display: inline-flex; } }

/* 手機底部列的速查 */
.hs-dock .hs-dock__ai .hs-ico { color: var(--hs-orange); }
.hs-dock .hs-dock__ai span { background: var(--hs-grad-rust); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- 速查小幫手視窗 ---------- */
.hs-asst { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1600; display: flex; align-items: flex-end; justify-content: center; }
.hs-asst[hidden] { display: none; }
.hs-asst__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(26, 16, 10, .62); }
@supports ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
  .hs-asst__backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
.hs-asst__win {
  position: relative; width: 100%; height: 100%; background: #fff;
  display: flex; flex-direction: column; animation: hs-rise .25s ease-out;
}
@keyframes hs-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) {
  .hs-asst { align-items: center; padding: 2rem; }
  .hs-asst__win { max-width: 600px; height: 760px; max-height: 88vh; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
}
.hs-chk { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hs-chk__head {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem;
  background: var(--hs-night) radial-gradient(80% 140% at 100% 0, rgba(240, 122, 42, .4), transparent 60%); color: #fff;
}
.hs-chk__titles { flex: 1; min-width: 0; }
.hs-chk__title { color: #fff !important; font-size: 1.05rem !important; font-weight: 800; margin: 0; line-height: 1.3; }
.hs-chk__sub { margin: 0; font-size: .78rem; color: var(--hs-gold); font-weight: 700; }
.hs-chk__close {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.5rem; padding: .2rem .9rem;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.hs-chk__bar { height: 6px; background: #F1E6D2; }
.hs-chk__bar span { display: block; height: 100%; width: 0; background: var(--hs-grad); transition: width .4s ease; box-shadow: 0 0 10px rgba(240, 138, 28, .6); }
.hs-chk__log { position: relative; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.1rem 1rem .4rem; background: #FFFCF5; }
.hs-chk__ctrl { padding: .9rem 1rem .4rem; background: #fff; border-top: 1px solid var(--hs-line); }
.hs-chk__note { margin: 0; padding: .4rem 1rem .9rem; background: #fff; font-size: .7rem; color: var(--hs-muted); line-height: 1.6; }

.hs-msg { display: flex; gap: .55rem; margin-bottom: .8rem; align-items: flex-start; }
.hs-msg__av { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--hs-grad); color: var(--hs-night); }
.hs-msg__av .hs-ico { width: 1.05rem; height: 1.05rem; }
.hs-msg__txt { max-width: 85%; padding: .7rem .95rem; border-radius: 4px 18px 18px 18px; background: #fff; border: 1px solid var(--hs-line); font-size: .92rem; line-height: 1.7; box-shadow: 0 2px 8px rgba(74, 40, 10, .05); }
.hs-msg__hint { display: block; margin-top: .3rem; font-size: .8rem; color: var(--hs-muted); }
.hs-msg--me { justify-content: flex-end; }
.hs-msg--me .hs-msg__txt { background: var(--hs-rust); color: #fff; border-color: var(--hs-rust); border-radius: 18px 4px 18px 18px; font-weight: 700; }
.hs-msg--wide .hs-msg__txt { max-width: 100%; width: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; }
.hs-msg--typing .hs-msg__txt { display: inline-flex; align-items: center; gap: .3rem; padding: .85rem 1rem; }
.hs-msg--typing i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--hs-orange); animation: hs-dot 1s infinite ease-in-out; }
.hs-msg--typing i:nth-child(2) { animation-delay: .15s; }
.hs-msg--typing i:nth-child(3) { animation-delay: .3s; }
.hs-typing__label { margin-left: .4rem; font-size: .8rem; color: var(--hs-muted); font-weight: 700; }
@keyframes hs-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

.hs-opts { display: grid; gap: .55rem; }
.hs-opt {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%;
  min-height: 3rem; padding: .55rem 1rem; text-align: left;
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--hs-ink);
  background: #fff; border: 2px solid #D8C9AE; border-radius: 14px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.hs-opt::after { content: "›"; font-size: 1.3rem; color: var(--hs-rust); line-height: 1; }
@media (hover: hover) { .hs-opt:hover { border-color: var(--hs-rust); background: var(--hs-rust-soft); } }
.hs-nowrap { white-space: nowrap; }
.hs-opt:active { transform: scale(.99); }
@media (min-width: 576px) { .hs-opts { grid-template-columns: 1fr 1fr; } }
.hs-chk__back {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 2.6rem; margin-top: .5rem; padding: .2rem .4rem;
  background: none; border: 0; color: var(--hs-muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.hs-chk__back:hover { color: var(--hs-rust); }
.hs-chk__final { display: grid; gap: .6rem; }
.hs-chk__final .hs-chk__back { justify-self: center; margin-top: 0; }

.hs-result { display: grid; gap: .7rem; }
.hs-result__sum {
  display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #2B1A0F, #4A250F); color: #fff; font-size: .92rem; line-height: 1.7;
}
.hs-result__sum > .hs-ico { width: 1.6rem; height: 1.6rem; color: var(--hs-gold); margin-top: .1rem; }
.hs-num { font-size: 1.35rem; color: var(--hs-gold); padding: 0 .1em; }
.hs-num--soft { color: #FFD9A8; }
.hs-result__tip { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .7rem .9rem; border-radius: 12px; background: var(--hs-gold-soft); font-size: .85rem; line-height: 1.7; }
.hs-result__tip .hs-ico { color: var(--hs-rust); margin-top: .2rem; }
.hs-rcard { background: #fff; border: 1px solid var(--hs-line); border-left: 6px solid var(--hs-rust); border-radius: 14px; padding: .85rem 1rem; }
.hs-rcard--check { border-left-color: var(--hs-gold-deep); }
.hs-rcard__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.hs-rcard__head strong { font-size: 1rem; }
.hs-rcard__ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--hs-rust-soft); color: var(--hs-rust); }
.hs-rcard__ico .hs-ico { width: 1.1rem; height: 1.1rem; }
.hs-rcard__badge { margin-left: auto; padding: .05rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 800; background: var(--hs-rust); color: #fff; }
.hs-rcard--check .hs-rcard__badge { background: var(--hs-gold); color: var(--hs-ink); }
.hs-rcard ul { margin: .2rem 0 .3rem; padding-left: 1.2rem; font-size: .88rem; line-height: 1.75; }
.hs-rcard__why { margin: 0; font-size: .78rem; color: var(--hs-muted); line-height: 1.6; }

/* 速查頁面內嵌版 */
.hs-asst-inline .hs-chk { background: #fff; border: 1px solid var(--hs-line); border-radius: 24px; overflow: hidden; box-shadow: var(--hs-shadow-lg); }
.hs-asst-inline .hs-chk__log { overflow: visible; }

/* 從速查帶入的提示 */
.hs-alert--ai { display: flex; gap: .5rem; align-items: flex-start; background: linear-gradient(135deg, #FFF8DA, #FFEDC2); border: 2px solid #F2D68A; color: var(--hs-ink); font-weight: 600; }
.hs-alert--ai .hs-ico { color: var(--hs-rust); margin-top: .15rem; flex: none; }

@media (max-width: 380px) { .hs-hero--ai .hs-hero__title { font-size: 1.75rem; } }

/* =========================================================
   第三版：字級放大不跑版、內頁文章版面
   ========================================================= */
body.hs-home, body.hs-inner { overflow-x: hidden; }
@supports (overflow: clip) { body.hs-home, body.hs-inner { overflow-x: clip; } }
.hs-fs, .hs-fs button, .hs-fs__label, .hs-nav__toggle, .hs-header__cta { white-space: nowrap; }
.hs-header__bar { flex-wrap: nowrap; }
.hs-header__tools { flex: none; }
/* 放不下時改用選單按鈕（由 header.php 內的 hsFit 判斷） */
.hs-header.is-compact .hs-nav { display: none; }
.hs-header.is-compact .hs-menu-btn { display: inline-flex; }
.hs-header.is-tight .hs-header__cta { display: none; }
/* 大字級時縮小 Logo，讓出空間 */
html[data-fs="l"] .hs-logo img, html[data-fs="xl"] .hs-logo img { height: 46px; }
html[data-fs="xl"] .hs-dock a { font-size: .62rem; }
html[data-fs="xl"] .hs-dock a .hs-ico { width: 1.35rem; height: 1.35rem; }

/* ---------- 文章標題區 ---------- */
.hs-ahead {
  position: relative; color: #fff; padding: 1.6rem 0 4.2rem; overflow: hidden;
  background:
    radial-gradient(55% 120% at 100% 0%, rgba(240, 122, 42, .35), transparent 60%),
    radial-gradient(40% 90% at 0% 100%, rgba(251, 208, 22, .14), transparent 60%),
    var(--hs-night);
}
.hs-ahead::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hs-ahead .container { position: relative; z-index: 1; }
.hs-crumb--light { color: #D9C7AE; }
.hs-crumb--light a { color: var(--hs-gold) !important; }
.hs-ahead .hs-eyebrow { margin-top: .4rem; }
.hs-ahead__title { color: #fff !important; font-family: var(--hs-serif); font-size: 1.8rem; font-weight: 900; margin: 0 0 .7rem; line-height: 1.35; }
.hs-ahead__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; font-size: .8rem; color: #E3D3BE; }
.hs-ahead__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.hs-ahead__meta .hs-ico { color: var(--hs-gold); }
@media (min-width: 992px) { .hs-ahead { padding: 2.2rem 0 5rem; } .hs-ahead__title { font-size: 2.4rem; } }

/* ---------- 文章主體＋側欄 ---------- */
.hs-article-wrap { position: relative; margin-top: -2.8rem; padding-bottom: 3.2rem; }
.hs-article {
  background: #fff; border: 1px solid var(--hs-line); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(74, 40, 10, .12); padding: 1.3rem; overflow: hidden;
}
@media (min-width: 768px) { .hs-article { padding: 2.2rem 2.4rem; } }
.hs-article__banner { margin: -1.3rem -1.3rem 1.6rem; }
@media (min-width: 768px) { .hs-article__banner { margin: -2.2rem -2.4rem 2rem; } }
.hs-article__banner img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.hs-article .hs-prose > :first-child { margin-top: 0; }

.hs-aside__inner { display: grid; gap: 1.1rem; }
@media (min-width: 992px) { .hs-aside__inner { position: sticky; top: calc(var(--hs-header-h) + 1.2rem); } }
.hs-side-card { background: #fff; border: 1px solid var(--hs-line); border-radius: 20px; padding: 1.2rem; box-shadow: var(--hs-shadow); display: grid; gap: .7rem; }
.hs-side-card__title { font-size: 1.02rem !important; font-weight: 800; margin: 0; }
.hs-side-card p { margin: 0; font-size: .88rem; line-height: 1.75; }
.hs-side-nav ul { list-style: none; margin: 0; padding: 0; }
.hs-side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 2.6rem; padding: .45rem .7rem; border-radius: 12px;
  color: var(--hs-ink) !important; text-decoration: none; font-weight: 600; line-height: 1.45;
}
.hs-side-nav a .hs-ico { color: var(--hs-rust); opacity: .6; }
.hs-side-nav a:hover { background: var(--hs-cream); }
.hs-side-nav a[aria-current="page"] { background: var(--hs-grad-rust); color: #fff !important; }
.hs-side-nav a[aria-current="page"] .hs-ico { color: var(--hs-gold); opacity: 1; }
.hs-side-ai { color: #fff; border-color: transparent; background: var(--hs-night) radial-gradient(90% 100% at 100% 0, rgba(240, 122, 42, .38), transparent 60%); }
.hs-side-ai .hs-side-card__title { color: #fff !important; }
.hs-side-ai p { color: #E3D3BE; }
.hs-side-addr { display: flex; gap: .4rem; font-size: .8rem; color: var(--hs-muted) !important; text-decoration: none; }
.hs-side-addr .hs-ico { color: var(--hs-rust); margin-top: .25rem; }

/* ---------- 後台內容排版強化 ---------- */
.hs-prose table { width: 100% !important; margin: 1.2rem 0; border: 1px solid var(--hs-line); border-radius: 12px; }
.hs-prose tr:nth-child(even) td { background: #FFFCF4; }
.hs-prose td, .hs-prose th { width: auto !important; height: auto !important; }
.hs-prose [style*="yellow" i], .hs-prose [style*="#ffff00" i], .hs-prose [style*="rgb(255, 255, 0)"] {
  background: var(--hs-gold-soft) !important; color: var(--hs-rust-dark) !important;
  padding: .05em .4em; border-radius: 6px; font-weight: 700;
}
.hs-prose ul li::marker { color: var(--hs-rust); }
.hs-prose blockquote { margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 5px solid var(--hs-gold); background: var(--hs-cream); border-radius: 0 12px 12px 0; }

/* ---------- 表格自動轉成的分類卡片 ---------- */
.hs-svc { margin: .4rem 0 1rem; }
.hs-svc__head { display: grid; gap: .3rem; margin-bottom: 1.3rem; }
.hs-svc__title { margin: 0 !important; padding-left: 0 !important; border-left: 0 !important; font-family: var(--hs-serif); font-size: 1.45rem !important; }
.hs-svc__sum { margin: 0; color: var(--hs-muted); font-size: .88rem; }
.hs-svc__find { margin-top: .8rem; padding: 1rem; border-radius: 16px; background: var(--hs-cream); border: 1px solid var(--hs-line); }
.hs-svc__find .hs-label { font-size: .88rem; }
.hs-svc__findrow { position: relative; }
.hs-svc__findico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--hs-rust); display: flex; }
.hs-svc__findrow .hs-input { padding-left: 2.6rem; }
.hs-svc__status { margin: .4rem 0 0; font-size: .82rem; font-weight: 700; color: var(--hs-rust); min-height: 1em; }
.hs-svc__status:empty { display: none; }
.hs-svc__grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .hs-svc__grid { grid-template-columns: 1fr 1fr; } }
.hs-svc__card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hs-line); border-radius: 18px; padding: 1.1rem 1.1rem .9rem;
  box-shadow: 0 4px 16px rgba(74, 40, 10, .06); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.hs-svc__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hs-grad-rust); }
.hs-svc__card:hover { box-shadow: 0 16px 40px rgba(164, 63, 15, .14); transform: translateY(-2px); }
.hs-svc__card[hidden] { display: none; }
.hs-svc__chead { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.hs-svc__ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--hs-grad-rust); color: #fff; box-shadow: 0 6px 14px rgba(164, 63, 15, .25); }
.hs-svc__ico .hs-ico { width: 1.35rem; height: 1.35rem; }
.hs-svc__name { margin: 0 !important; font-size: 1.05rem !important; font-weight: 800; color: var(--hs-ink) !important; line-height: 1.35; flex: 1; min-width: 0; }
.hs-svc__count { flex: none; padding: .05rem .55rem; border-radius: 999px; background: var(--hs-gold-soft); color: var(--hs-rust-dark); font-size: .72rem; font-weight: 800; }
.hs-svc__list { list-style: none; margin: 0 0 .8rem; padding: 0; flex: 1; }
.hs-svc__list li { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem 0; border-bottom: 1px dashed var(--hs-line); font-size: .9rem; line-height: 1.55; }
.hs-svc__list li:last-child { border-bottom: 0; }
.hs-svc__list li[hidden] { display: none; }
.hs-svc__list li.is-hit { background: var(--hs-gold-soft); border-radius: 8px; padding-left: .4rem; padding-right: .4rem; }
.hs-svc__chk { flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: .15rem; border-radius: 50%; background: var(--hs-rust-soft); color: var(--hs-rust); }
.hs-svc__chk .hs-ico { width: .8rem; height: .8rem; stroke-width: 3.2; }
.hs-svc__ask {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; align-self: stretch;
  min-height: 2.6rem; padding: .4rem .9rem; border-radius: 12px; border: 2px solid var(--hs-rust);
  color: var(--hs-rust) !important; text-decoration: none !important; font-weight: 800; font-size: .88rem;
}
.hs-svc__ask:hover { background: var(--hs-rust); color: #fff !important; }
.hs-svc__ask .hs-ico { width: 1rem; height: 1rem; }

/* 桌機頂部細條：放字級切換，讓主選單有足夠空間 */
.hs-topbar { display: none; background: var(--hs-cream); border-bottom: 1px solid var(--hs-line); font-size: .7rem; }
.hs-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 2.2rem; }
.hs-topbar__txt { display: inline-flex; align-items: center; gap: .3rem; color: var(--hs-muted); }
.hs-topbar__txt .hs-ico { color: var(--hs-rust); }
.hs-topbar .hs-fs { display: inline-flex; background: #fff; padding: 2px; }
.hs-topbar .hs-fs button { min-height: 1.6rem; min-width: 2rem; font-size: .72rem; }
.hs-topbar .hs-fs__label { font-size: .72rem; }
@media (min-width: 1200px) { .hs-topbar { display: block; } }
.hs-header.is-compact .hs-topbar .hs-fs { display: inline-flex; }
.hs-header::before { position: relative; z-index: 1; }
@media (min-width: 1200px) {
  .hs-nav { margin-left: .6rem; }
  .hs-nav__toggle { padding: .3rem .55rem; font-size: .85rem; }
}
@media (min-width: 1400px) { .hs-nav__toggle { padding: .3rem .75rem; font-size: .9rem; } }
@media (min-width: 992px) { body.hs-has-aside .hs-fab { display: none; } }
.hs-hero__q { display: inline-block; font-size: .72em; white-space: nowrap; color: #F3E6D6; margin-bottom: .2em; }

/* 身份選項：文字較長，手機一行一個 */
.hs-chips--wide { grid-template-columns: 1fr; }
@media (min-width: 768px) { .hs-chips--wide { grid-template-columns: 1fr 1fr; } }
.hs-chips--wide .hs-chip span { justify-content: flex-start; text-align: left; padding: .5rem .9rem; }
.hs-form-intro { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: 14px; background: var(--hs-cream); border: 1px solid var(--hs-line); font-size: .9rem; line-height: 1.7; color: var(--hs-ink); }
.hs-form-intro .hs-ico { flex: none; color: var(--hs-rust); margin-top: .2rem; }

/* ---------- 分享區塊（LINE／複製短網址） ---------- */
.hs-share {
  margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--hs-line); box-shadow: var(--hs-shadow);
}
.hs-share__label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; font-weight: 800; font-size: .95rem; }
.hs-share__label .hs-ico { color: var(--hs-rust); }
.hs-share__btns { display: grid; gap: .6rem; }
@media (min-width: 576px) { .hs-share__btns { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.hs-share__url {
  width: 100%; margin-top: .7rem; padding: .45rem .8rem; border: 1px dashed #CDBFA6; border-radius: 10px;
  background: var(--hs-cream); color: var(--hs-muted); font: inherit; font-size: .8rem; text-align: center;
}
/* LINE 綠色按鈕 */
.hs-btn--line { background: #06C755; color: #fff !important; box-shadow: 0 4px 14px rgba(6, 199, 85, .3); }
.hs-btn--line:hover { background: #05B04B; }
.hs-input--url { font-size: .85rem; font-weight: 700; color: var(--hs-rust); text-align: center; }
.hs-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; word-break: break-all; color: var(--hs-muted); margin: 0 0 .5rem; }
@media (max-width: 575.98px) { .hs-card--ok .hs-actions .hs-btn { flex: 1 1 100%; } }
