.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(0, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-area .logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo-area .logo:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #aee6ff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0;
  background-color: #aee6ff;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

/* 手机菜单按钮 */
.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 24px;
  height: 2px;
  background: #aee6ff;
}

/* 响应式处理 */
@media (max-width: 768px) {
  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 24px;
    top: 60px;
    background: rgba(0, 30, 60, 0.95);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    padding: 12px 20px;
    max-height: 500px; /* 足够大就行 */
    opacity: 1;
    pointer-events: auto;
  }

  .menu-icon {
    display: flex;
  }
}