/* ============================================
   杭州富晖智联科技 - 顶部导航
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(6, 24, 66, 0.95);
  backdrop-filter: blur(12px);
  padding: var(--space-2) 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-white);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.header__logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-white);
  white-space: nowrap;
}

.header__logo-sub {
  font-size: var(--text-xs);
  color: var(--color-gray-300);
  display: block;
  line-height: 1.2;
}

/* 导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.header__cta {
  margin-left: var(--space-4);
}

/* 移动端菜单按钮 */
.header__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.header__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  margin: 5px auto;
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.header__menu-btn--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn--open span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.header__mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 24, 66, 0.98);
  backdrop-filter: blur(12px);
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-fixed);
}

.header__mobile-nav--open {
  display: flex;
}

.header__mobile-nav .header__nav-link {
  font-size: var(--text-lg);
  padding: var(--space-3) var(--space-4);
}

@media (max-width: 1023px) {
  .header__nav {
    display: none;
  }
  .header__cta {
    display: none;
  }
  .header__menu-btn {
    display: block;
  }
}
