Discover Your Fortune
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mystic Fortune Test | 玄境运势测试</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-[#12081f] text-white font-sans">
<!-- 首页 -->
<section class="min-h-screen px-5 py-12 text-center bg-gradient-to-b from-[#25103d] to-[#12081f]">
<h1 class="text-4xl md:text-6xl font-bold mb-4 text-[#f4d27a]">
Mystic Fortune Test
</h1>
<p class="text-xl mb-2">玄境运势测试</p>
<p class="text-gray-300 max-w-2xl mx-auto mb-10">
Choose your energy path and receive a personalized bilingual reading.
<br>
选择你的能量方向,获得专属中英双语运势指引。
</p>
<div class="grid md:grid-cols-4 gap-6 max-w-6xl mx-auto">
<div onclick="selectTest('love')" class="cursor-pointer bg-white/10 rounded-2xl overflow-hidden hover:scale-105 transition shadow-lg">
<img src="https://images.unsplash.com/photo-1518199266791-5375a83190b7?w=600" class="h-52 w-full object-cover">
<div class="p-5">
<h2 class="text-2xl font-bold text-[#f4d27a]">Love Energy</h2>
<p>爱情能量</p>
</div>
</div>
<div onclick="selectTest('money')" class="cursor-pointer bg-white/10 rounded-2xl overflow-hidden hover:scale-105 transition shadow-lg">
<img src="https://images.unsplash.com/photo-1604594849809-dfedbc827105?w=600" class="h-52 w-full object-cover">
<div class="p-5">
<h2 class="text-2xl font-bold text-[#f4d27a]">Wealth Flow</h2>
<p>财富流动</p>
</div>
</div>
<div onclick="selectTest('career')" class="cursor-pointer bg-white/10 rounded-2xl overflow-hidden hover:scale-105 transition shadow-lg">
<img src="https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=600" class="h-52 w-full object-cover">
<div class="p-5">
<h2 class="text-2xl font-bold text-[#f4d27a]">Career Path</h2>
<p>事业方向</p>
</div>
</div>
<div onclick="selectTest('daily')" class="cursor-pointer bg-white/10 rounded-2xl overflow-hidden hover:scale-105 transition shadow-lg">
<img src="https://images.unsplash.com/photo-1519681393784-d120267933ba?w=600" class="h-52 w-full object-cover">
<div class="p-5">
<h2 class="text-2xl font-bold text-[#f4d27a]">Daily Guidance</h2>
<p>今日指引</p>
</div>
</div>
</div>
</section>
<!-- 测试区 -->
<section id="testSection" class="hidden px-5 py-16 bg-[#f8f3ea] text-[#1c102b]">
<div class="max-w-3xl mx-auto bg-white rounded-3xl shadow-2xl p-8">
<h2 id="testTitle" class="text-3xl font-bold text-center mb-6"></h2>
<label class="block mb-2 font-bold">Your Birthday|你的生日</label>
<input id="birthday" type="date" class="w-full border rounded-xl px-4 py-3 mb-6">
<label class="block mb-2 font-bold">
What do you care about most right now?|你现在最在意什么?
</label>
<select id="focus" class="w-full border rounded-xl px-4 py-3 mb-6">
<option value="inner peace">Inner peace|内心平静</option>
<option value="relationship">Relationship|感情关系</option>
<option value="money">Money|金钱财富</option>
<option value="career">Career|事业发展</option>
</select>
<label class="block mb-2 font-bold">
How is your current energy?|你最近的状态?
</label>
<select id="mood" class="w-full border rounded-xl px-4 py-3 mb-6">
<option value="tired but hopeful">Tired but hopeful|有点累但仍有期待</option>
<option value="confused">Confused|有些迷茫</option>
<option value="ready for change">Ready for change|准备改变</option>
<option value="stable">Stable|比较稳定</option>
</select>
<label class="block mb-2 font-bold">Choose one word|选择一个词</label>
<select id="word" class="w-full border rounded-xl px-4 py-3 mb-8">
<option value="Protection">Protection|守护</option>
<option value="Luck">Luck|好运</option>
<option value="Clarity">Clarity|清晰</option>
<option value="Growth">Growth|成长</option>
</select>
<button onclick="generateReading()" class="w-full bg-[#8b1e3f] text-white py-4 rounded-full text-lg font-bold hover:bg-[#6f1732] transition">
Start My Reading|开始测试
</button>
<!-- 结果区 -->
<div id="resultBox" class="hidden mt-10 bg-[#f8f3ea] rounded-2xl p-6 border border-[#d4af37]">
<h3 class="text-2xl font-bold text-[#8b1e3f] mb-4">
Your Reading|你的运势结果
</h3>
<p id="resultEn" class="mb-4 leading-relaxed"></p>
<p id="resultCn" class="mb-6 leading-relaxed"></p>
<div class="bg-white rounded-2xl p-5 mb-6 border border-[#ead7a5]">
<h4 class="font-bold text-xl text-[#8b1e3f] mb-2">
Recommended For You|为你推荐
</h4>
<p id="productTextEn" class="mb-2 text-sm leading-relaxed"></p>
<p id="productTextCn" class="text-sm leading-relaxed"></p>
</div>
<a id="braceletBtn"
href="#"
target="_blank"
class="inline-block bg-[#8b1e3f] text-white px-6 py-3 rounded-full font-bold">
Find My Lucky Bracelet|查看我的幸运手绳
</a>
<p class="text-xs text-gray-500 mt-6">
Disclaimer: This reading is for entertainment and inspirational purposes only. It does not provide medical, legal, financial, psychological, or investment advice. Results are not guaranteed.
<br><br>
免责声明:本测试仅供娱乐与灵感参考,不构成医疗、法律、财务、心理或投资建议,结果不作保证。
</p>
</div>
</div>
</section>
<script>
let currentType = "";
const titles = {
love: "Love Energy|爱情能量",
money: "Wealth Flow|财富流动",
career: "Career Path|事业方向",
daily: "Daily Guidance|今日指引"
};
const productLinks = {
love: "https://eutykhiaploutos.myshopify.com/products/8288232308927",
money: "https://eutykhiaploutos.myshopify.com/products/8388283138239",
career: "https://eutykhiaploutos.myshopify.com/products/8388102095039",
daily: "https://eutykhiaploutos.myshopify.com/products/8288324321471"
};
const productTexts = {
love: {
en: "Based on your love energy, this Good Luck Red String Bracelet is selected as a symbolic reminder of attraction, softness, and positive connection.",
cn: "根据你的爱情能量,为你推荐好运红绳手链,象征吸引力、温柔连接与正向缘分。"
},
money: {
en: "Based on your wealth energy, this Lucky Gourd Bracelet is selected as a symbol of abundance, protection, and steady flow.",
cn: "根据你的财富能量,为你推荐葫芦红绳手链,象征纳福、守护与稳定财富流动。"
},
career: {
en: "Based on your career energy, this Chinese Knot Bracelet is selected as a symbol of connection, stability, and meaningful opportunities.",
cn: "根据你的事业能量,为你推荐中国结手链,象征连接、稳定与贵人机会。"
},
daily: {
en: "Based on your daily guidance, this Family Protection Red String Bracelet is selected as a symbol of peace, grounding, and gentle protection.",
cn: "根据你的今日指引,为你推荐家庭守护红绳手链,象征平安、稳定与温柔守护。"
}
};
function selectTest(type) {
currentType = type;
document.getElementById("testTitle").innerText = titles[type];
document.getElementById("testSection").classList.remove("hidden");
document.getElementById("resultBox").classList.add("hidden");
document.getElementById("testSection").scrollIntoView({ behavior: "smooth" });
}
function getZodiac(month, day) {
if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) return ["Aries", "白羊座"];
if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) return ["Taurus", "金牛座"];
if ((month == 5 && day >= 21) || (month == 6 && day <= 20)) return ["Gemini", "双子座"];
if ((month == 6 && day >= 21) || (month == 7 && day <= 22)) return ["Cancer", "巨蟹座"];
if ((month == 7 && day >= 23) || (month == 8 && day <= 22)) return ["Leo", "狮子座"];
if ((month == 8 && day >= 23) || (month == 9 && day <= 22)) return ["Virgo", "处女座"];
if ((month == 9 && day >= 23) || (month == 10 && day <= 22)) return ["Libra", "天秤座"];
if ((month == 10 && day >= 23) || (month == 11 && day <= 21)) return ["Scorpio", "天蝎座"];
if ((month == 11 && day >= 22) || (month == 12 && day <= 21)) return ["Sagittarius", "射手座"];
if ((month == 12 && day >= 22) || (month == 1 && day <= 19)) return ["Capricorn", "摩羯座"];
if ((month == 1 && day >= 20) || (month == 2 && day <= 18)) return ["Aquarius", "水瓶座"];
return ["Pisces", "双鱼座"];
}
function generateReading() {
const birthday = document.getElementById("birthday").value;
if (!birthday) {
alert("Please enter your birthday.|请输入你的生日。");
return;
}
const date = new Date(birthday);
const zodiac = getZodiac(date.getMonth() + 1, date.getDate());
const focus = document.getElementById("focus").value;
const mood = document.getElementById("mood").value;
const word = document.getElementById("word").value;
const readings = {
love: {
en: [
`As a ${zodiac[0]}, your love energy is becoming softer and more open. Your current focus on ${focus} suggests that emotional clarity is important now. Move gently, communicate honestly, and protect your peace.`,
`Your ${zodiac[0]} energy shows a desire for connection, but also a need for balance. The word you chose, ${word}, suggests that love grows best when you feel safe and respected.`,
`This period may bring warmer emotional energy. Your current mood, ${mood}, shows that you are ready to receive more kindness, but you should not rush what needs time to grow.`
],
cn: [
`作为${zodiac[1]},你的爱情能量正在变得柔和与开放。你现在关注的方向是${focus},说明情绪清晰感对你很重要。适合温柔沟通,也要守住自己的内在平静。`,
`你的${zodiac[1]}能量显示,你渴望连接,但也需要关系中的平衡。你选择的关键词是${word},代表真正适合你的感情,需要安全感与尊重。`,
`这段时间可能会带来更温暖的情感能量。你最近的状态是${mood},说明你已经准备好接收善意,但不要催促需要时间成长的关系。`
]
},
money: {
en: [
`As a ${zodiac[0]}, your wealth energy is moving slowly but steadily. This is a good time to organize your money, avoid impulsive spending, and build small consistent wins.`,
`Your current energy suggests that financial growth comes from patience and structure. The word ${word} reminds you to protect your resources and choose wisely.`,
`You may be entering a period where small opportunities can grow. Stay practical, avoid emotional decisions, and focus on long-term stability.`
],
cn: [
`作为${zodiac[1]},你的财富能量正在缓慢但稳定地流动。现在适合整理金钱计划,避免冲动消费,并通过小而稳定的行动累积好运。`,
`你近期的能量显示,财富增长来自耐心和规划。你选择的关键词${word}提醒你,要守护自己的资源,谨慎做选择。`,
`你可能正在进入一个“小机会逐渐放大”的阶段。保持务实,避免情绪化决定,专注长期稳定会更有利。`
]
},
career: {
en: [
`As a ${zodiac[0]}, your career energy is asking you to become clearer about your direction. A meaningful opportunity may appear when you show your value with confidence.`,
`Your current mood, ${mood}, suggests that you are ready for a new step. Focus on skill, discipline, and the people who genuinely support your growth.`,
`This is a good time to organize your goals and make your next move with patience. Your career path favors steady progress rather than sudden pressure.`
],
cn: [
`作为${zodiac[1]},你的事业能量正在提醒你要更清楚自己的方向。当你更自信地展示价值时,重要机会可能会出现。`,
`你最近的状态是${mood},说明你已经准备好迈出新的一步。适合专注技能、纪律,以及真正支持你成长的人。`,
`现在适合整理目标,用更稳定的节奏前进。你的事业方向更适合稳步推进,而不是被压力推着走。`
]
},
daily: {
en: [
`Today’s guidance for your ${zodiac[0]} energy is to slow down and return to balance. Choose peace before pressure, and let your next step come from clarity.`,
`Your daily energy carries the message of ${word}. Protect your attention, stay grounded, and do one small thing that brings you closer to calm.`,
`Today is a good day to release unnecessary worry. Your energy becomes stronger when you focus on what you can control.`
],
cn: [
`今天给${zodiac[1]}的指引是:慢下来,回到平衡。先选择平静,再处理压力,让下一步来自清晰而不是焦虑。`,
`你的今日能量关键词是${word}。请守护你的注意力,保持稳定,做一件能让自己更安心的小事。`,
`今天适合放下一些不必要的担心。当你专注于自己能掌控的事情时,你的能量会变得更强。`
]
}
};
const randomIndex = Math.floor(Math.random() * 3);
document.getElementById("resultEn").innerText = readings[currentType].en[randomIndex];
document.getElementById("resultCn").innerText = readings[currentType].cn[randomIndex];
document.getElementById("braceletBtn").href = productLinks[currentType];
document.getElementById("productTextEn").innerText = productTexts[currentType].en;
document.getElementById("productTextCn").innerText = productTexts[currentType].cn;
document.getElementById("resultBox").classList.remove("hidden");
document.getElementById("resultBox").scrollIntoView({ behavior: "smooth" });
}
</script>
</body>
</html>