/* 导航栏基础样式 */
.navbar {
  position: relative;
  transition: all 0.3s ease;
}

/* 导航链接样式 */
.nav-link {
  font-medium;
  color: #333;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: #22c55e; /* 绿色主色调 */
}

/* 下拉菜单通用样式 */
.has-dropdown {
  position: relative;
}

.dropdown-trigger, .submenu-trigger {
  cursor: pointer;
}

.dropdown-menu, .submenu {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-menu[open], .submenu[open] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  color: #333;
}

.dropdown-item:hover {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu[open] ul, .submenu[open] ul {
  animation: fadeIn 0.2s ease-out forwards;
}

/* 移动端菜单样式 */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem;
}

/* 响应式设计 */
@media (max-width: 1023px) {
  .lg\\:flex {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}