/* ── WinChart 共用導覽列樣式 (nav.css) ──────────────────────
   由 nav.js 渲染出的 <nav> 結構共用此樣式；所有頁面皆載入本檔，
   navbar 相關設定（含字型大小）只需在這裡修改一次即可全站生效。
──────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--sky-d);
  border-bottom: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 80px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo img { height: 65px; width: auto; }
.logo-text { color: #fff; }
.logo-text strong { display: block; font-size: 19px; font-weight: 700; color: #fff; }
.logo-text span   { display: block; font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px;
  font-weight: 400;
  padding: 6px 16px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-links a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.2); }
.nav-links .nav-cta {
  background: var(--amber); color: #fff;
  padding: 7px 20px; border-radius: 20px; font-weight: 600;
}
.nav-links .nav-cta:hover { background: #D97706; color: #fff; }
.nav-links .nav-cta.active { background: #D97706; }

/* ── 手機版：兩列式導覽（第一列 Logo，第二列選單），總高度維持 80px ── */
@media (max-width: 768px) {
  nav { flex-wrap: wrap; align-content: center; padding: 0 10px; height: 80px; }
  .logo { width: 100%; height: 40px; gap: 8px; }
  .logo img { height: 34px; }
  .logo-text strong { font-size: 15px; white-space: nowrap; }
  .logo-text span { display: none; }
  .nav-links { width: 100%; height: 36px; gap: 2px; justify-content: space-between; overflow-x: auto; white-space: nowrap; }
  .nav-links a { font-size: 13px; padding: 5px 6px; }
  .nav-links .nav-cta { padding: 5px 10px; }
}
