:root {
  color-scheme: dark;
  --site-nav-height: 58px;
}

html {
  min-height: 100%;
  background: #0b1120;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: #0b1120;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(site-navigation) {
  animation-duration: 160ms;
  animation-timing-function: ease-out;
}

.nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 11px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  view-transition-name: site-navigation;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  border-color: rgba(56, 189, 248, 0.2);
  background-color: rgba(56, 189, 248, 0.08);
  color: #e0f2fe;
}

.nav-link.is-active {
  border-color: rgba(56, 189, 248, 0.48);
  background-color: rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.05), 0 0 18px rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
}

.nav-link-desktop {
  border-color: rgba(250, 204, 21, 0.32);
  background-color: rgba(250, 204, 21, 0.08);
  color: #fde68a;
}

.nav-link-desktop:hover {
  border-color: rgba(250, 204, 21, 0.5);
  background-color: rgba(250, 204, 21, 0.14);
  color: #fef3c7;
}

.nav-link-desktop.is-active {
  border-color: rgba(250, 204, 21, 0.68);
  background-color: rgba(250, 204, 21, 0.2);
  box-shadow: inset 0 0 0 1px rgba(254, 240, 138, 0.08), 0 0 20px rgba(245, 158, 11, 0.12);
  color: #fef08a;
}

.nav-mp-name {
  margin-left: 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root {
    --site-nav-height: 54px;
  }

  .nav-container {
    min-height: 54px;
    padding: 9px 12px;
    justify-content: flex-start;
  }

  .nav-links {
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-mp-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(site-navigation) {
    animation: none;
  }

  .nav-link {
    transition: none;
  }
}
