@charset "UTF-8";
/* ============================================================
   header 樣式模組（由 nstyle.css 抽出）
   - 需要的字級變數一併帶入，讓本檔可獨立使用（不必載入 nstyle.css）
   - 對應結構：nheader.php / nheader.html
   ============================================================ */
:root {
  --font-body-lg: 20px;
}

@media (max-width: 768px) {
  :root {
    --font-body-lg: 18px;
  }
}

.nheader {
  z-index: 7;
  position: fixed;
  width: 100%;
  padding: 24px 24px 0;
}
.nheader__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 32px;
  background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgba(246, 248, 254, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(23, 38, 89, 0.1);
}
.nheader__brand {
  padding: 0;
  margin-right: 0;
}
.nheader__logo {
  display: block;
  height: 60px;
  width: auto;
}
.nheader__nav {
  gap: 8px;
}
.nheader__nav .nav-link {
  font-size: var(--font-body-lg);
  line-height: 1.6;
  font-weight: 600;
  position: relative;
  padding: 8px 16px;
  color: #172659;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nheader__nav .nav-link:hover, .nheader__nav .nav-link:focus, .nheader__nav .nav-link.active {
  color: #1d4ec9;
}
.nheader .nav-item {
  text-align: center;
}
.nheader .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  display: none;
}
@media (max-width: 1199.98px) {
  .nheader .dropdown-toggle::after {
    display: inline-block;
  }
}
.nheader .dropdown-menu {
  padding: 8px;
  border: 1px solid #d3deff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(23, 38, 89, 0.15);
  background: #fff;
}
.nheader .dropdown-item {
  font-size: 18px;
  text-align: center;
  border-radius: 12px;
  padding: 10px 12px;
  color: #39456e;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nheader .dropdown-item:hover, .nheader .dropdown-item:focus {
  color: #1d4ec9;
  background: #f6f8fe;
}
.nheader__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nheader .navbar-toggler {
  border: none;
  padding: 4px 8px;
}
.nheader .navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .nheader {
    padding: 12px 12px 0;
  }
  .nheader__inner {
    padding: 10px 16px;
    border-radius: 20px;
  }
  .nheader__logo {
    height: 48px;
  }
  .nheader .navbar-collapse {
    margin-top: 8px;
  }
  .nheader__nav {
    gap: 0;
    margin: 4px 0 8px;
  }
  .nheader__nav .nav-link {
    padding: 12px 8px;
  }
}
@media (max-width: 1199.98px) {
  .nheader__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #ebebeb;
  }
  .nheader__actions .btn--lg {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .nheader__nav.w-100 {
    width: auto !important;
    flex: 1 1 auto;
    justify-content: center;
  }
  .nheader .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
  .nheader .dropdown-menu {
    margin-top: 0;
  }
}
@media (max-width: 1199.98px) {
  .nheader .dropdown-menu {
    box-shadow: none;
    background: #f6f8fe;
  }
  .nheader .dropdown-item {
    padding: 8px 8px;
  }
}
