{"id":2792,"date":"2023-10-19T11:19:19","date_gmt":"2023-10-19T03:19:19","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2792"},"modified":"2025-05-11T00:51:04","modified_gmt":"2025-05-10T16:51:04","slug":"savings-behavior","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/savings-behavior","title":{"rendered":"\u89e3\u5bc6\u4f60\u7684\u50a8\u84c4\u4e60\u60ef\u7ebf\u4e0a\u514d\u8d39\u5c0f\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u6e2c\u9a57\u5bb9\u5668 -->\n<div id=\"savings-quiz-container\" class=\"quiz-container\">\n  <!-- \u5f15\u5c0e\u9801 -->\n  <section id=\"quiz-intro\" class=\"quiz-page active\" data-page=\"intro\">\n    <header class=\"quiz-header\">\n      <h2 class=\"quiz-title\">\u89e3\u5bc6\u4f60\u7684\u50a8\u84c4\u4e60\u60ef<\/h2>\n      <p class=\"quiz-subtitle\">\u53d1\u73b0\u4f60\u7684\u91d1\u94b1\u7ba1\u7406\u98ce\u683c<\/p>\n    <\/header>\n    \n    <div class=\"intro-content\">\n      <div class=\"intro-text\">\n        <p>\u5982\u679c\u4f60\u6ca1\u6709\u94b1\uff0c\u800c\u4e14\u4e5f\u6ca1\u6709\u517b\u6210\u50a8\u84c4\u7684\u4e60\u60ef\uff0c\u90a3\u4e48\uff0c\u4f60\u6c38\u8fdc\u65e0\u6cd5\u4f7f\u81ea\u5df1\u83b7\u5f97\u4efb\u4f55\u8d5a\u94b1\u7684\u673a\u4f1a\u3002\u8fd9\u771f\u662f\u4e00\u4e2a\u4e0d\u6298\u4e0d\u6263\u7684\u4e8b\u5b9e\u3002<\/p>\n        <p>\u517b\u6210\u50a8\u84c4\u7684\u4e60\u60ef\uff0c\u5e76\u4e0d\u8868\u793a\u5c06\u4f1a\u9650\u5236\u4f60\u7684\u8d5a\u94b1\u80fd\u529b\u3002\u6b63\u597d\u76f8\u53cd\u2014\u4f60\u5728\u5e94\u7528\u8fd9\u9879\u6cd5\u5219\u540e\uff0c\u4e0d\u4ec5\u5c06\u628a\u4f60\u6240\u8d5a\u7684\u94b1\u6709\u7cfb\u7edf\u5730\u4fdd\u5b58\u4e0b\u6765\uff0c\u4e5f\u4f7f\u4f60\u6b65\u5165\u66f4\u5927\u673a\u4f1a\u4e4b\u9014\u3002<\/p>\n      <\/div>\n      \n      <div class=\"features\">\n        <div class=\"feature-item\">\n          <div class=\"feature-icon\">\n            <span>\ud83d\udca1<\/span>\n          <\/div>\n          <h3>\u6df1\u5165\u6d1e\u5bdf<\/h3>\n          <p>\u4e86\u89e3\u4f60\u7684\u7406\u8d22\u4e2a\u6027<\/p>\n        <\/div>\n        <div class=\"feature-item\">\n          <div class=\"feature-icon\">\n            <span>\ud83d\udcca<\/span>\n          <\/div>\n          <h3>\u72ec\u7279\u89c1\u89e3<\/h3>\n          <p>\u83b7\u5f97\u4e2a\u4eba\u5316\u5efa\u8bae<\/p>\n        <\/div>\n        <div class=\"feature-item\">\n          <div class=\"feature-icon\">\n            <span>\ud83c\udfaf<\/span>\n          <\/div>\n          <h3>\u7cbe\u51c6\u7ed3\u679c<\/h3>\n          <p>\u53d1\u73b0\u6539\u5584\u65b9\u5411<\/p>\n        <\/div>\n      <\/div>\n      \n      <button id=\"start-quiz\" class=\"cta-button\" data-action=\"start\">\n        \u5f00\u59cb\u6d4b\u9a8c\n      <\/button>\n    <\/div>\n  <\/section>\n  \n  <!-- \u6e2c\u9a57\u9801 -->\n  <section id=\"quiz-content\" class=\"quiz-page\" data-page=\"quiz\">\n    <header class=\"quiz-header\">\n      <h2>\u50a8\u84c4\u4e60\u60ef\u6d4b\u9a8c<\/h2>\n    <\/header>\n    \n    <div class=\"question-container\">\n      <h3 class=\"question-text\">\u8fd9\u91cc\u6709\u4e00\u4e2a\u4e0a\u4e86\u9501\u7684\u5b9d\u85cf\u7bb1\u3002\u56db\u628a\u94a5\u5319\u4e2d\uff0c\u53ea\u6709\u4e00\u628a\u53ef\u4ee5\u5f00\u542f\u8fd9\u4e2a\u5b9d\u85cf\u7bb1\uff0c\u4f60\u8ba4\u4e3a\u662f\u54ea\u4e00\u628a\uff1f<\/h3>\n      \n      <div class=\"options-grid\" data-question=\"1\">\n        <label class=\"option-label\" data-value=\"A\">\n          <input type=\"radio\" name=\"q1\" value=\"A\" class=\"option-radio\">\n          <span class=\"option-box\">\u9009A<\/span>\n        <\/label>\n        <label class=\"option-label\" data-value=\"B\">\n          <input type=\"radio\" name=\"q1\" value=\"B\" class=\"option-radio\">\n          <span class=\"option-box\">\u9009B<\/span>\n        <\/label>\n        <label class=\"option-label\" data-value=\"C\">\n          <input type=\"radio\" name=\"q1\" value=\"C\" class=\"option-radio\">\n          <span class=\"option-box\">\u9009C<\/span>\n        <\/label>\n        <label class=\"option-label\" data-value=\"D\">\n          <input type=\"radio\" name=\"q1\" value=\"D\" class=\"option-radio\">\n          <span class=\"option-box\">\u9009D<\/span>\n        <\/label>\n      <\/div>\n      \n      <div class=\"image-container\">\n        <img decoding=\"async\" src=\"https:\/\/xinliceyan.org\/wp-content\/uploads\/2023\/10\/4bayaoshi.png\" alt=\"\u56db\u628a\u94a5\u5319\" class=\"question-image\">\n      <\/div>\n    <\/div>\n  <\/section>\n  \n  <!-- \u7d50\u679c\u9801 -->\n  <section id=\"quiz-result\" class=\"quiz-page\" data-page=\"result\">\n    <header class=\"quiz-header\">\n      <h2>\u4f60\u7684\u50a8\u84c4\u4e60\u60ef\u5206\u6790<\/h2>\n    <\/header>\n    \n    <div class=\"result-content\">\n      <div class=\"result-chart\">\n        <canvas id=\"result-visualization\"><\/canvas>\n      <\/div>\n      \n      <div id=\"result-analysis\" class=\"result-analysis\">\n        <!-- \u7d50\u679c\u5206\u6790\u5c07\u52d5\u614b\u63d2\u5165\u9019\u88e1 -->\n      <\/div>\n      \n      <button id=\"restart-quiz\" class=\"cta-button\" data-action=\"restart\">\n        \u91cd\u65b0\u6d4b\u8bd5\n      <\/button>\n    <\/div>\n  <\/section>\n<\/div>\n\n<!-- \u6a23\u5f0f -->\n<style>\n  \/* CSS \u8b8a\u6578\u5b9a\u7fa9 *\/\n  :root {\n    --primary-color: #2563eb;\n    --secondary-color: #3b82f6;\n    --accent-color: #60a5fa;\n    --text-color: #1f2937;\n    --text-light: #6b7280;\n    --bg-color: #ffffff;\n    --bg-light: #f9fafb;\n    --border-color: #e5e7eb;\n    --success-color: #10b981;\n    --error-color: #ef4444;\n    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n    --border-radius: 12px;\n    --spacing-unit: 8px;\n  }\n  \n  \/* \u57fa\u790e\u6a23\u5f0f *\/\n  .quiz-container {\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n    line-height: 1.6;\n    color: var(--text-color);\n    max-width: 800px;\n    margin: 0 auto;\n    padding: calc(var(--spacing-unit) * 2);\n  }\n  \n  .quiz-page {\n    display: none;\n    animation: fadeIn 0.3s ease-in-out;\n  }\n  \n  .quiz-page.active {\n    display: block;\n  }\n  \n  @keyframes fadeIn {\n    from { opacity: 0; transform: translateY(10px); }\n    to { opacity: 1; transform: translateY(0); }\n  }\n  \n  \/* \u9801\u9762\u6a19\u984c *\/\n  .quiz-header {\n    text-align: center;\n    margin-bottom: calc(var(--spacing-unit) * 4);\n  }\n  \n  .quiz-title {\n    font-size: 40px;\n    font-weight: 700;\n    color: var(--primary-color);\n    margin-bottom: calc(var(--spacing-unit) * 2);\n  }\n  \n  .quiz-subtitle {\n    font-size: 20px;\n    color: var(--text-light);\n    margin-bottom: calc(var(--spacing-unit) * 3);\n  }\n  \n  \/* \u5f15\u5c0e\u9801\u6a23\u5f0f *\/\n  .intro-content {\n    text-align: center;\n  }\n  \n  .intro-text {\n    max-width: 600px;\n    margin: 0 auto calc(var(--spacing-unit) * 4);\n    font-size: 18px;\n    text-align: left;\n  }\n  \n  .features {\n    display: flex;\n    flex-wrap: wrap;\n    gap: calc(var(--spacing-unit) * 3);\n    justify-content: center;\n    margin-bottom: calc(var(--spacing-unit) * 5);\n  }\n  \n  .feature-item {\n    flex: 1;\n    min-width: 200px;\n    max-width: 250px;\n    text-align: center;\n  }\n  \n  .feature-icon {\n    width: 80px;\n    height: 80px;\n    margin: 0 auto calc(var(--spacing-unit) * 2);\n    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n    border-radius: 50%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    box-shadow: var(--shadow-md);\n    transform: translateY(0);\n    transition: transform 0.3s ease;\n  }\n  \n  .feature-icon:hover {\n    transform: translateY(-5px);\n  }\n  \n  .feature-icon span {\n    font-size: 36px;\n  }\n  \n  .feature-item h3 {\n    font-size: 20px;\n    margin-bottom: calc(var(--spacing-unit) * 1);\n    color: var(--text-color);\n  }\n  \n  .feature-item p {\n    color: var(--text-light);\n    font-size: 16px;\n  }\n  \n  \/* \u6309\u9215\u6a23\u5f0f *\/\n  .cta-button {\n    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n    color: white;\n    border: none;\n    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);\n    font-size: 20px;\n    font-weight: 600;\n    border-radius: var(--border-radius);\n    cursor: pointer;\n    box-shadow: var(--shadow-md);\n    transition: all 0.3s ease;\n    min-width: 200px;\n    min-height: 44px;\n  }\n  \n  .cta-button:hover {\n    transform: translateY(-2px);\n    box-shadow: var(--shadow-lg);\n  }\n  \n  .cta-button:active {\n    transform: translateY(0);\n  }\n  \n  \/* \u6e2c\u9a57\u9801\u6a23\u5f0f *\/\n  .question-container {\n    max-width: 600px;\n    margin: 0 auto;\n  }\n  \n  .question-text {\n    font-size: 22px;\n    font-weight: 700;\n    margin-bottom: calc(var(--spacing-unit) * 3);\n    color: var(--text-color);\n  }\n  \n  .image-container {\n    text-align: center;\n    margin-bottom: calc(var(--spacing-unit) * 3);\n  }\n  \n  .question-image {\n    max-width: 100%;\n    height: auto;\n    border-radius: var(--border-radius);\n  }\n  \n  .options-grid {\n    display: flex;\n    justify-content: center;\n    gap: calc(var(--spacing-unit) * 2);\n    margin-bottom: calc(var(--spacing-unit) * 3);\n    flex-wrap: wrap;\n  }\n  \n  .option-label {\n    position: relative;\n    cursor: pointer;\n  }\n  \n  .option-radio {\n    position: absolute;\n    opacity: 0;\n  }\n  \n  .option-box {\n    display: block;\n    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);\n    border: 2px solid var(--border-color);\n    border-radius: var(--border-radius);\n    font-size: 18px;\n    font-weight: 600;\n    text-align: center;\n    color: var(--text-color);\n    background: var(--bg-color);\n    transition: all 0.3s ease;\n    min-height: 60px;\n    min-width: 120px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n  }\n  \n  .option-label:hover .option-box {\n    border-color: var(--primary-color);\n    background: var(--bg-light);\n    transform: translateY(-2px);\n    box-shadow: var(--shadow-md);\n  }\n  \n  .option-radio:checked + .option-box {\n    border-color: var(--primary-color);\n    background: var(--primary-color);\n    color: white;\n    transform: scale(1.05);\n  }\n  \n  \/* \u7d50\u679c\u9801\u6a23\u5f0f *\/\n  .result-content {\n    max-width: 600px;\n    margin: 0 auto;\n  }\n  \n  .result-chart {\n    margin-bottom: calc(var(--spacing-unit) * 4);\n    padding: calc(var(--spacing-unit) * 2);\n    background: var(--bg-light);\n    border-radius: var(--border-radius);\n  }\n  \n  #result-visualization {\n    max-width: 100%;\n    height: 300px;\n  }\n  \n  .result-analysis {\n    background: white;\n    padding: calc(var(--spacing-unit) * 3);\n    border-radius: var(--border-radius);\n    box-shadow: var(--shadow-md);\n    margin-bottom: calc(var(--spacing-unit) * 4);\n  }\n  \n  .result-title {\n    font-size: 24px;\n    font-weight: 700;\n    color: var(--primary-color);\n    margin-bottom: calc(var(--spacing-unit) * 2);\n    text-align: center;\n  }\n  \n  .result-description {\n    font-size: 18px;\n    line-height: 1.8;\n    color: var(--text-color);\n  }\n  \n  \/* \u97ff\u61c9\u5f0f\u8a2d\u8a08 *\/\n  @media (max-width: 768px) {\n    .quiz-title {\n      font-size: 32px;\n    }\n    \n    .quiz-subtitle {\n      font-size: 18px;\n    }\n    \n    .features {\n      flex-direction: column;\n      align-items: center;\n    }\n    \n    .options-grid {\n      grid-template-columns: 1fr;\n    }\n    \n    .feature-item {\n      max-width: 100%;\n    }\n  }\n<\/style>\n\n<!-- JavaScript -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/4.4.1\/chart.umd.min.js\"><\/script>\n<script>\n(function() {\n  'use strict';\n  \n  \/\/ \u6e2c\u9a57\u7d50\u679c\u8cc7\u6599\n  const quizResults = {\n    A: {\n      title: '\u5132\u84c4\u65b0\u624b\u578b',\n      description: '\u9078\u64c7\u5f62\u72c0\u6700\u7c21\u55ae\u7684\u9470\u5319\u7684\u4f60\u5f88\u4e0d\u64c5\u9577\u5132\u84c4\u3002\u7d93\u5e38\u6709\u591a\u5c11\uff0c\u82b1\u591a\u5c11\uff0c\u751a\u81f3\u9023\u9322\u90fd\u61f6\u5f97\u653e\u9032\u9280\u884c\uff0c\u7576\u7136\uff0c\u5132\u84c4\u7684\u91d1\u984d\u4e5f\u5c11\u5f97\u53ef\u6190\u3002\u5982\u679c\u60f3\u6191\u4f60\u81ea\u5df1\u7684\u610f\u5fd7\u5b58\u9322\uff0c\u4e00\u5b9a\u6709\u5f88\u5927\u7684\u56f0\u96e3\u3002\u9664\u4e86\u4f7f\u7528\u5f37\u5236\u6027\u7684\u65b9\u6cd5\u5916\u5225\u7121\u4ed6\u6cd5\uff0c\u4e0d\u59a8\u53c3\u52a0\u5b9a\u671f\u5132\u84c4\u6216\u6642\u4e0b\u6d41\u884c\u7684\u5b9a\u6642\u5b9a\u984d\u57fa\u91d1\u5132\u84c4\u3002\u5982\u679c\u4e0d\u6e96\u5099\u4e00\u7b46\u8cc7\u91d1\uff0c\u5728\u9762\u81e8\u7d50\u5a5a\u548c\u8f49\u8077\u4e4b\u985e\u7684\u554f\u984c\u6642\uff0c\u5c31\u7121\u6cd5\u4e0b\u6c7a\u5fc3\u3002',\n      scores: { planning: 30, discipline: 25, awareness: 40, potential: 85 }\n    },\n    B: {\n      title: '\u5132\u84c4\u9054\u4eba\u578b',\n      description: '\u4f60\u9078\u64c7\u4e86\u5f62\u72c0\u6700\u8907\u96dc\u7684\u9470\u5319\uff0c\u53ef\u898b\u4f60\u662f\u4e00\u500b\u5f88\u559c\u6b61\u5b58\u9322\u7684\u4eba\uff0c\u76f8\u4fe1\u4f60\u5b58\u7684\u9322\u5df2\u7d93\u6709\u76f8\u7576\u7684\u91d1\u984d\u3002\u5c0d\u4f60\u4f86\u8aaa\uff0c\u4e0d\u5fc5\u518d\u7814\u7a76\u5132\u84c4\u7684\u65b9\u6cd5\u4e86\uff0c\u61c9\u8a72\u5b78\u4e00\u4e0b\u5982\u4f55\u82b1\u9322\u3002\u5982\u679c\u70ba\u4e86\u5b58\u9322\uff0c\u9023\u61c9\u8a72\u7528\u7684\u9322\u4e5f\u7701\u7684\u8a71\uff0c\u5c31\u6703\u55aa\u5931\u81ea\u6211\u6210\u9577\u7684\u6a5f\u6703\u3002\u4e00\u65e6\u767c\u73fe\u81ea\u5df1\u60f3\u505a\u7684\u4e8b\u6642\uff0c\u82b1\u4e00\u4e9b\u9322\u8a66\u8a66\u4e5f\u7121\u59a8\u3002',\n      scores: { planning: 90, discipline: 95, awareness: 85, potential: 60 }\n    },\n    C: {\n      title: '\u76ee\u6a19\u5c0e\u5411\u578b',\n      description: '\u4f60\u5c0d\u91d1\u9322\u4e0d\u6703\u5f88\u57f7\u8457\uff0c\u8981\u6c42\u4f60\u6beb\u7121\u76ee\u7684\u5730\u5b58\u9322\u53ef\u80fd\u6709\u5f88\u5927\u7684\u56f0\u96e3\uff0c\u7576\u7136\uff0c\u6700\u597d\u7684\u89e3\u6c7a\u65b9\u6cd5\u5c31\u662f\u8a2d\u5b9a\u67d0\u500b\u76ee\u6a19\u5b58\u9322\u3002\u8cb7\u8eca\u3001\u8cb7\u623f\u5b50\u3001\u8cb7\u540d\u724c\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u4efb\u4f55\u76ee\u6a19\u90fd\u7121\u59a8\u3002\u4f46\u662f\uff0c\u5c0d\u500b\u6027\u8e0f\u5be6\u7684\u4f60\u4f86\u8aaa\uff0c\u7d50\u5a5a\u57fa\u91d1\u6216\u7c4c\u63aa\u8cc7\u683c\u9451\u5b9a\u7684\u8cc7\u91d1\u7b49\u76ee\u6a19\u6703\u6bd4\u8f03\u5408\u9069\uff0c\u800c\u4e14\uff0c\u4e5f\u6703\u4f7f\u5b58\u6b3e\u76f4\u7dda\u589e\u52a0\u3002\u53ea\u8981\u78ba\u5b9a\u76ee\u6a19\uff0c\u4efb\u4f55\u5132\u84c4\u65b9\u6cd5\u90fd\u7121\u59a8\u3002\u4e5f\u4e0d\u81f3\u65bc\u6703\u611f\u53d7\u5230\u300c\u975e\u5b58\u9322\u4e0d\u53ef\u300d\u7684\u58d3\u529b\uff0c\u4f60\u53ef\u80fd\u6bd4\u9810\u8a08\u7684\u6642\u9593\u66f4\u5feb\u9054\u5230\u76ee\u6a19\u3002\u4f60\u53ea\u8981\u8a2d\u5b9a\u65b0\u7684\u76ee\u6a19\uff0c\u5de5\u4f5c\u6642\u4e5f\u6703\u66f4\u52a0\u7cbe\u795e\u767e\u500d\u3002',\n      scores: { planning: 70, discipline: 65, awareness: 80, potential: 75 }\n    },\n    D: {\n      title: '\u7c21\u7d04\u5be6\u7528\u578b',\n      description: '\u4f60\u5c0d\u5728\u9280\u884c\u958b\u8cec\u6236\u3001\u8a08\u7b97\u5229\u606f\u4e4b\u985e\u7684\u4e8b\u6703\u611f\u5230\u5f88\u982d\u75db\u3002\u6240\u4ee5\uff0c\u628a\u9322\u653e\u9032\u5132\u84c4\u7f50\u662f\u5c0d\u4f60\u6700\u6709\u6548\u7684\u5b58\u9322\u6cd5\uff0c\u5373\u4f7f\u662f\u6015\u9ebb\u7169\u7684\u4f60\uff0c\u5c0d\u65bc\u9019\u7a2e\u7c21\u55ae\u7684\u65b9\u6cd5\u4e5f\u4e0d\u6703\u6392\u65a5\uff0c\u81ea\u7136\u4e5f\u5c31\u80fd\u5920\u6301\u7e8c\u4e0b\u53bb\u3002\u4f60\u5f88\u5c11\u6703\u5728\u4e2d\u9014\u6253\u7834\u7f50\u5b50\u628a\u9322\u82b1\u6389\uff0c\u6240\u4ee5\uff0c\u5982\u679c\u80fd\u5920\u6709\u8a08\u756b\u5730\u5b58\u9322\uff0c\u5c31\u6703\u300c\u5982\u864e\u6dfb\u7ffc\u300d\u4e86\u3002\u96d6\u7136\u9019\u7a2e\u65b9\u6cd5\u6c92\u6709\u5229\u606f\uff0c\u4f46\u5c0d\u4f60\u4f86\u8aaa\uff0c\u8d8a\u7c21\u55ae\u7684\u65b9\u6cd5\u8d8a\u6709\u6548\u3002\u5426\u5247\uff0c\u5373\u4f7f\u8208\u81f4\u52c3\u52c3\u5730\u958b\u59cb\u5b58\u5b9a\u671f\uff0c\u4e5f\u53ef\u80fd\u4e2d\u9014\u89e3\u7d04\uff0c\u53cd\u800c\u640d\u5931\u6158\u91cd\u3002',\n      scores: { planning: 50, discipline: 60, awareness: 55, potential: 80 }\n    }\n  };\n  \n  \/\/ DOM \u5143\u7d20\n  const container = document.getElementById('savings-quiz-container');\n  const introPage = document.getElementById('quiz-intro');\n  const quizPage = document.getElementById('quiz-content');\n  const resultPage = document.getElementById('quiz-result');\n  const startButton = document.getElementById('start-quiz');\n  const restartButton = document.getElementById('restart-quiz');\n  const optionsGrid = document.querySelector('.options-grid');\n  const resultAnalysis = document.getElementById('result-analysis');\n  \n  let userAnswer = null;\n  let chart = null;\n  \n  \/\/ \u9801\u9762\u5207\u63db\n  function showPage(pageId) {\n    document.querySelectorAll('.quiz-page').forEach(page => {\n      page.classList.remove('active');\n    });\n    document.getElementById(pageId).classList.add('active');\n    \n    \/\/ \u6efe\u52d5\u5230\u9801\u9762\u9802\u90e8\n    window.scrollTo({ top: 0, behavior: 'smooth' });\n  }\n  \n  \/\/ \u958b\u59cb\u6e2c\u9a57\n  function startQuiz() {\n    showPage('quiz-content');\n  }\n  \n  \/\/ \u63d0\u4ea4\u7b54\u6848\n  function submitAnswer(answer) {\n    userAnswer = answer;\n    showResult();\n  }\n  \n  \/\/ \u986f\u793a\u7d50\u679c\n  function showResult() {\n    showPage('quiz-result');\n    \n    const result = quizResults[userAnswer];\n    \n    \/\/ \u6e32\u67d3\u7d50\u679c\u5206\u6790\n    resultAnalysis.innerHTML = `\n      <h3 class=\"result-title\">${result.title}<\/h3>\n      <p class=\"result-description\">${result.description}<\/p>\n    `;\n    \n    \/\/ \u6e32\u67d3\u5716\u8868\n    renderChart(result.scores);\n  }\n  \n  \/\/ \u6e32\u67d3\u5716\u8868\n  function renderChart(scores) {\n    const ctx = document.getElementById('result-visualization').getContext('2d');\n    \n    if (chart) {\n      chart.destroy();\n    }\n    \n    const data = {\n      labels: ['\u898f\u5283\u80fd\u529b', '\u57f7\u884c\u7d00\u5f8b', '\u7406\u8ca1\u610f\u8b58', '\u6210\u9577\u6f5b\u529b'],\n      datasets: [{\n        label: '\u80fd\u529b\u8a55\u5206',\n        data: [scores.planning, scores.discipline, scores.awareness, scores.potential],\n        backgroundColor: 'rgba(37, 99, 235, 0.2)',\n        borderColor: 'rgba(37, 99, 235, 1)',\n        borderWidth: 2,\n        pointBackgroundColor: 'rgba(37, 99, 235, 1)',\n        pointBorderColor: '#fff',\n        pointHoverBackgroundColor: '#fff',\n        pointHoverBorderColor: 'rgba(37, 99, 235, 1)'\n      }]\n    };\n    \n    const options = {\n      responsive: true,\n      maintainAspectRatio: false,\n      scales: {\n        r: {\n          angleLines: {\n            display: true\n          },\n          suggestedMin: 0,\n          suggestedMax: 100,\n          ticks: {\n            stepSize: 20,\n            font: {\n              size: 14\n            }\n          },\n          pointLabels: {\n            font: {\n              size: 18\n            }\n          }\n        }\n      },\n      plugins: {\n        legend: {\n          display: false\n        },\n        tooltip: {\n          callbacks: {\n            label: function(context) {\n              return `${context.label}: ${context.raw}%`;\n            }\n          }\n        }\n      }\n    };\n    \n    chart = new Chart(ctx, {\n      type: 'radar',\n      data: data,\n      options: options\n    });\n  }\n  \n  \/\/ \u91cd\u65b0\u958b\u59cb\n  function restartQuiz() {\n    userAnswer = null;\n    document.querySelectorAll('.option-radio').forEach(radio => {\n      radio.checked = false;\n    });\n    showPage('quiz-intro');\n  }\n  \n  \/\/ \u4e8b\u4ef6\u76e3\u807d\n  startButton.addEventListener('click', startQuiz);\n  restartButton.addEventListener('click', restartQuiz);\n  \n  \/\/ \u9078\u9805\u9ede\u64ca\u4e8b\u4ef6\u59d4\u8a17\n  optionsGrid.addEventListener('change', (e) => {\n    if (e.target.classList.contains('option-radio')) {\n      const answer = e.target.value;\n      setTimeout(() => {\n        submitAnswer(answer);\n      }, 300);\n    }\n  });\n  \n  \/\/ \u9632\u6b62\u8868\u55ae\u63d0\u4ea4\n  container.addEventListener('submit', (e) => {\n    e.preventDefault();\n  });\n  \n})();\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u6b63\u597d\u76f8\u53cd\u2014\u4f60\u5728\u5e94\u7528\u8fd9\u9879\u6cd5\u5219\u540e\uff0c\u4e0d\u4ec5\u5c06\u628a\u4f60\u6240\u8d5a\u7684\u94b1\u6709\u7cfb\u7edf\u5730\u4fdd\u5b58\u4e0b\u6765\uff0c\u4e5f\u4f7f\u4f60\u6b65\u5165\u66f4\u5927\u673a\u4f1a\u4e4b\u9014\uff0c\u5e76\u5c06\u589e\u5f3a\u4f60\u7684\u89c2\u5bdf\u529b\u3001\u81ea\u4fe1\u5fc3\u3001\u60f3\u8c61\u529b\u3001\u8fdb\u53d6\u5fc3\u53ca\u9886\u5bfc\u624d\u80fd\uff0c\u771f\u6b63\u589e\u52a0\u4f60\u7684\u8d5a\u94b1\u80fd\u529b\u3002<\/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":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[167],"tags":[],"class_list":["post-2792","post","type-post","status-publish","format-standard","hentry","category-personality"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2792","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=2792"}],"version-history":[{"count":4,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2792\/revisions"}],"predecessor-version":[{"id":10622,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2792\/revisions\/10622"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}