.nnav-container {
  background-color: transparent;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

/* 控制按钮区域 */
.nnav-controls {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  background-color: transparent;
  border-bottom: 1px solid #e9ecef;
}

.nnav-control-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  margin: 4px;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* 菜单样式 */
.nnav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nnav-item {
  position: relative;
  border-bottom: 1px solid #e9ecef;
}

.nnav-item:last-child {
  border-bottom: none;
}

/* 一级菜单样式 */
.nnav-level-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 20px;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.nnav-level-1:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* 二级菜单样式 */
.nnav-level-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 20px 28px 35px;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.nnav-level-2:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* 三级菜单样式 */
.nnav-level-3 {
  padding: 24px 20px 24px 50px;
  background-color: transparent;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.nnav-level-3:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* 菜单项标签 */
.nnav-label {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.nnav-level-2 .nnav-label {
  font-size: 16px;
  font-weight: 500;
  color: #555555;
}

.nnav-level-3 .nnav-label {
  font-size: 16px;
  font-weight: 500;
  color: #666666;
}

/* 箭头样式 */
.nnav-arrow {
  font-size: 14px;
  color: #999999;
  transition: transform 0.3s ease;
  width: 24px;
  text-align: center;
}

.nnav-arrow-open {
  transform: rotate(90deg);
}

/* 子菜单样式 */
.nnav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: nnavSlideDown 0.3s ease;
}

/* 动画效果 */
@keyframes nnavSlideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nnav-container {
    border-radius: 0;
    box-shadow: none;
  }

  .nnav-controls {
    padding: 8px;
  }

  .nnav-control-btn {
    min-width: 100px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .nnav-level-1 {
    padding: 14px 16px;
  }

  .nnav-level-2 {
    padding: 12px 16px 12px 30px;
  }

  .nnav-level-3 {
    padding: 10px 16px 10px 45px;
  }

  .nnav-label {
    font-size: 14px;
  }

  .nnav-level-2 .nnav-label {
    font-size: 13px;
  }

  .nnav-level-3 .nnav-label {
    font-size: 12px;
  }
}

/* 禁用状态 */
.nnav-disabled .nnav-label {
  color: #cccccc;
}

.nnav-disabled .nnav-arrow {
  color: #dddddd;
}

.nnav-disabled .nnav-level-1,
.nnav-disabled .nnav-level-2 {
  cursor: not-allowed;
}

/* 选中状态 */
.nnav-selected .nnav-label {
  font-weight: 600;
}

.nnav-selected .nnav-level-1,
.nnav-selected .nnav-level-2 {
  background-color: #e3f2fd;
}