+ {/* User Info */}
+
+
+ 用戶資訊
+
+
+
+
+
+
+
+
{user.department}
+
+
+
+ {user.role}
+
+
+
+
+
+ {/* Score Overview */}
+
+
+
+ {result.score}
+
+ 測試完成!
+
+
+ {scoreLevel.level}
+
+
+ {scoreLevel.description}
+
+
+ 👉 建議:
+ {scoreLevel.suggestion}
+
+
+
+
+
+
+
{correctAnswers}
+
答對題數
+
+
+
{totalQuestions}
+
總題數
+
+
+
+ {totalQuestions > 0 ? Math.round((correctAnswers / totalQuestions) * 100) : 0}%
+
+
正確率
+
+
+
+
+
+
+ {/* Combined Test Details */}
+ {result.type === 'combined' && result.details && (
+
+
+ 綜合能力分析
+
+
+
+
+
邏輯思維
+
{result.details.logicScore}
+
+
+
創意能力
+
{result.details.creativeScore}
+
+
+
能力平衡
+
{result.details.abilityBalance}
+
+
+
+
+ )}
+
+ {/* Detailed Results */}
+ {questions.length > 0 && (
+
+
+ 詳細結果
+
+
+
+ {/* Logic Questions */}
+ {logicQuestions.length > 0 && (
+
+
+
+ 邏輯思維題目
+
+
+ {logicQuestions.map((question, index) => {
+ const userAnswer = question.userAnswer as string
+ const isCorrect = question.isCorrect
+
+ const getOptionText = (option: string) => {
+ switch (option) {
+ case 'A': return question.option_a
+ case 'B': return question.option_b
+ case 'C': return question.option_c
+ case 'D': return question.option_d
+ case 'E': return question.option_e
+ default: return "未作答"
+ }
+ }
+
+ const correctOptionText = getOptionText(question.correct_answer || '')
+ const userOptionText = userAnswer ? getOptionText(userAnswer) : "未作答"
+
+ return (
+
+
+
+ {isCorrect ? (
+
+ ) : (
+
+ )}
+
+
+
+ 第{index + 1}題:{question.question}
+
+
+
+ 用戶答案:
+
+ {userAnswer ? `${userAnswer}. ${userOptionText}` : "未作答"}
+
+
+ {!isCorrect && (
+
+ 正確答案:
+
+ {question.correct_answer}. {correctOptionText}
+
+
+ )}
+ {question.explanation && (
+
+ 解析:
+ {question.explanation}
+
+ )}
+
+
+
+
+ )
+ })}
+
+
+ )}
+
+ {/* Creative Questions */}
+ {creativeQuestions.length > 0 && (
+
+
+
+ 創意能力題目
+
+
+ {creativeQuestions.map((question, index) => (
+
+
+
第 {index + 1} 題
+
+ {question.score} 分
+
+
+
+
+
+
+
{question.statement}
+
+
+
+
+
+
{question.userAnswer}
+
+
+
+
{question.score} 分
+
+
+
+
+ ))}
+
+
+ )}
+
+
+
+ )}
+
+ {/* Actions */}
+
+