/* ===== Desktop Dropdown Menu ===== */
.nav-dropdown {
  position: relative;
  white-space: nowrap;
}
.nav-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  padding: 0.5rem 0;
  z-index: 60;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background-color: #f1f5f9;
  color: #1e40af;
}

/* ===== Mobile Dropdown (Accordion) ===== */
.mobile-dropdown-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.mobile-dropdown-content.open {
  max-height: 300px;
}
.mobile-dropdown-toggle svg.chevron {
  transition: transform 0.3s;
}
.mobile-dropdown-toggle.open svg.chevron {
  transform: rotate(180deg);
}

/* ===== Service Quick Switch Bar ===== */
.svc-switch-bar{
  position:sticky; top:64px; z-index:40;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(140%) blur(8px);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid #e2e8f0;
  font-family:"Noto Sans TC",system-ui,sans-serif;
}
@media (min-width:1024px){ .svc-switch-bar{ top:80px; } }
.svc-switch{
  display:flex; gap:8px; overflow-x:auto;
  padding:10px 0; scrollbar-width:none; -ms-overflow-style:none;
}
.svc-switch::-webkit-scrollbar{ display:none; }
.svc-pill{
  flex:0 0 auto; display:inline-flex; align-items:center;
  padding:6px 14px; font-size:13px; font-weight:500; line-height:1;
  color:#475569; background:#f1f5f9; border:1px solid #e2e8f0;
  border-radius:9999px; white-space:nowrap; cursor:pointer; text-decoration:none;
  transition:color .2s, background-color .2s, border-color .2s;
}
.svc-pill:hover{ color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }
.svc-pill-active{ color:#fff; background:#3b82f6; border-color:#3b82f6; }
.svc-pill-active:hover{ color:#fff; background:#2563eb; border-color:#2563eb; }
