<template>
  <div class="home">
    <div class="coming-soon-container">
      <div class="coming-soon-content">
        <div class="icon-wrapper">
          <svg class="icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path
              d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
            />
            <path d="M12 8V12L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
          </svg>
        </div>
        <h2 class="coming-soon-title">待开发</h2>
        <p class="coming-soon-subtitle">尽情期待</p>
        <div class="loading-spinner">
          <div class="spinner"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="Index" lang="ts">
const goTarget = (url: string) => {
  window.open(url, '__blank');
};
</script>

<style lang="scss" scoped>
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'open sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.coming-soon-container {
  width: 100%;
  max-width: 600px;
  padding: 40px;
}

.coming-soon-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 60px 40px;
  text-align: center;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  }
}

.icon-wrapper {
  margin-bottom: 30px;
  animation: pulse 2s infinite;

  .icon {
    width: 80px;
    height: 80px;
    color: #4a6fa5;
  }
}

.coming-soon-title {
  font-size: 36px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.coming-soon-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin: 0 0 40px 0;
  font-weight: 400;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(74, 111, 165, 0.2);
  border-left-color: #4a6fa5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .coming-soon-container {
    padding: 20px;
  }

  .coming-soon-content {
    padding: 40px 20px;
  }

  .icon-wrapper .icon {
    width: 60px;
    height: 60px;
  }

  .coming-soon-title {
    font-size: 28px;
  }

  .coming-soon-subtitle {
    font-size: 16px;
  }
}
</style>
