由于游戏更新,Wiki正在更新页面,当前内容可能并非最新版本,欢迎进群督促!
由于游戏更新,Wiki正在更新页面,当前内容可能并非最新版本,欢迎进群督促!
全站通知:
Widget:PsychologicalTest
刷
历
编
跳到导航
跳到搜索
<!DOCTYPE html> <html lang="zh-CN"> <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>吉星派对 × 魔法少女的魔女审判 - 命运测试</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
user-select: none;
-webkit-user-select: none;
}
body {
width: 100dvw;
height: 100dvh;
overflow: hidden;
font-family: "Microsoft YaHei", sans-serif;
background-color: #2b1d2c;
background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('2cc9b335abb93c2394d1516d73098a02.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.game-container {
position: relative;
width: 100%;
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* 四角蝴蝶装饰 */
.corner-butterfly {
position: absolute;
width: 50px;
height: 50px;
opacity: 0.8;
pointer-events: none;
z-index: 10;
}
.cb-tl { top: 15px; left: 15px; }
.cb-tr { top: 15px; right: 15px; transform: scaleX(-1); }
.cb-bl { bottom: 15px; left: 15px; transform: scaleY(-1); }
.cb-br { bottom: 15px; right: 15px; transform: scale(-1); }
/* 音效按钮 */
.sound-btn {
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
font-size: 22px;
z-index: 20;
transition: transform 0.2s;
background: rgba(0, 0, 0, 0.3);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.sound-btn:hover { transform: scale(1.1); }
/* 页面居中布局 */
.page {
display: none;
width: 100%;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
animation: fadeIn 0.4s ease;
}
.page.active { display: flex; }
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.98); }
to { opacity: 1; transform: scale(1); }
}
/* 首页内容样式 */
.home-logos {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
flex-wrap: wrap;
justify-content: center;
}
.home-title {
font-size: clamp(24px, 5vw, 46px);
color: #f7e6e6;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
margin-bottom: 35px;
letter-spacing: 2px;
text-align: center;
padding: 0 10px;
}
.home-title span { color: #d93838; }
.btn-feather {
background: #e8e1d7;
color: #2b1d2c;
border: 2px solid #5a3d40;
padding: 14px 40px;
font-size: 18px;
font-weight: bold;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
transition: all 0.2s;
border-radius: 2px;
}
.btn-feather:hover {
background: #fff;
transform: translateY(-2px);
}
/* 底部标语居中 */
.footer-slogan {
position: absolute;
bottom: 20px;
font-size: clamp(11px, 2.5vw, 13px);
color: #d1c2c2;
text-align: center;
letter-spacing: 1px;
padding: 0 15px;
width: 100%;
left: 0;
}
/* 答题框样式 */
.question-box {
position: relative;
width: 85vw;
max-width: 750px;
aspect-ratio: 4 / 3;
background: rgba(34, 21, 23, 0.95);
border: 8px solid #3a2528;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
padding: 3% 4.5%;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 0 auto;
}
.q-title {
font-size: clamp(12px, 1.7vw, 16px);
color: #ffcccc;
margin-bottom: 1%;
background: #4a282b;
padding: 4px 10px;
display: inline-block;
border-radius: 4px;
align-self: flex-start;
line-height: 1.3;
}
.options-list {
display: flex;
flex-direction: column;
gap: 8px;
overflow: visible;
flex-grow: 1;
justify-content: space-evenly;
}
.option-item {
background: rgba(60, 38, 42, 0.8);
border: 1px dashed #7a5257;
padding: 0 2.5%;
font-size: clamp(11px, 1.4vw, 13.5px);
color: #e8dcd9;
cursor: pointer;
transition: all 0.2s;
text-align: left;
display: flex;
align-items: center;
height: 19%;
line-height: 1.35;
overflow: hidden;
}
.option-item:hover,
.option-item:active {
background: rgba(90, 58, 64, 0.95);
border-color: #d93838;
color: #fff;
}
.option-item.selected {
background: #7a282b !important;
border: 1px solid #ff4d4d !important;
color: #fff !important;
box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}
.nav-back-container {
position: absolute;
bottom: 2%;
left: 4.5%;
cursor: pointer;
font-size: 12px;
color: #ccc;
z-index: 15;
display: flex;
align-items: center;
gap: 5px;
padding: 2px;
}
.nav-back-container:hover { color: #fff; }
/* 结果页样式 */
.result-content {
display: flex;
width: 85vw;
max-width: 850px;
aspect-ratio: 16 / 10;
background: rgba(34, 21, 23, 0.95);
border: 8px solid #3a2528;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
padding: 4%;
border-radius: 4px;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
}
@media (min-width: 768px) {
.result-content {
flex-direction: row;
gap: 5%;
}
}
.result-left {
width: 100%;
text-align: center;
}
@media (min-width: 768px) {
.result-left { text-align: left; width: 60%; }
}
.result-title {
font-size: clamp(20px, 3.5vw, 32px);
color: #e63939;
margin-bottom: 10px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
text-align: center;
}
@media (min-width: 768px) { .result-title { text-align: left; } }
.result-desc {
font-size: clamp(11px, 1.6vw, 15px);
color: #d9cbcb;
line-height: 1.5;
margin-bottom: 15px;
background: rgba(0, 0, 0, 0.4);
padding: 15px;
border-radius: 4px;
text-align: left;
}
.result-actions {
display: flex;
gap: 12px;
margin-top: 10px;
justify-content: center;
flex-wrap: wrap;
}
@media (min-width: 768px) { .result-actions { justify-content: flex-start; } }
.result-right {
display: none;
}
@media (min-width: 768px) {
.result-right {
display: flex;
width: 35%;
height: 80%;
background: rgba(255, 255, 255, 0.05);
align-items: center;
justify-content: center;
border: 1px dashed #fff;
text-align: center;
border-radius: 4px;
}
}
</style>
</head>
<body>
🔊
🦋
🦋
🦋
🦋
吉星派对 × 魔法少女的魔女审判
你的选择,通向谁的命运?
<button class="btn-feather" onclick="startTest()">开始测试</button>
Q1: 测试题目加载中...
测试结果
结果加载中...
<button class="btn-feather" style="font-size: 11px; padding: 6px 12px;" onclick="switchPage('page-home')">重新测试</button>
<button class="btn-feather" style="font-size: 11px; padding: 6px 12px;" onclick="alert('请截图保存结果分享哦~')">截图分享结果</button>
[立绘占位]
<script>
// 题目数据:每个选项包含对应的文字与所属类型
const questions = [
{
title: "Q1: 派对刚刚开始,你抽到了几张功能牌。你会怎么做?",
options: [
{ text: "挑一张效果最特别的先试试,看看会发生什么有趣的变化。", type: "A" },
{ text: "不急着使用,先把每张牌的效果和使用条件看清楚,再观察其他人的选择。", type: "B" },
{ text: "先看看其他人的状态,把关键卡牌留到有人真正需要的时候使用。", type: "C" },
{ text: "提前安排好卡牌的使用顺序。既然拿到了好牌,当然要让它发挥价值。", type: "D" }
]
},
{
title: "Q2: 面对已经占据优势的对手,你打算采取什么策略?",
options: [
{ text: "尝试触发特殊事件,让当前局面出现意想不到的变化。", type: "A" },
{ text: "使用手中的攻击卡牌主动出击,先攻击为敬!", type: "D" },
{ text: "观察对方的路线和行动方式,寻找可以利用的弱点。", type: "B" },
{ text: "与其他玩家配合,一起改变局势。", type: "C" }
]
},
{
title: "Q3: 前方出现一个随机魔法事件,你会怎么选择?",
options: [
{ text: "毫不犹豫地触发事件,未知和惊喜才是派对的乐趣。", type: "A" },
{ text: "先考虑这个事件是否会影响其他人和当前局势,再决定是否触发。", type: "B" },
{ text: "回想之前发生过的事件,推测可能的情况后再行动。", type: "C" },
{ text: "只要有机会获得不错的奖励,就愿意承担一定的风险。", type: "D" }
]
},
{
title: "Q4: 你只剩下一张保护卡,但伙伴突然遭到攻击,你会怎么办?",
options: [
{ text: "先判断这次攻击是否严重,再决定是否使用唯一的保护卡。", type: "B" },
{ text: "尝试用其他特殊卡牌干扰对方,暂时保留最后的保护手段。", type: "D" },
{ text: "为了帮助队友,立刻使用保护卡!", type: "C" },
{ text: "先保留保护卡,下一回合直接反击敌人,把威胁彻底解决。", type: "A" }
]
},
{
title: "Q5: 距离升级只差一点,但商店中出现了一张稀有卡牌,你会……",
options: [
{ text: "优先升级!越接近胜利越不能偏离目标。", type: "D" },
{ text: "比较两种选择之后的收益,再选择回报更高的一项。", type: "B" },
{ text: "买下难得一见的稀有卡牌,之后的局势也许会因此改变。", type: "A" },
{ text: "根据队友的情况决定,如果有人需要,就先购买卡牌。", type: "C" }
]
},
{
title: "Q6: 最终对决在即,是自己获得胜利,还是争取队友一起翻盘……?",
options: [
{ text: "尽力帮助队友一起冲向终点!共同赢得最后的胜利更加重要。", type: "C" },
{ text: "先确认每个人的位置和资源,尝试找到最稳妥、最合理的行动方式。", type: "B" },
{ text: "抓住机会,先完成自己的胜利目标!胜利就在眼前,当然不能错过。", type: "D" },
{ text: "放手一搏!选择最有戏剧性的行动,即使最后的结果可能完全出乎意料。", type: "A" }
]
}
];
// 结果定义
const resultsMap = {
A: {
title: "趣味之共犯(乐子人路线)",
desc: "比起最终排名,你更在意过程中有没有发生一些足够有趣的事情。面对未知的事件,你容易被勾起好奇心,偶尔绕点远路或制造小混乱对于你来说都不算亏——站有趣的一边,就是我的信条。",
role: "[橘雪莉 立绘]"
},
B: {
title: "冷静之谋划者(战术大师路线)",
desc: "你习惯在行动前将局势和每项规则看透。相比于冲动和冒险,你更倾向于精打细算、观察所有人的破绽。运筹帷幄之中,决胜千里之外,这就是你的制胜之道。",
role: "[战术角色 立绘]"
},
C: {
title: "羁绊之守护者(团队核心路线)",
desc: "在你的眼中,单打独斗不如并肩作战。你时刻关注着队友的状态与需求,愿意为了大局或同伴调整自己的策略。有你在的地方,团队总能收获满满的安全感。",
role: "[守护角色 立绘]"
},
D: {
title: "激进之破局者(进攻先锋路线)",
desc: "目标永远只有一个,那就是胜利!你雷厉风行、喜欢掌握主动权,面对关键节点从不拖泥带水。只要机会出现,你就会以最快的速度将其抓在手中。",
role: "[进攻角色 立绘]"
}
};
let currentIdx = 0;
let isLocked = false;
let isMuted = false;
let userScores = { A: 0, B: 0, C: 0, D: 0 };
const prefixes = ["A. ", "B. ", "C. ", "D. "];
function toggleSound() {
isMuted = !isMuted;
document.getElementById('sound-btn').innerText = isMuted ? '🔇' : '🔊';
}
function startTest() {
currentIdx = 0;
userScores = { A: 0, B: 0, C: 0, D: 0 };
loadQuestion(currentIdx);
switchPage('page-question');
}
// Fisher-Yates 随机打乱数组算法
function shuffleArray(array) {
let arr = [...array];
for (let i = arr.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;
}
function loadQuestion(idx) {
isLocked = false;
const q = questions[idx];
document.getElementById('q-title').innerText = q.title;
// 每次加载时,只将文字内容进行随机打乱
const shuffledTexts = shuffleArray(q.options);
const listContainer = document.getElementById('options-list');
listContainer.innerHTML = ;
// A、B、C、D 序号固定在前面不变,后面对应随机的文本和原类型属性
shuffledTexts.forEach((optObj, optIndex) => {
const div = document.createElement('div');
div.className = 'option-item';
// 前缀 A. B. C. D 顺序绝对不变,变的是后面的文本
div.innerText = prefixes[optIndex] + optObj.text;
div.onclick = () => selectOption(div, optObj.type);
listContainer.appendChild(div);
});
updateNav();
}
function updateNav() {
const navText = document.getElementById('nav-text');
const navIcon = document.getElementById('nav-icon');
if (currentIdx === 0) {
navText.innerText = '返回首页';
navIcon.innerText = '🏠';
} else {
navText.innerText = '上一题';
navIcon.innerText = '⬅';
}
}
function handleNavClick() {
if (isLocked) return;
if (currentIdx === 0) {
switchPage('page-home');
} else {
currentIdx--;
loadQuestion(currentIdx);
}
}
function selectOption(element, type) {
if (isLocked) return;
isLocked = true;
element.classList.add('selected');
// 正确累加该文本所对应的倾向类型得分
userScores[type]++;
setTimeout(() => {
currentIdx++;
if (currentIdx < questions.length) {
loadQuestion(currentIdx);
} else {
calculateResult();
switchPage('page-result');
}
}, 400);
}
// 根据得分计算最终结果并渲染
function calculateResult() {
let maxScore = -1;
let finalType = 'A';
for (let key in userScores) {
if (userScores[key] > maxScore) {
maxScore = userScores[key];
finalType = key;
}
}
const res = resultsMap[finalType];
document.getElementById('res-title').innerText = res.title;
document.getElementById('res-desc').innerText = res.desc;
document.getElementById('res-role').innerText = res.role;
}
function switchPage(pageId) {
document.querySelectorAll('.page').forEach(p => p.classList.remove('active'));
document.getElementById(pageId).classList.add('active');
}
</script>
</body> </html>

沪公网安备 31011002002714 号