/* ==========================================================================
   SR-DevBox 统一悬浮 HUD 导航栏样式 (用于 sr-glsl 等子工具独立页面)
   ========================================================================== */

/* 避让顶部悬浮导航栏 */
#main-content {
  padding-top: 96px !important;
}

/* 筛选栏滚动吸顶位置适配 (停留在导航栏正下方) */
.gallery-controls-bar {
  top: 92px !important;
}

/* 悬浮 Header */
.hud-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1040px;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 999;
  background: rgba(11, 11, 20, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 240, 255, 0.06);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
  transform: rotate(20deg) scale(1.1);
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #00f0ff 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s ease;
}

.logo-container:hover .logo-text {
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-link-item {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  padding: 6px 13px;
  border-radius: 18px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 绘境 */
.nav-link-item.nav-link-art {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(255, 0, 127, 0.1) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.nav-link-item.nav-link-art .art-text {
  background: linear-gradient(90deg, #00f0ff 0%, #c084fc 45%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* GLSL 鉴赏高亮激活态 */
.nav-link-item.nav-link-glsl {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(168, 85, 247, 0.18) 50%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25), inset 0 0 8px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.nav-link-item.nav-link-glsl.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(168, 85, 247, 0.28) 50%, rgba(245, 158, 11, 0.3) 100%);
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), 0 0 30px rgba(245, 158, 11, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.2);
  pointer-events: default;
}

.nav-link-item.nav-link-glsl .glsl-text {
  background: linear-gradient(90deg, #00f0ff 0%, #c084fc 40%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 0.8px;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.6));
}

/* 响应式适配 */
@media (max-width: 900px) {
  .hud-header {
    width: 96%;
    padding: 0 12px;
    height: 48px;
    top: 8px;
  }
  .logo-text {
    display: none;
  }
  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link-item {
    font-size: 11px;
    padding: 4px 8px;
  }
  #main-content {
    padding-top: 72px !important;
  }
  .gallery-controls-bar {
    top: 64px !important;
  }
}
