export type NavItem = {
    key: string
    label: string
    to: string
    href?: string   // 外链，设置后在新标签页打开
    children?: NavItem[]
    badge?: string  // 用于显示 NEW/HOT 等标签
}

export const mainNav: NavItem[] = [
    {key: 'home', label: '首页', to: '/'},
    {
        key: 'news',
        label: '政策要闻',
        to: '/news',
        children: [
            {key: 'news-central', label: '党中央国务院', to: '/news?type=central'},
            {key: 'news-region', label: '自治区党委政府', to: '/news?type=region'},
            {key: 'news-department', label: '其他厅委办', to: '/news?type=department'},
            {key: 'news-latest', label: '最新发布', to: '/news?type=latest'},
        ]
    },
    {
        key: 'consultation',
        label: '决策咨询',
        to: '/consultation',
        children: [
            {key: 'consult-city', label: '市县决策', to: '/consultation?type=city'},
            {key: 'consult-frontier', label: '前沿观察', to: '/consultation?type=frontier'},
            {key: 'consult-industry', label: '行业资讯', to: '/consultation?type=industry'},
            {key: 'consult-enterprise', label: '企业动态', to: '/consultation?type=enterprise'},
            {key: 'consult-research', label: '研究热点', to: '/consultation?type=research'},
            {key: 'consult-academic', label: '学术活动', to: '/consultation?type=academic'},
            {key: 'consult-other', label: '其他汇编', to: '/consultation?type=other'},
        ]
    },
    {
        key: 'reference',
        label: '决策参考',
        to: '/reference',
        children: [
            {key: 'ref-policy', label: '政策原文', to: '/reference?type=policy'},
            {key: 'ref-analysis', label: '深度解读', to: '/reference?type=analysis'},
            {key: 'ref-research', label: '研究成果', to: '/reference?type=research'},
            {key: 'ref-special', label: '专题研究', to: '/reference?type=special'},
            {key: 'ref-asean', label: '东盟研究', to: '/reference?type=asean'},
            {key: 'ref-data', label: '数据服务', to: '/reference?type=data', badge: 'VIP'},
        ]
    },
    {
        key: 'expert',
        label: '专家资讯',
        to: '/expert',
        children: [
            {key: 'expert-view', label: '专家视点', to: '/expert?type=view'},
            {key: 'expert-dynamic', label: '专家动态', to: '/expert?type=dynamic'},
            {key: 'expert-apply', label: '专家申请', to: '/expert/apply'},
        ]
    },
    {
        key: 'thinktank',
        label: '智库观察',
        to: '/think-tank',
        children: [
            {key: 'thinktank-intro', label: '智库介绍', to: '/think-tank?type=intro'},
            {key: 'thinktank-view', label: '智库视角', to: '/think-tank?type=view'},
        ]
    },
    {key: 'suggestions', label: '建言献策', to: '/suggestions'},
    {
        key: 'membership',
        label: '会员服务',
        to: '/membership',
        children: [
            {key: 'member-consult', label: '企业咨询', to: '/membership?type=consult'},
            {key: 'member-service', label: '专项服务', to: '/membership?type=service'},
        ]
    },
    {key: 'hanmo', label: '翰墨文谈', to: '/hanmo'},
    {
        key: 'about',
        label: '关于我们',
        to: '/about',
        children: [
            {key: 'about-intro', label: '学会简介', to: '/about'},
            {key: 'about-org', label: '组织机构', to: '/about/organization'},
            {key: 'about-charter', label: '学会章程', to: '/about/charter'},
            {key: 'about-consult', label: '咨询服务', to: '/about/consultation'},
            {key: 'about-join', label: '加入我们', to: '/about/join'},
        ]
    },
]
