/* ==========================================================================
   iso-header.css｜全站共用頁首（白色浮動膠囊選單）
   來源：網站現有 shared.css ＋ nav-logo-unified.css ＋ unified-floating-nav.css 彙整，數值不變。
   規格：寬 1180 px、高 78 px、固定在視窗上方（距上緣 16 px）；≤960 px 改為「選單」按鈕。
   使用：頁面 <head> 引入本檔；<body> 開頭貼 parts/iso-header.html；頁尾前引入 js/iso-header.js
   規定：不可在單頁內覆寫本檔的任何規則。要改請回報，統一修改。
   ========================================================================== */
.site-header,
.site-header * { box-sizing: border-box; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  right: 0;
  left: 0;
  width: auto;
  padding-inline: 20px;
  border: 0;
  background: transparent;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #142b43;
}

.site-header .nav-shell {
  display: flex;
  align-items: center;
  width: min(1180px, 100%);
  max-width: 1180px;
  min-height: 78px;
  margin-inline: auto;
  padding: 8px 12px 8px 22px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 38px rgba(29, 48, 68, .14);
  color: #142b43;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #142b43;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}
.site-header .brand span { color: #142b43; }
.site-header .nav-shell > .brand img {
  display: block;
  width: 68px;
  height: 52px;
  object-fit: contain;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.site-header .nav-links a {
  color: #536174;
  opacity: 1;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease;
}
.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] { color: #559eaa; }
.site-header .nav-links a[aria-current="page"] { position: relative; }
.site-header .nav-links a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #559eaa;
  content: "";
}
.site-header .nav-links .nav-home {
  padding: 10px 18px;
  border-radius: 999px;
  background: #e2f0ef;
  color: #317f86;
}
.site-header .nav-links .nav-home:hover { color: #317f86; background: #d6ebe8; }
.site-header .nav-links .nav-home::after { display: none; }
.site-header .nav-links a:focus-visible,
.site-header .menu-toggle:focus-visible,
.site-header .brand:focus-visible { outline: 3px solid #f1c96a; outline-offset: 4px; }

.site-header .nav-links .nav-cta {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #559eaa, #9d8fae);
  box-shadow: 0 8px 22px rgba(85, 158, 170, .2);
  color: #fff;
}
.site-header .nav-links .nav-cta:hover { color: #fff; filter: brightness(1.07); }

.site-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(73, 103, 126, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #142b43;
  font: inherit;
  font-size: .78rem;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .site-header .nav-shell > .brand img { width: 58px; height: 45px; }
}

@media (max-width: 960px) {
  .site-header { top: 10px; padding-inline: 12px; }
  .site-header .nav-shell { min-height: 60px; padding: 7px 12px 7px 15px; }
  .site-header .menu-toggle {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
  }
  .site-header .nav-links {
    position: absolute;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 54px rgba(48, 83, 107, .18);
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links a { padding: 11px 14px; }
  .site-header .nav-links .nav-cta { margin-top: 6px; text-align: center; }
}

@media (max-width: 700px) {
  .site-header .nav-shell > .brand img { width: 60px; height: 46px; }
}
/* 跳到主要內容（鍵盤使用者） */
.skip-link{position:absolute;left:12px;top:-60px;z-index:200;padding:10px 16px;border-radius:8px;background:#17374d;color:#fff;font-weight:800}
.skip-link:focus{top:12px}
