{"id":2573,"date":"2023-10-20T08:38:50","date_gmt":"2023-10-20T00:38:50","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2573"},"modified":"2025-08-26T20:31:06","modified_gmt":"2025-08-26T12:31:06","slug":"friend-to-lover-success-rate","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/friend-to-lover-success-rate","title":{"rendered":"\u5c0f\u6d4b\u9a8c\uff1a\u670b\u53cb\u6210\u4e3a\u604b\u4eba\u7684\u8f6c\u6b63\u7387\u662f\u591a\u5c11\uff1f"},"content":{"rendered":"<!-- \u5f15\u5165Bootstrap CSS -->\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<!-- \u4e3b\u5bb9\u5668 -->\n<main class=\"quiz-main-container\">\n  <div class=\"quiz-wrapper\">\n      \n    <!-- \u5f15\u5c0e\u9801 -->\n    <section id=\"quizintro9\" data-page=\"intro9\">\n      <header class=\"text-center mb-5\">\n        <h2 class=\"display-5 fw-bold mb-3\" style=\"color: #5a7c65;\">\u670b\u53cb\u6210\u70ba\u6200\u4eba\u7684\u8f49\u6b63\u7387\u6e2c\u9a57<\/h2>\n        <p class=\"lead\" style=\"color: #8b9dc3;\">\u63a2\u7d22\u4f60\u5011\u95dc\u4fc2\u7684\u53ef\u80fd\u6027<\/p>\n      <\/header>\n      \n      <article class=\"mb-5\">\n        <div class=\"row g-4 mb-5\">\n          <div class=\"col-6 col-md-3\">\n            <div class=\"text-center\">\n              <div class=\"feature-circle mx-auto\">\n                <i class=\"bi bi-heart-fill\"><\/i>\n              <\/div>\n              <h5 class=\"fw-semibold mt-3\" style=\"color: #5a7c65;\">\u611b\u60c5\u6f5b\u529b<\/h5>\n            <\/div>\n          <\/div>\n          <div class=\"col-6 col-md-3\">\n            <div class=\"text-center\">\n              <div class=\"feature-circle mx-auto\" style=\"background: rgba(139, 157, 195, 0.15);\">\n                <i class=\"bi bi-people-fill\" style=\"color: #8b9dc3;\"><\/i>\n              <\/div>\n              <h5 class=\"fw-semibold mt-3\" style=\"color: #5a7c65;\">\u95dc\u4fc2\u5206\u6790<\/h5>\n            <\/div>\n          <\/div>\n          <div class=\"col-6 col-md-3\">\n            <div class=\"text-center\">\n              <div class=\"feature-circle mx-auto\" style=\"background: rgba(181, 165, 213, 0.15);\">\n                <i class=\"bi bi-stars\" style=\"color: #b5a5d5;\"><\/i>\n              <\/div>\n              <h5 class=\"fw-semibold mt-3\" style=\"color: #5a7c65;\">\u4e13\u4e1a\u8bc4\u4f30<\/h5>\n            <\/div>\n          <\/div>\n          <div class=\"col-6 col-md-3\">\n            <div class=\"text-center\">\n              <div class=\"feature-circle mx-auto\" style=\"background: rgba(255, 206, 153, 0.15);\">\n                <i class=\"bi bi-lightbulb-fill\" style=\"color: #f4b084;\"><\/i>\n              <\/div>\n              <h5 class=\"fw-semibold mt-3\" style=\"color: #5a7c65;\">\u6df1\u5ea6\u6d1e\u5bdf<\/h5>\n            <\/div>\n          <\/div>\n        <\/div>\n        \n        <div class=\"intro-card mb-4\">\n          <p class=\"fs-5 mb-3\">\u4e5f\u8a31\uff0c\u4f60\u5fc3\u5e95\u6709\u90a3\u9ebc\u4e00\u500b\u4eba\uff0c\u4f60\u5011\u4e0d\u662f\u6200\u4eba\u7684\u95dc\u4fc2\uff0c\u4f46ta\u537b\u4e00\u76f4\u4f4f\u5728\u4f60\u7684\u5fc3\u88e1\u3002<\/p>\n          <p class=\"fs-5 mb-3\">\u5c0d\u4e00\u500b\u4f60\u518d\u559c\u6b61\u537b\u4e0d\u592a\u53ef\u80fd\u5728\u4e00\u8d77\u7684\u4eba\uff0c\u4e0d\u5982\u9078\u64c7\u505a\u670b\u53cb\uff0c\u56e0\u70ba\u670b\u53cb\u6c38\u9060\u6bd4\u6200\u4eba\u8d70\u5f97\u9060\u3002<\/p>\n          <p class=\"fs-5 mb-0\">\u8b93\u6211\u5011\u4e00\u8d77\u63a2\u7d22\uff0c\u670b\u53cb\u6210\u70ba\u6200\u4eba\u7684\u53ef\u80fd\u6027\u6709\u591a\u5927\uff1f<\/p>\n        <\/div>\n        \n        <div class=\"info-alert\">\n          <div class=\"d-flex align-items-center\">\n            <i class=\"bi bi-info-circle-fill me-3\" style=\"font-size: 1.5rem; color: #8b9dc3;\"><\/i>\n            <div>\n              <strong style=\"color: #5a7c65;\">\u6e2c\u9a57\u8aaa\u660e<\/strong><br>\n              <span style=\"color: #6c757d;\">\u517110\u9053\u984c\u76ee\uff0c\u6839\u64da\u4f60\u7684\u771f\u5be6\u611f\u53d7\u9078\u64c7\u7b54\u6848\uff0c\u7cfb\u7d71\u5c07\u70ba\u4f60\u5206\u6790\u95dc\u4fc2\u7684\u767c\u5c55\u6f5b\u529b\u3002<\/span>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/article>\n      \n      <footer class=\"text-center\">\n        <button type=\"button\" class=\"btn-start\" data-action=\"start-quiz\">\n          <i class=\"bi bi-play-fill me-2\"><\/i>\u5f00\u59cb\u6d4b\u9a8c\n        <\/button>\n      <\/footer>\n    <\/section>\n    \n    <!-- \u6e2c\u9a57\u9801 -->\n    <section id=\"quizmain9\" data-page=\"quiz9\" style=\"display: none;\">\n      <header class=\"mb-4\">\n        <h2 class=\"text-center mb-4\" style=\"color: #5a7c65;\">\u670b\u53cb\u6210\u70ba\u6200\u4eba\u7684\u8f49\u6b63\u7387\u6e2c\u9a57<\/h2>\n        <div class=\"quiz-progress mb-4\">\n          <div class=\"quiz-progress-bar\" data-progress-bar style=\"width: 10%;\"><\/div>\n        <\/div>\n        <p class=\"text-center text-muted mb-0\" data-question-counter>\u554f\u984c 1 \/ 10<\/p>\n      <\/header>\n      \n      <article data-quiz-container>\n        <!-- \u984c\u76ee\u5c07\u52d5\u614b\u63d2\u5165\u9019\u88e1 -->\n      <\/article>\n      \n      <footer class=\"text-center mt-4\">\n        <button type=\"button\" class=\"btn-prev\" data-action=\"prev-question\" style=\"display: none;\">\n          <i class=\"bi bi-arrow-left me-2\"><\/i>\u4e0a\u4e00\u9898\n        <\/button>\n      <\/footer>\n    <\/section>\n    \n    <!-- \u7d50\u679c\u9801 -->\n    <section id=\"quizresult9\" data-page=\"result9\" style=\"display: none;\">\n      <header class=\"text-center mb-4\">\n        <h2 class=\"mb-3\" style=\"color: #5a7c65;\">\u6d4b\u9a8c\u7ed3\u679c<\/h2>\n        <p class=\"lead\" style=\"color: #8b9dc3;\">\u4f60\u7684\u670b\u53cb\u8f49\u6b63\u7387\u5206\u6790<\/p>\n      <\/header>\n      \n      <article>\n        <div class=\"result-card\">\n          <div class=\"text-center mb-4\">\n            <div class=\"result-percentage\" data-result-percentage>80%<\/div>\n            <h3 class=\"fw-semibold\" style=\"color: #5a7c65;\" data-result-title>\u8f49\u6b63\u7387\u6975\u9ad8<\/h3>\n          <\/div>\n          \n          <div class=\"result-description-box mb-4\">\n            <p class=\"fs-5 mb-0\" data-result-description><\/p>\n          <\/div>\n          \n          <div class=\"row justify-content-center mb-4\">\n            <div class=\"col-12 col-md-10\">\n              <canvas id=\"resultChart\" style=\"max-height: 300px;\"><\/canvas>\n            <\/div>\n          <\/div>\n          \n          <div class=\"row g-3 mb-4\">\n            <div class=\"col-6\">\n              <div class=\"score-card\">\n                <i class=\"bi bi-heart-fill mb-2\" style=\"font-size: 2rem; color: #e8b4b8;\"><\/i>\n                <h6 class=\"mb-1\" style=\"color: #5a7c65;\">\u611f\u60c5\u57fa\u790e<\/h6>\n                <p class=\"mb-0 fw-bold\" style=\"color: #e8b4b8;\" data-emotion-score>85\u5206<\/p>\n              <\/div>\n            <\/div>\n            <div class=\"col-6\">\n              <div class=\"score-card\">\n                <i class=\"bi bi-chat-heart-fill mb-2\" style=\"font-size: 2rem; color: #8b9dc3;\"><\/i>\n                <h6 class=\"mb-1\" style=\"color: #5a7c65;\">\u4e92\u52d5\u54c1\u8cea<\/h6>\n                <p class=\"mb-0 fw-bold\" style=\"color: #8b9dc3;\" data-interaction-score>90\u5206<\/p>\n              <\/div>\n            <\/div>\n            <div class=\"col-6\">\n              <div class=\"score-card\">\n                <i class=\"bi bi-arrow-through-heart-fill mb-2\" style=\"font-size: 2rem; color: #b5a5d5;\"><\/i>\n                <h6 class=\"mb-1\" style=\"color: #5a7c65;\">\u767c\u5c55\u6f5b\u529b<\/h6>\n                <p class=\"mb-0 fw-bold\" style=\"color: #b5a5d5;\" data-potential-score>88\u5206<\/p>\n              <\/div>\n            <\/div>\n            <div class=\"col-6\">\n              <div class=\"score-card\">\n                <i class=\"bi bi-stars mb-2\" style=\"font-size: 2rem; color: #f4b084;\"><\/i>\n                <h6 class=\"mb-1\" style=\"color: #5a7c65;\">\u5951\u5408\u5ea6<\/h6>\n                <p class=\"mb-0 fw-bold\" style=\"color: #f4b084;\" data-compatibility-score>92\u5206<\/p>\n              <\/div>\n            <\/div>\n          <\/div>\n          \n          <div class=\"advice-box\">\n            <h6 class=\"fw-semibold mb-2\" style=\"color: #5a7c65;\">\n              <i class=\"bi bi-lightbulb-fill me-2\" style=\"color: #f4b084;\"><\/i>\u5efa\u8b70\n            <\/h6>\n            <p class=\"mb-0\" style=\"color: #6c757d;\" data-advice><\/p>\n          <\/div>\n        <\/div>\n      <\/article>\n      \n      <footer class=\"text-center\">\n        <button type=\"button\" class=\"btn-restart\" data-action=\"restart-quiz\">\n          <i class=\"bi bi-arrow-clockwise me-2\"><\/i>\u91cd\u65b0\u6d4b\u8bd5\n        <\/button>\n      <\/footer>\n    <\/section>\n    \n  <\/div>\n<\/main>\n\n<!-- \u81ea\u5b9a\u7fa9\u6a23\u5f0f -->\n<style>\n  \/* \u5168\u5c40\u6a23\u5f0f *\/\n  .quiz-main-container {\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n    max-width: 750px;\n    margin: 0 auto;\n    padding: 2rem 1rem;\n  }\n  \n  .quiz-wrapper {\n    width: 100%;\n  }\n  \n  \/* \u5f15\u5c0e\u9801\u7279\u8272\u5713\u5f62 *\/\n  .feature-circle {\n    width: 100px;\n    height: 100px;\n    border-radius: 50%;\n    background: rgba(90, 124, 101, 0.1);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    transition: transform 0.3s ease, box-shadow 0.3s ease;\n  }\n  \n  .feature-circle i {\n    font-size: 2.5rem;\n    color: #7fa688;\n  }\n  \n  .feature-circle:hover {\n    transform: translateY(-5px);\n    box-shadow: 0 10px 25px rgba(90, 124, 101, 0.15);\n  }\n  \n  \/* \u5f15\u5c0e\u9801\u5167\u5bb9\u5361\u7247 *\/\n  .intro-card {\n    background: #f8f9fa;\n    border-radius: 16px;\n    padding: 2rem;\n    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);\n  }\n  \n  \/* \u63d0\u793a\u6846 *\/\n  .info-alert {\n    background: linear-gradient(135deg, rgba(139, 157, 195, 0.1) 0%, rgba(181, 165, 213, 0.1) 100%);\n    border-radius: 12px;\n    padding: 1.25rem;\n    border-left: 4px solid #8b9dc3;\n  }\n  \n  \/* \u6e2c\u9a57\u9801\u9078\u9805\u5361\u7247 *\/\n  .quiz-option-card {\n    border: 2px solid #e9ecef;\n    border-radius: 12px;\n    padding: 1.25rem;\n    margin-bottom: 1rem;\n    cursor: pointer;\n    transition: all 0.3s ease;\n    background: white;\n    position: relative;\n    padding-left: 3.5rem;\n    min-height: 80px;\n    display: flex;\n    align-items: center;\n    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);\n  }\n  \n  .quiz-option-card:hover {\n    border-color: #8b9dc3;\n    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.2);\n    transform: translateX(5px);\n  }\n  \n  .quiz-option-card.selected {\n    background: linear-gradient(135deg, #7fa688 0%, #5a7c65 100%);\n    border-color: #5a7c65;\n    color: white;\n  }\n  \n  .quiz-option-indicator {\n    position: absolute;\n    left: 1.25rem;\n    width: 24px;\n    height: 24px;\n    border: 2px solid #dee2e6;\n    border-radius: 50%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: white;\n    transition: all 0.3s ease;\n  }\n  \n  .quiz-option-card:hover .quiz-option-indicator {\n    border-color: #8b9dc3;\n  }\n  \n  .quiz-option-card.selected .quiz-option-indicator {\n    background: white;\n    border-color: white;\n  }\n  \n  .quiz-option-card.selected .quiz-option-indicator::after {\n    content: '\\2713';\n    color: #5a7c65;\n    font-weight: bold;\n    font-size: 14px;\n  }\n  \n  .quiz-option-text {\n    font-size: 18px;\n    line-height: 1.5;\n    color: #212529;\n  }\n  \n  .quiz-option-card.selected .quiz-option-text {\n    color: white;\n  }\n  \n  \/* \u9032\u5ea6\u689d *\/\n  .quiz-progress {\n    height: 8px;\n    background: #e9ecef;\n    border-radius: 10px;\n    overflow: hidden;\n  }\n  \n  .quiz-progress-bar {\n    height: 100%;\n    background: linear-gradient(135deg, #8b9dc3 0%, #b5a5d5 100%);\n    transition: width 0.5s ease;\n    border-radius: 10px;\n  }\n  \n  \/* \u6309\u9215\u6a23\u5f0f *\/\n  .btn-start, .btn-restart {\n    background: linear-gradient(135deg, #7fa688 0%, #5a7c65 100%);\n    color: white;\n    border: none;\n    padding: 0.875rem 3rem;\n    font-size: 1.125rem;\n    font-weight: 600;\n    border-radius: 50px;\n    transition: all 0.3s ease;\n    box-shadow: 0 4px 15px rgba(90, 124, 101, 0.3);\n  }\n  \n  .btn-start:hover, .btn-restart:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 6px 25px rgba(90, 124, 101, 0.4);\n  }\n  \n  .btn-prev {\n    background: transparent;\n    color: #6c757d;\n    border: 2px solid #dee2e6;\n    padding: 0.75rem 2rem;\n    font-size: 1rem;\n    font-weight: 500;\n    border-radius: 50px;\n    transition: all 0.3s ease;\n  }\n  \n  .btn-prev:hover {\n    border-color: #8b9dc3;\n    color: #5a7c65;\n    background: rgba(139, 157, 195, 0.05);\n  }\n  \n  \/* \u7d50\u679c\u9801\u6a23\u5f0f *\/\n  .result-card {\n    background: white;\n    border-radius: 20px;\n    padding: 2rem;\n    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);\n  }\n  \n  .result-percentage {\n    font-size: 4rem;\n    font-weight: bold;\n    background: linear-gradient(135deg, #7fa688 0%, #8b9dc3 100%);\n    -webkit-background-clip: text;\n    -webkit-text-fill-color: transparent;\n    background-clip: text;\n    margin-bottom: 0.5rem;\n  }\n  \n  .result-description-box {\n    background: #f8f9fa;\n    border-radius: 12px;\n    padding: 1.5rem;\n  }\n  \n  .score-card {\n    background: white;\n    border-radius: 12px;\n    padding: 1.25rem;\n    text-align: center;\n    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);\n    transition: transform 0.3s ease;\n  }\n  \n  .score-card:hover {\n    transform: translateY(-3px);\n    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n  }\n  \n  .advice-box {\n    background: linear-gradient(135deg, rgba(244, 176, 132, 0.1) 0%, rgba(181, 165, 213, 0.1) 100%);\n    border-radius: 12px;\n    padding: 1.25rem;\n    border-left: 4px solid #f4b084;\n  }\n  \n  \/* \u97ff\u61c9\u5f0f\u8abf\u6574 *\/\n  @media (max-width: 768px) {\n    .quiz-main-container {\n      padding: 1rem 0.5rem;\n    }\n    \n    .quiz-option-card {\n      padding: 1rem;\n      padding-left: 3rem;\n      min-height: 70px;\n    }\n    \n    .quiz-option-text {\n      font-size: 16px;\n    }\n    \n    .display-5 {\n      font-size: 1.75rem;\n    }\n    \n    .result-percentage {\n      font-size: 3rem;\n    }\n    \n    .feature-circle {\n      width: 80px;\n      height: 80px;\n    }\n    \n    .feature-circle i {\n      font-size: 2rem;\n    }\n  }\n  \n  \/* \u9801\u9762\u5207\u63db\u52d5\u756b *\/\n  section[data-page] {\n    animation: fadeIn 0.5s ease;\n  }\n  \n  @keyframes fadeIn {\n    from {\n      opacity: 0;\n      transform: translateY(20px);\n    }\n    to {\n      opacity: 1;\n      transform: translateY(0);\n    }\n  }\n  \n  \/* \u78ba\u4fdd\u984c\u76ee\u6a23\u5f0f *\/\n  h3.question-title {\n    font-size: 22px !important;\n    font-weight: bold !important;\n    color: #5a7c65;\n    margin-bottom: 1.5rem;\n  }\n<\/style>\n\n<!-- Chart.js -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/4.4.1\/chart.umd.min.js\"><\/script>\n\n<!-- \u6e2c\u9a57\u908f\u8f2f -->\n<script>\n(function() {\n  'use strict';\n  \n  class LoveQuiz {\n    constructor() {\n      \/\/ \u5feb\u53d6DOM\u5143\u7d20\n      this.introSection = document.querySelector('#quizintro9');\n      this.quizSection = document.querySelector('#quizmain9');\n      this.resultSection = document.querySelector('#quizresult9');\n      this.quizContainer = document.querySelector('[data-quiz-container]');\n      this.progressBar = document.querySelector('[data-progress-bar]');\n      this.questionCounter = document.querySelector('[data-question-counter]');\n      this.prevButton = document.querySelector('[data-action=\"prev-question\"]');\n      \n      this.currentQuestion = 0;\n      this.answers = {};\n      this.questionPath = [];\n      this.chartInstance = null;\n      \n      \/\/ \u984c\u76ee\u6578\u64da\n      this.questions = [\n        {\n          id: 1,\n          text: 'TA\u6703\u6642\u4e0d\u6642\u628a\u6ce8\u610f\u529b\u653e\u5728\u4f60\u7684\u8eab\u4e0a\u55ce\uff1f',\n          options: [\n            { text: '\u6703', next: 2 },\n            { text: '\u4e0d\u6703', next: 3 },\n            { text: '\u5076\u723e', next: 4 }\n          ]\n        },\n        {\n          id: 2,\n          text: '\u4f60\u7684\u7b2c\u516d\u611f\u6e96\u55ce\uff1f',\n          options: [\n            { text: '\u6e96', next: 4 },\n            { text: '\u4e0d\u6e96', next: 5 },\n            { text: '\u4e00\u822c', next: 3 }\n          ]\n        },\n        {\n          id: 3,\n          text: 'TA\u5c0d\u4f60\u4e00\u76f4\u5f88\u7d30\u5fc3\uff1f',\n          options: [\n            { text: '\u662f', next: 6 },\n            { text: '\u4e0d\u662f', next: 5 },\n            { text: '\u9084\u597d', next: 4 }\n          ]\n        },\n        {\n          id: 4,\n          text: 'TA\u6703\u4e0d\u6703\u4ecb\u610f\u670b\u53cb\u62ff\u4f60\u5011\u5c0b\u958b\u5fc3\uff1f',\n          options: [\n            { text: '\u6703', next: 5 },\n            { text: '\u4e0d\u6703', next: 6 },\n            { text: '\u4e0d\u78ba\u5b9a', next: 7 }\n          ]\n        },\n        {\n          id: 5,\n          text: 'TA\u9762\u5c0d\u4f60\u7684\u6642\u5019\uff0c\u773c\u795e\u88e1\u5145\u6eff\u4e86\u5bf5\u6eba\uff1f',\n          options: [\n            { text: '\u662f', next: 6 },\n            { text: '\u4e0d\u662f', next: 7 },\n            { text: '\u4e0d\u78ba\u5b9a', next: 8 }\n          ]\n        },\n        {\n          id: 6,\n          text: '\u4f60\u5011\u6bcf\u4e00\u5929\u90fd\u6703\u804a\u5929\uff1f',\n          options: [\n            { text: '\u662f', next: 8 },\n            { text: '\u4e0d\u662f', next: 7 },\n            { text: '\u5076\u723e', next: 9 }\n          ]\n        },\n        {\n          id: 7,\n          text: 'TA\u6703\u4ecb\u610f\u4f60\u770b\u81ea\u5df1\u7684\u624b\u6a5f\u55ce\uff1f',\n          options: [\n            { text: '\u6703', next: 9 },\n            { text: '\u4e0d\u6703', next: 8 },\n            { text: '\u4e0d\u78ba\u5b9a', next: 10 }\n          ]\n        },\n        {\n          id: 8,\n          text: 'TA\u5403\u904e\u4f60\u7684\u918b\uff1f',\n          options: [\n            { text: '\u5403\u904e', next: 9 },\n            { text: '\u6c92\u6709', next: 10 },\n            { text: '\u4e0d\u78ba\u5b9a', result: 'C' }\n          ]\n        },\n        {\n          id: 9,\n          text: 'TA\u5c0d\u65bc\u4f60\u4f86\u8aaa\u662f\u6709\u500b\u7279\u5225\u7684\u5b58\u5728\uff1f',\n          options: [\n            { text: '\u7279\u5225', result: 'D' },\n            { text: '\u4e0d\u7279\u5225', next: 10 },\n            { text: '\u4e0d\u78ba\u5b9a', result: 'A' }\n          ]\n        },\n        {\n          id: 10,\n          text: 'TA\u6709\u5f88\u591a\u7684\u8ffd\u6c42\u8005\uff1f',\n          options: [\n            { text: '\u662f', result: 'B' },\n            { text: '\u4e0d\u662f', result: 'D' },\n            { text: '\u4e0d\u77e5\u9053', result: 'C' }\n          ]\n        }\n      ];\n      \n      \/\/ \u7d50\u679c\u6578\u64da\n      this.results = {\n        A: {\n          percentage: 80,\n          title: '\u8f49\u6b63\u7387\u6975\u9ad8',\n          description: '\u5728\u76f8\u8655\u7684\u904e\u7a0b\u4e2d\uff0c\u4ed6\u7d66\u4e86\u4f60\u6700\u6df1\u7684\u4f9d\u8cf4\uff0c\u5c0d\u4f60\u6eab\u67d4\u5c0d\u5f85\uff0c\u5f9e\u521d\u6b21\u76f8\u898b\u5230\u4e92\u751f\u60c5\u610f\uff0c\u4ed6\u4e00\u76f4\u4ee5\u597d\u53cb\u7684\u8eab\u4efd\u5f85\u5728\u4f60\u7684\u8eab\u908a\uff0c\u53ef\u80fd\u4e5f\u4e00\u76f4\u7cfe\u7d50\u5728\u8a72\u4e0d\u8a72\u5411\u4f60\u8868\u767d\u7684\u554f\u984c\u4e0a\uff0c\u6216\u8a31\u4ed6\u4e5f\u5728\u7b49\u4f60\u5411\u81ea\u5df1\u8868\u660e\u5fc3\u610f\uff0c\u53ef\u80fd\u4ed6\u4e5f\u64d4\u5fc3\u8868\u767d\u5f8c\u6703\u88ab\u4f60\u62d2\u7d55\uff0c\u6240\u4ee5\u9072\u9072\u4e0d\u6562\u8ddf\u4f60\u8868\u660e\u5fc3\u610f\uff0c\u82e5\u662f\u4f60\u53ef\u4ee5\u4e3b\u52d5\u4e00\u9ede\uff0c\u4e0d\u6392\u9664\u4f60\u5011\u5f9e\u6b64\u6703\u5728\u4e00\u8d77\u3002',\n          advice: '\u611f\u60c5\u57fa\u790e\u7d2e\u5be6\uff0c\u6642\u6a5f\u5df2\u7d93\u6210\u719f\u3002\u5efa\u8b70\u4e3b\u52d5\u5275\u9020\u66f4\u591a\u7368\u8655\u6a5f\u6703\uff0c\u9069\u6642\u8868\u9054\u4f60\u7684\u611f\u53d7\u3002',\n          scores: { emotion: 85, interaction: 90, potential: 88, compatibility: 92 }\n        },\n        B: {\n          percentage: 60,\n          title: '\u8f49\u6b63\u7387\u826f\u597d',\n          description: '\u5c0d\u5f85\u611f\u60c5\uff0c\u5982\u679c\u8aaa\u4f60\u662f\u4e00\u500b\u8b39\u614e\u7684\u4eba\uff0c\u90a3\u9ebc\uff0c\u5c0d\u65b9\u4ea6\u662f\u5982\u6b64\uff0c\u6240\u4ee5\uff0c\u8655\u65bc\u53cb\u9054\u4ee5\u4e0a\uff0c\u6200\u4eba\u672a\u6eff\u72c0\u614b\u7684\u4f60\u5011\uff0c\u4e00\u76f4\u4ee5\u597d\u53cb\u7684\u8eab\u4efd\u5f85\u5728\u5c0d\u65b9\u7684\u8eab\u908a\uff0c\u8ab0\u90fd\u4e0d\u6562\u8f15\u6613\u8e0f\u51fa\u4e3b\u52d5\u7684\u90a3\u4e00\u6b65\u3002\u82e5\u662f\u4f60\u78ba\u5b9a\u5c0d\u65b9\u4e5f\u540c\u6a23\u559c\u6b61\u4f60\uff0c\u4f60\u4e0d\u59a8\u4e3b\u52d5\u4e00\u4e9b\uff0c\u7528\u6700\u6709\u6548\u7684\u65b9\u5f0f\u5c55\u958b\u8ffd\u6c42\u3002',\n          advice: '\u96d9\u65b9\u90fd\u5728\u89c0\u671b\uff0c\u9700\u8981\u6709\u4eba\u5148\u8e0f\u51fa\u7b2c\u4e00\u6b65\u3002\u53ef\u4ee5\u901a\u904e\u589e\u52a0\u80a2\u9ad4\u63a5\u89f8\u548c\u6df1\u5ea6\u4ea4\u6d41\u4f86\u8a66\u63a2\u3002',\n          scores: { emotion: 70, interaction: 75, potential: 65, compatibility: 80 }\n        },\n        C: {\n          percentage: 40,\n          title: '\u8f49\u6b63\u7387\u4e2d\u7b49',\n          description: '\u4f5c\u70ba\u670b\u53cb\uff0c\u5076\u723e\u4ed6\u53ef\u80fd\u5c0d\u4f60\u6703\u6709\u4e00\u4e9b\u8d85\u51fa\u670b\u53cb\u7684\u95dc\u5fc3\uff0c\u6240\u4ee5\uff0c\u4f60\u81ea\u7136\u800c\u7136\u5730\u628a\u4ed6\u5217\u5165\u4e86\u6200\u4eba\u7684\u53c3\u8003\u7bc4\u570d\uff0c\u4e0d\u904e\uff0c\u6bd4\u8d77\u548c\u4f60\u6210\u70ba\u6200\u4eba\uff0c\u4ed6\u53ef\u80fd\u66f4\u5e0c\u671b\u548c\u4f60\u4fdd\u6301\u597d\u53cb\u7684\u95dc\u4fc2\uff0c\u96d6\u7136\uff0c\u5076\u723e\u4ed6\u5011\u53ef\u80fd\u4e5f\u6703\u840c\u751f\u60f3\u8981\u548c\u4f60\u5728\u4e00\u8d77\u7684\u60f3\u6cd5\uff0c\u4e0d\u904e\uff0c\u90a3\u7a2e\u60f3\u6cd5\u5f80\u5f80\u53ea\u662f\u4e00\u9583\u800c\u904e\uff0c\u4e26\u4e0d\u6703\u4e00\u76f4\u88ab\u4ed6\u653e\u5728\u5fc3\u88e1\uff0c\u6240\u4ee5\uff0c\u4f60\u5011\u767c\u5c55\u6210\u70ba\u6200\u4eba\u7684\u53ef\u80fd\u6027\u4e26\u4e0d\u9ad8\u54e6\u3002',\n          advice: '\u76ee\u524d\u66f4\u9069\u5408\u7dad\u6301\u53cb\u8abc\u95dc\u4fc2\u3002\u82e5\u60f3\u767c\u5c55\uff0c\u9700\u8981\u66f4\u591a\u6642\u9593\u57f9\u990a\u611f\u60c5\u57fa\u790e\u3002',\n          scores: { emotion: 55, interaction: 60, potential: 45, compatibility: 50 }\n        },\n        D: {\n          percentage: 20,\n          title: '\u8f49\u6b63\u7387\u8f03\u4f4e',\n          description: '\u6bd4\u8d77\u6200\u4eba\uff0c\u4ed6\u53ef\u80fd\u66f4\u9069\u5408\u8ddf\u4f60\u505a\u670b\u53cb\uff0c\u4e5f\u8a31\uff0c\u4f60\u5011\u4e4b\u9593\u662f\u7121\u8a71\u4e0d\u8ac7\u7684\uff0c\u4e0d\u7ba1\u6709\u4ec0\u9ebc\u5fc3\u4e8b\uff0c\u4ed6\u90fd\u6703\u4e00\u4e00\u544a\u8a34\u4f60\uff0c\u5e73\u6642\u4e5f\u7e3d\u662f\u5f88\u7167\u9867\u4f60\uff0c\u9019\u8b93\u4f60\u5206\u4e0d\u6e05\u4f60\u5011\u4e4b\u9593\u5230\u5e95\u662f\u53cb\u60c5\u9084\u662f\u611b\u60c5\uff0c\u4e0d\u904e\uff0c\u4f60\u5343\u842c\u4e0d\u8981\u50bb\u50bb\u5730\u8a8d\u70ba\u4ed6\u628a\u4f60\u7576\u6210\u6200\u4eba\u770b\u5f85\uff0c\u6709\u4e00\u5929\u4f60\u5011\u6703\u6210\u70ba\u60c5\u4fb6\uff0c\u53ea\u80fd\u907a\u61be\u5730\u544a\u8a34\u4f60\uff0c\u90a3\u53ef\u80fd\u53ea\u662f\u4f60\u7684\u4e00\u5ec2\u60c5\u9858\u800c\u5df2\u3002',\n          advice: '\u73cd\u60dc\u73fe\u6709\u7684\u53cb\u8abc\uff0c\u9019\u4efd\u60c5\u8abc\u540c\u6a23\u73cd\u8cb4\u3002\u82e5\u57f7\u610f\u8ffd\u6c42\u53ef\u80fd\u6703\u5931\u53bb\u4e00\u500b\u597d\u670b\u53cb\u3002',\n          scores: { emotion: 40, interaction: 45, potential: 30, compatibility: 35 }\n        }\n      };\n      \n      this.init();\n    }\n    \n    init() {\n      \/\/ \u7d81\u5b9a\u4e8b\u4ef6\n      document.querySelector('[data-action=\"start-quiz\"]').addEventListener('click', () => this.startQuiz());\n      document.querySelector('[data-action=\"restart-quiz\"]').addEventListener('click', () => this.restartQuiz());\n      this.prevButton.addEventListener('click', () => this.previousQuestion());\n    }\n    \n    startQuiz() {\n      this.showSection('quiz');\n      this.currentQuestion = 1;\n      this.answers = {};\n      this.questionPath = [];\n      this.showQuestion(1);\n      this.scrollToTop();\n    }\n    \n    restartQuiz() {\n      \/\/ \u92b7\u6bc0\u5716\u8868\n      if (this.chartInstance) {\n        this.chartInstance.destroy();\n        this.chartInstance = null;\n      }\n      \/\/ \u91cd\u7f6e\u72c0\u614b\n      this.currentQuestion = 0;\n      this.answers = {};\n      this.questionPath = [];\n      \/\/ \u8fd4\u56de\u5f15\u5c0e\u9801\n      this.showSection('intro');\n      this.scrollToTop();\n    }\n    \n    showSection(section) {\n      this.introSection.style.display = 'none';\n      this.quizSection.style.display = 'none';\n      this.resultSection.style.display = 'none';\n      \n      switch(section) {\n        case 'intro':\n          this.introSection.style.display = 'block';\n          break;\n        case 'quiz':\n          this.quizSection.style.display = 'block';\n          break;\n        case 'result':\n          this.resultSection.style.display = 'block';\n          break;\n      }\n    }\n    \n    showQuestion(questionId) {\n      const question = this.questions.find(q => q.id === questionId);\n      if (!question) return;\n      \n      \/\/ \u66f4\u65b0\u9032\u5ea6\n      const progress = (this.questionPath.length + 1) * 10;\n      this.progressBar.style.width = `${progress}%`;\n      this.questionCounter.textContent = `\u554f\u984c ${this.questionPath.length + 1} \/ 10`;\n      \n      \/\/ \u986f\u793a\/\u96b1\u85cf\u4e0a\u4e00\u984c\u6309\u9215\n      this.prevButton.style.display = this.questionPath.length > 0 ? 'inline-block' : 'none';\n      \n      \/\/ \u6e32\u67d3\u984c\u76ee\n      this.quizContainer.innerHTML = `\n        <div class=\"mb-4\">\n          <h3 class=\"question-title\">${question.text}<\/h3>\n          <div class=\"options-container\">\n            ${question.options.map((option, index) => `\n              <div class=\"quiz-option-card\" data-option=\"${index}\">\n                <div class=\"quiz-option-indicator\"><\/div>\n                <span class=\"quiz-option-text\">${option.text}<\/span>\n              <\/div>\n            `).join('')}\n          <\/div>\n        <\/div>\n      `;\n      \n      \/\/ \u7d81\u5b9a\u9078\u9805\u9ede\u64ca\u4e8b\u4ef6\n      this.quizContainer.querySelectorAll('.quiz-option-card').forEach((card, index) => {\n        card.addEventListener('click', () => this.selectOption(questionId, index));\n      });\n    }\n    \n    selectOption(questionId, optionIndex) {\n      const question = this.questions.find(q => q.id === questionId);\n      const option = question.options[optionIndex];\n      \n      \/\/ \u8a18\u9304\u7b54\u6848\n      this.answers[questionId] = optionIndex;\n      this.questionPath.push(questionId);\n      \n      \/\/ \u986f\u793a\u9078\u4e2d\u6548\u679c\n      const cards = this.quizContainer.querySelectorAll('.quiz-option-card');\n      cards.forEach(card => card.classList.remove('selected'));\n      cards[optionIndex].classList.add('selected');\n      \n      \/\/ \u5ef6\u9072\u5f8c\u9032\u5165\u4e0b\u4e00\u984c\u6216\u986f\u793a\u7d50\u679c\n      setTimeout(() => {\n        if (option.next) {\n          this.currentQuestion = option.next;\n          this.showQuestion(option.next);\n        } else if (option.result) {\n          this.showResult(option.result);\n        }\n        this.scrollToTop();\n      }, 300);\n    }\n    \n    previousQuestion() {\n      if (this.questionPath.length > 0) {\n        this.questionPath.pop();\n        const prevQuestionId = this.questionPath.length > 0 ? \n          this.questionPath[this.questionPath.length - 1] : 1;\n        \n        \/\/ \u5982\u679c\u56de\u5230\u7b2c\u4e00\u984c\n        if (this.questionPath.length === 0) {\n          this.currentQuestion = 1;\n          this.showQuestion(1);\n        } else {\n          this.currentQuestion = prevQuestionId;\n          this.showQuestion(this.questions.find(q => q.id === prevQuestionId).options[this.answers[prevQuestionId]].next || prevQuestionId);\n        }\n        this.scrollToTop();\n      }\n    }\n    \n    showResult(resultType) {\n      const result = this.results[resultType];\n      \n      \/\/ \u66f4\u65b0\u7d50\u679c\u5167\u5bb9\n      document.querySelector('[data-result-percentage]').textContent = `${result.percentage}%`;\n      document.querySelector('[data-result-title]').textContent = result.title;\n      document.querySelector('[data-result-description]').textContent = result.description;\n      document.querySelector('[data-advice]').textContent = result.advice;\n      \n      \/\/ \u66f4\u65b0\u5206\u6578\n      document.querySelector('[data-emotion-score]').textContent = `${result.scores.emotion}\u5206`;\n      document.querySelector('[data-interaction-score]').textContent = `${result.scores.interaction}\u5206`;\n      document.querySelector('[data-potential-score]').textContent = `${result.scores.potential}\u5206`;\n      document.querySelector('[data-compatibility-score]').textContent = `${result.scores.compatibility}\u5206`;\n      \n      \/\/ \u986f\u793a\u7d50\u679c\u9801\n      this.showSection('result');\n      \n      \/\/ \u7e6a\u88fd\u5716\u8868\n      this.drawChart(result);\n      \n      this.scrollToTop();\n    }\n    \n    drawChart(result) {\n      \/\/ \u92b7\u6bc0\u820a\u5716\u8868\n      if (this.chartInstance) {\n        this.chartInstance.destroy();\n      }\n      \n      const ctx = document.getElementById('resultChart').getContext('2d');\n      \n      this.chartInstance = new Chart(ctx, {\n        type: 'radar',\n        data: {\n          labels: ['\u611f\u60c5\u57fa\u790e', '\u4e92\u52d5\u54c1\u8cea', '\u767c\u5c55\u6f5b\u529b', '\u5951\u5408\u5ea6'],\n          datasets: [{\n            label: '\u5404\u9805\u6307\u6a19',\n            data: [\n              result.scores.emotion,\n              result.scores.interaction,\n              result.scores.potential,\n              result.scores.compatibility\n            ],\n            backgroundColor: 'rgba(139, 157, 195, 0.2)',\n            borderColor: '#8b9dc3',\n            borderWidth: 2,\n            pointBackgroundColor: '#8b9dc3',\n            pointBorderColor: '#fff',\n            pointHoverBackgroundColor: '#fff',\n            pointHoverBorderColor: '#8b9dc3',\n            pointRadius: 5,\n            pointHoverRadius: 7\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: {\n                  size: 14\n                }\n              },\n              pointLabels: {\n                font: {\n                  size: 18,\n                  weight: '600'\n                },\n                color: '#5a7c65'\n              },\n              grid: {\n                color: 'rgba(0, 0, 0, 0.05)'\n              }\n            }\n          },\n          plugins: {\n            legend: {\n              display: false\n            },\n            tooltip: {\n              callbacks: {\n                label: function(context) {\n                  return context.dataset.label + ': ' + context.parsed.r + '\u5206';\n                }\n              },\n              backgroundColor: 'rgba(0, 0, 0, 0.8)',\n              titleFont: {\n                size: 16\n              },\n              bodyFont: {\n                size: 14\n              },\n              padding: 12\n            }\n          }\n        }\n      });\n    }\n    \n    scrollToTop() {\n      const header = this.quizSection.querySelector('h2') || \n                    this.resultSection.querySelector('h2') || \n                    this.introSection.querySelector('h2');\n      if (header) {\n        header.scrollIntoView({ behavior: 'smooth', block: 'start' });\n      }\n    }\n  }\n  \n  \/\/ \u521d\u59cb\u5316\u6e2c\u9a57\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', () => new LoveQuiz());\n  } else {\n    new LoveQuiz();\n  }\n})();\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u4eba\u4ee5\u670b\u53cb\u7684\u8eab\u4efd\u5f85\u5728\u4f60\u8eab\u8fb9\uff0c\u8ba9\u4f60\u611f\u89c9\u90a3\u662f\u4e00\u4e2a\u65e0\u6bd4\u6e29\u6696\u7684\u5b58\u5728\uff0c\u4f60\u4f1a\u4e0d\u4f1a\u4e0d\u77e5\u9053\u81ea\u5df1\u8be5\u548c\u5bf9\u65b9\u505a\u670b\u53cb\uff0c\u4ea6\u6216\u662f\u6210\u4e3a\u604b\u4eba\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":[178],"tags":[],"class_list":["post-2573","post","type-post","status-publish","format-standard","hentry","category-love"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2573","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=2573"}],"version-history":[{"count":1,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"predecessor-version":[{"id":10637,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2573\/revisions\/10637"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}