{"id":2482,"date":"2023-10-17T09:44:58","date_gmt":"2023-10-17T01:44:58","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2482"},"modified":"2025-08-16T01:10:37","modified_gmt":"2025-08-15T17:10:37","slug":"meet-bad-husband","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/meet-bad-husband","title":{"rendered":"\u7231\u60c5\u4e2d\u4f60\u4f1a\u9047\u4eba\u4e0d\u6dd1\u5417\uff1f \u2192\u7ebf\u4e0a\u514d\u8d39\u5c0f\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u5f15\u5165Bootstrap\u548c\u5716\u6a19\u5eab -->\n<link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootstrap\/5.3.3\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n<link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootstrap-icons\/1.11.3\/font\/bootstrap-icons.min.css\" rel=\"stylesheet\">\n\n<!-- HTML \u7d50\u69cb -->\n<div id=\"loveQuiz9Container\" class=\"container-fluid px-3 px-md-4 py-3\" style=\"max-width: 750px;\">\n  \n  <!-- \u5f15\u5c0e\u9801 -->\n  <section id=\"quizintro9\" data-page=\"intro9\" class=\"quiz9-page active\">\n    <div class=\"row justify-content-center\">\n      <div class=\"col-12\">\n        <div class=\"card border-0 shadow-sm rounded-4 overflow-hidden\">\n          <div class=\"card-body p-4 p-md-5\">\n            \n            <!-- \u6a19\u984c\u5340\u584a -->\n            <div class=\"text-center mb-4\">\n              <div class=\"mb-4\">\n                <div class=\"rounded-circle bg-gradient d-inline-flex align-items-center justify-content-center\" \n                     style=\"width: 80px; height: 80px; background: linear-gradient(135deg, #a8d5ba 0%, #7fb195 100%);\">\n                  <i class=\"bi bi-heart-pulse-fill text-white fs-1\"><\/i>\n                <\/div>\n              <\/div>\n              <h2 class=\"fw-bold mb-3\" style=\"color: #5d8a6e; font-size: 2rem;\">\n                \u7231\u60c5\u4e2d\u4f60\u4f1a\u9047\u4eba\u4e0d\u6dd1\u5417\uff1f\n              <\/h2>\n              <p class=\"text-muted fs-6 mb-0\">\u63a2\u7d22\u4f60\u7684\u611b\u60c5\u904b\u52e2\u8207\u7de3\u5206\u7279\u8cea<\/p>\n            <\/div>\n\n            <!-- \u7279\u9ede\u5c55\u793a -->\n            <div class=\"row g-3 mb-4\">\n              <div class=\"col-6 col-md-3\">\n                <div class=\"text-center p-3\">\n                  <div class=\"rounded-circle bg-light d-inline-flex align-items-center justify-content-center mb-2\"\n                       style=\"width: 50px; height: 50px; background-color: #f0f8f3;\">\n                    <i class=\"bi bi-clock-history fs-5\" style=\"color: #7fb195;\"><\/i>\n                  <\/div>\n                  <small class=\"d-block text-muted\">3\u5206\u9418\u6e2c\u9a57<\/small>\n                <\/div>\n              <\/div>\n              <div class=\"col-6 col-md-3\">\n                <div class=\"text-center p-3\">\n                  <div class=\"rounded-circle bg-light d-inline-flex align-items-center justify-content-center mb-2\"\n                       style=\"width: 50px; height: 50px; background-color: #fff4e6;\">\n                    <i class=\"bi bi-graph-up fs-5\" style=\"color: #f4a261;\"><\/i>\n                  <\/div>\n                  <small class=\"d-block text-muted\">\u4e13\u4e1a\u5206\u6790<\/small>\n                <\/div>\n              <\/div>\n              <div class=\"col-6 col-md-3\">\n                <div class=\"text-center p-3\">\n                  <div class=\"rounded-circle bg-light d-inline-flex align-items-center justify-content-center mb-2\"\n                       style=\"width: 50px; height: 50px; background-color: #f0f3ff;\">\n                    <i class=\"bi bi-shield-check fs-5\" style=\"color: #8b95d9;\"><\/i>\n                  <\/div>\n                  <small class=\"d-block text-muted\">\u6e96\u78ba\u5ea6\u9ad8<\/small>\n                <\/div>\n              <\/div>\n              <div class=\"col-6 col-md-3\">\n                <div class=\"text-center p-3\">\n                  <div class=\"rounded-circle bg-light d-inline-flex align-items-center justify-content-center mb-2\"\n                       style=\"width: 50px; height: 50px; background-color: #fef0f5;\">\n                    <i class=\"bi bi-stars fs-5\" style=\"color: #d99ba8;\"><\/i>\n                  <\/div>\n                  <small class=\"d-block text-muted\">\u6df1\u5ea6\u89e3\u6790<\/small>\n                <\/div>\n              <\/div>\n            <\/div>\n\n            <!-- \u4ecb\u7d39\u6587\u5b57 -->\n            <div class=\"rounded-3 p-4 mb-4\" style=\"background-color: #f8faf9;\">\n              <p class=\"mb-0 lh-lg\" style=\"font-size: 1.1rem; color: #5a5a5a;\">\n                \u5f88\u591a\u4eba\u90fd\u60f3\u9047\u5230\u4e00\u500b\u6eab\u6696\u7684\u3001\u6210\u719f\u7684\u3001\u61c2\u4e8b\u7684\u3001\u5f37\u5927\u7684\u4eba\uff0c\u80fd\u64c1\u6709\u5fe0\u8c9e\u4e0d\u6e1d\u7684\u611b\u60c5\u3002\u53ef\u662f\u4e0d\u662f\u6240\u6709\u4eba\u90fd\u6709\u90a3\u6a23\u5e78\u904b\uff0c\u5373\u4f7f\u80fd\u8a8d\u51fa\u4f86\u5c0d\u65b9\u4e0d\u5927\u597d\uff0c\u53ef\u80fd\u4e5f\u4e00\u6642\u60c5\u611f\u4e0a\u653e\u4e0d\u4e0b\u3002\n              <\/p>\n              <p class=\"mb-0 mt-3 lh-lg\" style=\"font-size: 1.1rem; color: #5a5a5a;\">\n                \u4e0d\u77e5\u9053\u4f60\u5728\u611b\u60c5\u4e2d\uff0c\u6703\u9047\u4eba\u5f88\u6dd1\uff0c\u9084\u662f\u9047\u4eba\u4e0d\u6dd1\u5462\uff1f\u8b93\u6211\u5011\u900f\u904e\u9019\u500b\u5c08\u696d\u7684\u5fc3\u7406\u6e2c\u9a57\u4f86\u63a2\u7d22\u4f60\u7684\u611b\u60c5\u7de3\u5206\u5427\uff01\n              <\/p>\n            <\/div>\n\n            <!-- \u958b\u59cb\u6309\u9215 -->\n            <div class=\"text-center\">\n              <button type=\"button\" class=\"btn btn-lg px-5 py-3 rounded-pill shadow-sm quiz9-start-btn\"\n                      onclick=\"quiz9.startQuiz()\">\n                <i class=\"bi bi-play-circle me-2\"><\/i>\u5f00\u59cb\u6d4b\u9a8c\n              <\/button>\n            <\/div>\n\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <!-- \u6e2c\u9a57\u9801 -->\n  <section id=\"quizmain9\" data-page=\"quiz9\" class=\"quiz9-page\" style=\"display: none;\">\n    <div class=\"row justify-content-center\">\n      <div class=\"col-12\">\n        <div class=\"card border-0 shadow-sm rounded-4\">\n          <div class=\"card-body p-4 p-md-5\">\n            \n            <!-- \u9032\u5ea6\u689d -->\n            <div id=\"quiz9Progress\" class=\"mb-4\">\n              <div class=\"d-flex justify-content-between align-items-center mb-2\">\n                <span class=\"text-muted\">\u95ee\u9898 <span id=\"quiz9CurrentQ\">1<\/span> \/ <span id=\"quiz9TotalQ\">10<\/span><\/span>\n                <span class=\"badge rounded-pill\" style=\"background-color: #7fb195;\">\n                  <span id=\"quiz9Percent\">10<\/span>%\n                <\/span>\n              <\/div>\n              <div class=\"progress\" style=\"height: 8px; background-color: #e8f5ed;\">\n                <div id=\"quiz9ProgressBar\" class=\"progress-bar\" role=\"progressbar\" \n                     style=\"width: 10%; background: linear-gradient(90deg, #a8d5ba 0%, #7fb195 100%);\"\n                     aria-valuenow=\"10\" aria-valuemin=\"0\" aria-valuemax=\"100\"><\/div>\n              <\/div>\n            <\/div>\n\n            <!-- \u554f\u984c\u5340\u57df -->\n            <div id=\"quiz9QuestionArea\">\n              <h3 id=\"quiz9Question\" class=\"fw-bold mb-4\" style=\"color: #2d3436; font-size: 22px;\"><\/h3>\n              <div id=\"quiz9Options\" class=\"d-grid gap-3\"><\/div>\n            <\/div>\n\n            <!-- \u4e0a\u4e00\u984c\u6309\u9215 -->\n            <div class=\"text-center mt-4\">\n              <button id=\"quiz9PrevBtn\" type=\"button\" class=\"btn btn-outline-secondary rounded-pill px-4 py-2\"\n                      style=\"display: none;\" onclick=\"quiz9.previousQuestion()\">\n                <i class=\"bi bi-arrow-left me-2\"><\/i>\u4e0a\u4e00\u9898\n              <\/button>\n            <\/div>\n\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <!-- \u7d50\u679c\u9801 -->\n  <section id=\"quizresult9\" data-page=\"result9\" class=\"quiz9-page\" style=\"display: none;\">\n    <div class=\"row justify-content-center\">\n      <div class=\"col-12\">\n        <div class=\"card border-0 shadow-sm rounded-4\">\n          <div class=\"card-body p-4 p-md-5\">\n            \n            <!-- \u7d50\u679c\u6a19\u984c -->\n            <div class=\"text-center mb-4\">\n              <div class=\"mb-3\">\n                <div class=\"rounded-circle bg-gradient d-inline-flex align-items-center justify-content-center\" \n                     style=\"width: 80px; height: 80px; background: linear-gradient(135deg, #a8d5ba 0%, #7fb195 100%);\">\n                  <i class=\"bi bi-award-fill text-white fs-1\"><\/i>\n                <\/div>\n              <\/div>\n              <h2 class=\"fw-bold mb-2\" style=\"color: #5d8a6e;\">\u6d4b\u9a8c\u7ed3\u679c<\/h2>\n              <h3 id=\"quiz9ResultTitle\" class=\"fw-bold mb-0\" style=\"color: #d4a574; font-size: 1.8rem;\"><\/h3>\n            <\/div>\n\n            <!-- \u7d50\u679c\u63cf\u8ff0 -->\n            <div class=\"rounded-3 p-4 mb-4\" style=\"background-color: #f8faf9;\">\n              <p id=\"quiz9ResultDesc\" class=\"mb-0 lh-lg\" style=\"font-size: 1.1rem; color: #5a5a5a;\"><\/p>\n            <\/div>\n\n            <!-- \u500b\u6027\u5316\u5efa\u8b70 -->\n            <div id=\"quiz9Suggestions\" class=\"mb-4\">\n              <!-- \u52d5\u614b\u63d2\u5165\u5efa\u8b70\u5167\u5bb9 -->\n            <\/div>\n\n            <!-- \u5206\u6578\u5c55\u793a -->\n            <div id=\"quiz9ScoreCards\" class=\"row g-3 mb-4\">\n              <!-- \u52d5\u614b\u63d2\u5165\u5206\u6578\u5361\u7247 -->\n            <\/div>\n\n            <!-- \u8a55\u5206\u5206\u5e03\u5716 -->\n            <div class=\"card border-0 rounded-3 mb-4\" style=\"background-color: #f8faf9;\">\n              <div class=\"card-body p-4\">\n                <h5 class=\"text-center mb-3\" style=\"color: #5d8a6e;\">\u4f60\u5728\u611b\u60c5\u904b\u52e2\u4e2d\u7684\u4f4d\u7f6e<\/h5>\n                <div id=\"quiz9DistributionChart\" style=\"position: relative; height: 120px;\">\n                  <!-- \u52d5\u614b\u63d2\u5165\u5206\u5e03\u5716 -->\n                <\/div>\n              <\/div>\n            <\/div>\n\n            <!-- \u96f7\u9054\u5716 -->\n            <div class=\"card border-0 rounded-3 mb-4\" style=\"background-color: #f8faf9;\">\n              <div class=\"card-body p-4\">\n                <canvas id=\"quiz9Chart\" style=\"max-height: 350px;\"><\/canvas>\n              <\/div>\n            <\/div>\n\n            <!-- \u91cd\u65b0\u6e2c\u8a66\u6309\u9215 -->\n            <div class=\"text-center mt-5\">\n              <button type=\"button\" class=\"btn btn-lg px-5 py-3 rounded-pill shadow-sm quiz9-restart-btn\"\n                      onclick=\"quiz9.restart()\">\n                <i class=\"bi bi-arrow-clockwise me-2\"><\/i>\u91cd\u65b0\u6d4b\u8bd5\n              <\/button>\n            <\/div>\n\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/section>\n\n<\/div>\n\n<!-- CSS \u6a23\u5f0f -->\n<style>\n  #loveQuiz9Container {\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft JhengHei\", \"\u5fae\u8edf\u6b63\u9ed1\u9ad4\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n  }\n\n  #loveQuiz9Container * {\n    box-sizing: border-box;\n  }\n\n  .quiz9-page {\n    opacity: 0;\n    transition: opacity 0.4s ease-in-out;\n  }\n\n  .quiz9-page.active {\n    opacity: 1;\n  }\n\n  \/* \u5361\u7247\u5f0f\u9078\u9805\u6a23\u5f0f *\/\n  .quiz9-option-card {\n    position: relative;\n    background: white;\n    border: 2px solid #e8f5ed;\n    border-radius: 1rem;\n    padding: 1.25rem 1.25rem 1.25rem 3.5rem;\n    transition: all 0.3s ease;\n    cursor: pointer;\n    min-height: 70px;\n    box-shadow: 0 2px 8px rgba(0,0,0,0.05);\n  }\n\n  .quiz9-option-card:hover {\n    background: linear-gradient(135deg, #f0f8f3 0%, #e8f5ed 100%);\n    border-color: #7fb195;\n    transform: translateY(-2px);\n    box-shadow: 0 4px 16px rgba(127, 177, 149, 0.2);\n  }\n\n  .quiz9-option-card.selected {\n    background: linear-gradient(135deg, #e8f5ed 0%, #d4e8db 100%);\n    border-color: #7fb195;\n  }\n\n  \/* \u5713\u5f62\u9078\u64c7\u6307\u793a\u5668 *\/\n  .quiz9-option-indicator {\n    position: absolute;\n    left: 1.25rem;\n    top: 0;\n    bottom: 0;\n    margin: auto 0;\n    width: 24px;\n    height: 24px;\n    border: 2px solid #7fb195;\n    border-radius: 50%;\n    background: white;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    transition: all 0.3s ease;\n  }\n\n  .quiz9-option-card.selected .quiz9-option-indicator {\n    background: #7fb195;\n  }\n\n  .quiz9-option-card.selected .quiz9-option-indicator::after {\n    content: '\\2713';\n    color: white;\n    font-size: 14px;\n    font-weight: bold;\n  }\n\n  .quiz9-option-text {\n    font-size: 18px;\n    color: #495057;\n    margin: 0;\n    line-height: 1.6;\n    display: block;\n  }\n\n  .quiz9-option-card:hover .quiz9-option-text {\n    color: #2d3436;\n  }\n\n  .quiz9-option-card.selected .quiz9-option-text {\n    color: #5d8a6e;\n    font-weight: 500;\n  }\n\n  \/* \u6309\u9215\u6a23\u5f0f *\/\n  .quiz9-start-btn, .quiz9-restart-btn {\n    background: linear-gradient(135deg, #a8d5ba 0%, #7fb195 100%);\n    color: white;\n    border: none;\n    font-size: 1.2rem;\n    min-width: 200px;\n    transition: all 0.3s ease;\n  }\n\n  .quiz9-start-btn:hover, .quiz9-restart-btn:hover {\n    background: linear-gradient(135deg, #92c4a5 0%, #6fa085 100%);\n    transform: translateY(-2px);\n    box-shadow: 0 5px 15px rgba(127, 177, 149, 0.3);\n    color: white;\n  }\n\n  \/* \u5206\u6578\u5361\u7247 *\/\n  .quiz9-score-card {\n    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);\n    border-radius: 1rem;\n    padding: 1.5rem;\n    text-align: center;\n    transition: transform 0.3s ease;\n    box-shadow: 0 2px 8px rgba(0,0,0,0.05);\n  }\n\n  .quiz9-score-card:hover {\n    transform: translateY(-5px);\n  }\n\n  .quiz9-score-value {\n    font-size: 2rem;\n    font-weight: bold;\n    color: #d4a574;\n  }\n\n  .quiz9-score-label {\n    color: #636e72;\n    font-size: 0.95rem;\n    margin-top: 0.5rem;\n  }\n\n  \/* \u5efa\u8b70\u5361\u7247 *\/\n  .quiz9-suggestion-card {\n    background: linear-gradient(135deg, #f0f3ff 0%, #e6ebff 100%);\n    border-left: 4px solid #8b95d9;\n    border-radius: 0.5rem;\n    padding: 1rem 1.5rem;\n    margin-bottom: 1rem;\n  }\n\n  .quiz9-suggestion-title {\n    color: #8b95d9;\n    font-weight: bold;\n    margin-bottom: 0.5rem;\n  }\n\n  .quiz9-suggestion-text {\n    color: #5a5a5a;\n    margin: 0;\n  }\n\n  \/* \u5206\u5e03\u5716\u6a23\u5f0f *\/\n  .quiz9-distribution-bar {\n    height: 40px;\n    border-radius: 20px;\n    display: flex;\n    overflow: hidden;\n    box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n    position: relative;\n  }\n\n  .quiz9-distribution-segment {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    color: white;\n    font-weight: bold;\n    font-size: 14px;\n    transition: all 0.3s ease;\n  }\n\n  .quiz9-distribution-segment:hover {\n    transform: scale(1.05);\n    z-index: 1;\n  }\n\n  .quiz9-user-marker {\n    position: absolute;\n    top: -10px;\n    width: 20px;\n    height: 20px;\n    background: #e74c3c;\n    border: 3px solid white;\n    border-radius: 50%;\n    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);\n    transform: translateX(-50%);\n    z-index: 10;\n    animation: pulse 2s infinite;\n  }\n\n  @keyframes pulse {\n    0% { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4); }\n    50% { box-shadow: 0 2px 16px rgba(231, 76, 60, 0.6); }\n    100% { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4); }\n  }\n\n  .quiz9-distribution-legend {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: center;\n    gap: 1rem;\n    margin-top: 1rem;\n  }\n\n  .quiz9-legend-item {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    font-size: 14px;\n    color: #636e72;\n  }\n\n  .quiz9-legend-color {\n    width: 16px;\n    height: 16px;\n    border-radius: 4px;\n  }\n\n  \/* \u97ff\u61c9\u5f0f\u8abf\u6574 *\/\n  @media (max-width: 768px) {\n    #loveQuiz9Container h2 {\n      font-size: 1.5rem !important;\n    }\n    \n    #loveQuiz9Container h3 {\n      font-size: 20px !important;\n    }\n    \n    .quiz9-option-text {\n      font-size: 16px;\n    }\n    \n    .quiz9-score-value {\n      font-size: 1.5rem;\n    }\n    \n    .quiz9-distribution-segment {\n      font-size: 12px;\n    }\n  }\n\n  \/* \u9632\u6b62\u8207WordPress\u4e3b\u984c\u885d\u7a81 *\/\n  #loveQuiz9Container button:focus {\n    outline: none;\n    box-shadow: 0 0 0 0.2rem rgba(127, 177, 149, 0.25);\n  }\n<\/style>\n\n<!-- \u5f15\u5165Chart.js -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/4.4.1\/chart.umd.min.js\"><\/script>\n\n<!-- JavaScript \u884c\u70ba -->\n<script>\n(function() {\n  'use strict';\n  \n  \/\/ \u6e2c\u9a57\u985e\u5225\n  class LoveQuiz9 {\n    constructor() {\n      this.currentQuestionIndex = 0;\n      this.questionHistory = [];\n      this.selectedOptions = [];\n      this.chartInstance = null;\n      \n      \/\/ \u554f\u984c\u6578\u64da\n      this.questions = [\n        {\n          id: 1,\n          text: \"\u4f60\u89ba\u5f97\u5973\u751f\u88ab\u7167\u9867\u662f\u5929\u7d93\u5730\u7fa9\u7684\u55ce\uff1f\",\n          options: [\n            { text: \"\u662f\u7684\", value: \"traditional\", nextQuestion: 2 },\n            { text: \"\u4e0d\u662f\", value: \"modern\", nextQuestion: 3 },\n            { text: \"\u4e0d\u77e5\u9053\", value: \"neutral\", nextQuestion: 4 }\n          ]\n        },\n        {\n          id: 2,\n          text: \"\u5982\u679c\u611b\u4eba\u80cc\u53db\u4e86\u4f60\uff0c\u4f60\u6703\u5fa9\u4ec7\u55ce\uff1f\",\n          options: [\n            { text: \"\u6703\u7684\", value: \"vengeful\", nextQuestion: 3 },\n            { text: \"\u4e0d\u6703\", value: \"forgiving\", nextQuestion: 4 },\n            { text: \"\u4e0d\u77e5\u9053\", value: \"uncertain\", nextQuestion: 5 }\n          ]\n        },\n        {\n          id: 3,\n          text: \"\u4f60\u8a8d\u70ba\u81ea\u5df1\u7684\u904b\u6c23\u4e00\u5411\u4e0d\u662f\u5f88\u597d\u55ce\uff1f\",\n          options: [\n            { text: \"\u662f\u7684\", value: \"unlucky\", nextQuestion: 4 },\n            { text: \"\u4e0d\u662f\", value: \"lucky\", nextQuestion: 5 },\n            { text: \"\u4e00\u822c\", value: \"average\", nextQuestion: 6 }\n          ]\n        },\n        {\n          id: 4,\n          text: \"\u5982\u679c\u6200\u4eba\u5728\u8207\u4f60\u6200\u611b\u6642\uff0c\u80cc\u8457\u4f60\u53bb\u76f8\u89aa\uff0c\u4f60\u6703\uff1f\",\n          options: [\n            { text: \"\u5206\u624b\", value: \"decisive\", nextQuestion: 5 },\n            { text: \"\u5435\u9b27\", value: \"confrontational\", nextQuestion: 6 },\n            { text: \"\u5831\u5fa9\", value: \"retaliatory\", nextQuestion: 7 }\n          ]\n        },\n        {\n          id: 5,\n          text: \"\u4f60\u5f9e\u4f86\u4e0d\u6703\u56e0\u70ba\u611b\u60c5\uff0c\u653e\u68c4\u5de5\u4f5c\u55ce\uff1f\",\n          options: [\n            { text: \"\u662f\u7684\", value: \"career-focused\", nextQuestion: 6 },\n            { text: \"\u4e0d\u662f\", value: \"love-focused\", nextQuestion: 7 },\n            { text: \"\u4e0d\u77e5\u9053\", value: \"balanced\", nextQuestion: 8 }\n          ]\n        },\n        {\n          id: 6,\n          text: \"\u4f60\u8a8d\u70ba\u54ea\u7a2e\u984f\u8272\u66f4\u80fd\u8c61\u5fb5\u7d14\u6f54\u7684\u611b\u60c5\uff1f\",\n          options: [\n            { text: \"\u7c89\u8272\", value: \"romantic\", nextQuestion: 7 },\n            { text: \"\u767d\u8272\", value: \"pure\", nextQuestion: 8 },\n            { text: \"\u7da0\u8272\", value: \"natural\", result: \"A\" }\n          ]\n        },\n        {\n          id: 7,\n          text: \"\u5018\u82e5\u4f60\u8981\u53bb\u76f8\u89aa\uff0c\u800c\u4e0a\u53f8\u901a\u77e5\u4f60\u52a0\u73ed\uff0c\u4f60\u6703\uff1f\",\n          options: [\n            { text: \"\u5148\u76f8\u89aa\u518d\u56de\u4f86\u52a0\u73ed\", value: \"love-priority\", nextQuestion: 8 },\n            { text: \"\u5148\u52a0\u73ed\uff0c\u6539\u5929\u76f8\u89aa\", value: \"work-priority\", nextQuestion: 9 },\n            { text: \"\u8acb\u5047\u76f8\u89aa\uff0c\u4e0d\u52a0\u73ed\", value: \"boundary-setter\", nextQuestion: 10 }\n          ]\n        },\n        {\n          id: 8,\n          text: \"\u4e0b\u9762\u5e7e\u5927\u512a\u9ede\uff0c\u4f60\u6700\u60f3\u8981\u7684\u662f\uff1f\",\n          options: [\n            { text: \"\u6f02\u4eae\", value: \"appearance\", nextQuestion: 9 },\n            { text: \"\u6709\u9322\", value: \"wealth\", result: \"A\" },\n            { text: \"\u9ad8\u667a\u5546\", value: \"intelligence\", result: \"B\" }\n          ]\n        },\n        {\n          id: 9,\n          text: \"\u4e0b\u9762\u5e7e\u5c0d\u60c5\u4fb6\uff0c\u4f60\u6700\u559c\u6b61\u7684\u662f\uff1f\",\n          options: [\n            { text: \"\u6881\u5c71\u4f2f\u8207\u795d\u82f1\u81fa\", value: \"tragic-love\", result: \"C\" },\n            { text: \"\u7f85\u5bc6\u6b50\u8207\u6731\u9e97\u8449\", value: \"passionate-love\", result: \"D\" },\n            { text: \"\u725b\u90ce\u548c\u7e54\u5973\", value: \"eternal-love\", result: \"A\" }\n          ]\n        },\n        {\n          id: 10,\n          text: \"\u54ea\u7a2e\u611b\u60c5\u6a21\u5f0f\uff0c\u4f60\u73fe\u5728\u66f4\u559c\u6b61\uff1f\",\n          options: [\n            { text: \"\u9752\u6885\u7af9\u99ac\", value: \"childhood-love\", result: \"B\" },\n            { text: \"\u65e5\u4e45\u751f\u60c5\", value: \"gradual-love\", result: \"C\" },\n            { text: \"\u4e00\u898b\u937e\u60c5\", value: \"instant-love\", result: \"D\" }\n          ]\n        }\n      ];\n      \n      \/\/ \u7d50\u679c\u6578\u64da\n      this.results = {\n        \"A\": {\n          title: \"\u9047\u4e00\u822c\u4eba\",\n          type: \"stable\",\n          description: \"\u73fe\u5728\u90fd\u662f\u5feb\u9910\u6642\u4ee3\uff0c\u611b\u60c5\u4e5f\u662f\u5feb\u9910\u5f0f\u7684\u3002\u4f46\u662f\u4f60\u9084\u662f\u50b3\u7d71\u7684\u4eba\uff0c\u5e0c\u671b\u9047\u5230\u7684\u611b\u60c5\uff0c\u4e5f\u662f\u8207\u4f60\u4e00\u6a23\u8e0f\u5be6\u7684\u985e\u578b\u3002\u9019\u6a23\u7684\u4f60\uff0c\u5bb9\u6613\u9047\u5230\u7684\u4eba\u8207\u4f60\u5dee\u4e0d\u591a\uff0c\u662f\u4e00\u822c\u7684\u4eba\uff0c\u6bd4\u8f03\u5be6\u5728\u7684\u4eba\u3002\u4f60\u7684\u611b\u60c5\u89c0\u504f\u5411\u52d9\u5be6\uff0c\u9019\u5c07\u5e6b\u52a9\u4f60\u5efa\u7acb\u7a69\u5b9a\u7684\u95dc\u4fc2\u3002\",\n          scores: {\n            \"\u60c5\u611f\u7a69\u5b9a\u5ea6\": 72,\n            \"\u95dc\u4fc2\u9577\u4e45\u6027\": 85,\n            \"\u6d6a\u6f2b\u6307\u6578\": 60,\n            \"\u751f\u6d3b\u9069\u61c9\u529b\": 90\n          },\n          totalScore: 77,\n          suggestions: [\n            {\n              title: \"\u611f\u60c5\u5efa\u8b70\",\n              text: \"\u4fdd\u6301\u4f60\u7684\u8e0f\u5be6\u672c\u6027\uff0c\u4f46\u4e5f\u53ef\u4ee5\u9069\u7576\u589e\u52a0\u4e00\u4e9b\u6d6a\u6f2b\u5143\u7d20\uff0c\u8b93\u611f\u60c5\u751f\u6d3b\u66f4\u52a0\u8c50\u5bcc\u591a\u5f69\u3002\"\n            },\n            {\n              title: \"\u76f8\u8655\u6280\u5de7\",\n              text: \"\u591a\u8207\u4f34\u4fb6\u5206\u4eab\u65e5\u5e38\u751f\u6d3b\u4e2d\u7684\u5c0f\u78ba\u5e78\uff0c\u57f9\u990a\u5171\u540c\u8208\u8da3\uff0c\u8b93\u5e73\u51e1\u7684\u65e5\u5b50\u4e5f\u5145\u6eff\u6eab\u99a8\u3002\"\n            },\n            {\n              title: \"\u6210\u9577\u65b9\u5411\",\n              text: \"\u5b78\u6703\u5728\u7a69\u5b9a\u4e2d\u5c0b\u627e\u6fc0\u60c5\uff0c\u5728\u5e73\u6de1\u4e2d\u5275\u9020\u9a5a\u559c\uff0c\u8b93\u611b\u60c5\u4fdd\u6301\u65b0\u9bae\u611f\u3002\"\n            }\n          ]\n        },\n        \"B\": {\n          title: \"\u9047\u4e0d\u932f\u4eba\",\n          type: \"excellent\",\n          description: \"\u4f60\u9019\u7a2e\u7406\u667a\u985e\u578b\u7684\u4eba\uff0c\u54ea\u6015\u771f\u611b\u96e3\u5c0b\uff0c\u4e5f\u6703\u5805\u6301\u672c\u5fc3\uff0c\u770b\u5c0d\u65b9\u7684\u4eba\u54c1\u8207\u6027\u683c\u3002\u4f60\u5f9e\u7406\u6027\u4f86\u601d\u8003\uff0c\u6240\u4ee5\u9047\u5230\u7684\u4eba\u90fd\u5f88\u4e0d\u932f\uff0c\u7562\u7adf\u932f\u7684\u4eba\u4f60\u90fd\u6dd8\u6c70\u4e86\u3002\u4f60\u7684\u7406\u6027\u5c07\u70ba\u4f60\u5e36\u4f86\u512a\u8cea\u7684\u611f\u60c5\u3002\",\n          scores: {\n            \"\u60c5\u611f\u7a69\u5b9a\u5ea6\": 88,\n            \"\u95dc\u4fc2\u9577\u4e45\u6027\": 92,\n            \"\u6d6a\u6f2b\u6307\u6578\": 65,\n            \"\u751f\u6d3b\u9069\u61c9\u529b\": 84\n          },\n          totalScore: 82,\n          suggestions: [\n            {\n              title: \"\u611f\u60c5\u5efa\u8b70\",\n              text: \"\u7e7c\u7e8c\u4fdd\u6301\u7406\u6027\u9078\u64c7\u7684\u512a\u52e2\uff0c\u4f46\u4e5f\u8981\u5b78\u6703\u9069\u5ea6\u653e\u958b\u5fc3\u6249\uff0c\u8b93\u611f\u60c5\u66f4\u52a0\u6df1\u5165\u3002\"\n            },\n            {\n              title: \"\u76f8\u8655\u6280\u5de7\",\n              text: \"\u5728\u7406\u6027\u7684\u57fa\u790e\u4e0a\u589e\u52a0\u611f\u6027\u8868\u9054\uff0c\u591a\u8aaa\u611b\u7684\u8a9e\u8a00\uff0c\u8b93\u4f34\u4fb6\u611f\u53d7\u5230\u4f60\u7684\u6eab\u6696\u3002\"\n            },\n            {\n              title: \"\u6210\u9577\u65b9\u5411\",\n              text: \"\u5e73\u8861\u7406\u6027\u8207\u611f\u6027\uff0c\u65e2\u8981\u7528\u982d\u8166\u601d\u8003\uff0c\u4e5f\u8981\u7528\u5fc3\u611f\u53d7\uff0c\u8b93\u611b\u60c5\u66f4\u52a0\u5b8c\u6574\u3002\"\n            }\n          ]\n        },\n        \"C\": {\n          title: \"\u9047\u4eba\u4e0d\u6dd1\",\n          type: \"challenging\",\n          description: \"\u4f60\u5c6c\u65bc\u7279\u5225\u9700\u8981\u8b39\u614e\u7684\u985e\u578b\uff0c\u9047\u5230\u7684\u4eba\u7e3d\u662f\u4e0d\u592a\u5408\u9069\u3002\u4f60\u6eab\u6696\u5584\u826f\u7684\u6027\u683c\u5bb9\u6613\u5438\u5f15\u932f\u8aa4\u7684\u4eba\u3002\u672a\u4f86\u7684\u611b\u60c5\u751f\u6daf\u7576\u4e2d\uff0c\u4f60\u4e00\u5b9a\u8981\u9577\u5e7e\u500b\u5fc3\u773c\uff0c\u8b93\u5927\u5bb6\u5e6b\u4f60\u628a\u95dc\u624d\u884c\u3002\u8a18\u4f4f\uff0c\u4f60\u7684\u5584\u826f\u662f\u73cd\u8cb4\u7684\uff0c\u8981\u7d66\u503c\u5f97\u7684\u4eba\u3002\",\n          scores: {\n            \"\u60c5\u611f\u7a69\u5b9a\u5ea6\": 45,\n            \"\u95dc\u4fc2\u9577\u4e45\u6027\": 30,\n            \"\u6d6a\u6f2b\u6307\u6578\": 78,\n            \"\u751f\u6d3b\u9069\u61c9\u529b\": 58\n          },\n          totalScore: 53,\n          suggestions: [\n            {\n              title: \"\u611f\u60c5\u5efa\u8b70\",\n              text: \"\u5efa\u7acb\u6e05\u6670\u7684\u5e95\u7dda\u548c\u6a19\u6e96\uff0c\u5b78\u6703\u8b58\u5225\u771f\u5fc3\u8207\u865b\u60c5\uff0c\u4fdd\u8b77\u597d\u81ea\u5df1\u7684\u5584\u826f\u3002\"\n            },\n            {\n              title: \"\u76f8\u8655\u6280\u5de7\",\n              text: \"\u89c0\u5bdf\u5c0d\u65b9\u7684\u884c\u52d5\u800c\u975e\u8a00\u8a9e\uff0c\u591a\u807d\u670b\u53cb\u5bb6\u4eba\u7684\u610f\u898b\uff0c\u7406\u6027\u8a55\u4f30\u611f\u60c5\u72c0\u6cc1\u3002\"\n            },\n            {\n              title: \"\u6210\u9577\u65b9\u5411\",\n              text: \"\u63d0\u5347\u81ea\u6211\u50f9\u503c\u611f\uff0c\u76f8\u4fe1\u81ea\u5df1\u503c\u5f97\u88ab\u597d\u597d\u5c0d\u5f85\uff0c\u4e0d\u8981\u56e0\u70ba\u5bc2\u5bde\u800c\u964d\u4f4e\u6a19\u6e96\u3002\"\n            }\n          ]\n        },\n        \"D\": {\n          title: \"\u7121\u6240\u8b02\u6dd1\u4e0d\u6dd1\",\n          type: \"flexible\",\n          description: \"\u4f60\u8a8d\u70ba\u5169\u500b\u4eba\u5728\u4e00\u8d77\uff0c\u5408\u9069\u4e0d\u5408\u9069\u624d\u662f\u95dc\u9375\u3002\u4e0d\u9069\u5408\u7684\u8a71\uff0c\u5927\u591a\u662f\u6027\u683c\u4e0a\u7121\u6cd5\u78e8\u5408\uff0c\u8207\u5c0d\u65b9\u6dd1\u6216\u4e0d\u6dd1\uff0c\u6c92\u6709\u592a\u5927\u7684\u95dc\u4fc2\u3002\u4f60\u7684\u8c41\u9054\u614b\u5ea6\u8b93\u4f60\u5728\u611b\u60c5\u4e2d\u66f4\u52a0\u81ea\u5728\u3002\",\n          scores: {\n            \"\u60c5\u611f\u7a69\u5b9a\u5ea6\": 65,\n            \"\u95dc\u4fc2\u9577\u4e45\u6027\": 72,\n            \"\u6d6a\u6f2b\u6307\u6578\": 80,\n            \"\u751f\u6d3b\u9069\u61c9\u529b\": 75\n          },\n          totalScore: 73,\n          suggestions: [\n            {\n              title: \"\u611f\u60c5\u5efa\u8b70\",\n              text: \"\u4fdd\u6301\u958b\u653e\u7684\u5fc3\u614b\u5f88\u597d\uff0c\u4f46\u4e5f\u8981\u6709\u57fa\u672c\u7684\u539f\u5247\uff0c\u78ba\u4fdd\u96d9\u65b9\u50f9\u503c\u89c0\u7684\u57fa\u672c\u4e00\u81f4\u3002\"\n            },\n            {\n              title: \"\u76f8\u8655\u6280\u5de7\",\n              text: \"\u6ce8\u91cd\u6e9d\u901a\u548c\u7406\u89e3\uff0c\u4e3b\u52d5\u5275\u9020\u5171\u540c\u8a71\u984c\uff0c\u589e\u9032\u5f7c\u6b64\u7684\u9ed8\u5951\u7a0b\u5ea6\u3002\"\n            },\n            {\n              title: \"\u6210\u9577\u65b9\u5411\",\n              text: \"\u5728\u5305\u5bb9\u4e2d\u4fdd\u6301\u81ea\u6211\uff0c\u5728\u7406\u89e3\u4e2d\u5c0b\u6c42\u5171\u8b58\uff0c\u8b93\u95dc\u4fc2\u66f4\u52a0\u548c\u8ae7\u7f8e\u6eff\u3002\"\n            }\n          ]\n        }\n      };\n      \n      \/\/ \u5feb\u53d6DOM\u5143\u7d20\n      this.elements = {};\n      this.cacheElements();\n    }\n    \n    cacheElements() {\n      this.elements = {\n        intro: document.getElementById('quizintro9'),\n        main: document.getElementById('quizmain9'),\n        result: document.getElementById('quizresult9'),\n        question: document.getElementById('quiz9Question'),\n        options: document.getElementById('quiz9Options'),\n        currentQ: document.getElementById('quiz9CurrentQ'),\n        totalQ: document.getElementById('quiz9TotalQ'),\n        percent: document.getElementById('quiz9Percent'),\n        progressBar: document.getElementById('quiz9ProgressBar'),\n        prevBtn: document.getElementById('quiz9PrevBtn'),\n        resultTitle: document.getElementById('quiz9ResultTitle'),\n        resultDesc: document.getElementById('quiz9ResultDesc'),\n        suggestions: document.getElementById('quiz9Suggestions'),\n        scoreCards: document.getElementById('quiz9ScoreCards'),\n        distributionChart: document.getElementById('quiz9DistributionChart'),\n        chart: document.getElementById('quiz9Chart')\n      };\n      \n      \/\/ \u8a2d\u7f6e\u7e3d\u984c\u6578\n      if (this.elements.totalQ) {\n        this.elements.totalQ.textContent = this.questions.length;\n      }\n    }\n    \n    startQuiz() {\n      this.currentQuestionIndex = 0;\n      this.questionHistory = [];\n      this.selectedOptions = [];\n      this.showPage('main');\n      this.showQuestion(this.questions[0].id);\n      this.scrollToTop();\n    }\n    \n    showPage(page) {\n      \/\/ \u96b1\u85cf\u6240\u6709\u9801\u9762\n      ['intro', 'main', 'result'].forEach(p => {\n        if (this.elements[p]) {\n          this.elements[p].style.display = 'none';\n          this.elements[p].classList.remove('active');\n        }\n      });\n      \n      \/\/ \u986f\u793a\u6307\u5b9a\u9801\u9762\n      if (this.elements[page]) {\n        this.elements[page].style.display = 'block';\n        setTimeout(() => {\n          this.elements[page].classList.add('active');\n        }, 50);\n      }\n    }\n    \n    showQuestion(questionId) {\n      const question = this.questions.find(q => q.id === questionId);\n      if (!question) return;\n      \n      \/\/ \u66f4\u65b0\u7576\u524d\u554f\u984c\u7d22\u5f15\n      this.currentQuestionIndex = this.questions.findIndex(q => q.id === questionId);\n      \n      \/\/ \u66f4\u65b0\u9032\u5ea6\n      this.updateProgress();\n      \n      \/\/ \u986f\u793a\u554f\u984c\n      this.elements.question.textContent = question.text;\n      \n      \/\/ \u6e05\u7a7a\u4e26\u751f\u6210\u5361\u7247\u5f0f\u9078\u9805\n      this.elements.options.innerHTML = '';\n      question.options.forEach((option, index) => {\n        const optionCard = document.createElement('div');\n        optionCard.className = 'quiz9-option-card';\n        optionCard.innerHTML = `\n          <div class=\"quiz9-option-indicator\"><\/div>\n          <div class=\"quiz9-option-text\">${option.text}<\/div>\n        `;\n        optionCard.onclick = () => this.selectOption(option, questionId, optionCard);\n        this.elements.options.appendChild(optionCard);\n      });\n      \n      \/\/ \u66f4\u65b0\u4e0a\u4e00\u984c\u6309\u9215\n      if (this.questionHistory.length > 0) {\n        this.elements.prevBtn.style.display = 'inline-block';\n      } else {\n        this.elements.prevBtn.style.display = 'none';\n      }\n    }\n    \n    selectOption(option, currentQuestionId, cardElement) {\n      \/\/ \u8a18\u9304\u9078\u64c7\n      this.selectedOptions[currentQuestionId] = option.value;\n      \n      \/\/ \u6dfb\u52a0\u9078\u4e2d\u6548\u679c\n      const cards = this.elements.options.querySelectorAll('.quiz9-option-card');\n      cards.forEach(card => card.classList.remove('selected'));\n      cardElement.classList.add('selected');\n      \n      \/\/ \u8a18\u9304\u6b77\u53f2\n      this.questionHistory.push(currentQuestionId);\n      \n      \/\/ \u5ef6\u9072\u5f8c\u9032\u5165\u4e0b\u4e00\u984c\u6216\u7d50\u679c\n      setTimeout(() => {\n        if (option.result) {\n          this.showResult(option.result);\n        } else if (option.nextQuestion) {\n          this.showQuestion(option.nextQuestion);\n        }\n      }, 300);\n    }\n    \n    previousQuestion() {\n      if (this.questionHistory.length > 0) {\n        const prevQuestionId = this.questionHistory.pop();\n        this.showQuestion(prevQuestionId);\n      }\n    }\n    \n    updateProgress() {\n      const progress = ((this.currentQuestionIndex + 1) \/ this.questions.length) * 100;\n      this.elements.currentQ.textContent = this.currentQuestionIndex + 1;\n      this.elements.percent.textContent = Math.round(progress);\n      this.elements.progressBar.style.width = progress + '%';\n      this.elements.progressBar.setAttribute('aria-valuenow', progress);\n    }\n    \n    showResult(resultId) {\n      const result = this.results[resultId];\n      if (!result) return;\n      \n      \/\/ \u986f\u793a\u7d50\u679c\u9801\n      this.showPage('result');\n      this.scrollToTop();\n      \n      \/\/ \u8a2d\u7f6e\u7d50\u679c\u5167\u5bb9\n      this.elements.resultTitle.textContent = result.title;\n      this.elements.resultDesc.textContent = result.description;\n      \n      \/\/ \u751f\u6210\u500b\u6027\u5316\u5efa\u8b70\n      this.elements.suggestions.innerHTML = '';\n      result.suggestions.forEach(suggestion => {\n        const suggestionCard = document.createElement('div');\n        suggestionCard.className = 'quiz9-suggestion-card';\n        suggestionCard.innerHTML = `\n          <div class=\"quiz9-suggestion-title\">\n            <i class=\"bi bi-lightbulb me-2\"><\/i>${suggestion.title}\n          <\/div>\n          <p class=\"quiz9-suggestion-text\">${suggestion.text}<\/p>\n        `;\n        this.elements.suggestions.appendChild(suggestionCard);\n      });\n      \n      \/\/ \u751f\u6210\u5206\u6578\u5361\u7247\n      this.elements.scoreCards.innerHTML = '';\n      Object.entries(result.scores).forEach(([label, value]) => {\n        const col = document.createElement('div');\n        col.className = 'col-6 col-md-3';\n        col.innerHTML = `\n          <div class=\"quiz9-score-card\">\n            <div class=\"quiz9-score-value\">${value}%<\/div>\n            <div class=\"quiz9-score-label\">${label}<\/div>\n          <\/div>\n        `;\n        this.elements.scoreCards.appendChild(col);\n      });\n      \n      \/\/ \u5275\u5efa\u5206\u5e03\u5716\n      this.createDistributionChart(result.totalScore);\n      \n      \/\/ \u5ef6\u9072\u986f\u793a\u96f7\u9054\u5716\n      setTimeout(() => {\n        this.createRadarChart(result.scores);\n      }, 500);\n    }\n    \n    createDistributionChart(userScore) {\n      const segments = [\n        { label: '\u9700\u8981\u52aa\u529b', range: '0-40', color: '#e8b4b8', width: 20 },\n        { label: '\u4e00\u822c\u6c34\u5e73', range: '41-60', color: '#f4d4a5', width: 20 },\n        { label: '\u4e0d\u932f\u72c0\u614b', range: '61-80', color: '#a8d5ba', width: 20 },\n        { label: '\u512a\u79c0\u8868\u73fe', range: '81-100', color: '#8b95d9', width: 20 }\n      ];\n      \n      \/\/ \u5275\u5efa\u5206\u5e03\u689d\n      let distributionHTML = '<div class=\"quiz9-distribution-bar\">';\n      segments.forEach(segment => {\n        distributionHTML += `\n          <div class=\"quiz9-distribution-segment\" \n               style=\"background: ${segment.color}; width: 25%;\">\n            ${segment.range}\n          <\/div>\n        `;\n      });\n      \n      \/\/ \u6dfb\u52a0\u7528\u6236\u6a19\u8a18\n      const markerPosition = userScore;\n      distributionHTML += `\n        <div class=\"quiz9-user-marker\" style=\"left: ${markerPosition}%;\">\n          <div style=\"position: absolute; top: 25px; left: 50%; transform: translateX(-50%); \n                      background: white; padding: 2px 8px; border-radius: 4px; \n                      box-shadow: 0 2px 4px rgba(0,0,0,0.1); white-space: nowrap;\n                      font-size: 12px; font-weight: bold; color: #e74c3c;\">\n            ${userScore}\u5206\n          <\/div>\n        <\/div>\n      `;\n      distributionHTML += '<\/div>';\n      \n      \/\/ \u5275\u5efa\u5716\u4f8b\n      distributionHTML += '<div class=\"quiz9-distribution-legend\">';\n      segments.forEach(segment => {\n        distributionHTML += `\n          <div class=\"quiz9-legend-item\">\n            <div class=\"quiz9-legend-color\" style=\"background: ${segment.color};\"><\/div>\n            <span>${segment.label}<\/span>\n          <\/div>\n        `;\n      });\n      distributionHTML += '<\/div>';\n      \n      this.elements.distributionChart.innerHTML = distributionHTML;\n    }\n    \n    createRadarChart(scores) {\n      \/\/ \u92b7\u6bc0\u820a\u5716\u8868\n      if (this.chartInstance) {\n        this.chartInstance.destroy();\n      }\n      \n      const ctx = this.elements.chart.getContext('2d');\n      const labels = Object.keys(scores);\n      const data = Object.values(scores);\n      \n      \/\/ \u5275\u5efa\u65b0\u5716\u8868\n      this.chartInstance = new Chart(ctx, {\n        type: 'radar',\n        data: {\n          labels: labels,\n          datasets: [{\n            label: '\u4f60\u7684\u611b\u60c5\u7279\u8cea',\n            data: data,\n            backgroundColor: 'rgba(127, 177, 149, 0.2)',\n            borderColor: 'rgba(127, 177, 149, 1)',\n            borderWidth: 2,\n            pointBackgroundColor: 'rgba(127, 177, 149, 1)',\n            pointBorderColor: '#fff',\n            pointHoverBackgroundColor: '#fff',\n            pointHoverBorderColor: 'rgba(127, 177, 149, 1)',\n            pointRadius: 6,\n            pointHoverRadius: 8\n          }]\n        },\n        options: {\n          responsive: true,\n          maintainAspectRatio: false,\n          plugins: {\n            legend: {\n              display: false\n            },\n            tooltip: {\n              callbacks: {\n                label: function(context) {\n                  return context.label + ': ' + context.parsed.r + '%';\n                }\n              }\n            }\n          },\n          scales: {\n            r: {\n              beginAtZero: true,\n              max: 100,\n              ticks: {\n                stepSize: 20,\n                font: {\n                  size: 14\n                }\n              },\n              pointLabels: {\n                font: {\n                  size: 16,\n                  weight: 'bold'\n                },\n                color: '#495057'\n              },\n              grid: {\n                color: 'rgba(0, 0, 0, 0.1)'\n              }\n            }\n          }\n        }\n      });\n    }\n    \n    restart() {\n      this.currentQuestionIndex = 0;\n      this.questionHistory = [];\n      this.selectedOptions = [];\n      this.startQuiz();\n    }\n    \n    scrollToTop() {\n      const container = document.getElementById('loveQuiz9Container');\n      if (container) {\n        container.scrollIntoView({ behavior: 'smooth', block: 'start' });\n      }\n    }\n  }\n  \n  \/\/ \u5275\u5efa\u5168\u57df\u5be6\u4f8b\n  window.quiz9 = new LoveQuiz9();\n})();\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u662f\u6240\u6709\u4eba\u90fd\u6709\u90a3\u6837\u5e78\u8fd0\uff0c\u5373\u4f7f\u80fd\u8ba4\u51fa\u6765\u5bf9\u65b9\u4e0d\u5927\u597d\uff0c\u53ef\u80fd\u4e5f\u4e00\u65f6\u60c5\u611f\u4e0a\u653e\u4e0d\u4e0b\u3002\u4e0d\u77e5\u9053\u4f60\u5728\u7231\u60c5\u4e2d\uff0c\u4f1a\u9047\u4eba\u5f88\u6dd1\uff0c\u8fd8\u662f\u9047\u4eba\u4e0d\u6dd1\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":"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":[178],"tags":[],"class_list":["post-2482","post","type-post","status-publish","format-standard","hentry","category-love"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2482","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=2482"}],"version-history":[{"count":4,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2482\/revisions"}],"predecessor-version":[{"id":10500,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2482\/revisions\/10500"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}