/* 顶部悬浮导航栏样式 */
#custom-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.9);
  /* 黑色底图，带微透明 */
  backdrop-filter: blur(10px);
  /* 毛玻璃效果 */
  z-index: 10001;
  /* 确保在所有元素之上 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.nav-item {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  border-bottom: none !important;
  /* 移除模板默认下划线 */
  cursor: pointer;
}

.nav-item:hover {
  color: #49bf9d !important;
  /* 悬停颜色，可根据需要修改 */
}

/* 适配：给原本的 wrapper 增加顶部内边距，防止内容被遮挡 */
body {
  padding-top: 60px;
}

/* 移动端适配 */
@media screen and (max-width: 736px) {
  .nav-container {
    gap: 10px;
  }

  .nav-item {
    font-size: 0.7rem;
  }
}

/* 底部悬浮版权及联系信息栏 */
#custom-bottom-float {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  /* 与顶部导航栏一致的微透黑 */
  backdrop-filter: blur(10px);
  /* 毛玻璃效果 */
  z-index: 10001;
  /* 确保在最上层 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
}

#custom-bottom-float p {
  margin: 0;
  color: #ffffff;
}

#custom-bottom-float strong {
  color: #ffffff;
  /* 使用模板高亮色点缀邮箱 */
}

/* 移动端适配 */
@media screen and (max-width: 736px) {
  #custom-bottom-float {
    font-size: 0.75rem;
    padding: 10px 15px;
  }
}


/* Update container to ensure vertical centering and spacing */
.nav-container {
    display: flex;
    align-items: center; /* 确保所有元素垂直居中 */
    gap: 20px;
    padding: 0 20px;
}

/* Logo 样式 */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 占满顶栏高度 */
    margin-right: 10px; /* 与第一个 About 按钮保持额外间距 */
    border-bottom: none !important; /* 移除 Dimension 模板的下划线 */
}

.nav-logo img {
    height: 30px; /* 调整图标高度，通常为顶栏高度的一半左右 */
    width: auto;  /* 保持比例 */
    display: block;
}

/* 适配移动端 */
@media screen and (max-width: 736px) {
    .nav-logo img {
        height: 24px; /* 移动端图标变小 */
    }
    .nav-logo {
        margin-right: 5px;
    }
}