/* 公共顶部导航组件样式 */
.header-nav {
  width: 100%;
  height: 92px;
  padding: 34px 239px 19px 239px;
  background: rgba(2, 2, 2, 0.2);
  backdrop-filter: blur(15px);
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav.scrolled {
  background: rgba(2, 2, 2, 0.4);
  backdrop-filter: blur(20px);
}

.nav-logo {
  width: 53px;
  height: 53px;
  margin-right: 8px;
}

.nav-brand {
  color: rgba(255, 255, 255, 1);
  font-size: 36px;
  font-family: Source Han Sans CN-Regular;
  font-weight: 400;
  line-height: 47px;
  margin-left: 0;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-menu {
  flex: 1;
  align-items: center;
  margin: 0 424px 0 104px;
  position: relative;
}

.nav-links {
  align-items: center;
  gap: 43px;
  margin-left: 0;
}

.nav-link {
  color: rgba(250, 247, 246, 1);
  font-size: 18px;
  font-family: Source Han Sans CN-Regular;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.72px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(250, 247, 246, 1);
  opacity: 0.8;
}

.nav-link.active {
  color: rgba(252, 250, 248, 1);
  font-family: Source Han Sans CN-Medium;
  font-weight: 500;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -31px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: rgba(252, 250, 248, 1);
  border-radius: 0;
}

.nav-underline {
  width: 100%;
  height: 1px;
  background: transparent;
  margin-top: 8px;
}

.nav-auth {
  align-items: center;
}

.auth-buttons {
  align-items: center;
  gap: 5px;
}

.auth-login,
.auth-register {
  color: rgba(250, 247, 246, 1);
  font-size: 18px;
  font-family: Source Han Sans CN-Regular;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.72px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4.5px 18.5px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 1);
  background: transparent;
  text-align: center;
  min-width: 37px;
}

.auth-login:hover,
.auth-register:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.auth-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-nav {
    padding: 15px 20px;
  }
  
  .nav-menu {
    margin: 0 20px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .nav-link,
  .auth-login,
  .auth-register {
    font-size: 14px;
  }
}

/* 用户登录后的样式 */
.user-profile {
  align-items: center;
  gap: 15px;
}

.user-avatar-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.user-avatar-container:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-actions {
  align-items: center;
  gap: 12px;
}

.console-btn,
.logout-btn {
  color: rgba(250, 247, 246, 1);
  font-size: 16px;
  font-family: Source Han Sans CN-Regular;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.64px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  text-align: center;
  white-space: nowrap;
}

.console-btn:hover {
  background: rgba(20, 98, 255, 0.2);
  border-color: rgba(20, 98, 255, 0.6);
  color: rgba(20, 98, 255, 1);
  transform: translateY(-1px);
}

.logout-btn:hover {
  background: rgba(255, 87, 87, 0.2);
  border-color: rgba(255, 87, 87, 0.6);
  color: rgba(255, 87, 87, 1);
  transform: translateY(-1px);
}