<template>
  <div class="layout">
    <!-- 全局Header导航栏 -->
    <HeaderNav />
    
    <!-- 主要内容区域 -->
    <main class="main-content">
      <router-view />
    </main>
    
    <!-- 全局Footer页脚 -->
    <Footer />
  </div>
</template>

<script>
import HeaderNav from '@/components/HeaderNav.vue'
import Footer from '@/components/Footer.vue'

export default {
  name: 'Layout',
  components: {
    HeaderNav,
    Footer
  }
}
</script>

<style scoped>
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  /* 移除固定高度，让内容自然流动 */
}
</style>
