@charset "UTF-8";

/* ============================================================
   navfooter-count.css
   夏悅窗飾：導航選單 + 頁尾 + 頁尾工具列（計數器）+ 返回頂端
   ------------------------------------------------------------
   0. 色彩與尺寸變數
   1. 頁首／頁尾共用基礎（只作用在 .nav / .foot / 工具列 / TOP）
   2. 導航選單（桌面版下拉）
   3. 手機版三條線選單（MENU）
   4. 頁尾 footer
   5. 頁尾工具列：桌面版
   6. 頁尾工具列：手機版（固定底部）
   7. 返回頂端 TOP 按鈕
   8. 響應式
   9. 減少動態、列印
   ※ 首頁的 <style> 也有同一組 :root 變數，數值相同；
     其他頁面只要連結本檔，導航與頁尾就能獨立正常顯示。
   ============================================================ */


/* ============================================================
   0. 色彩與尺寸變數
   ============================================================ */
:root{
  --cream:#F5F1EA;      /* 導覽列底色 */
  --paper:#FAF8F4;      /* 頁面底 */
  --linen:#EFE8DE;      /* 下拉選單 hover */
  --sand:#D7C9B8;
  --taupe:#B2967D;
  --walnut:#7D5A44;
  --bark:#4A342A;       /* 內文標題色 */
  --foot:#5E4334;       /* 頁尾底色 */
  --body:#5D4A3F;
  --line:#E3D8CA;
  --r:6px;
  --serif:"Noto Serif TC","Songti TC","PMingLiU",serif;
  --sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  --nav-h:112px;
  --gut:clamp(20px,4.4vw,64px);
  --max:1300px;

  /* 頁尾工具列（要換色只改這幾行） */
  --tb-bg:#36261F;         /* 工具列底色：深咖啡，比頁尾 #5E4334 深兩階 */
  --tb-text:#FFFFFF;       /* 工具列文字與圖示：白色 */
  --tb-hover:#D7C9B8;      /* 工具列連結 hover：沙色 */
  --tb-line:#B2967D;       /* 上方細線 2px */
  --tb-line-h:2px;
  --tb-h:66px;             /* 手機工具列高度（不含 iPhone 底部安全區） */

  /* TOP 鍵：比內文區塊底色深、比頁尾淺 */
  --top-bg:#D7C9B8;
  --top-hv:#E3D8CA;
  --top-ink:#000000;       /* 箭頭與 TOP 字：黑色 */
}


/* ============================================================
   1. 頁首／頁尾共用基礎
   ============================================================ */
:where(.nav,.foot,.botry-v2-footer-toolbar,.botry-v2-mobile-toolbar,.back-to-top),
:where(.nav,.foot,.botry-v2-footer-toolbar,.botry-v2-mobile-toolbar,.back-to-top) *,
:where(.nav,.foot,.botry-v2-footer-toolbar,.botry-v2-mobile-toolbar,.back-to-top) *::before,
:where(.nav,.foot,.botry-v2-footer-toolbar,.botry-v2-mobile-toolbar,.back-to-top) *::after{box-sizing:border-box}
:where(.nav,.foot) ul{list-style:none;margin:0;padding:0}
:where(.nav,.foot) a{color:inherit;text-decoration:none}
:where(.nav,.foot) img{max-width:100%;height:auto;display:block}
:where(.nav,.foot) button{font:inherit}


/* ============================================================
   2. 導航選單（header）
   ============================================================ */
.nav{position:sticky;top:0;z-index:100;background:var(--cream);border-bottom:1px solid rgba(178,150,125,.25)}
/* 導覽列上方補一條同色底（在畫面外）：手機像素換算有小數時，
   捲動中導覽列上緣不會再露出一條極細的內文縫隙 */
.nav::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:4px;background:var(--cream);pointer-events:none}
.nav-in{max-width:var(--max);margin:0 auto;height:var(--nav-h);padding:0 var(--gut);display:flex;align-items:center;gap:32px}
.logo{flex-shrink:0;display:block}
.logo img{width:96px;height:96px}
/* logo 單獨一層繪製：手機捲動時不跟著小數像素四捨五入而上下微微抖動
   （只加在 logo 圖片，不可加在 .nav，否則手機選單 .menu 的 fixed 定位會跑掉） */
