{"id":2508,"date":"2023-10-08T09:29:19","date_gmt":"2023-10-08T01:29:19","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2508"},"modified":"2025-08-12T02:30:07","modified_gmt":"2025-08-11T18:30:07","slug":"harvard-sexual-orientation","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/harvard-sexual-orientation","title":{"rendered":"\u54c8\u4f5b\u6027\u5411\u7dda\u4e0a\u514d\u8cbb\u6e2c\u9a57\uff0810\u984c\uff09\u4f60\u7684\u5fc3\u7406\u6027\u5225\u662f\u300c\u4ed6\u300d\u9084\u662f\u300c\u5979\u300d\uff1f"},"content":{"rendered":"<!-- Bootstrap CSS -->\n<link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootstrap\/5.3.3\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n<!-- Bootstrap Icons -->\n<link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootstrap-icons\/1.11.3\/font\/bootstrap-icons.min.css\" rel=\"stylesheet\">\n<!-- Chart.js -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/3.9.1\/chart.min.js\"><\/script>\n\n<style>\n:root {\n    --bs-purple: #6f42c1;\n    --bs-purple-dark: #5a369a;\n}\n\n.quiz-page {\n    display: none;\n    animation: fadeIn 0.3s ease-in-out;\n}\n\n.quiz-page.active {\n    display: block;\n}\n\n@keyframes fadeIn {\n    from { opacity: 0; transform: translateY(20px); }\n    to { opacity: 1; transform: translateY(0); }\n}\n\n.quiz-option {\n    transition: all 0.3s ease;\n    border: 2px solid #dee2e6;\n    border-radius: 0.5rem;\n    background-color: #fff;\n}\n\n.quiz-option:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.2);\n    border-color: var(--bs-purple);\n}\n\n.quiz-option.selected {\n    background: linear-gradient(135deg, var(--bs-purple), var(--bs-purple-dark)) !important;\n    color: white !important;\n    border-color: var(--bs-purple) !important;\n    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);\n}\n\n.btn:hover {\n    transform: translateY(-2px);\n}\n\n.bg-purple {\n    background-color: var(--bs-purple) !important;\n}\n\n.text-purple {\n    color: var(--bs-purple) !important;\n}\n\n.btn-purple {\n    background-color: var(--bs-purple);\n    border-color: var(--bs-purple);\n    color: white;\n}\n\n.btn-purple:hover {\n    background-color: var(--bs-purple-dark);\n    border-color: var(--bs-purple-dark);\n    color: white;\n}\n\n.btn-outline-purple {\n    color: var(--bs-purple);\n    border-color: var(--bs-purple);\n}\n\n.btn-outline-purple:hover {\n    background-color: var(--bs-purple);\n    border-color: var(--bs-purple);\n    color: white;\n}\n\n.progress-bar-success {\n    background-color: #198754;\n}\n\n@media (max-width: 768px) {\n    .display-4 { font-size: 2rem; }\n}\n<\/style>\n\n<div class=\"container my-5\" id=\"quiz-app\">\n    \n    <!-- \u5f15\u5c0e\u9801 -->\n    <section class=\"quiz-page active\" id=\"intro-page\">\n        <div class=\"row justify-content-center\">\n            <div class=\"col-lg-8\">\n                <div class=\"card shadow-lg border-0\">\n                    <div class=\"card-body p-5 text-center\">\n                        <h1 class=\"display-4 fw-bold text-purple mb-4\">\n                            <i class=\"bi bi-mortarboard-fill me-3\"><\/i>\n                            \u54c8\u4f5b\u6027\u5411\u6d4b\u9a8c\n                        <\/h1>\n                        \n                        <p class=\"lead text-muted mb-4\">\n                            \u54c8\u4f5b\u6027\u5411\u6d4b\u9a8c\u662f\u4e00\u4e2a\u7ecf\u5178\u7684\u5fc3\u7406\u6d4b\u8bd5\uff0c\u7528\u6765\u53cd\u6620\u4e00\u4e2a\u4eba\u7684\u6027\u5411\u503e\u5411\u3002\u5b83\u7531\u54c8\u4f5b\u5927\u5b66\u5fc3\u7406\u5b66\u5bb6\u5a01\u5ec9\u00b7\u827e\u5fb7\u66fc(William Edmon)\u57281948\u5e74\u63d0\u51fa\uff0c\u5176\u76ee\u7684\u662f\u6d4b\u8bd5\u4e00\u4e2a\u4eba\u662f\u5426\u5177\u6709\u67d0\u79cd\u6027\u5411\u503e\u5411\u3002\n                        <\/p>\n                        \n                        <p class=\"text-muted mb-5\">\n                            \u95ee\u5377\u5305\u62ec\u5bf9\u6027\u522b\u3001\u6027\u884c\u4e3a\u3001\u6027\u53d6\u5411\u3001\u6027\u522b\u89d2\u8272\u7b49\u7684\u95ee\u9898\uff0c\u900f\u8fc7\u6d4b\u9a8c\u53ef\u4ee5\u66f4\u6df1\u5165\u4e86\u89e3\u81ea\u5df1\u7684\u6027\u5411\u7279\u8d28\u3002\n                        <\/p>\n                        \n                        <!-- \u7279\u8272\u5716\u6a19 -->\n                        <div class=\"row g-4 mb-5\">\n                            <div class=\"col-6 col-md-3\">\n                                <div class=\"text-center\">\n                                    <div class=\"bg-purple rounded-circle d-inline-flex align-items-center justify-content-center mb-3\" style=\"width: 80px; height: 80px;\">\n                                        <i class=\"bi bi-clipboard-data text-white fs-1\"><\/i>\n                                    <\/div>\n                                    <h6 class=\"fw-bold\">\u79d1\u5b66\u6d4b\u9a8c<\/h6>\n                                <\/div>\n                            <\/div>\n                            <div class=\"col-6 col-md-3\">\n                                <div class=\"text-center\">\n                                    <div class=\"bg-success rounded-circle d-inline-flex align-items-center justify-content-center mb-3\" style=\"width: 80px; height: 80px;\">\n                                        <i class=\"bi bi-crosshair text-white fs-1\"><\/i>\n                                    <\/div>\n                                    <h6 class=\"fw-bold\">\u7cbe\u786e\u5206\u6790<\/h6>\n                                <\/div>\n                            <\/div>\n                            <div class=\"col-6 col-md-3\">\n                                <div class=\"text-center\">\n                                    <div class=\"bg-info rounded-circle d-inline-flex align-items-center justify-content-center mb-3\" style=\"width: 80px; height: 80px;\">\n                                        <i class=\"bi bi-person-badge text-white fs-1\"><\/i>\n                                    <\/div>\n                                    <h6 class=\"fw-bold\">\u4e13\u4e1a\u89e3\u8bfb<\/h6>\n                                <\/div>\n                            <\/div>\n                            <div class=\"col-6 col-md-3\">\n                                <div class=\"text-center\">\n                                    <div class=\"bg-warning rounded-circle d-inline-flex align-items-center justify-content-center mb-3\" style=\"width: 80px; height: 80px;\">\n                                        <i class=\"bi bi-lightbulb text-white fs-1\"><\/i>\n                                    <\/div>\n                                    <h6 class=\"fw-bold\">\u6df1\u5ea6\u6d1e\u5bdf<\/h6>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                        \n                        <div class=\"alert alert-info mb-4\">\n                            <i class=\"bi bi-info-circle me-2\"><\/i>\n                            \u672c\u6e2c\u9a57\u5171\u670910\u9053\u984c\u76ee\uff0c\u6bcf\u984c4\u500b\u9078\u9805\uff0c\u9078\u64c7\u6700\u7b26\u5408\u4f60\u7684\u7b54\u6848\u3002\u6e2c\u9a57\u7d50\u679c\u5c07\u6839\u64da\u4f60\u7684\u7b54\u6848\u548c\u6027\u5225\u63d0\u4f9b\u5206\u6790\u3002\n                        <\/div>\n                        \n                        <button class=\"btn btn-purple btn-lg px-5 py-3 shadow\" id=\"start-btn\">\n                            <i class=\"bi bi-play-fill me-2\"><\/i>\n                            \u5f00\u59cb\u6d4b\u9a8c\n                        <\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/section>\n\n    <!-- \u6e2c\u9a57\u9801 -->\n    <section class=\"quiz-page\" id=\"questions-page\">\n        <div class=\"row justify-content-center\">\n            <div class=\"col-lg-8\">\n                <div class=\"card shadow-lg border-0\">\n                    <div class=\"card-header bg-purple text-white py-4\">\n                        <div class=\"d-flex justify-content-between align-items-center\">\n                            <h4 class=\"mb-0\">\n                                <i class=\"bi bi-mortarboard-fill me-2\"><\/i>\n                                \u54c8\u4f5b\u6027\u5411\u6d4b\u9a8c\n                            <\/h4>\n                            <span class=\"badge bg-light text-purple fs-6\" id=\"progress-text\">\u95ee\u98981\/10<\/span>\n                        <\/div>\n                    <\/div>\n                    \n                    <div class=\"card-body p-0\">\n                        <!-- \u9032\u5ea6\u689d -->\n                        <div class=\"progress\" style=\"height: 8px;\">\n                            <div class=\"progress-bar progress-bar-success\" id=\"progress-bar\" style=\"width: 10%\"><\/div>\n                        <\/div>\n                        \n                        <div class=\"p-5\">\n                            <!-- \u554f\u984c\u6a19\u984c -->\n                            <h5 class=\"fw-bold mb-4 text-center\" id=\"question-title\"><\/h5>\n                            \n                            <!-- \u9078\u9805\u5bb9\u5668 -->\n                            <div class=\"d-grid gap-3 mb-4\" id=\"options-container\"><\/div>\n                            \n                            <!-- \u5c0e\u822a\u6309\u9215 -->\n                            <div class=\"text-center\">\n                                <button class=\"btn btn-outline-secondary btn-lg px-4\" id=\"prev-btn\" style=\"display: none;\">\n                                    <i class=\"bi bi-arrow-left me-2\"><\/i>\n                                    \u4e0a\u4e00\u9898\n                                <\/button>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/section>\n\n    <!-- \u6027\u5225\u9078\u64c7\u9801 -->\n    <section class=\"quiz-page\" id=\"gender-page\">\n        <div class=\"row justify-content-center\">\n            <div class=\"col-lg-6\">\n                <div class=\"card shadow-lg border-0\">\n                    <div class=\"card-body p-5 text-center\">\n                        <h3 class=\"fw-bold text-purple mb-4\">\n                            <i class=\"bi bi-person-circle me-2\"><\/i>\n                            \u8bf7\u9009\u62e9\u60a8\u7684\u6027\u522b\n                        <\/h3>\n                        \n                        <p class=\"text-muted mb-4\">\n                            \u6d4b\u9a8c\u7ed3\u679c\u5206\u6790\u4f1a\u6839\u636e\u60a8\u7684\u6027\u522b\u6709\u6240\u4e0d\u540c\uff0c\u8bf7\u9009\u62e9\uff1a\n                        <\/p>\n                        \n                        <div class=\"d-grid gap-3\">\n                            <button class=\"btn btn-outline-purple btn-lg py-3 shadow-sm gender-option\" data-gender=\"male\">\n                                <i class=\"bi bi-person-standing me-2\"><\/i>\n                                \u7537\u6027\n                            <\/button>\n                            <button class=\"btn btn-outline-purple btn-lg py-3 shadow-sm gender-option\" data-gender=\"female\">\n                                <i class=\"bi bi-person-standing-dress me-2\"><\/i>\n                                \u5973\u6027\n                            <\/button>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/section>\n\n    <!-- \u7d50\u679c\u9801 -->\n    <section class=\"quiz-page\" id=\"results-page\">\n        <div class=\"row justify-content-center\">\n            <div class=\"col-lg-10\">\n                <!-- \u7d50\u679c\u5361\u7247 -->\n                <div class=\"card shadow-lg border-0 mb-4\">\n                    <div class=\"card-header bg-purple text-white text-center py-4\">\n                        <h3 class=\"mb-2\">\n                            <i class=\"bi bi-award-fill me-2\"><\/i>\n                            \u6d4b\u9a8c\u7ed3\u679c\n                        <\/h3>\n                        <h4 class=\"fw-bold mb-0\" id=\"result-score\"><\/h4>\n                    <\/div>\n                    <div class=\"card-body p-5 text-center\">\n                        <h2 class=\"fw-bold text-purple mb-4\" id=\"result-title\"><\/h2>\n                        \n                        <!-- \u5716\u8868\u5bb9\u5668 -->\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 mb-4\">\n                                <div class=\"border rounded p-3\" style=\"height: 400px;\">\n                                    <canvas id=\"result-chart\"><\/canvas>\n                                <\/div>\n                            <\/div>\n                            <div class=\"col-lg-6\">\n                                <div class=\"alert alert-light border h-100 d-flex align-items-center\">\n                                    <div>\n                                        <h6 class=\"fw-bold text-purple mb-3\">\u8a73\u7d30\u5206\u6790\uff1a<\/h6>\n                                        <p class=\"mb-0 text-start\" id=\"result-description\"><\/p>\n                                    <\/div>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                        \n                        <button class=\"btn btn-purple btn-lg px-5 py-3 mt-4 shadow\" id=\"restart-btn\">\n                            <i class=\"bi bi-arrow-clockwise me-2\"><\/i>\n                            \u91cd\u65b0\u6d4b\u8bd5\n                        <\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/section>\n<\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    'use strict';\n    \n    \/\/ \u6e2c\u9a57\u61c9\u7528\u985e\n    class HarvardOrientationQuiz {\n        constructor() {\n            this.currentQuestionIndex = 0;\n            this.userAnswers = [];\n            this.userGender = null;\n            this.totalScore = 0;\n            this.resultChart = null;\n            \n            this.questions = [\n                {\n                    id: 1,\n                    question: \"\u8857\u982d\uff0c\u4f60\u898b\u5230\u8a31\u4e45\u672a\u898b\u7684\u7ae5\u5e74\u5bc6\u53cb\uff0c\u4f60\u6703\u6709\u4ec0\u9ebc\u8868\u73fe\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u770b\u770b\u4ed6\u7684\u7a7f\u8457\uff0c\u6709\u4ec0\u9ebc\u8b8a\u5316\", score: 15 },\n                        { id: \"B\", text: \"\u71b1\u60c5\u7684\u6253\u62db\u547c\", score: 10 },\n                        { id: \"C\", text: \"\u64c1\u62b1\", score: 5 },\n                        { id: \"D\", text: \"\u63e1\u624b\u6216\u8005\u62cd\u62cd\u5c0d\u65b9\u7684\u80a9\", score: 0 }\n                    ]\n                },\n                {\n                    id: 2,\n                    question: \"\u9592\u4f86\u7121\u4e8b\uff0c\u4f60\u8207\u540c\u6027\u670b\u53cb\u4e00\u8d77\u901b\u8857\u3002\u9019\u6642\uff0c\u4ed6\u5efa\u8b70\u53bb\u770b\u96fb\u5f71\uff0c\u4f60\u6703\u9078\u64c7\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u6d6a\u6f2b\u611b\u60c5\u7247\", score: 15 },\n                        { id: \"B\", text: \"\u8f15\u9b06\u559c\u5287\u7247\", score: 10 },\n                        { id: \"C\", text: \"\u6b66\u4fe0\u50b3\u5947\u7247\", score: 5 },\n                        { id: \"D\", text: \"\u9a5a\u609a\u6050\u6016\u7247\", score: 0 }\n                    ]\n                },\n                {\n                    id: 3,\n                    question: \"\u4f60\u6700\u559c\u6b61\u4ec0\u9ebc\u984f\u8272\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u7d05\u3001\u7da0\u8272\u7cfb\", score: 15 },\n                        { id: \"B\", text: \"\u6a58\u9ec3\u3001\u8910\u8272\u7cfb\", score: 10 },\n                        { id: \"C\", text: \"\u85cd\u3001\u7d2b\u8272\u7cfb\", score: 5 },\n                        { id: \"D\", text: \"\u9ed1\u3001\u767d\u8272\u7cfb\", score: 0 }\n                    ]\n                },\n                {\n                    id: 4,\n                    question: \"\u590f\u5929\uff0c\u623f\u9593\u88e1\u6709\u868a\u5b50\u98db\u4f86\u98db\u53bb\uff0c\u4f60\u6703\u9078\u64c7\u7528\u4ec0\u9ebc\u6c23\u5473\u7684\u868a\u9999\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u73ab\u7470\u9999\u578b\", score: 15 },\n                        { id: \"B\", text: \"\u8349\u8393\u9999\u578b\", score: 10 },\n                        { id: \"C\", text: \"\u5976\u7cd6\u9999\u578b\", score: 5 },\n                        { id: \"D\", text: \"\u860b\u679c\u9999\u578b\", score: 0 }\n                    ]\n                },\n                {\n                    id: 5,\n                    question: \"\u7576\u4f60\u611f\u5230\u7121\u52a9\u7684\u6642\u5019\uff0c\u4f60\u5e38\u5e38\u6703\u60f3\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u52a0\u6cb9\uff01\u99ac\u4e0a\u5c31\u6703\u597d\u8f49\u4e86\", score: 15 },\n                        { id: \"B\", text: \"\u518d\u8a66\u4e00\u6b21\u5427\uff0c\u4e5f\u8a31\u9084\u6709\u4e00\u7dda\u5e0c\u671b\", score: 10 },\n                        { id: \"C\", text: \"\u7948\u79b1\u6709\u4eba\u4f86\u5e6b\u5fd9\", score: 5 },\n                        { id: \"D\", text: \"\u5931\u671b\u800c\u5fc3\u7070\u610f\u51b7\", score: 0 }\n                    ]\n                },\n                {\n                    id: 6,\n                    question: \"\u5982\u679c\u4f60\u990a\u4e86\u4e00\u96bb\u5bf5\u7269\u72d7\uff0c\u5b83\u975e\u5e38\u53ef\u611b\uff0c\u4f60\u6703\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u5929\u5929\u7d66\u5b83\u6d17\u6fa1\", score: 15 },\n                        { id: \"B\", text: \"\u4e00\u9031\u6d17\u4e00\u6b21\", score: 10 },\n                        { id: \"C\", text: \"\u4e00\u500b\u6708\u6d17\u4e00\u6b21\", score: 5 },\n                        { id: \"D\", text: \"\u81ea\u5df1\u90fd\u4e0d\u60f3\u6d17\uff0c\u9084\u8ddf\u5b83\u6d17\", score: 0 }\n                    ]\n                },\n                {\n                    id: 7,\n                    question: \"\u5047\u5982\u6709\u4e00\u5929\u4f60\u62fe\u5230\u4e86\u963f\u62c9\u4e01\u795e\u71c8\uff0c\u4f60\u60f3\u8981\u4ec0\u9ebc\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u4e00\u500b\u5fc3\u9858\", score: 15 },\n                        { id: \"B\", text: \"\u4e00\u751f\u5e78\u798f\", score: 10 },\n                        { id: \"C\", text: \"\u9577\u751f\u4e0d\u8001\", score: 5 },\n                        { id: \"D\", text: \"\u4e00\u7b46\u8ca1\u5bcc\", score: 0 }\n                    ]\n                },\n                {\n                    id: 8,\n                    question: \"\u5982\u679c\u53ef\u4ee5\u7684\u8a71\uff0c\u4f60\u5e0c\u671b\u4f60\u7684\u6ed1\u9f20\u662f\u4ec0\u9ebc\u5f62\u72c0\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u4e94\u89d2\u578b\", score: 15 },\n                        { id: \"B\", text: \"\u5713\u7403\u5f62\", score: 10 },\n                        { id: \"C\", text: \"\u5e73\u884c\u56db\u908a\u578b\", score: 5 },\n                        { id: \"D\", text: \"\u68f1\u578b\", score: 0 }\n                    ]\n                },\n                {\n                    id: 9,\n                    question: \"\u5982\u679c\u4f60\u73fe\u5728\u662f\u4e00\u96bb\u6930\u5b50\uff0c\u5373\u5c07\u88ab\u4eba\u54c1\u5617\uff0c\u4f60\u5e0c\u671b\u98df\u5ba2\u7684\u65b9\u5f0f\u662f\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u5728\u4f60\u8eab\u4e0a\u947f\u500b\u5c0f\u6d1e\uff0c\u7528\u5438\u7ba1\u98f2\u7528\", score: 15 },\n                        { id: \"B\", text: \"\u4e00\u5256\u5169\u534a\u5f8c\u98f2\u7528\", score: 10 },\n                        { id: \"C\", text: \"\u5c07\u8868\u76ae\u6495\u958b\u4e00\u90e8\u5206\uff0c\u542e\u4e4b\", score: 5 },\n                        { id: \"D\", text: \"\u7121\u6240\u8b02\uff0c\u53cd\u6b63\u90fd\u662f\u88ab\u5403\u6389\", score: 0 }\n                    ]\n                },\n                {\n                    id: 10,\n                    question: \"\u6df1\u591c\uff0c\u4f60\u770b\u5230\u4e00\u8f1b\u6a5f\u8eca\u98db\u99b3\u800c\u904e\uff0c\u8eca\u4e0a\u662f\u5169\u500b\u6234\u8457\u9ed1\u8272\u5b89\u5168\u5e3d\uff0c\u7a7f\u9ed1\u8272\u76ae\u8863\u7684\u4eba\uff0c\u4f60\u8a8d\u70ba\u9019\u5169\u500b\u4eba\u662f\uff1f\",\n                    options: [\n                        { id: \"A\", text: \"\u5169\u500b\u90fd\u662f\u7537\u6027\u3002\", score: 15 },\n                        { id: \"B\", text: \"\u524d\u5ea7\u662f\u7537\u6027\uff0c\u5f8c\u5ea7\u662f\u5973\u6027\u3002\", score: 10 },\n                        { id: \"C\", text: \"\u524d\u5ea7\u662f\u5973\u6027\uff0c\u5f8c\u5ea7\u662f\u7537\u6027\u3002\", score: 5 },\n                        { id: \"D\", text: \"\u5169\u500b\u90fd\u662f\u5973\u6027\u3002\", score: 0 }\n                    ]\n                }\n            ];\n            \n            this.results = {\n                female: [\n                    {\n                        range: [0, 30],\n                        title: \"\u9ad8\u5ea6\u540c\u6027\u6200\u50be\u5411\u8005\",\n                        description: \"\u4f60\u5c0d\u7537\u6027\u4e0d\u611f\u8208\u8da3\uff0c\u6240\u4ee5\u4e5f\u7121\u6cd5\u5411\u4ed6\u5011\u8868\u9054\u81ea\u5df1\u7684\u611f\u60c5\u3002\u5e73\u6642\u5728\u751f\u6d3b\u4e2d\u63a5\u89f8\u8f03\u591a\u7684\u4e5f\u90fd\u662f\u540c\u6027\uff0c\u4f60\u5e38\u5e38\u6703\u4e0d\u81ea\u89ba\u7684\u88ab\u6eab\u67d4\u6f02\u4eae\u7684\u5973\u6027\u6240\u5438\u5f15\uff0c\u4e26\u89ba\u5f97\u8207\u540c\u6027\u5728\u4e00\u8d77\u8aaa\u8a71\u3001\u804a\u5929\u6bd4\u8207\u7537\u6027\u5728\u4e00\u8d77\u73a9\u6a02\u66f4\u6109\u5feb\u3002\u5982\u679c\u9047\u5230\u76f8\u4e92\u6b23\u8cde\u7684\u540c\u6027\uff0c\u4fbf\u6709\u53ef\u80fd\u9677\u5165\u540c\u6027\u6200\u60c5\u4e2d\u3002\"\n                    },\n                    {\n                        range: [31, 70],\n                        title: \"\u7565\u5e36\u7537\u6027\u7279\u5fb5\u8005\",\n                        description: \"\u751f\u6d3b\u4e2d\uff0c\u4f60\u8207\u540c\u6027\u76f8\u8655\u8f03\u7537\u6027\u66f4\u70ba\u878d\u6d3d\uff0c\u8207\u540c\u6027\u4e00\u8d77\u5de5\u4f5c\uff0c\u5f7c\u6b64\u9f13\u52f5\uff0c\u80fd\u767c\u63ee\u66f4\u597d\u7684\u6548\u529b\u3002\u96d6\u7136\u5728\u65e5\u5e38\u751f\u6d3b\u4e2d\uff0c\u4f60\u4e0d\u6703\u767c\u751f\u5be6\u969b\u7684\u540c\u6027\u6200\u884c\u70ba\uff0c\u4f46\u4f60\u5728\u8a00\u8ac7\u8209\u6b62\u4e2d\uff0c\u537b\u5177\u6709\u4e00\u4e9b\u7537\u6027\u7279\u5fb5\u3002\u56e0\u800c\u6613\u5c0d\u7537\u6027\u7522\u751f\u6392\u65a5\u7684\u5fc3\u7406\uff0c\u800c\u5c0e\u81f4\u6700\u5f8c\u5931\u53bb\u8208\u8da3\u3002\"\n                    },\n                    {\n                        range: [71, 110],\n                        title: \"\u4e2d\u6027\u5316\u8005\",\n                        description: \"\u4f60\u6c92\u6709\u540c\u6027\u6200\u50be\u5411\uff0c\u4f46\u901a\u5e38\u6703\u8868\u73fe\u51fa\u96d9\u91cd\u500b\u6027\uff0c\u6709\u6642\u6eab\u548c\u9ad4\u8cbc\uff0c\u6709\u6642\u53c8\u6703\u986f\u5f97\u525b\u6bc5\u5341\u8db3\u3002\u751f\u6d3b\u4e2d\uff0c\u540c\u6027\u8207\u7570\u6027\u670b\u53cb\u90fd\u6bd4\u8f03\u591a\uff0c\u8207\u4ed6\u5011\u4e5f\u90fd\u80fd\u548c\u5f97\u4f86\u3002\"\n                    },\n                    {\n                        range: [111, 150],\n                        title: \"\u767e\u5206\u767e\u5973\u4eba\",\n                        description: \"\u4f60\u662f\u4e00\u500b\u767e\u5206\u767e\u5973\u4eba\uff0c\u4f60\u559c\u6b61\u7684\u662f\u7570\u6027\uff0c\u8207\u7570\u6027\u5728\u4e00\u8d77\uff0c\u8b93\u4f60\u601d\u7dd2\u98db\u63da\uff0c\u5145\u6eff\u61a7\u61ac\u3002\u8207\u7570\u6027\u76f8\u8655\u6642\uff0c\u4f60\u4e5f\u6703\u4e0d\u81ea\u89ba\u5f97\u7684\u8868\u73fe\u51fa\u81ea\u5df1\u6700\u512a\u79c0\u7684\u4e00\u9762\uff0c\u4f86\u5438\u5f15\u7570\u6027\u7684\u76ee\u5149\u8207\u95dc\u6ce8\u3002\"\n                    }\n                ],\n                male: [\n                    {\n                        range: [121, 150],\n                        title: \"\u9ad8\u5ea6\u540c\u6027\u6200\u50be\u5411\u8005\",\n                        description: \"\u4f60\u5c0d\u5973\u6027\u4e0d\u611f\u8208\u8da3\uff0c\u6240\u4ee5\u4e5f\u7121\u6cd5\u5411\u5979\u5011\u8868\u9054\u81ea\u5df1\u7684\u611f\u60c5\u3002\u5e73\u6642\u5728\u751f\u6d3b\u4e2d\u63a5\u89f8\u8f03\u591a\u7684\u4e5f\u90fd\u662f\u540c\u6027\uff0c\u4f60\u5e38\u5e38\u6703\u4e0d\u81ea\u89ba\u7684\u88ab\u82f1\u4fca\u800c\u7051\u812b\u7684\u7537\u6027\u6240\u5438\u5f15\uff0c\u4e26\u89ba\u5f97\u8207\u540c\u6027\u5728\u4e00\u8d77\u8aaa\u8a71\u3001\u804a\u5929\u6bd4\u8207\u5973\u6027\u5728\u4e00\u8d77\u73a9\u6a02\u66f4\u6109\u5feb\u3002\u5982\u679c\u9047\u5230\u76f8\u4e92\u6b23\u8cde\u7684\u540c\u6027\uff0c\u4fbf\u6709\u53ef\u80fd\u9677\u5165\u540c\u6027\u6200\u60c5\u4e2d\u3002\"\n                    },\n                    {\n                        range: [81, 120],\n                        title: \"\u7565\u5e36\u5973\u6027\u7279\u5fb5\u8005\",\n                        description: \"\u751f\u6d3b\u4e2d\uff0c\u4f60\u8207\u540c\u6027\u76f8\u8655\u8f03\u5973\u6027\u66f4\u70ba\u878d\u6d3d\uff0c\u8207\u540c\u6027\u4e00\u8d77\u5de5\u4f5c\uff0c\u5f7c\u6b64\u9f13\u52f5\uff0c\u80fd\u767c\u63ee\u66f4\u597d\u7684\u6548\u529b\u3002\u96d6\u7136\u5728\u65e5\u5e38\u751f\u6d3b\u4e2d\uff0c\u4f60\u4e0d\u6703\u767c\u751f\u5be6\u969b\u7684\u540c\u6027\u6200\u884c\u70ba\uff0c\u4f46\u4f60\u5728\u8a00\u8ac7\u8209\u6b62\u4e2d\uff0c\u537b\u5177\u6709\u4e00\u4e9b\u5973\u6027\u7279\u5fb5\u3002\u56e0\u800c\u6613\u5c0d\u5973\u6027\u7522\u751f\u6392\u65a5\u7684\u5fc3\u7406\uff0c\u800c\u5c0e\u81f4\u6700\u5f8c\u5931\u53bb\u8208\u8da3\u3002\"\n                    },\n                    {\n                        range: [41, 80],\n                        title: \"\u4e2d\u6027\u5316\u8005\",\n                        description: \"\u4f60\u96d6\u7136\u6c92\u6709\u540c\u6027\u6200\u50be\u5411\uff0c\u4f46\u901a\u5e38\u6703\u8868\u73fe\u51fa\u96d9\u91cd\u500b\u6027\uff0c\u6709\u6642\u6eab\u548c\u9ad4\u8cbc\uff0c\u6709\u6642\u53c8\u6703\u986f\u5f97\u525b\u6bc5\u5341\u8db3\u3002\u751f\u6d3b\u4e2d\uff0c\u540c\u6027\u8207\u7570\u6027\u670b\u53cb\u90fd\u6bd4\u8f03\u591a\uff0c\u8207\u4ed6\u5011\u4e5f\u90fd\u80fd\u548c\u5f97\u4f86\u3002\"\n                    },\n                    {\n                        range: [0, 40],\n                        title: \"\u767e\u5206\u767e\u7684\u7537\u4eba\",\n                        description: \"\u4f60\u662f\u4e00\u500b\u767e\u5206\u767e\u7684\u7537\u4eba\uff0c\u4f60\u559c\u6b61\u7684\u662f\u7570\u6027\uff0c\u8207\u7570\u6027\u5728\u4e00\u8d77\uff0c\u8b93\u4f60\u601d\u7dd2\u98db\u63da\uff0c\u5145\u6eff\u61a7\u61ac\u3002\u8207\u7570\u6027\u76f8\u8655\u6642\uff0c\u4f60\u4e5f\u6703\u4e0d\u81ea\u89ba\u5f97\u7684\u8868\u73fe\u51fa\u81ea\u5df1\u6700\u512a\u79c0\u7684\u4e00\u9762\uff0c\u4f86\u5438\u5f15\u7570\u6027\u7684\u76ee\u5149\u8207\u95dc\u6ce8\u3002\"\n                    }\n                ]\n            };\n            \n            this.initElements();\n            this.bindEvents();\n        }\n        \n        \/\/ \u521d\u59cb\u5316DOM\u5143\u7d20\n        initElements() {\n            this.elements = {\n                introPage: document.getElementById('intro-page'),\n                questionsPage: document.getElementById('questions-page'),\n                genderPage: document.getElementById('gender-page'),\n                resultsPage: document.getElementById('results-page'),\n                startBtn: document.getElementById('start-btn'),\n                prevBtn: document.getElementById('prev-btn'),\n                restartBtn: document.getElementById('restart-btn'),\n                questionTitle: document.getElementById('question-title'),\n                optionsContainer: document.getElementById('options-container'),\n                progressText: document.getElementById('progress-text'),\n                progressBar: document.getElementById('progress-bar'),\n                resultScore: document.getElementById('result-score'),\n                resultTitle: document.getElementById('result-title'),\n                resultDescription: document.getElementById('result-description'),\n                resultChart: document.getElementById('result-chart')\n            };\n        }\n        \n        \/\/ \u7d81\u5b9a\u4e8b\u4ef6\n        bindEvents() {\n            this.elements.startBtn.addEventListener('click', () => this.startQuiz());\n            this.elements.prevBtn.addEventListener('click', () => this.previousQuestion());\n            this.elements.restartBtn.addEventListener('click', () => this.resetQuiz());\n            \n            \/\/ \u6027\u5225\u9078\u64c7\u4e8b\u4ef6\n            document.querySelectorAll('.gender-option').forEach(btn => {\n                btn.addEventListener('click', (e) => {\n                    this.userGender = e.target.closest('.gender-option').dataset.gender;\n                    this.showResults();\n                });\n            });\n        }\n        \n        \/\/ \u958b\u59cb\u6e2c\u9a57\n        startQuiz() {\n            this.showPage(this.elements.questionsPage);\n            this.renderQuestion();\n        }\n        \n        \/\/ \u986f\u793a\u9801\u9762\n        showPage(page) {\n            document.querySelectorAll('.quiz-page').forEach(p => p.classList.remove('active'));\n            page.classList.add('active');\n            this.scrollToTop();\n        }\n        \n        \/\/ \u6e32\u67d3\u554f\u984c\n        renderQuestion() {\n            const question = this.questions[this.currentQuestionIndex];\n            \n            this.elements.questionTitle.textContent = question.question;\n            this.elements.optionsContainer.innerHTML = '';\n            \n            question.options.forEach(option => {\n                const button = document.createElement('button');\n                button.className = 'list-group-item list-group-item-action text-start p-4 quiz-option';\n                button.innerHTML = `\n                    <div class=\"d-flex align-items-center\">\n                        <span class=\"badge bg-purple text-white me-3 fs-6\">${option.id}<\/span>\n                        <span class=\"fw-medium\">${option.text}<\/span>\n                    <\/div>\n                `;\n                \n                if (this.userAnswers[this.currentQuestionIndex]?.id === option.id) {\n                    button.classList.add('selected');\n                }\n                \n                button.addEventListener('click', () => this.selectOption(option));\n                this.elements.optionsContainer.appendChild(button);\n            });\n            \n            this.updateProgress();\n            this.elements.prevBtn.style.display = this.currentQuestionIndex > 0 ? 'inline-block' : 'none';\n        }\n        \n        \/\/ \u9078\u64c7\u9078\u9805\n        selectOption(option) {\n            this.userAnswers[this.currentQuestionIndex] = option;\n            \n            \/\/ \u66f4\u65b0\u9078\u4e2d\u72c0\u614b\n            this.elements.optionsContainer.querySelectorAll('.quiz-option').forEach(btn => {\n                btn.classList.remove('selected');\n            });\n            \n            event.target.closest('.quiz-option').classList.add('selected');\n            \n            \/\/ \u5ef6\u9072\u9032\u5165\u4e0b\u4e00\u984c\n            setTimeout(() => {\n                if (this.currentQuestionIndex < this.questions.length - 1) {\n                    this.currentQuestionIndex++;\n                    this.renderQuestion();\n                } else {\n                    this.showPage(this.elements.genderPage);\n                }\n            }, 600);\n        }\n        \n        \/\/ \u4e0a\u4e00\u984c\n        previousQuestion() {\n            if (this.currentQuestionIndex > 0) {\n                this.currentQuestionIndex--;\n                this.renderQuestion();\n            }\n        }\n        \n        \/\/ \u66f4\u65b0\u9032\u5ea6\n        updateProgress() {\n            const progress = ((this.currentQuestionIndex + 1) \/ this.questions.length) * 100;\n            this.elements.progressText.textContent = `\u554f\u984c ${this.currentQuestionIndex + 1}\/${this.questions.length}`;\n            this.elements.progressBar.style.width = `${progress}%`;\n        }\n        \n        \/\/ \u986f\u793a\u7d50\u679c\n        showResults() {\n            this.calculateScore();\n            this.showPage(this.elements.resultsPage);\n            this.renderChart();\n        }\n        \n        \/\/ \u8a08\u7b97\u5206\u6578\n        calculateScore() {\n            this.totalScore = this.userAnswers.reduce((total, answer) => total + answer.score, 0);\n            \n            const resultData = this.results[this.userGender];\n            const result = resultData.find(r => \n                this.totalScore >= r.range[0] && this.totalScore <= r.range[1]\n            );\n            \n            this.elements.resultScore.textContent = `\u7e3d\u5206: ${this.totalScore}`;\n            this.elements.resultTitle.textContent = result.title;\n            this.elements.resultDescription.textContent = result.description;\n        }\n        \n        \/\/ \u6e32\u67d3\u5716\u8868\n        renderChart() {\n            if (this.resultChart) {\n                this.resultChart.destroy();\n            }\n            \n            const optionCounts = { A: 0, B: 0, C: 0, D: 0 };\n            this.userAnswers.forEach(answer => {\n                optionCounts[answer.id]++;\n            });\n            \n            const percentages = {\n                A: (optionCounts.A \/ this.questions.length) * 100,\n                B: (optionCounts.B \/ this.questions.length) * 100,\n                C: (optionCounts.C \/ this.questions.length) * 100,\n                D: (optionCounts.D \/ this.questions.length) * 100\n            };\n            \n            const ctx = this.elements.resultChart.getContext('2d');\n            \n            this.resultChart = new Chart(ctx, {\n                type: 'radar',\n                data: {\n                    labels: ['\u654f\u611f\u5ea6 (A\u9078\u9805)', '\u793e\u4ea4\u6027 (B\u9078\u9805)', '\u89aa\u548c\u529b (C\u9078\u9805)', '\u7368\u7acb\u6027 (D\u9078\u9805)'],\n                    datasets: [{\n                        label: '\u4f60\u7684\u6027\u5411\u7279\u8cea\u5206\u5e03',\n                        data: [percentages.A, percentages.B, percentages.C, percentages.D],\n                        backgroundColor: 'rgba(111, 66, 193, 0.3)',\n                        borderColor: 'rgba(111, 66, 193, 1)',\n                        pointBackgroundColor: 'rgba(111, 66, 193, 1)',\n                        borderWidth: 2,\n                        pointBorderColor: '#fff',\n                        pointHoverBackgroundColor: '#fff',\n                        pointHoverBorderColor: 'rgba(111, 66, 193, 1)'\n                    }]\n                },\n                options: {\n                    responsive: true,\n                    maintainAspectRatio: false,\n                    scales: {\n                        r: {\n                            beginAtZero: true,\n                            max: 100,\n                            ticks: {\n                                stepSize: 20,\n                                font: { size: 12 }\n                            },\n                            pointLabels: {\n                                font: { size: 14, weight: 'bold' }\n                            }\n                        }\n                    },\n                    plugins: {\n                        legend: {\n                            position: 'top',\n                            labels: {\n                                font: { size: 16, weight: 'bold' },\n                                padding: 20\n                            }\n                        }\n                    }\n                }\n            });\n        }\n        \n        \/\/ \u91cd\u7f6e\u6e2c\u9a57\n        resetQuiz() {\n            this.currentQuestionIndex = 0;\n            this.userAnswers = [];\n            this.userGender = null;\n            this.totalScore = 0;\n            \n            if (this.resultChart) {\n                this.resultChart.destroy();\n                this.resultChart = null;\n            }\n            \n            this.showPage(this.elements.introPage);\n        }\n        \n        \/\/ \u6efe\u52d5\u5230\u9802\u90e8\n        scrollToTop() {\n            window.scrollTo({ top: 0, behavior: 'smooth' });\n        }\n    }\n    \n    \/\/ \u521d\u59cb\u5316\u61c9\u7528\n    new HarvardOrientationQuiz();\n});\n<\/script>\n\n<!-- Bootstrap JS -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootstrap\/5.3.3\/js\/bootstrap.bundle.min.js\"><\/script>","protected":false},"excerpt":{"rendered":"<p>\u7531\u54c8\u4f5b\u5927\u5b66\u5fc3\u7406\u5b66\u5bb6\u5a01\u5ec9\u00b7\u827e\u5fb7\u66fc(William Edmon)\u57281948\u5e74\u63d0\u51fa\uff0c\u5176\u76ee\u7684\u662f\u6d4b\u8bd5\u4e00\u4e2a\u4eba\u662f\u5426\u5177\u6709\u67d0\u79cd\u6027\u5411\u503e\u5411\u3002\u95ee\u5377\u5305\u62ec\u5bf9\u6027\u522b\u3001\u6027\u884c\u4e3a\u3001\u6027\u53d6\u5411\u3001\u6027\u522b\u89d2\u8272\u7b49\u7684\u95ee\u9898<\/p>","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"normal-width-container","site-content-style":"unboxed","site-sidebar-style":"default","ast-global-header-display":"disabled","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[167,159],"tags":[214],"class_list":["post-2508","post","type-post","status-publish","format-standard","hentry","category-personality","category-aptitude","tag-profession"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/comments?post=2508"}],"version-history":[{"count":4,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2508\/revisions"}],"predecessor-version":[{"id":10392,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2508\/revisions\/10392"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}