<template>
  <div id="app">
    <nav class="main-nav">
      <router-link to="/" class="nav-item">首页</router-link>
      <router-link to="/monitor" class="nav-item">监控中心</router-link>
      <router-link to="/government" class="nav-item">政府平台</router-link>
      <router-link to="/finance" class="nav-item">金融服务</router-link>
      <router-link to="/transport" class="nav-item">运输跟踪</router-link>
      <router-link to="/risk" class="nav-item">风险预警</router-link>
      <router-link to="/eco" class="nav-item">生态指标</router-link>
      <router-link to="/gov" class="nav-item">政府监管</router-link>
      <router-link to="/trade" class="nav-item">交易统计</router-link>
    </nav>
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  height: 100vh;
  font-family: 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
  background: #0a1929;
  overflow: hidden;
}

.main-nav {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

.nav-item.router-link-exact-active {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: bold;
  border: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-nav {
    padding: 10px;
    gap: 10px;
  }
  
  .nav-item {
    padding: 8px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nav-item {
    padding: 6px 10px;
    font-size: 12px;
  }
}
</style>