{"id":3175,"date":"2023-10-16T09:01:00","date_gmt":"2023-10-16T01:01:00","guid":{"rendered":"https:\/\/bookmark.tw\/?p=3175"},"modified":"2025-05-11T19:52:03","modified_gmt":"2025-05-11T11:52:03","slug":"psychological-weaknesses","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/psychological-weaknesses","title":{"rendered":"\u4f60\u7684\u5fc3\u7406\u5f31\u70b9\u5728\u54ea\u91cc\uff1f\u7ebf\u4e0a\u514d\u8d39\u5c0f\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u5f15\u5165 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\u5bb9\u5668 -->\n<div id=\"psych-quiz-container\" class=\"psych-quiz-container\">\n  <!-- \u5f15\u5c0e\u9801 -->\n  <div id=\"psych-quiz-intro\" class=\"psych-quiz-page active\" role=\"main\">\n    <header class=\"psych-quiz-header\">\n      <h2 class=\"psych-quiz-title\">\u4f60\u7684\u5fc3\u7406\u5f31\u70b9\u5728\u54ea\u91cc\uff1f<\/h2>\n      <p class=\"psych-quiz-subtitle\">\u53d1\u73b0\u5185\u5fc3\u6700\u8584\u5f31\u7684\u73af\u8282<\/p>\n    <\/header>\n    \n    <main class=\"psych-quiz-intro-content\">\n      <section class=\"psych-quiz-intro-section\">\n        <div class=\"psych-quiz-feature-grid\">\n          <div class=\"psych-quiz-feature\">\n            <div class=\"psych-quiz-feature-icon\">\ud83e\udde0<\/div>\n            <h3>\u5fc3\u7406\u6d1e\u5bdf<\/h3>\n            <p>\u6df1\u5165\u63a2\u7d22\u5185\u5fc3\u4e16\u754c<\/p>\n          <\/div>\n          <div class=\"psych-quiz-feature\">\n            <div class=\"psych-quiz-feature-icon\">\ud83d\udca1<\/div>\n            <h3>\u81ea\u6211\u8ba4\u8bc6<\/h3>\n            <p>\u4e86\u89e3\u771f\u5b9e\u7684\u81ea\u5df1<\/p>\n          <\/div>\n          <div class=\"psych-quiz-feature\">\n            <div class=\"psych-quiz-feature-icon\">\ud83c\udfaf<\/div>\n            <h3>\u7cbe\u51c6\u5206\u6790<\/h3>\n            <p>\u4e13\u4e1a\u6d4b\u8bc4\u7cfb\u7edf<\/p>\n          <\/div>\n        <\/div>\n        \n        <p class=\"psych-quiz-guide-text\">\n          \u6bcf\u4e2a\u4eba\u7684\u5185\u5fc3\u4e16\u754c\u91cc\uff0c\u90fd\u6709\u81ea\u5df1\u6700\u8584\u5f31\u7684\u73af\u8282\uff0c\u4e5f\u8bb8\u8fd9\u4e2a\u73af\u8282\u4e0d\u582a\u4e00\u51fb\uff0c\u6210\u4e3a\u4f60\u6094\u6068\u7ec8\u751f\u7684\u9057\u61be\u3002\u90a3\u4e48\u4f60\u77e5\u9053\u81ea\u5df1\u7684\u5fc3\u7406\u5f31\u70b9\u662f\u4ec0\u4e48\u5417\uff1f\u4e3a\u4e86\u8ba9\u4f60\u66f4\u6e05\u695a\u5730\u4e86\u89e3\u81ea\u5df1\uff0c\u8bf7\u5b8c\u6210\u4e0b\u9762\u7684\u6d4b\u9a8c\u3002\n        <\/p>\n        \n        <button id=\"psych-start-quiz-btn\" class=\"psych-quiz-start-btn\" data-action=\"start\">\u5f00\u59cb\u6d4b\u9a8c<\/button>\n      <\/section>\n    <\/main>\n  <\/div>\n\n  <!-- \u6e2c\u9a57\u9801 -->\n  <div id=\"psych-quiz-test\" class=\"psych-quiz-page\" role=\"main\">\n    <header class=\"psych-quiz-test-header\">\n      <h2 class=\"psych-quiz-page-title\">\u5fc3\u7406\u5f31\u70b9\u6d4b\u9a8c<\/h2>\n      <div class=\"psych-quiz-progress-container\">\n        <div id=\"psych-quiz-progress-bar\" class=\"psych-quiz-progress-bar\">\n          <div id=\"psych-quiz-progress-fill\" class=\"psych-quiz-progress-fill\"><\/div>\n        <\/div>\n        <span id=\"psych-quiz-progress-text\" class=\"psych-quiz-progress-text\">\u95ee\u98981\/1<\/span>\n      <\/div>\n    <\/header>\n    \n    <main class=\"psych-quiz-test-content\">\n      <h3 id=\"psych-quiz-question\" class=\"psych-quiz-question\"><\/h3>\n      \n      <div id=\"psych-quiz-options\" class=\"psych-quiz-options\">\n        <!-- \u9078\u9805\u5c07\u7531JavaScript\u52d5\u614b\u751f\u6210 -->\n      <\/div>\n      \n      <button id=\"psych-prev-question-btn\" class=\"psych-quiz-prev-btn\" data-action=\"prev\" style=\"display: none;\">\u4e0a\u4e00\u9898<\/button>\n    <\/main>\n  <\/div>\n\n  <!-- \u7d50\u679c\u9801 -->\n  <div id=\"psych-quiz-result\" class=\"psych-quiz-page\" role=\"main\">\n    <header class=\"psych-quiz-result-header\">\n      <h2 class=\"psych-quiz-page-title\">\u6d4b\u9a8c\u7ed3\u679c<\/h2>\n    <\/header>\n    \n    <main class=\"psych-quiz-result-content\">\n      <div id=\"psych-quiz-score-visualization\" class=\"psych-quiz-score-visualization\">\n        <canvas id=\"psych-quiz-score-chart\"><\/canvas>\n      <\/div>\n      \n      <div id=\"psych-quiz-result-text\" class=\"psych-quiz-result-text\">\n        <!-- \u7d50\u679c\u6587\u672c\u5c07\u7531JavaScript\u751f\u6210 -->\n      <\/div>\n      \n      <section class=\"psych-quiz-analysis-section\">\n        <h3 class=\"psych-quiz-analysis-title\">\u5fc3\u7406\u8bc4\u6790<\/h3>\n        <div class=\"psych-quiz-analysis-content\">\n          <p>\u300c\u91d1\u65e0\u8db3\u8d64\uff0c\u4eba\u65e0\u5b8c\u4eba\u300d\uff0c\u6bcf\u4e2a\u4eba\u90fd\u6709\u81ea\u5df1\u7684\u4f18\u52bf\u548c\u52a3\u52bf\uff0c\u5173\u952e\u5728\u4e8e\u4f60\u600e\u4e48\u770b\u5f85\uff0c\u662f\u7ee7\u7eed\u539f\u6765\u7684\u4e0d\u8db3\u3001\u4e0d\u601d\u8fdb\u53d6\uff0c\u8fd8\u662f\u5feb\u5200\u65a9\u4e71\u9ebb\uff0c\u6539\u6b63\u3001\u5b8c\u5584\u81ea\u5df1\uff1f<\/p>\n          <p>\u4e3a\u4e86\u4eca\u540e\u7684\u53d1\u5c55\uff0c\u4e3a\u4e86\u751f\u6d3b\u5f97\u66f4\u7f8e\u597d\uff0c\u6700\u597d\u8fd8\u662f\u9009\u62e9\u540e\u8005\u3002<\/p>\n        <\/div>\n      <\/section>\n      \n      <button id=\"psych-restart-quiz-btn\" class=\"psych-quiz-restart-btn\" data-action=\"restart\">\u91cd\u65b0\u6d4b\u9a8c<\/button>\n    <\/main>\n  <\/div>\n<\/div>\n\n<style>\n\/* CSS Variables *\/\n:root {\n  --psych-primary-color: #6366f1;\n  --psych-secondary-color: #8b5cf6;\n  --psych-accent-color: #f59e0b;\n  --psych-text-color: #111827;\n  --psych-text-light: #6b7280;\n  --psych-background: #ffffff;\n  --psych-surface: #f9fafb;\n  --psych-border: #e5e7eb;\n  --psych-hover: #eef2ff;\n  --psych-success: #10b981;\n  --psych-error: #ef4444;\n  --psych-font-base: 16px;\n  --psych-font-lg: 20px;\n  --psych-font-xl: 24px;\n  --psych-font-2xl: 32px;\n  --psych-spacing-xs: 4px;\n  --psych-spacing-sm: 8px;\n  --psych-spacing-md: 16px;\n  --psych-spacing-lg: 24px;\n  --psych-spacing-xl: 32px;\n  --psych-radius-sm: 8px;\n  --psych-radius-md: 12px;\n  --psych-radius-lg: 16px;\n  --psych-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n  --psych-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n  --psych-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n\n\/* Base Styles *\/\n.psych-quiz-container {\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans TC', sans-serif;\n  font-size: var(--psych-font-base);\n  line-height: 1.6;\n  color: var(--psych-text-color);\n  background-color: var(--psych-background);\n  max-width: 100%;\n  margin: 0 auto;\n  padding: var(--psych-spacing-md);\n  position: relative;\n}\n\n\/* Page Styles *\/\n.psych-quiz-page {\n  display: none;\n  width: 100%;\n}\n\n.psych-quiz-page.active {\n  display: block;\n}\n\n\/* Header Styles *\/\n.psych-quiz-header {\n  text-align: center;\n  margin-bottom: var(--psych-spacing-xl);\n}\n\n.psych-quiz-title {\n  font-size: var(--psych-font-2xl);\n  font-weight: 700;\n  color: var(--psych-primary-color);\n  margin: 0 0 var(--psych-spacing-sm) 0;\n}\n\n.psych-quiz-subtitle {\n  font-size: var(--psych-font-lg);\n  color: var(--psych-text-light);\n  margin: 0;\n}\n\n\/* Intro Page Styles *\/\n.psych-quiz-intro-content {\n  max-width: 768px;\n  margin: 0 auto;\n}\n\n.psych-quiz-feature-grid {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: var(--psych-spacing-md);\n  margin: var(--psych-spacing-xl) 0;\n  flex-wrap: nowrap;\n}\n\n.psych-quiz-feature {\n  text-align: center;\n  padding: var(--psych-spacing-md);\n  background: var(--psych-surface);\n  border-radius: var(--psych-radius-md);\n  transition: transform 0.3s ease, box-shadow 0.3s ease;\n  flex: 1;\n  min-width: 0;\n}\n\n.psych-quiz-feature:hover {\n  transform: translateY(-4px);\n  box-shadow: var(--psych-shadow-lg);\n}\n\n.psych-quiz-feature-icon {\n  font-size: 42px;\n  margin-bottom: var(--psych-spacing-sm);\n  height: 72px;\n  width: 72px;\n  background: linear-gradient(135deg, var(--psych-primary-color), var(--psych-secondary-color));\n  border-radius: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin: 0 auto var(--psych-spacing-sm);\n  filter: drop-shadow(var(--psych-shadow-md));\n}\n\n.psych-quiz-feature h3 {\n  font-size: var(--psych-font-lg);\n  font-weight: 600;\n  margin: 0 0 var(--psych-spacing-xs) 0;\n}\n\n.psych-quiz-feature p {\n  color: var(--psych-text-light);\n  margin: 0;\n  font-size: 15px;\n}\n\n.psych-quiz-guide-text {\n  text-align: left;\n  font-size: 18px;\n  line-height: 1.7;\n  color: var(--psych-text-color);\n  margin: var(--psych-spacing-lg) 0;\n  padding: var(--psych-spacing-md);\n  background: #fef3c7;\n  border-radius: var(--psych-radius-md);\n  border: 1px solid #fcd34d;\n}\n\n.psych-quiz-start-btn {\n  font-size: var(--psych-font-lg);\n  font-weight: 600;\n  color: white;\n  background: linear-gradient(135deg, var(--psych-primary-color), var(--psych-secondary-color));\n  border: none;\n  padding: var(--psych-spacing-md) var(--psych-spacing-xl);\n  border-radius: var(--psych-radius-md);\n  cursor: pointer;\n  transition: all 0.3s ease;\n  box-shadow: var(--psych-shadow-md);\n  width: 100%;\n  min-height: 48px;\n  margin-top: var(--psych-spacing-lg);\n}\n\n.psych-quiz-start-btn:hover {\n  transform: translateY(-2px);\n  box-shadow: var(--psych-shadow-lg);\n}\n\n\/* Test Page Styles *\/\n.psych-quiz-test-header {\n  text-align: center;\n  margin-bottom: var(--psych-spacing-lg);\n}\n\n.psych-quiz-page-title {\n  font-size: var(--psych-font-xl);\n  font-weight: 700;\n  color: var(--psych-primary-color);\n  margin: 0 0 var(--psych-spacing-lg) 0;\n}\n\n.psych-quiz-progress-container {\n  margin: 0 auto;\n  max-width: 400px;\n}\n\n.psych-quiz-progress-bar {\n  width: 100%;\n  height: 8px;\n  background-color: var(--psych-border);\n  border-radius: 4px;\n  overflow: hidden;\n  margin-bottom: var(--psych-spacing-sm);\n}\n\n.psych-quiz-progress-fill {\n  height: 100%;\n  background: linear-gradient(90deg, var(--psych-primary-color), var(--psych-accent-color));\n  transition: width 0.5s ease;\n  width: 0%;\n}\n\n.psych-quiz-progress-text {\n  display: block;\n  text-align: center;\n  color: var(--psych-text-light);\n  font-size: 16px;\n}\n\n.psych-quiz-question {\n  font-size: 22px;\n  font-weight: 700;\n  text-align: left;\n  margin: 0 0 var(--psych-spacing-lg) 0;\n  max-width: 768px;\n  margin-left: auto;\n  margin-right: auto;\n  padding: 0 var(--psych-spacing-md);\n  line-height: 1.6;\n}\n\n.psych-quiz-options {\n  max-width: 768px;\n  margin: 0 auto;\n}\n\n.psych-quiz-option {\n  display: block;\n  width: 100%;\n  text-align: left;\n  font-size: 18px;\n  font-weight: 500;\n  padding: var(--psych-spacing-md);\n  margin: var(--psych-spacing-md) 0;\n  background: var(--psych-surface);\n  border: 2px solid var(--psych-border);\n  border-radius: var(--psych-radius-md);\n  cursor: pointer;\n  transition: all 0.3s ease;\n  color: var(--psych-text-color);\n  min-height: 48px;\n  line-height: 1.5;\n}\n\n.psych-quiz-option:hover {\n  border-color: var(--psych-primary-color);\n  background: var(--psych-hover);\n  transform: translateX(4px);\n  color: var(--psych-text-color);\n}\n\n.psych-quiz-option.selected {\n  background: var(--psych-primary-color);\n  border-color: var(--psych-primary-color);\n  color: white;\n}\n\n.psych-quiz-prev-btn {\n  font-size: var(--psych-font-base);\n  font-weight: 500;\n  color: var(--psych-primary-color);\n  background: transparent;\n  border: 2px solid var(--psych-primary-color);\n  padding: var(--psych-spacing-sm) var(--psych-spacing-md);\n  border-radius: var(--psych-radius-sm);\n  cursor: pointer;\n  transition: all 0.3s ease;\n  margin: var(--psych-spacing-lg) auto 0;\n  display: block;\n  min-height: 44px;\n}\n\n.psych-quiz-prev-btn:hover {\n  background: var(--psych-primary-color);\n  color: white;\n}\n\n\/* Result Page Styles *\/\n.psych-quiz-result-header {\n  text-align: center;\n  margin-bottom: var(--psych-spacing-xl);\n}\n\n.psych-quiz-result-content {\n  max-width: 768px;\n  margin: 0 auto;\n}\n\n.psych-quiz-score-visualization {\n  margin: var(--psych-spacing-xl) auto;\n  position: relative;\n  width: 90%;\n  max-width: 600px;\n}\n\n#psych-quiz-score-chart {\n  width: 100% !important;\n  height: 400px !important;\n}\n\n.psych-quiz-result-text {\n  font-size: 18px;\n  line-height: 1.8;\n  text-align: left;\n  margin: var(--psych-spacing-xl) 0;\n  padding: var(--psych-spacing-lg);\n  background: var(--psych-surface);\n  border-radius: var(--psych-radius-md);\n  border: 1px solid var(--psych-border);\n}\n\n\/* Analysis Section Styles *\/\n.psych-quiz-analysis-section {\n  margin: var(--psych-spacing-xl) 0;\n  padding: var(--psych-spacing-lg);\n  background: var(--psych-surface);\n  border-radius: var(--psych-radius-md);\n  border: 1px solid var(--psych-border);\n}\n\n.psych-quiz-analysis-title {\n  font-size: var(--psych-font-lg);\n  font-weight: 700;\n  color: var(--psych-primary-color);\n  margin: 0 0 var(--psych-spacing-md) 0;\n  text-align: center;\n}\n\n.psych-quiz-analysis-content {\n  text-align: left;\n}\n\n.psych-quiz-analysis-content p {\n  font-size: 17px;\n  line-height: 1.8;\n  margin: 0 0 var(--psych-spacing-md) 0;\n  color: var(--psych-text-color);\n}\n\n.psych-quiz-analysis-content p:last-child {\n  margin-bottom: 0;\n}\n\n.psych-quiz-restart-btn {\n  font-size: var(--psych-font-lg);\n  font-weight: 600;\n  color: white;\n  background: linear-gradient(135deg, var(--psych-primary-color), var(--psych-secondary-color));\n  border: none;\n  padding: var(--psych-spacing-md) var(--psych-spacing-xl);\n  border-radius: var(--psych-radius-md);\n  cursor: pointer;\n  transition: all 0.3s ease;\n  box-shadow: var(--psych-shadow-md);\n  display: block;\n  margin: var(--psych-spacing-xl) auto 0;\n  min-height: 48px;\n}\n\n.psych-quiz-restart-btn:hover {\n  transform: translateY(-2px);\n  box-shadow: var(--psych-shadow-lg);\n}\n\n\/* Responsive Design *\/\n@media (max-width: 768px) {\n  .psych-quiz-container {\n    padding: var(--psych-spacing-sm);\n  }\n  \n  .psych-quiz-title {\n    font-size: var(--psych-font-xl);\n  }\n  \n  .psych-quiz-subtitle {\n    font-size: var(--psych-font-base);\n  }\n  \n  .psych-quiz-feature-grid {\n    flex-direction: column;\n    gap: var(--psych-spacing-md);\n  }\n  \n  .psych-quiz-feature {\n    margin-bottom: var(--psych-spacing-sm);\n  }\n  \n  .psych-quiz-question {\n    font-size: 20px;\n  }\n  \n  .psych-quiz-option {\n    font-size: 17px;\n  }\n  \n  .psych-quiz-guide-text {\n    font-size: 17px;\n  }\n  \n  .psych-quiz-result-text {\n    font-size: 17px;\n  }\n  \n  .psych-quiz-analysis-content p {\n    font-size: 16px;\n  }\n}\n\n\/* Accessibility *\/\n@media (prefers-reduced-motion: reduce) {\n  .psych-quiz-feature,\n  .psych-quiz-option,\n  .psych-quiz-start-btn,\n  .psych-quiz-restart-btn,\n  .psych-quiz-prev-btn {\n    transition: none;\n  }\n  \n  .psych-quiz-progress-fill {\n    transition: none;\n  }\n}\n\n\/* Print Styles *\/\n@media print {\n  .psych-quiz-start-btn,\n  .psych-quiz-restart-btn,\n  .psych-quiz-prev-btn {\n    display: none;\n  }\n}\n<\/style>\n\n<script>\n(function() {\n  'use strict';\n  \n  \/\/ Quiz Questions Data\n  const quizQuestions = [\n    {\n      question: \"\u5982\u679c\u4f60\u5728\u7db2\u8def\u91cc\u7d50\u8b58\u4e86\u8b93\u4f60\u8a8d\u70ba\u4e00\u898b\u5982\u6545\u3001\u76f8\u898b\u6068\u665a\u7684\u7db2\u53cb\u3002\u7576\u4f60\u5011\u8996\u8a0a\u804a\u5929\u6642\uff0c\u4f60\u767c\u73fe\u5c0d\u65b9\u4e26\u4e0d\u662f\u4f60\u60f3\u8c61\u4e2d\u7684\u6a23\u5b50\uff0c\u6b64\u6642\u4f60\u6703\u600e\u9ebc\u60f3\u3001\u600e\u9ebc\u505a\uff1f\",\n      options: [\n        \"\u4ed6\uff08\u5979\uff09\u7684\u8a9e\u8a00\u548c\u4eba\u592a\u4e0d\u914d\u4e86\uff0c\u597d\u919c\u7684\u9762\u5b54\uff0c\u7acb\u523b\u95dc\u4e86\u7a97\u53e3\u4e0b\u7dda\",\n        \"\u4e00\u6642\u9593\u7121\u6cd5\u63a5\u53d7\uff0c\u63a8\u8aaa\u6709\u4e8b\u6216\u8005\u4e0a\u5ec1\u6240\uff0c\u5f85\u81ea\u5df1\u51b7\u975c\u4e4b\u5f8c\u518d\u804a\",\n        \"\u6c92\u4ec0\u9ebc\uff0c\u4eba\u7121\u5b8c\u4eba\uff0c\u6211\u4e5f\u4e0d\u5b8c\u7f8e\uff0c\u4ed6\u4e0d\u6f02\u4eae\u4e5f\u8a31\u6b63\u597d\u8aaa\u660e\u4ed6\u8001\u5be6\",\n        \"\u96d6\u7136\u5f37\u58d3\u5167\u5fc3\u611f\u53d7\uff0c\u537b\u51fa\u8a9e\u50b7\u53ca\u5c0d\u65b9\u81ea\u5c0a\u5fc3\uff0c\u5766\u767d\u8aaa\u51fa\u5c0d\u65b9\u4e0d\u597d\u770b\"\n      ]\n    }\n  ];\n\n  \/\/ Result Analysis Data\n  const resultAnalysis = {\n    A: {\n      emoji: \"\ud83d\udc94\",\n      title: \"\u5b8c\u7f8e\u4e3b\u7fa9\u8005\u7684\u5f31\u9ede\",\n      text: `\u4f60\u76f8\u4fe1\u865b\u5e7b\u52dd\u904e\u73fe\u5be6\uff0c\u662f\u500b\u8ffd\u6c42\u5b8c\u7f8e\u7684\u4eba\u3002\u7576\u4e8b\u5be6\u4e0d\u5982\u4f60\u610f\u6642\uff0c\u4f60\u6703\u4e0d\u9867\u4e00\u5207\u5730\u9003\u907f\uff0c\u751a\u81f3\u50b7\u5bb3\u5230\u5c0d\u65b9\u3002\u4f46\u662f\u9019\u985e\u4eba\u6bd4\u8f03\u76f4\u63a5\u3001\u723d\u6717\uff0c\u53ea\u662f\u7576\u4eca\u793e\u6703\u66f4\u9700\u8981\u5a49\u8f49\u7684\u8655\u4e8b\u65b9\u5f0f\u3002`,\n      color: \"#ef4444\",\n      traits: {\n        \"\u9003\u907f\u73fe\u5be6\": 85,\n        \"\u8ffd\u6c42\u5b8c\u7f8e\": 90,\n        \"\u76f4\u63a5\u723d\u6717\": 75,\n        \"\u5a49\u8f49\u8655\u4e8b\": 30\n      }\n    },\n    B: {\n      emoji: \"\ud83e\uddd8\",\n      title: \"\u7406\u667a\u51b7\u975c\u7684\u667a\u8005\",\n      text: `\u6bd4\u8f03\u9069\u61c9\u7576\u4eca\u793e\u6703\u7684\u8981\u6c42\uff0c\u8b93\u81ea\u5df1\u51b7\u975c\u4e4b\u5f8c\uff0c\u5c31\u80fd\u5e73\u8861\u5fc3\u7406\u72c0\u614b\u3002\u9019\u985e\u4eba\u7684\u5fc3\u7406\u7d20\u8cea\u76f8\u7576\u597d\uff0c\u5c31\u7b97\u4eca\u5f8c\u81ea\u5df1\u559c\u6b61\u7684\u4eba\u505a\u4e86\u4ee4\u81ea\u5df1\u4e0d\u9ad8\u8208\u7684\u4e8b\u60c5\uff0c\u4e5f\u6703\u7406\u667a\u5730\u8655\u7406\uff0c\u4e0d\u6703\u8b93\u6012\u706b\u64fe\u4e82\u5fc3\u667a\u3002`,\n      color: \"#10b981\",\n      traits: {\n        \"\u51b7\u975c\u8655\u7406\": 95,\n        \"\u5fc3\u7406\u97cc\u6027\": 85,\n        \"\u60c5\u7dd2\u63a7\u5236\": 90,\n        \"\u7406\u667a\u5206\u6790\": 88\n      }\n    },\n    C: {\n      emoji: \"\ud83e\udd1d\",\n      title: \"\u6eab\u548c\u7406\u89e3\u7684\u4ea4\u969b\u9ad8\u624b\",\n      text: `\u4f60\u5c0d\u4e8b\u5c0d\u4eba\u614b\u5ea6\u5e73\u548c\uff0c\u975e\u5e38\u53ef\u4eba\uff0c\u4ea4\u969b\u9762\u5ee3\uff0c\u4eba\u7de3\u597d\u3002\u96d6\u7136\u4f60\u5c0d\u73fe\u5be6\u5e38\u62b1\u6709\u5e7b\u60f3\uff0c\u4f46\u4f60\u5f88\u6703\u7406\u89e3\u4ed6\u4eba\u3002\u7e3d\u9ad4\u4e0a\u8aaa\uff0c\u4f60\u662f\u4e00\u500b\u8655\u7406\u4e8b\u60c5\u7684\u9ad8\u624b\u3002`,\n      color: \"#3b82f6\",\n      traits: {\n        \"\u4eba\u969b\u95dc\u4fc2\": 95,\n        \"\u540c\u7406\u5fc3\": 88,\n        \"\u5e73\u548c\u614b\u5ea6\": 92,\n        \"\u8655\u4e8b\u80fd\u529b\": 86\n      }\n    },\n    D: {\n      emoji: \"\ud83c\udf31\",\n      title: \"\u5fc3\u667a\u672a\u6210\u719f\u8005\",\n      text: `\u4f60\u7684\u505a\u6cd5\u6bd4\u8f03\u602a\uff0c\u96d6\u7136\u5c0d\u81ea\u5df1\u5c07\u8981\u505a\u7684\u4e8b\u60c5\u7684\u5f8c\u679c\u6709\u5f37\u70c8\u7684\u9810\u611f\uff0c\u4f46\u6700\u7d42\u537b\u80cc\u9053\u800c\u99b3\u3002\u53ea\u80fd\u8aaa\u4f60\u5fc3\u667a\u9084\u4e0d\u5920\u6210\u719f\uff0c\u7576\u4f60\u5b78\u6703\u9069\u7576\u96b1\u85cf\u81ea\u5df1\u7684\u5167\u5fc3\u611f\u53d7\u6642\uff0c\u4f60\u7684\u793e\u4ea4\u6703\u66f4\u597d\u4e00\u4e9b\u3002`,\n      color: \"#f59e0b\",\n      traits: {\n        \"\u60c5\u7dd2\u63a7\u5236\": 45,\n        \"\u5fc3\u667a\u6210\u719f\": 60,\n        \"\u9810\u77e5\u529b\": 70,\n        \"\u793e\u4ea4\u6280\u5de7\": 55\n      }\n    }\n  };\n\n  \/\/ Quiz State\n  const state = {\n    currentQuestion: 0,\n    selectedAnswer: null,\n    answers: [],\n    chart: null\n  };\n\n  \/\/ DOM Elements\n  const elements = {\n    introPage: document.getElementById('psych-quiz-intro'),\n    testPage: document.getElementById('psych-quiz-test'),\n    resultPage: document.getElementById('psych-quiz-result'),\n    startBtn: document.getElementById('psych-start-quiz-btn'),\n    prevBtn: document.getElementById('psych-prev-question-btn'),\n    restartBtn: document.getElementById('psych-restart-quiz-btn'),\n    question: document.getElementById('psych-quiz-question'),\n    options: document.getElementById('psych-quiz-options'),\n    progressBar: document.getElementById('psych-quiz-progress-fill'),\n    progressText: document.getElementById('psych-quiz-progress-text'),\n    scoreChart: document.getElementById('psych-quiz-score-chart'),\n    resultText: document.getElementById('psych-quiz-result-text')\n  };\n\n  \/\/ Event Listeners using Event Delegation\n  document.getElementById('psych-quiz-container').addEventListener('click', handleContainerClick);\n\n  function handleContainerClick(e) {\n    const action = e.target.dataset.action;\n    \n    if (action === 'start') {\n      startQuiz();\n    } else if (action === 'prev') {\n      previousQuestion();\n    } else if (action === 'restart') {\n      restartQuiz();\n    } else if (e.target.classList.contains('psych-quiz-option')) {\n      selectOption(e.target);\n    }\n  }\n\n  \/\/ Quiz Functions\n  function startQuiz() {\n    showPage('test');\n    scrollToTop();\n    renderQuestion();\n  }\n\n  function showPage(page) {\n    elements.introPage.classList.remove('active');\n    elements.testPage.classList.remove('active');\n    elements.resultPage.classList.remove('active');\n    \n    switch(page) {\n      case 'intro':\n        elements.introPage.classList.add('active');\n        break;\n      case 'test':\n        elements.testPage.classList.add('active');\n        break;\n      case 'result':\n        elements.resultPage.classList.add('active');\n        break;\n    }\n  }\n\n  function renderQuestion() {\n    const question = quizQuestions[state.currentQuestion];\n    elements.question.textContent = question.question;\n    \n    \/\/ Clear previous options\n    elements.options.innerHTML = '';\n    \n    \/\/ Render options\n    question.options.forEach((option, index) => {\n      const button = document.createElement('button');\n      button.className = 'psych-quiz-option';\n      button.textContent = option;\n      button.dataset.value = String.fromCharCode(65 + index); \/\/ A, B, C, D\n      elements.options.appendChild(button);\n    });\n    \n    \/\/ Update progress\n    updateProgress();\n    \n    \/\/ Show\/hide previous button\n    if (quizQuestions.length > 1) {\n      elements.prevBtn.style.display = state.currentQuestion > 0 ? 'block' : 'none';\n    } else {\n      elements.prevBtn.style.display = 'none';\n    }\n    \n    \/\/ Restore previous selection\n    if (state.answers[state.currentQuestion]) {\n      const selectedOption = elements.options.querySelector(`[data-value=\"${state.answers[state.currentQuestion]}\"]`);\n      if (selectedOption) {\n        selectedOption.classList.add('selected');\n      }\n    }\n  }\n\n  function updateProgress() {\n    if (quizQuestions.length > 1) {\n      const progress = ((state.currentQuestion + 1) \/ quizQuestions.length) * 100;\n      elements.progressBar.style.width = `${progress}%`;\n      elements.progressText.textContent = `\u554f\u984c ${state.currentQuestion + 1}\/${quizQuestions.length}`;\n    } else {\n      \/\/ Hide progress bar for single question\n      elements.progressBar.parentElement.style.display = 'none';\n      elements.progressText.style.display = 'none';\n    }\n  }\n\n  function selectOption(option) {\n    \/\/ Clear previous selection\n    const allOptions = elements.options.querySelectorAll('.psych-quiz-option');\n    allOptions.forEach(opt => opt.classList.remove('selected'));\n    \n    \/\/ Select current option\n    option.classList.add('selected');\n    \n    \/\/ Store answer\n    state.selectedAnswer = option.dataset.value;\n    state.answers[state.currentQuestion] = state.selectedAnswer;\n    \n    \/\/ Move to next question after short delay\n    setTimeout(() => {\n      if (state.currentQuestion < quizQuestions.length - 1) {\n        nextQuestion();\n      } else {\n        finishQuiz();\n      }\n    }, 300);\n  }\n\n  function nextQuestion() {\n    state.currentQuestion++;\n    renderQuestion();\n    scrollToTitle();\n  }\n\n  function previousQuestion() {\n    if (state.currentQuestion > 0) {\n      state.currentQuestion--;\n      renderQuestion();\n      scrollToTitle();\n    }\n  }\n\n  function finishQuiz() {\n    showResults();\n  }\n\n  function showResults() {\n    showPage('result');\n    scrollToTop();\n    \n    \/\/ Get result based on selected answer\n    const selectedAnswer = state.answers[0];\n    const resultData = resultAnalysis[selectedAnswer];\n    \n    if (!resultData) {\n      console.error('\u672a\u627e\u5230\u7d50\u679c\u6578\u64da');\n      return;\n    }\n    \n    \/\/ Display result text\n    elements.resultText.innerHTML = `\n      <div style=\"text-align: center; margin-bottom: 24px;\">\n        <div style=\"font-size: 48px; margin-bottom: 16px;\">${resultData.emoji}<\/div>\n        <h3 style=\"font-size: 24px; font-weight: 700; color: ${resultData.color}; margin: 0 0 16px 0;\">\n          ${resultData.title}\n        <\/h3>\n      <\/div>\n      <p style=\"line-height: 1.8; text-align: left;\">${resultData.text}<\/p>\n    `;\n    \n    \/\/ Create chart\n    createScoreChart(resultData);\n  }\n\n  function createScoreChart(resultData) {\n    const ctx = elements.scoreChart.getContext('2d');\n    \n    \/\/ Destroy existing chart if it exists\n    if (state.chart) {\n      state.chart.destroy();\n    }\n    \n    const labels = Object.keys(resultData.traits);\n    const values = Object.values(resultData.traits);\n    \n    const data = {\n      labels: labels,\n      datasets: [{\n        label: '\u7279\u8cea\u5f37\u5ea6',\n        data: values,\n        backgroundColor: [\n          'rgba(99, 102, 241, 0.8)',\n          'rgba(139, 92, 246, 0.8)',\n          'rgba(16, 185, 129, 0.8)',\n          'rgba(245, 158, 11, 0.8)'\n        ],\n        borderColor: [\n          'rgb(99, 102, 241)',\n          'rgb(139, 92, 246)',\n          'rgb(16, 185, 129)',\n          'rgb(245, 158, 11)'\n        ],\n        borderWidth: 2\n      }]\n    };\n    \n    const config = {\n      type: 'radar',\n      data: data,\n      options: {\n        responsive: true,\n        maintainAspectRatio: false,\n        scales: {\n          r: {\n            angleLines: {\n              display: true,\n              color: '#e5e7eb'\n            },\n            suggestedMin: 0,\n            suggestedMax: 100,\n            ticks: {\n              display: true,\n              stepSize: 25,\n              color: '#6b7280',\n              font: {\n                size: 14\n              }\n            },\n            grid: {\n              color: '#e5e7eb'\n            },\n            pointLabels: {\n              color: '#111827',\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.parsed.r}%`;\n              }\n            },\n            titleFont: {\n              size: 18\n            },\n            bodyFont: {\n              size: 18\n            },\n            padding: 12\n          }\n        }\n      }\n    };\n    \n    state.chart = new Chart(ctx, config);\n  }\n\n  function restartQuiz() {\n    state.currentQuestion = 0;\n    state.selectedAnswer = null;\n    state.answers = [];\n    \n    if (state.chart) {\n      state.chart.destroy();\n      state.chart = null;\n    }\n    \n    showPage('intro');\n    scrollToTop();\n  }\n\n  function scrollToTop() {\n    window.scrollTo({\n      top: 0,\n      behavior: 'smooth'\n    });\n  }\n\n  function scrollToTitle() {\n    const title = elements.testPage.querySelector('.psych-quiz-page-title');\n    if (title) {\n      title.scrollIntoView({\n        behavior: 'smooth',\n        block: 'start'\n      });\n    }\n  }\n\n  \/\/ Initialize\n  function init() {\n    console.log('\u5fc3\u7406\u6e2c\u9a57\u521d\u59cb\u5316\u6210\u529f');\n  }\n\n  \/\/ Start the quiz application\n  init();\n})();\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u6bcf\u4e2a\u4eba\u7684\u5185\u5fc3\u4e16\u754c\u91cc\uff0c\u90fd\u6709\u81ea\u5df1\u6700\u8584\u5f31\u7684\u73af\u8282\uff0c\u4e5f\u8bb8\u8fd9\u4e2a\u73af\u8282\u4e0d\u582a\u4e00\u51fb\uff0c\u6210\u4e3a\u4f60\u6094\u6068\u7ec8\u751f\u7684\u9057\u61be\u3002\u90a3\u4e48\u4f60\u77e5\u9053\u81ea\u5df1\u7684\u5fc3\u7406\u5f31\u70b9\u662f\u4ec0\u4e48\u5417\uff1f \u4e3a\u4e86\u8ba9\u4f60\u66f4\u6e05\u695a\u5730\u4e86\u89e3\u81ea\u5df1\uff0c\u8bf7\u5b8c\u6210\u4e0b\u9762\u7684\u6d4b\u9a8c\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":"disabled","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[167],"tags":[],"class_list":["post-3175","post","type-post","status-publish","format-standard","hentry","category-personality"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/3175","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=3175"}],"version-history":[{"count":3,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/3175\/revisions"}],"predecessor-version":[{"id":10478,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/3175\/revisions\/10478"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=3175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=3175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=3175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}