.logo img{transform:translateZ(0);backface-visibility:hidden}
.nav nav{margin-left:auto}
.menu{display:flex;align-items:center;gap:clamp(20px,2.4vw,42px)}
.menu>li{position:relative;display:flex;align-items:center}
.menu>li>a{font-size:16.5px;letter-spacing:.16em;color:var(--bark);padding:14px 0;position:relative;transition:color .3s}
/* 最後一項去掉字距尾巴，文字右緣切齊頁尾「官方客服」LINE 條碼右緣 */
.menu>li:last-child>a{margin-right:-.16em}
.menu>li>a::after{content:"";position:absolute;left:50%;right:50%;bottom:6px;height:2px;border-radius:2px;background:var(--taupe);transition:left .35s,right .35s}
.menu>li>a:hover{color:var(--walnut)}
.menu>li>a:hover::after{left:0;right:0}
/* 目前頁面 highlight */
/* 目前頁面；aria-current="true" 用在下拉子頁的上層選單（例：服務流程頁時「關於夏悅」也亮） */
.menu>li>a[aria-current="page"],.menu>li>a[aria-current="true"]{color:var(--walnut);font-weight:500}
.menu>li>a[aria-current="page"]::after,.menu>li>a[aria-current="true"]::after{left:0;right:0;background:var(--walnut)}
.sub-btn{background:none;border:0;padding:8px 0 8px 6px;cursor:pointer;color:var(--taupe);line-height:0}
.sub-btn svg{transition:transform .3s}
/* 下拉面板 */
.sub{position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%,6px);min-width:200px;background:var(--cream);border-top:2px solid var(--taupe);border-radius:0 0 var(--r) var(--r);box-shadow:0 18px 30px -24px rgba(74,52,42,.4);padding:12px 0;opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s}
.sub.cols{display:grid;grid-template-columns:1fr 1fr;min-width:310px}
.sub a{display:block;padding:8px 24px;font-size:14.5px;letter-spacing:.12em;color:var(--body);transition:color .2s,background .2s}
.sub a:hover{color:var(--walnut);background:var(--linen)}
.has-sub:hover .sub,.has-sub.open .sub,.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:translate(-50%,0)}
.menu .ext{white-space:nowrap}
.menu .ext span{font-size:11px;margin-left:2px;color:var(--taupe)}


/* ============================================================
   3. 手機版三條線選單（MENU）
   ============================================================ */
.burger{display:none;margin-left:auto;background:none;border:0;padding:0;height:44px;cursor:pointer;align-items:center;gap:2px;color:var(--bark)}
.burger .bt{font:500 12.5px/1 var(--serif);letter-spacing:.24em}
.burger .bi{position:relative;width:40px;height:44px}
.burger i{position:absolute;left:9px;right:9px;height:1px;background:var(--bark);transition:transform .3s,opacity .3s}
.burger i:nth-child(1){top:16px}.burger i:nth-child(2){top:22px}.burger i:nth-child(3){top:28px}
.nav.open .burger i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav.open .burger i:nth-child(2){opacity:0}
.nav.open .burger i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
/* 選單打開時，整個導覽列提到工具列與 TOP 鍵之上，選單完整顯示、不被底部工具列蓋住 */
.nav.open{z-index:10100}


/* ============================================================
   4. 頁尾 footer
   ============================================================ */
