<script setup lang="ts"></script>

<template>
  <div class="home-view">
    <section class="hero-section">
      <div class="hero-content">
        <h1 class="hero-title">Crypto.AI <span class="accent">加密货币AI投研服务平台</span></h1>
        <p class="hero-subtitle">提供一站式加密货币AI投研服务</p>
        <!-- <div class="hero-actions">
          <button class="btn btn-primary">探索工具</button>
        </div> -->
      </div>
    </section>

    <section class="stats-section">
      <div class="stats-grid">
        <div class="stat-card card">
          <div class="stat-value">1000+</div>
          <div class="stat-label">会员人数</div>
        </div>
        <div class="stat-card card">
          <div class="stat-value">5000+</div>
          <div class="stat-label">Agent服务次数</div>
        </div>
        <div class="stat-card card">
          <div class="stat-value">99.9%</div>
          <div class="stat-label">正常运行时间</div>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.home-view {
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.accent {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--color-accent-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  font-weight: var(--font-weight-bold);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.features-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  height: 100%;
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-accent-light);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-desc {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-action {
  align-self: flex-start;
  background: transparent;
  color: var(--color-accent);
  border: none;
  padding: 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-action::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-action:hover::after {
  transform: translateX(4px);
}

.stats-section {
  margin-bottom: 4rem;
  width: 100%;
}

.stats-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-header p {
  color: var(--color-text-secondary);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.stat-card {
  flex: 1;
  min-width: 240px;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
}

.stat-card:hover {
  border-color: var(--color-accent);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .feature-card {
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    min-width: 100%;
  }

  .stat-card {
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .stat-card {
    min-width: 100%;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
</style>
