<template>
  <div class="flex min-h-screen flex-col items-center justify-center bg-black p-6 text-white text-center">
    <div class="max-w-md">
      <p class="mb-4 text-xl font-medium">正在为您开始下载 Hi快VPN Android 版...</p>
      <p class="text-sm text-gray-400">
        如果下载没有自动开始，请
        <a :href="downloadUrl" class="text-[#a8ff53] underline ml-1 hover:text-[#c4ff8a]">点击此处手动下载</a>
      </p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'

const downloadUrl = 'https://api.hifast.biz/v1/common/client/download/file/Hi%E5%BF%ABVPN-android-1.0.0.apk'

onMounted(() => {
  // 延迟渲染后立即开始下载
  setTimeout(() => {
    window.location.href = downloadUrl
  }, 500)
})
</script>

<style scoped>
/* 仅保持基础样式 */
</style>
