/* ========== Dev Nav (僅 localhost 顯示) ========== */
/* 從 components.css 抽出，讓不載入 components.css 的頁面（例如首頁 Hero）
   也能單獨啟用 dev-nav 而不被 components.css 的 .hero/.hero-stats 影響。 */
html[data-dev-nav] body { padding-left: 220px; }
html[data-dev-nav]::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #000000;
  border-right: 1px solid #1c1c1c;
  z-index: 59;
  pointer-events: none;
}
#dev-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  z-index: 60;
  background: #000000;
  color: #888888;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0;
  border-right: 1px solid #1c1c1c;
}
.dev-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid #1c1c1c;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #e8e8e8;
}
.dev-nav-badge {
  font-size: 0.625rem;
  font-weight: 600;
  background: #1a1a1a;
  color: #888;
  border: 1px solid #2a2a2a;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dev-nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.dev-nav-section {
  padding: 0.625rem 0.75rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dev-nav-sep {
  height: 1px;
  background: #1c1c1c;
  margin: 0.375rem 0.75rem;
  flex-shrink: 0;
}
.dev-nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: #888888;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.15s;
}
.dev-nav-item:hover {
  background: #141414;
  color: #e8e8e8;
}
.dev-nav-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: #e8e8e8;
}
.dev-nav-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #1c1c1c;
}
.dev-nav-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  color: #888888;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.15s;
}
.dev-nav-admin:hover {
  background: #141414;
  color: #e8e8e8;
}

@media (max-width: 768px) {
  #dev-nav { display: none; }
  html[data-dev-nav]::before { display: none; }
  html[data-dev-nav] body { padding-left: 0; }
}
