{"id":2426,"date":"2023-10-25T09:21:48","date_gmt":"2023-10-25T01:21:48","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2426"},"modified":"2025-05-04T18:14:38","modified_gmt":"2025-05-04T10:14:38","slug":"what-kind-of-marriage","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/what-kind-of-marriage","title":{"rendered":"\u5a5a\u59fb\u7b49\u7ea7\u8bc4\u5206\u7ebf\u4e0a\u514d\u8d39\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u5a5a\u59fb\u6e2c\u9a57\u4e3b\u8981\u5185\u5bb9 -->\n<div id=\"mq-container\" class=\"mq-container\">\n  <!-- \u5f15\u5c0e\u9801 -->\n  <div id=\"mq-intro-page\" class=\"mq-page mq-active\">\n    <div class=\"mq-intro-content\">\n      <h2 class=\"mq-title\">\u4f60\u80fd\u62e5\u6709\u90a3\u79cd\u7b49\u7ea7\u7684\u5a5a\u59fb\uff1f<\/h2>\n      <p class=\"mq-description\">\u867d\u7136\u73b0\u5728\u4eba\u4e0d\u4f1a\u5206\u6210\u4e09\u516d\u4e5d\u7b49\uff0c\u53ef\u662f\u65e0\u5f62\u5f53\u4e2d\u4e5f\u662f\u6709\u5c42\u6b21\u7684\uff0c\u4e2d\u4ea7\u9636\u7ea7\u8d8a\u6765\u8d8a\u591a\uff0c\u4e0a\u5c42\u4eba\u8d8a\u6765\u8d8a\u96be\u6324\u8fdb\u53bb\u3002\u5a5a\u59fb\u4e2d\u4e5f\u662f\u5982\u6b64\uff0c\u4e00\u7b49\u5a5a\u59fb\u81ea\u7136\u662f\u597d\u7684\uff0c\u5018\u82e5\u662f\u4e09\u56db\u7b49\u7684\u5a5a\u59fb\uff0c\u5c31\u4e0d\u89c1\u5f97\u6709\u591a\u597d\u4e86\u3002\u4e0d\u77e5\u9053\u4f60\u80fd\u5426\u62e5\u6709\u4e00\u7b49\u7684\u5a5a\u59fb\u5462\uff1f<\/p>\n      <button id=\"mq-start-btn\" class=\"mq-btn mq-start-btn\">\u5f00\u59cb\u6d4b\u9a8c<\/button>\n    <\/div>\n  <\/div>\n\n  <!-- \u6e2c\u9a57\u9801 -->\n  <div id=\"mq-quiz-page\" class=\"mq-page\">\n    <div class=\"mq-progress-container\" id=\"mq-progress-container\">\n      <div class=\"mq-progress-bar\">\n        <div class=\"mq-progress-fill\" id=\"mq-progress-fill\"><\/div>\n      <\/div>\n      <div class=\"mq-progress-text\" id=\"mq-progress-text\">\u95ee\u98981\/10<\/div>\n    <\/div>\n    \n    <div id=\"mq-questions-container\" class=\"mq-questions-container\">\n      <!-- \u554f\u984c\u6703\u5728\u9019\u88e1\u52d5\u614b\u751f\u6210 -->\n    <\/div>\n  <\/div>\n\n  <!-- \u7d50\u679c\u9801 -->\n  <div id=\"mq-result-page\" class=\"mq-page\">\n    <h2 class=\"mq-result-title\">\u6d4b\u9a8c\u7ed3\u679c<\/h2>\n    <div class=\"mq-result-content\" id=\"mq-result-content\">\n      <!-- \u7d50\u679c\u6703\u5728\u9019\u88e1\u52d5\u614b\u751f\u6210 -->\n    <\/div>\n    <div class=\"mq-chart-container\">\n      <canvas id=\"mq-result-chart\"><\/canvas>\n    <\/div>\n    <button id=\"mq-restart-btn\" class=\"mq-btn mq-restart-btn\">\u91cd\u65b0\u6d4b\u8bd5<\/button>\n  <\/div>\n<\/div>\n\n<style>\n\/* \u907f\u514d\u6a23\u5f0f\u885d\u7a81\u7684\u552f\u4e00\u524d\u7db4 *\/\n.mq-container {\n  font-family: 'Microsoft JhengHei', '\u5fae\u8edf\u6b63\u9ed1\u9ad4', 'Heiti TC', '\u9ed1\u9ad4-\u7e41', sans-serif;\n  max-width: 800px;\n  margin: 0 auto;\n  padding: 20px;\n  color: #333;\n  background-color: #fff;\n  border-radius: 12px;\n  box-shadow: 0 4px 20px rgba(65, 105, 225, 0.1);\n  position: relative;\n  min-height: 400px;\n}\n\n.mq-page {\n  display: none;\n  opacity: 0;\n  transition: opacity 0.5s ease;\n}\n\n.mq-active {\n  display: block;\n  opacity: 1;\n}\n\n.mq-title {\n  color: #3949ab;\n  text-align: center;\n  font-size: 2rem;\n  margin-bottom: 1.5rem;\n}\n\n.mq-description {\n  color: #555;\n  font-size: 1.1rem;\n  line-height: 1.6;\n  margin-bottom: 2rem;\n  text-align: justify;\n}\n\n.mq-btn {\n  background-color: #3949ab;\n  color: white;\n  border: none;\n  border-radius: 50px;\n  padding: 12px 24px;\n  font-size: 1.1rem;\n  cursor: pointer;\n  transition: all 0.3s ease;\n  min-height: 44px;\n  min-width: 120px;\n  box-shadow: 0 3px 8px rgba(57, 73, 171, 0.3);\n}\n\n.mq-btn:hover {\n  background-color: #303f9f;\n  transform: translateY(-2px);\n  box-shadow: 0 5px 12px rgba(57, 73, 171, 0.4);\n}\n\n.mq-start-btn {\n  display: block;\n  margin: 0 auto;\n  font-size: 1.2rem;\n  padding: 15px 40px;\n}\n\n.mq-progress-container {\n  margin-bottom: 2rem;\n}\n\n.mq-progress-bar {\n  height: 10px;\n  background-color: #c5cae9;\n  border-radius: 10px;\n  overflow: hidden;\n  margin-bottom: 0.5rem;\n}\n\n.mq-progress-fill {\n  height: 100%;\n  background-color: #3949ab;\n  width: 0%;\n  transition: width 0.5s ease;\n}\n\n.mq-progress-text {\n  text-align: right;\n  font-size: 0.9rem;\n  color: #888;\n}\n\n.mq-question {\n  margin-bottom: 2rem;\n  opacity: 0;\n  transform: translateY(20px);\n  transition: opacity 0.5s ease, transform 0.5s ease;\n}\n\n.mq-question.mq-visible {\n  opacity: 1;\n  transform: translateY(0);\n}\n\n.mq-question-title {\n  font-size: 1.3rem;\n  margin-bottom: 1.5rem;\n  color: #333;\n  font-weight: bold;\n}\n\n.mq-options {\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n}\n\n.mq-option {\n  background-color: #e8eaf6;\n  border: 2px solid #c5cae9;\n  border-radius: 8px;\n  padding: 16px;\n  cursor: pointer;\n  transition: all 0.3s ease;\n  font-size: 1.1rem;\n  min-height: 44px;\n  display: flex;\n  align-items: center;\n}\n\n.mq-option:hover {\n  background-color: #c5cae9;\n  border-color: #7986cb;\n  transform: translateY(-2px);\n}\n\n.mq-option.mq-selected {\n  background-color: #7986cb;\n  color: white;\n  border-color: #3949ab;\n}\n\n.mq-result-title {\n  text-align: center;\n  color: #3949ab;\n  font-size: 1.8rem;\n  margin-bottom: 1.5rem;\n}\n\n.mq-result-content {\n  background-color: #e8eaf6;\n  border-radius: 10px;\n  padding: 20px;\n  margin-bottom: 2rem;\n  font-size: 1.1rem;\n  line-height: 1.6;\n  text-align: justify;\n}\n\n.mq-chart-container {\n  width: 100%;\n  max-width: 500px;\n  margin: 0 auto 2rem;\n  height: 300px;\n}\n\n.mq-restart-btn {\n  display: block;\n  margin: 0 auto;\n}\n\n.mq-intro-content {\n  text-align: center;\n  padding: 2rem 1rem;\n  max-width: 600px;\n  margin: 0 auto;\n}\n\n@media screen and (max-width: 768px) {\n  .mq-container {\n    padding: 15px;\n  }\n  \n  .mq-title {\n    font-size: 1.6rem;\n  }\n  \n  .mq-question-title {\n    font-size: 1.2rem;\n  }\n  \n  .mq-option {\n    padding: 14px;\n    font-size: 1rem;\n  }\n}\n<\/style>\n\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/3.9.1\/chart.min.js\"><\/script>\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n  \/\/ \u6a21\u7d44\u5316\u8a2d\u8a08\u4ee5\u9632\u6b62\u5168\u5c40\u8b8a\u91cf\u6c61\u67d3\n  const MarriageQuiz = (function() {\n    \/\/ \u554f\u984c\u6578\u64da\n    const questions = [\n      {\n        id: 1,\n        question: \"\u73fe\u5728\u7684\u4f60\uff0c\u81ea\u8a8d\u70ba\u5e78\u798f\u90fd\u628a\u63e1\u5728\u81ea\u5df1\u624b\u4e2d\uff1f\",\n        options: [\n          { text: \"\u662f\u7684\", nextQuestion: 2 },\n          { text: \"\u4e0d\u662f\", nextQuestion: 3 },\n          { text: \"\u4e0d\u77e5\u9053\", nextQuestion: 4 }\n        ]\n      },\n      {\n        id: 2,\n        question: \"\u73fe\u5728\u7684\u4f60\uff0c\u8d8a\u4f86\u8d8a\u4e0d\u559c\u6b61\u7172\u96fb\u8a71\u7ca5\u4e86\u55ce\uff1f\",\n        options: [\n          { text: \"\u662f\u7684\", nextQuestion: 3 },\n          { text: \"\u4e0d\u662f\", nextQuestion: 4 },\n          { text: \"\u770b\u60c5\u6cc1\", nextQuestion: 5 }\n        ]\n      },\n      {\n        id: 3,\n        question: \"\u4f60\u89ba\u5f97\u8981\u5206\u624b\u9019\u4ef6\u4e8b\uff0c\u8655\u5728\u4e0d\u540c\u5e74\u9f61\u6703\u6709\u4e0d\u540c\u9078\u64c7\uff1f\",\n        options: [\n          { text: \"\u662f\u7684\", nextQuestion: 4 },\n          { text: \"\u4e0d\u662f\", nextQuestion: 5 },\n          { text: \"\u770b\u60c5\u6cc1\", nextQuestion: 6 }\n        ]\n      },\n      {\n        id: 4,\n        question: \"\u5982\u679c\u4e00\u751f\u90fd\u7121\u6cd5\u9047\u5230\u8b93\u81ea\u5df1\u611b\u7684\u4eba\uff0c\u4f60\u6703\u59a5\u5354\u55ce\uff1f\",\n        options: [\n          { text: \"\u6703\u7684\", nextQuestion: 5 },\n          { text: \"\u4e0d\u6703\", nextQuestion: 6 },\n          { text: \"\u5df2\u7d93\u59a5\u5354\", nextQuestion: 7 }\n        ]\n      },\n      {\n        id: 5,\n        question: \"\u4f60\u73fe\u5728\u5c0d\u7269\u8cea\u751f\u6d3b\u8981\u6c42\u8d8a\u4f86\u8d8a\u9ad8\uff1f\",\n        options: [\n          { text: \"\u662f\u7684\", nextQuestion: 6 },\n          { text: \"\u4e0d\u662f\", nextQuestion: 7 },\n          { text: \"\u770b\u60c5\u6cc1\", nextQuestion: 8 }\n        ]\n      },\n      {\n        id: 6,\n        question: \"\u4e0b\u9762\u5e7e\u7a2e\u751f\u6d3b\uff0c\u4f60\u6700\u559c\u6b61\u7684\u662f\uff1f\",\n        options: [\n          { text: \"\u55ae\u8eab\u8cb4\u65cf\u81ea\u7531\", nextQuestion: 7 },\n          { text: \"\u4e00\u5bb6\u5e7e\u53e3\u878d\u6d3d\", nextQuestion: 8 },\n          { text: \"\u4e8c\u4eba\u4e16\u754c\u6d6a\u6f2b\", result: \"A\" }\n        ]\n      },\n      {\n        id: 7,\n        question: \"\u54ea\u7a2e\u58de\u60c5\u7dd2\u6703\u4ee4\u4f60\u611f\u5230\u7121\u6240\u9069\u5f9e\u5462\uff1f\",\n        options: [\n          { text: \"\u61a4\u6012\", nextQuestion: 8 },\n          { text: \"\u6cae\u55aa\", nextQuestion: 9 },\n          { text: \"\u60b2\u75db\", nextQuestion: 10 }\n        ]\n      },\n      {\n        id: 8,\n        question: \"\u4f60\u6700\u5e0c\u671b\u81ea\u5df1\u7684\u6027\u683c\u50cf\u4e0b\u9762\u54ea\u7a2e\u60c5\u5883\uff1f\",\n        options: [\n          { text: \"\u5927\u6d77\u822c\u5305\u5bb9\", nextQuestion: 9 },\n          { text: \"\u9ad8\u5c71\u822c\u5805\u97cc\", result: \"A\" },\n          { text: \"\u96f2\u6735\u822c\u81ea\u5728\", result: \"B\" }\n        ]\n      },\n      {\n        id: 9,\n        question: \"\u4e0b\u9762\u5e7e\u7a2e\u53e4\u4ee3\u7684\u984f\u8272\uff0c\u53ea\u807d\u540d\u5b57\uff0c\u4f60\u6700\u559c\u6b61\u7684\u662f\uff1f\",\n        options: [\n          { text: \"\u6708\u767d\u8272\", result: \"C\" },\n          { text: \"\u80ed\u8102\u8272\", result: \"D\" },\n          { text: \"\u9edb\u9752\u8272\", result: \"A\" }\n        ]\n      },\n      {\n        id: 10,\n        question: \"\u4e0b\u9762\u5e7e\u7a2e\u5c0f\u96f6\u98df\uff0c\u4f60\u89ba\u5f97\u770b\u80a5\u7682\u5287\u6700\u597d\u5403\u54ea\u7a2e\uff1f\",\n        options: [\n          { text: \"\u74dc\u5b50\", result: \"B\" },\n          { text: \"\u8a71\u6885\", result: \"C\" },\n          { text: \"\u958b\u5fc3\u679c\", result: \"D\" }\n        ]\n      }\n    ];\n\n    const results = {\n      \"A\": {\n        title: \"\u4e00\u7b49\u5a5a\u59fb\",\n        content: \"\u672a\u4f86\u4f60\u7684\u5a5a\u59fb\uff0c\u771f\u7684\u80fd\u8a55\u4e0a\u4e00\u7b49\u55b2\u3002\u4f60\u7684\u773c\u5149\u4e0d\u932f\uff0c\u9078\u64c7\u5230\u4e00\u500b\u6b63\u78ba\u7684\u4eba\uff0c\u8207\u4f60\u5171\u5ea6\u4e00\u751f\u3002\u4f60\u89ba\u5f97\u5a5a\u59fb\u8981\u5e78\u798f\uff0c\u4e0d\u662f\u9322\u8981\u6700\u591a\uff0c\u4e5f\u4e0d\u662f\u7269\u8cea\u8981\u6700\u8c50\u539a\uff0c\u800c\u662f\u5982\u4f55\u5c07\u6709\u9650\u7684\u8cc7\u6e90\uff0c\u767c\u63ee\u5230\u6700\u5927\u7684\u4f5c\u7528\u3002\u4f60\u8207\u611b\u4eba\u90fd\u662f\u4e00\u6a23\u7684\u4eba\uff0c\u6709\u9019\u6a23\u7684\u610f\u8b58\uff0c\u7576\u7136\u5a5a\u59fb\u751f\u6d3b\u4e5f\u80fd\u66f4\u52a0\u5e78\u798f\u5566\u3002\u64c1\u6709\u4e00\u7b49\u5a5a\u59fb\uff0c\u4e0d\u5728\u8a71\u4e0b\u3002\",\n        scores: {\n          \"\u5a5a\u59fb\u7a69\u5b9a\u5ea6\": 95,\n          \"\u6e9d\u901a\u6548\u7387\": 90,\n          \"\u60c5\u611f\u6eff\u8db3\u611f\": 88,\n          \"\u5171\u540c\u6210\u9577\u6027\": 92\n        }\n      },\n      \"B\": {\n        title: \"\u4e8c\u7b49\u5a5a\u59fb\",\n        content: \"\u4f60\u662f\u4e00\u500b\u6bd4\u8f03\u770b\u91cd\u5a5a\u59fb\u95dc\u4fc2\u7684\u4eba\uff0c\u4f60\u4e5f\u8a8d\u70ba\uff0c\u5e78\u798f\u7684\u5a5a\u59fb\u662f\u53ef\u4ee5\u5b78\u7fd2\u3001\u53ef\u4ee5\u6e9d\u901a\uff0c\u53ef\u4ee5\u4e00\u8d77\u9032\u6b65\u7684\uff0c\u6240\u4ee5\u7d50\u5a5a\u4e4b\u5f8c\uff0c\u4f60\u6703\u52aa\u529b\u5730\u7dad\u6301\u8457\u5bb6\u5ead\u95dc\u4fc2\uff0c\u800c\u540c\u6642\uff0c\u4f60\u7684\u611b\u4eba\u4e5f\u6703\u4e00\u8d77\u52aa\u529b\uff0c\u4f60\u5011\u96d6\u7136\u4e0d\u80fd\u904e\u5927\u5bcc\u5927\u8cb4\u7684\u751f\u6d3b\uff0c\u96d6\u7136\u6709\u722d\u57f7\uff0c\u4f46\u662f\u81f3\u5c11\uff0c\u6574\u9ad4\u4e0a\u770b\u4e5f\u662f\u633a\u548c\u8ae7\u7684\u3002\u6709\u4e8c\u7b49\u7684\u5a5a\u59fb\uff0c\u4f60\u4e5f\u77e5\u8db3\u4e86\u3002\",\n        scores: {\n          \"\u5a5a\u59fb\u7a69\u5b9a\u5ea6\": 83,\n          \"\u6e9d\u901a\u6548\u7387\": 78,\n          \"\u60c5\u611f\u6eff\u8db3\u611f\": 75,\n          \"\u5171\u540c\u6210\u9577\u6027\": 80\n        }\n      },\n      \"C\": {\n        title: \"\u4e09\u7b49\u5a5a\u59fb\",\n        content: \"\u771f\u7684\u662f\u5f88\u907a\u61be\u5462\uff0c\u5118\u7ba1\u4f60\u7684\u5de5\u4f5c\u53ef\u4ee5\u5f88\u4e0d\u932f\uff0c\u751f\u6d3b\u4e5f\u80fd\u904e\u4e0a\u4e00\u7b49\u4e8c\u7b49\u7684\u65e5\u5b50\uff0c\u4f46\u662f\u5a5a\u59fb\u751f\u6d3b\u771f\u7684\u662f\u4e00\u8a00\u96e3\u76e1\u3002\u5728\u5a5a\u59fb\u751f\u6d3b\u4e2d\uff0c\u53ea\u6709\u4f60\u4e00\u500b\u4eba\u52aa\u529b\uff0c\u53c8\u6709\u4ec0\u9ebc\u7528\u5462\uff1f\u53e6\u5916\u4e00\u534a\u4e0d\u7d66\u529b\uff0c\u8655\u8655\u62c9\u4f60\u5f8c\u817f\uff0c\u4e0d\u4e0a\u9032\u4e5f\u5c31\u7b97\u4e86\uff0c\u8aaa\u4e0d\u5b9a\u8655\u8655\u627e\u5c0f\u4e09\u3002\u539f\u672c\u80fd\u904e\u4e00\u7b49\u5a5a\u59fb\uff0c\u6700\u5f8c\u6dea\u70ba\u4e09\u6d41\u5a5a\u59fb\uff0c\u5927\u6982\u662f\u4f60\u6c92\u9019\u500b\u547d\u3002\",\n        scores: {\n          \"\u5a5a\u59fb\u7a69\u5b9a\u5ea6\": 60,\n          \"\u6e9d\u901a\u6548\u7387\": 55,\n          \"\u60c5\u611f\u6eff\u8db3\u611f\": 45,\n          \"\u5171\u540c\u6210\u9577\u6027\": 50\n        }\n      },\n      \"D\": {\n        title: \"\u56db\u7b49\u5a5a\u59fb\",\n        content: \"\u5de5\u4f5c\u4e2d\u53ea\u8981\u6562\u60f3\u6562\u505a\u6562\u62fc\uff0c\u7e3d\u6703\u6709\u6210\u7e3e\uff0c\u7e3d\u53ef\u4ee5\u904e\u4e0a\u81ea\u5df1\u60f3\u8981\u7684\u751f\u6d3b\u3002\u53ef\u662f\u5728\u5a5a\u59fb\u4e2d\uff0c\u4e0d\u662f\u81ea\u5df1\u52aa\u529b\u4e86\u5c31\u6703\u6709\u597d\u6536\u7a6b\u3002\u96d6\u7136\u4f60\u66fe\u7d93\u4e5f\u5e7b\u60f3\u904e\u751c\u871c\u7684\u6200\u611b\uff0c\u7a69\u5b9a\u7684\u5a5a\u59fb\u751f\u6d3b\uff0c\u4f46\u662f\u4eba\u7b97\u4e0d\u5982\u5929\u7b97\u5566\uff0c\u4f60\u5728\u5a5a\u59fb\u4e2d\uff0c\u771f\u7684\u64cd\u788e\u4e86\u5fc3\uff0c\u5c0d\u65b9\u9084\u4e0d\u9818\u60c5\u3002\u4f60\u5011\u6642\u5e38\u767c\u751f\u722d\u5435\uff0c\u6c92\u6709\u4ec0\u9ebc\u5e78\u798f\u53ef\u8a00\uff0c\u56db\u7b49\u5a5a\u59fb\uff0c\u5c8c\u5c8c\u53ef\u5371\u3002\",\n        scores: {\n          \"\u5a5a\u59fb\u7a69\u5b9a\u5ea6\": 35,\n          \"\u6e9d\u901a\u6548\u7387\": 30,\n          \"\u60c5\u611f\u6eff\u8db3\u611f\": 25,\n          \"\u5171\u540c\u6210\u9577\u6027\": 20\n        }\n      }\n    };\n    \n    \/\/ \u8ffd\u8e2a\u7576\u524d\u554f\u984c\u548c\u8def\u5f91\n    let currentQuestionId = 1;\n    let path = []; \/\/ \u8a18\u9304\u7528\u6236\u9078\u64c7\u7684\u8def\u5f91\n    \n    \/\/ \u521d\u59cb\u5316\u6e2c\u9a57\n    const init = () => {\n      document.getElementById('mq-start-btn').addEventListener('click', startQuiz);\n      document.getElementById('mq-restart-btn').addEventListener('click', restartQuiz);\n    };\n    \n    \/\/ \u958b\u59cb\u6e2c\u9a57\n    const startQuiz = () => {\n      showPage('mq-quiz-page');\n      renderQuestion(currentQuestionId);\n      updateProgress();\n    };\n    \n    \/\/ \u91cd\u65b0\u958b\u59cb\u6e2c\u9a57\n    const restartQuiz = () => {\n      currentQuestionId = 1;\n      path = [];\n      showPage('mq-intro-page');\n    };\n    \n    \/\/ \u986f\u793a\u6307\u5b9a\u9801\u9762\n    const showPage = (pageId) => {\n      document.querySelectorAll('.mq-page').forEach(page => {\n        page.classList.remove('mq-active');\n      });\n      document.getElementById(pageId).classList.add('mq-active');\n    };\n    \n    \/\/ \u6e32\u67d3\u7576\u524d\u554f\u984c\n    const renderQuestion = (questionId) => {\n      const question = questions.find(q => q.id === questionId);\n      if (!question) return;\n      \n      const container = document.getElementById('mq-questions-container');\n      container.innerHTML = '';\n      \n      const questionElement = document.createElement('div');\n      questionElement.className = 'mq-question';\n      \n      const titleElement = document.createElement('h3');\n      titleElement.className = 'mq-question-title';\n      titleElement.textContent = question.question;\n      questionElement.appendChild(titleElement);\n      \n      const optionsElement = document.createElement('div');\n      optionsElement.className = 'mq-options';\n      \n      question.options.forEach((option, index) => {\n        const optionElement = document.createElement('div');\n        optionElement.className = 'mq-option';\n        optionElement.textContent = option.text;\n        optionElement.addEventListener('click', () => {\n          selectOption(option, index);\n        });\n        optionsElement.appendChild(optionElement);\n      });\n      \n      questionElement.appendChild(optionsElement);\n      container.appendChild(questionElement);\n      \n      \/\/ \u6de1\u5165\u6548\u679c\n      setTimeout(() => {\n        questionElement.classList.add('mq-visible');\n      }, 10);\n    };\n    \n    \/\/ \u9078\u64c7\u9078\u9805\n    const selectOption = (option, optionIndex) => {\n      \/\/ \u6a19\u8a18\u9078\u4e2d\u7684\u9078\u9805\n      document.querySelectorAll('.mq-option').forEach(opt => {\n        opt.classList.remove('mq-selected');\n      });\n      \n      const selectedOption = document.querySelectorAll('.mq-option')[optionIndex];\n      if (selectedOption) {\n        selectedOption.classList.add('mq-selected');\n      }\n      \n      \/\/ \u8a18\u9304\u8def\u5f91\n      path.push({\n        questionId: currentQuestionId,\n        optionIndex: optionIndex\n      });\n      \n      \/\/ \u5ef6\u9072\u5f8c\u9032\u5165\u4e0b\u4e00\u984c\u6216\u986f\u793a\u7d50\u679c\n      setTimeout(() => {\n        if (option.result) {\n          showResult(option.result);\n        } else if (option.nextQuestion) {\n          currentQuestionId = option.nextQuestion;\n          renderQuestion(currentQuestionId);\n          updateProgress();\n        }\n      }, 500);\n    };\n    \n    \/\/ \u66f4\u65b0\u9032\u5ea6\u689d\n    const updateProgress = () => {\n      const progressFill = document.getElementById('mq-progress-fill');\n      const progressText = document.getElementById('mq-progress-text');\n      \n      \/\/ \u8a08\u7b97\u9032\u5ea6 - \u9019\u88e1\u4ee5\u7576\u524d\u554f\u984cID\u4f5c\u70ba\u9032\u5ea6\u6307\u6a19\n      const progress = (currentQuestionId \/ questions.length) * 100;\n      progressFill.style.width = `${progress}%`;\n      progressText.textContent = `\u554f\u984c ${currentQuestionId}\/${questions.length}`;\n    };\n    \n    \/\/ \u986f\u793a\u6e2c\u9a57\u7d50\u679c\n    const showResult = (resultKey) => {\n      const result = results[resultKey];\n      if (!result) return;\n      \n      \/\/ \u8a2d\u7f6e\u7d50\u679c\u6a19\u984c\u548c\u5167\u5bb9\n      document.getElementById('mq-result-content').innerHTML = `\n        <h3>${result.title}<\/h3>\n        <p>${result.content}<\/p>\n      `;\n      \n      \/\/ \u986f\u793a\u7d50\u679c\u9801\n      showPage('mq-result-page');\n      \n      \/\/ \u5275\u5efa\u7d50\u679c\u5716\u8868\n      setTimeout(() => {\n        createResultChart(result.scores);\n      }, 300);\n    };\n    \n    \/\/ \u5275\u5efa\u7d50\u679c\u5716\u8868\n    const createResultChart = (scores) => {\n      const ctx = document.getElementById('mq-result-chart').getContext('2d');\n      \n      \/\/ \u5982\u679c\u5df2\u5b58\u5728\u5716\u8868\uff0c\u92b7\u6bc0\u5b83\n      if (window.resultChart) {\n        window.resultChart.destroy();\n      }\n      \n      \/\/ \u6e96\u5099\u6578\u64da\n      const labels = Object.keys(scores);\n      const data = Object.values(scores);\n      \n      \/\/ \u5275\u5efa\u689d\u5f62\u5716\n      window.resultChart = new Chart(ctx, {\n        type: 'bar',\n        data: {\n          labels: labels,\n          datasets: [{\n            label: '\u5a5a\u59fb\u8a55\u5206',\n            data: data,\n            backgroundColor: [\n              'rgba(57, 73, 171, 0.7)',\n              'rgba(92, 107, 192, 0.7)',\n              'rgba(121, 134, 203, 0.7)',\n              'rgba(159, 168, 218, 0.7)'\n            ],\n            borderColor: [\n              'rgba(57, 73, 171, 1)',\n              'rgba(92, 107, 192, 1)',\n              'rgba(121, 134, 203, 1)',\n              'rgba(159, 168, 218, 1)'\n            ],\n            borderWidth: 1\n          }]\n        },\n        options: {\n          responsive: true,\n          maintainAspectRatio: false,\n          scales: {\n            y: {\n              beginAtZero: true,\n              max: 100,\n              ticks: {\n                callback: function(value) {\n                  return value + '%';\n                }\n              }\n            }\n          },\n          plugins: {\n            tooltip: {\n              callbacks: {\n                label: function(context) {\n                  return context.dataset.label + ': ' + context.raw + '%';\n                }\n              }\n            }\n          },\n          animation: {\n            duration: 1500\n          }\n        }\n      });\n    };\n    \n    \/\/ \u8fd4\u56de\u516c\u958b\u7684\u65b9\u6cd5\n    return {\n      init: init\n    };\n  })();\n  \n  \/\/ \u521d\u59cb\u5316\u6e2c\u9a57\n  MarriageQuiz.init();\n});\n<\/script>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u4e00\u7b49\u5a5a\u59fb\u81ea\u7136\u662f\u597d\u7684\uff0c\u5018\u82e5\u662f\u4e09\u56db\u7b49\u7684\u5a5a\u59fb\uff0c\u5c31\u4e0d\u89c1\u5f97\u6709\u591a\u597d\u4e86\u3002\u4e0d\u77e5\u9053\u4f60\u80fd\u5426\u62e5\u6709\u4e00\u7b49\u7684\u5a5a\u59fb\u5462\uff1f<\/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":"narrow-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":[179],"tags":[],"class_list":["post-2426","post","type-post","status-publish","format-standard","hentry","category-marriage"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2426","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=2426"}],"version-history":[{"count":1,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2426\/revisions"}],"predecessor-version":[{"id":9511,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2426\/revisions\/9511"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}