.foot{background:var(--foot);color:rgba(245,241,234,.78);font-size:13.5px;line-height:1.9;letter-spacing:.06em}
.foot a{transition:color .25s}
.foot a:hover{color:#fff}
.foot-in{max-width:var(--max);margin:0 auto;padding:clamp(56px,6vw,84px) var(--gut) 0;display:grid;grid-template-columns:1.15fr 1.05fr .75fr 1.5fr;gap:clamp(28px,4vw,56px)}
.foot .brand-t{font:500 26px/1.2 var(--serif);color:var(--cream);letter-spacing:.24em;margin:0 0 8px}
.foot .tag{font-size:12px;letter-spacing:.2em;color:rgba(245,241,234,.55);margin-bottom:24px}
.foot h3{font:500 13px/1 var(--sans);color:var(--sand);letter-spacing:.26em;margin:6px 0 18px}
.foot dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 14px}
.foot dt{color:rgba(245,241,234,.5);white-space:nowrap}
.foot dd{margin:0;color:var(--cream)}
.foot dd a{white-space:nowrap}
.addr li{margin-bottom:12px}
.addr small{display:block;font-size:12px;color:var(--sand);letter-spacing:.14em}
.addr a{color:var(--cream);border-bottom:1px solid rgba(245,241,234,.2)}
.sitemap{columns:2;column-gap:20px}
.sitemap li{margin-bottom:6px;break-inside:avoid;white-space:nowrap}
.qr{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.qr a.code{display:block;background:#fff;padding:10px;max-width:172px;border-radius:var(--r)}
.qr a.code img{width:100%;height:auto;aspect-ratio:1}
.qr p{margin:12px 0 0;font-size:12.5px;line-height:1.75;color:rgba(245,241,234,.62)}
.qr p b{display:block;color:var(--cream);font-weight:500;font-size:13px;letter-spacing:.06em}
.social{display:flex;gap:22px;margin-top:22px}
.social a{display:inline-flex;align-items:center;gap:8px;color:var(--cream)}
.foot-bt{max-width:var(--max);margin:44px auto 0;padding:20px var(--gut) 26px;border-top:1px solid rgba(245,241,234,.14);text-align:center;font-size:12px;color:rgba(245,241,234,.55)}


/* ============================================================
   5. 頁尾工具列：桌面版（接在頁尾下方，不固定）
   ============================================================ */
.botry-v2-footer-toolbar{
  position:relative;
  background:var(--tb-bg);
  color:var(--tb-text);
  padding:calc(6px + var(--tb-line-h)) 0 6px;   /* 上方多留細線的高度 */
  width:100%;
  font-family:var(--sans);
}
/* 上方細線：2px #B2967D */
.botry-v2-footer-toolbar::before,
.botry-v2-mobile-toolbar::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:var(--tb-line-h);
  background:var(--tb-line);
}
.botry-v2-footer-toolbar-container{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.botry-v2-footer-toolbar-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:30px}
.botry-v2-footer-info-left,
.botry-v2-footer-info-right{display:flex;align-items:center;gap:15px;color:var(--tb-text);font-size:.9rem;line-height:1.6;flex-wrap:wrap}
.botry-v2-footer-info-left{justify-content:flex-start}
.botry-v2-footer-info-right{justify-content:flex-end}
.botry-v2-footer-info-left a,
.botry-v2-footer-info-right a{color:var(--tb-text);text-decoration:none;white-space:nowrap;transition:color .2s ease}
.botry-v2-footer-info-left a:hover,
.botry-v2-footer-info-right a:hover{color:var(--tb-hover);text-decoration:underline;text-underline-offset:3px}
.botry-v2-footer-separator{color:rgba(255,255,255,.5);margin:0 5px;font-size:.8rem}


/* ============================================================
   6. 頁尾工具列：手機版（固定在底部）
   ============================================================ */
.botry-v2-mobile-toolbar{
  display:none;                 /* 992px 以下才顯示 */
  position:fixed;left:0;bottom:0;width:100%;
  z-index:10001;
  height:calc(var(--tb-h) + env(safe-area-inset-bottom));
  padding:calc(6px + var(--tb-line-h)) 0 calc(6px + env(safe-area-inset-bottom));
  background:var(--tb-bg);
  box-shadow:0 -2px 8px rgba(0,0,0,.12);
  text-align:center;
  font-family:var(--sans);
}
.botry-v2-mobile-toolbar-container{max-width:1200px;margin:0 auto;padding:0 10px;height:100%}
.botry-v2-mobile-toolbar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;width:100%;height:100%;align-items:center}
.botry-v2-mobile-tool-item{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--tb-text);padding:3px;transition:transform .2s ease,opacity .2s ease;-webkit-tap-highlight-color:transparent}
.botry-v2-mobile-tool-item:hover{transform:scale(1.05);opacity:.8}

/* 四個按鈕：圖示與文字都是白色 */
.botry-v2-mobile-tool-icon{width:24px;height:24px;margin-bottom:3px;color:var(--tb-text)}
.botry-v2-mobile-tool-icon img{display:block;width:100%;height:100%;max-width:24px;max-height:24px;object-fit:contain;filter:brightness(0) invert(1)}
.botry-v2-mobile-tool-icon svg{display:block;width:100%;height:100%}
.botry-v2-mobile-tool-label{font-size:.72rem;line-height:1.4;text-align:center;color:var(--tb-text)}


/* ============================================================
   7. 返回頂端 TOP 按鈕（比內文底色深、比頁尾淺；箭頭黑色）
   ============================================================ */
