<template>
  <div class="app-container home">
    <div class="background-decoration">
      <div class="circle circle-1"></div>
      <div class="circle circle-2"></div>
      <div class="circle circle-3"></div>
    </div>

    <div class="welcome-container">
      <div class="logo-section">
        <div class="logo-ring">
          <svg class="logo-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
            <path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
            <path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
      </div>

      <h1 class="welcome-title">
        <span class="title-line">欢迎使用</span>
        <span class="title-line main-title">智聪科技多租户管理系统</span>
      </h1>

      <p class="welcome-subtitle">专业 · 高效 · 智能</p>


    </div>
  </div>
</template>

<script setup name="Index" lang="ts">
import { reactive } from 'vue';
import { Document, DataAnalysis, Setting, Monitor } from '@element-plus/icons-vue';

</script>

<style lang="scss" scoped>
.home {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  // 背景装饰
  .background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;

    .circle {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      animation: float 20s infinite ease-in-out;

      &.circle-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        left: -150px;
        animation-delay: 0s;
      }

      &.circle-2 {
        width: 400px;
        height: 400px;
        bottom: -200px;
        right: -200px;
        animation-delay: 7s;
      }

      &.circle-3 {
        width: 250px;
        height: 250px;
        top: 50%;
        right: 10%;
        animation-delay: 14s;
      }
    }
  }

  @keyframes float {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -30px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
  }

  .welcome-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;

    // Logo部分
    .logo-section {
      margin-bottom: 40px;

      .logo-ring {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        animation: pulse 3s infinite ease-in-out;

        .logo-icon {
          width: 60px;
          height: 60px;
          color: #fff;
        }
      }
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      }
      50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
      }
    }

    // 标题部分
    .welcome-title {
      font-size: 48px;
      font-weight: 700;
      color: #fff;
      margin: 0 0 20px 0;
      line-height: 1.4;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

      .title-line {
        display: block;
        opacity: 0;
        animation: slideInLeft 0.8s ease-out forwards;

        &:first-child {
          font-size: 24px;
          font-weight: 400;
          margin-bottom: 10px;
          animation-delay: 0.2s;
        }

        &.main-title {
          animation-delay: 0.4s;
        }
      }
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .welcome-subtitle {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.9);
      margin: 0 0 60px 0;
      letter-spacing: 4px;
      animation: fadeIn 1s ease-out 0.6s backwards;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    // 特性卡片
    .feature-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px;
      margin-bottom: 60px;

      .feature-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 32px 24px;
        transition: all 0.3s ease;
        animation: fadeInUp 0.8s ease-out backwards;

        @for $i from 1 through 4 {
          &:nth-child(#{$i}) {
            animation-delay: #{0.8 + $i * 0.1}s;
          }
        }

        &:hover {
          transform: translateY(-8px);
          background: rgba(255, 255, 255, 0.2);
          box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        }

        .card-icon {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 60px;
          height: 60px;
          border-radius: 12px;
          background: rgba(255, 255, 255, 0.2);
          margin-bottom: 20px;
          font-size: 28px;
          color: #fff;
        }

        .card-title {
          font-size: 20px;
          font-weight: 600;
          color: #fff;
          margin: 0 0 12px 0;
        }

        .card-desc {
          font-size: 14px;
          color: rgba(255, 255, 255, 0.8);
          margin: 0;
          line-height: 1.6;
        }
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    // 统计数据
    .stats-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 32px;
      padding: 40px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      animation: fadeIn 1s ease-out 1.4s backwards;

      .stat-item {
        text-align: center;

        .stat-value {
          font-size: 36px;
          font-weight: 700;
          color: #fff;
          margin-bottom: 8px;
          text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .stat-label {
          font-size: 14px;
          color: rgba(255, 255, 255, 0.8);
          letter-spacing: 1px;
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .home {
    .welcome-container {
      .welcome-title {
        font-size: 32px;

        .title-line:first-child {
          font-size: 18px;
        }
      }

      .feature-cards {
        grid-template-columns: 1fr;
      }

      .stats-section {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }
}
</style>
