<template>
  <footer class="app-footer">
    <div class="footer-content">
      <div class="copyright">
        © {{ currentYear }} IntelliAdvert. All Rights Reserved.
      </div>
      <div class="footer-links">
        <router-link to="/privacy" class="footer-link">隐私协议</router-link>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'AppFooter',
  computed: {
    currentYear() {
      return new Date().getFullYear();
    }
  }
}
</script>

<style scoped>
.app-footer {
  padding: 20px 30px;
  background-color: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #606266;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #409EFF;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
  font-weight: 500;
  padding: 0 5px;
}

.footer-link:hover {
  color: #66b1ff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
}
</style>
