<template>
  <section class="page page-home">
    <nav class="nav">
      <div class="nav-logo">
        <!-- 预留Logo图片位置 -->
        <div class="logo-placeholder">LOGO</div>
      </div>
      <ul class="nav-links">
        <li><a href="#" class="active">首页</a></li>
        <li><a href="#">产品介绍</a></li>
        <li><a href="#">核心优势</a></li>
        <li><a href="#">联系我们</a></li>
      </ul>
    </nav>
    <div class="hero">
      <div class="hero-content">
        <!-- 预留主视觉图片位置 -->
        <div class="hero-image-placeholder">
          <span>主视觉图片</span>
        </div>
        <h1 class="hero-title">LoveKeyOW</h1>
        <p class="hero-subtitle">用心创造，为爱而生</p>
        <div class="hero-btn" @click="$emit('navigate', 1)">了解更多</div>
      </div>
    </div>
    <div class="scroll-hint">
      <div class="mouse">
        <div class="wheel"></div>
      </div>
      <p>滚动探索</p>
    </div>
  </section>
</template>

<script setup>
defineEmits(['navigate'])
</script>

<style scoped>
.page-home {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 50%, #0d1137 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-home::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.page-home::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  position: relative;
  z-index: 10;
}

.logo-placeholder {
  width: 120px;
  height: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 1px;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
}

.hero-image-placeholder {
  width: 280px;
  height: 280px;
  margin: 0 auto 40px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 8px;
  margin-bottom: 48px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1.5s ease infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  margin: 0 auto 8px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease infinite;
}

.scroll-hint p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
</style>
