<template>
  <div class="app">
    <header class="header">
      <div class="container">
        <h1 class="logo">美搭</h1>
        <nav class="nav">
          <router-link to="/" class="nav-link">首页</router-link>
          <router-link to="/tryon-history" class="nav-link">穿搭历史</router-link>
        </nav>
      </div>
    </header>
    
    <main class="main">
      <div class="container">
        <router-view />
      </div>
    </main>
    
    <footer class="footer">
      <div class="container">
        <p>© {{ new Date().getFullYear() }} 美搭 - 时尚穿搭展示平台</p>
      </div>
    </footer>
  </div>
</template>

<script setup>
// App组件逻辑
</script>

<style>
.header {
  background-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fe2c55;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #2a2a2a;
}

.router-link-active {
  color: #fe2c55;
  background-color: #2a2a2a;
}

.main {
  min-height: calc(100vh - 140px);
  padding: 30px 0;
}

.footer {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  color: #999;
}
</style> 