.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0) 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0;
}

.main-nav.scrolled {
  background: linear-gradient(135deg,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.75) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-music-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-shadow: 0 0 12px rgba(232, 74, 95, 0.25);
}

.nav-music-btn:hover {
  color: white;
  background: rgba(255, 42, 42, 0.12);
  transform: translateY(-1px);
}

.nav-music-btn:active {
  transform: translateY(0);
}

.nav-music-btn.is-playing {
  background: rgba(255, 42, 42, 0.18);
  border-color: rgba(232, 74, 95, 0.55);
  box-shadow: 0 0 18px rgba(232, 74, 95, 0.45);
  color: white;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--primary-02);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-logo:hover {
  text-shadow: 0 0 30px var(--primary-02), 0 0 50px var(--primary-02);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a,
.nav-links .nav-dropdown-trigger {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}

.nav-links a {
  text-decoration: none;
}

.nav-links .nav-dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle:focus-visible,
.nav-music-btn:focus-visible,
.nav-links a:focus-visible,
.nav-links .nav-dropdown-trigger:focus-visible,
.dropdown-menu a:focus-visible {
  outline: 2px solid var(--primary-02);
  outline-offset: 3px;
}

.nav-links a::before,
.nav-links .nav-dropdown-trigger::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-02);
  box-shadow: 0 0 10px var(--primary-02);
  transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links .nav-dropdown-trigger:hover {
  color: white;
  background: rgba(255, 42, 42, 0.1);
}

.nav-links a:hover::before,
.nav-links .nav-dropdown-trigger:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: white;
  background: rgba(255, 42, 42, 0.15);
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

.nav-links a.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* 下拉菜单（多媒体内容） */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-text {
  display: inline-block;
}

.dropdown-caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
}

.nav-dropdown.open .dropdown-caret,
.nav-dropdown:focus-within .dropdown-caret,
.nav-dropdown:hover .dropdown-caret {
  border-color: white;
}

.nav-dropdown.open .dropdown-caret {
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: none;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: white;
  background: rgba(255, 42, 42, 0.12);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: none;
}

.dropdown-menu a::before {
  content: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 42, 42, 0.12);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-02);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: linear-gradient(135deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 280px;
    height: 100vh;
    height: 100svh;
    padding-top: 80px;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a,
  .nav-links .nav-dropdown-trigger {
    width: 80%;
    text-align: center;
  }

  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown .nav-dropdown-trigger {
    justify-content: center;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    width: 80%;
    margin-top: 10px;
    padding: 8px;
  }
}

.logo img {
  height: 60px;
  width: auto;
  vertical-align: middle;
}
