{foreach $jznav[2] as $v}
{if($v['tid']==0 && $v['isshow']==1)}
{if($v['haschild'])}
<div class="relative group">
<a href="#" class="flex items-center px-4 py-2 text-gray-700 hover:text-blue-600 font-medium rounded-lg hover:bg-gray-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50">
二级菜单<!-- 二级菜单 -->
<svg class="w-4 h-4 ml-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</a>
<!-- 二级菜单 -->
<div class="absolute left-0 mt-2 w-48 bg-white rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform group-hover:translate-y-0 -translate-y-2">
{loop table="classtype" pid="$v['tid']" limit="10" isshow="1" as="vv"}
<a href="{$vv['url']}" target="{$vv['target']}"
class="block px-4 py-2 hover:bg-gray-100">{$vv['classname']}</a>
{/loop}
</div>
</div>
{else}
<a href="{$v['url']}" target="{$v['target']}" class="flex items-center px-4 py-2 text-gray-700 hover:text-blue-600 font-medium rounded-lg hover:bg-gray-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50">
{$v['title']}
</a>
{/if}
{/if}
{/foreach}