.back-to-top{position:fixed;bottom:120px;right:15px;z-index:1000;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s ease,transform .3s ease,visibility .3s ease}
.back-to-top.show{opacity:1;visibility:visible}
.back-to-top:hover{transform:translateY(-3px)}
.twitter-arrow{width:54px;height:54px;border-radius:50%;background:var(--top-bg);border:1px solid rgba(74,52,42,.18);position:relative;box-shadow:0 8px 20px rgba(74,52,42,.22);transition:background .3s ease}
.back-to-top:hover .twitter-arrow{background:var(--top-hv)}
.twitter-arrow::before{content:'';position:absolute;width:0;height:0;top:38%;left:50%;transform:translate(-50%,-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:12px solid var(--top-ink)}
.twitter-arrow::after{content:'';position:absolute;width:6px;height:14px;background:var(--top-ink);bottom:14px;left:50%;transform:translateX(-50%);border-radius:2px}
.back-to-top::after{content:'TOP';font:700 .7rem/1 var(--sans);letter-spacing:2px;color:var(--top-ink)}


/* ============================================================
   8. 響應式
   ============================================================ */
@media (max-width:1240px){
  .menu{gap:22px}
  .menu>li>a{font-size:15.5px;letter-spacing:.12em}
  .menu>li:last-child>a{margin-right:-.12em}
}
@media (max-width:1100px){
  :root{--nav-h:88px}
  .logo img{width:74px;height:74px}
  .burger{display:flex}
  .menu{position:fixed;left:0;right:0;top:var(--nav-h);bottom:0;margin:0;background:var(--cream);flex-direction:column;align-items:stretch;gap:0;padding:8px var(--gut) 60px;overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .3s,transform .3s,visibility .3s}
  .nav.open .menu{opacity:1;visibility:visible;transform:none}
  .menu>li{border-bottom:1px solid var(--line);flex-wrap:wrap}
  .menu>li>a{font:500 17px/1 var(--serif);letter-spacing:.18em;padding:20px 0;flex:1}
  .menu>li:last-child>a{margin-right:0}
  .menu>li>a::after{display:none}
  .menu>li>a[aria-current="page"],.menu>li>a[aria-current="true"]{padding-left:12px;border-left:2px solid var(--walnut)}
  .sub-btn{padding:14px 4px 14px 20px}
  .has-sub.open .sub-btn svg{transform:rotate(180deg)}
  .sub,.sub.cols{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;background:none;padding:0 0 14px;min-width:0;width:100%;display:none;grid-template-columns:1fr 1fr}
  .has-sub:hover .sub{display:none}
  .has-sub.open .sub,.has-sub.open .sub.cols{display:grid;transform:none}
  .sub a{padding:9px 0;font-size:14.5px}
  .sub a:hover{background:none}
  /* 平板：頁尾改兩欄，避免四欄擠出畫面 */
  .foot-in{grid-template-columns:1fr 1fr}
}
/* 平板與手機：顯示固定工具列、隱藏桌面工具列，
   並在頁面底部留出工具列高度，頁尾版權宣告不會被擋住 */
@media (max-width:992px){
  .botry-v2-mobile-toolbar{display:block!important}
  .botry-v2-footer-toolbar{display:none!important}
  /* 只有頁面真的有手機工具列時才留空間，避免沒放工具列時底部出現空格。
     空間留在頁尾 .foot 裡（咖啡色），不放在 body（淺色底）：
     手機像素換算有小數時，工具列上緣不會再露出 1px 淺色底線；多留 2px 藏在工具列下面 */
  body:has(.botry-v2-mobile-toolbar) .foot{padding-bottom:calc(var(--tb-h) + env(safe-area-inset-bottom) + 2px)}
  /* 沒有 .foot 的頁面才改由 body 留空間 */
  body:has(.botry-v2-mobile-toolbar):not(:has(.foot)){padding-bottom:calc(var(--tb-h) + env(safe-area-inset-bottom))}
}
@media (max-width:760px){
  :root{--nav-h:80px}
  .logo img{width:66px;height:66px}
  .foot-in{grid-template-columns:1fr;gap:28px;padding-top:48px}
  .foot dl{font-size:13px}
  .sitemap{columns:3;column-gap:12px;font-size:13px}
  .qr{gap:14px}
  .qr a.code{max-width:none}
  .foot-bt{margin-top:30px}
  .social{justify-content:center}
}
/* 小手機：縮小 TOP 按鈕 */
@media (max-width:600px){
  .back-to-top{bottom:100px;right:10px}
  .twitter-arrow{width:46px;height:46px}
  .twitter-arrow::before{border-left-width:7px;border-right-width:7px;border-bottom-width:10px}
  .twitter-arrow::after{width:5px;height:12px;bottom:12px}
}


/* ============================================================
   9. 減少動態、列印
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  :where(.nav,.foot,.botry-v2-mobile-toolbar,.back-to-top),
  :where(.nav,.foot,.botry-v2-mobile-toolbar,.back-to-top) *,
  :where(.nav,.foot,.botry-v2-mobile-toolbar,.back-to-top) *::before,
  :where(.nav,.foot,.botry-v2-mobile-toolbar,.back-to-top) *::after{transition:none!important;animation:none!important}
}
@media print{
  .botry-v2-mobile-toolbar,.botry-v2-footer-toolbar,.back-to-top,.burger{display:none!important}
  body{padding-bottom:0!important}
  .nav{position:static}
}
