/* 網站頁首（獨立頁專用，2026-11-16）
   選擇器多掛一層 .nh，蓋過同事頁 features.css 的 .fx-site .nh-in／.fx-site .nh-logo img（寬距、logo 尺寸不同）。
   同事交稿的獨立頁、待上架內容打包的小編攻略快照，自帶版型不載 /n.css。
   這支只放全站頁首＋手機抽屜的樣式（和 n.css 同一套數值），讓所有文章頁的頁首長得一樣；
   改 n.css 的頁首時，這裡要跟著改。變數只掛在 .nh／.nd 上，不影響頁面自己的版型。 */
.nh,.nd{--nv:#161514;--tx:#6d6a65;--ln:#ece4dc;--lk:#c8361f;--bg3:#f2eee8;--sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-family:var(--sans);line-height:1.5;-webkit-text-size-adjust:100%}
.nh *,.nd *{box-sizing:border-box}
.nh{position:sticky;top:env(safe-area-inset-top,0px);z-index:90;background:rgba(255,255,255,.82);border-bottom:1px solid transparent;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);transition:box-shadow .4s,background .4s;margin:0}
.nh.pv-scrolled{background:rgba(255,255,255,.9);box-shadow:0 1px 0 rgba(40,28,20,.06),0 8px 24px -12px rgba(40,28,20,.18)}
.nh .nh-in{max-width:1240px;margin:0 auto;padding:12px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;justify-content:flex-start;gap:28px}
.nh-logo{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--nv);flex:none}
.nh .nh-logo img{display:block;height:44px;width:auto;object-fit:initial;max-width:none;border-radius:0;box-shadow:none}
.nh nav{display:flex;gap:24px;font:500 15px var(--sans);flex:1;min-width:0;margin:0;padding:0;background:none;border:0;position:static}
.nh nav a{color:var(--nv);text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;white-space:nowrap;background:none}
.nh nav a:hover,.nh nav a[aria-current]{border-color:var(--lk);color:var(--lk)}
.nh form{display:flex;align-items:center;gap:6px;background:var(--bg3);border-radius:99px;padding:6px 6px 6px 14px;flex:0 1 280px;min-width:0;margin:0}
.nh form svg{width:16px;height:16px;flex:none;color:#8a857e}
.nh input{border:0;background:none;outline:0;font:400 14px var(--sans);color:var(--nv);min-width:0;width:0;flex:1;padding:4px 0;margin:0;box-shadow:none}
.nh form button{border:0;background:var(--lk);background-image:linear-gradient(180deg,rgba(255,255,255,.16),rgba(0,0,0,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 4px 12px -4px rgba(200,54,31,.55);color:#fff;font:700 13px var(--sans);border-radius:99px;padding:6px 14px;cursor:pointer;min-height:0;margin:0}
.nh .member,.nh .mapgate{display:none}
.nh .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nh-ic{display:none}
@media (max-width:1180px){.nh .nh-in{flex-wrap:wrap;gap:10px 16px}.nh nav{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:none;gap:20px}.nh nav::-webkit-scrollbar{display:none}.nh form{flex:1 1 160px}}
@media (max-width:760px){
  .nh .nh-logo img{height:34px}
  .nh .nh-in{flex-wrap:wrap;gap:0 2px;padding-top:6px;padding-bottom:0}
  .nh-logo{flex:1}
  .nh-ic{display:grid;place-items:center;width:40px;height:40px;border:0;background:none;color:var(--nv);padding:0;cursor:pointer;box-shadow:none}
  .nh-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .nh form{order:4;flex:1 1 100%;display:none;margin:4px 0 6px}
  .nh.s-open form{display:flex}
  .nh nav{order:5;flex-basis:auto;width:calc(100% + 32px);margin:0 -16px;padding:2px 16px 0;gap:22px;font-size:15px}
  .nh nav a{padding:6px 0 9px}
}
/* 手機選單抽屜 */
.nd{position:fixed;inset:0;z-index:200}
.nd[hidden]{display:none}
.nd-mask{position:absolute;inset:0;background:rgba(22,21,20,.35)}
.nd-pn{position:absolute;top:0;right:0;bottom:0;width:min(86%,360px);background:#fff;overflow-y:auto;padding:8px 22px 0;display:flex;flex-direction:column}
.nd-x{display:flex;justify-content:flex-end}
.nd .nh-ic{display:grid;place-items:center;width:40px;height:40px;border:0;background:none;color:var(--nv);padding:0;cursor:pointer}
.nd .nh-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.nd ul{list-style:none;margin:0;padding:0}
.nd li{margin:0}
.nd li a{display:flex;justify-content:space-between;align-items:center;padding:15px 2px;border-bottom:1px solid var(--ln);font:700 20px/1.3 var(--sans);color:var(--nv);text-decoration:none}
.nd li a span{color:var(--tx);font-weight:400;font-size:18px}
.nd h2{margin:22px 0 2px;font:700 13px var(--sans);color:var(--lk);letter-spacing:.08em}
.nd-links{display:flex;gap:18px;margin:22px 0 20px;font-size:14px}
.nd-links a{color:var(--tx);text-decoration:none}
.nd .mapgate,.nd-foot{display:none}
body.nd-on{overflow:hidden}
/* 進度條接在頁首正下方（--nhh 由 nh.js 量頁首實際高度），不被頁首蓋住 */
.g-prog,.fx-guide .g-prog{top:calc(env(safe-area-inset-top,0px) + var(--nhh,69px))!important}
.mg-progress{top:var(--nhh,69px)!important;z-index:89!important}

/* 頁首語言選單（2026-11-23）：電腦版放在搜尋旁，手機版是地球圖示，放在搜尋鈕前面 */
.nh-lang{position:relative;flex:none;font:500 14px var(--sans)}
.nh-lang summary{list-style:none;display:flex;align-items:center;gap:4px;min-height:32px;min-width:32px;padding:0 4px;color:var(--nv);cursor:pointer;border-radius:8px}
.nh-lang summary::-webkit-details-marker{display:none}
.nh-lang summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.nh-lang-m{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--ln);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:6px;display:grid;min-width:132px;z-index:95}
.nh-lang-m a{padding:8px 12px;border-radius:6px;color:var(--nv);text-decoration:none;white-space:nowrap}
.nh-lang-m a:hover{background:var(--soft,#F6F3EF)}
.nh-lang-m a[aria-current]{font-weight:700;color:var(--lk)}
.nh-zhonly{margin:0;padding:10px 16px;background:#FFF6E0;color:#5B4A1E;font:500 14px var(--sans);text-align:center}
@media (max-width:760px){.nh-lang summary{width:40px;height:40px;justify-content:center;padding:0}.nh-lang summary span{display:none}.nh-lang summary svg{width:22px;height:22px}}
