{"id":2649,"date":"2023-10-17T09:44:52","date_gmt":"2023-10-17T01:44:52","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2649"},"modified":"2025-05-11T18:05:06","modified_gmt":"2025-05-11T10:05:06","slug":"psychological-gender-test-for-male","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/psychological-gender-test-for-male","title":{"rendered":"\u5fc3\u7406\u6027\u522b\uff08\u7537\u6027\u7bc7\uff09\u7ebf\u4e0a\u514d\u8d39\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u5fc3\u7406\u6027\u5225\u6e2c\u9a57\uff08\u7537\u6027\u7bc7\uff09 -->\n\n<!-- HTML \u7d50\u69cb -->\n<div class=\"gender-test-wrapper\" data-test-app data-js-disabled>\n  <main role=\"main\">\n    <!-- \u5f15\u5c0e\u9801 -->\n    <section class=\"test-container welcome-page\" data-page=\"welcome\" aria-label=\"\u6d4b\u9a8c\u5f15\u5bfc\u9875\">\n      <header>\n        <h2>\u5fc3\u7406\u6027\u522b\u6d4b\u9a8c\uff08\u7537\u6027\u7bc7\uff09<\/h2>\n        <p class=\"welcome-subtitle\">\u63a2\u7d22\u5185\u5fc3\u6df1\u5904\u7684\u771f\u5b9e\u81ea\u6211\uff0c\u53d1\u73b0\u4f60\u7684\u5fc3\u7406\u6027\u522b\u7279\u8d28<\/p>\n      <\/header>\n      \n      <div class=\"feature-icons\" role=\"img\" aria-label=\"\u7279\u8272\u56fe\u793a\">\n        <div class=\"feature-icon\" aria-label=\"\u81ea\u6211\u63a2\u7d22\">\ud83d\udd0d<\/div>\n        <div class=\"feature-icon\" aria-label=\"\u6df1\u5ea6\u5206\u6790\">\ud83e\udde0<\/div>\n        <div class=\"feature-icon\" aria-label=\"\u4e2a\u4eba\u6210\u957f\">\u2728<\/div>\n      <\/div>\n      \n      <div class=\"welcome-description\">\n        <p>\u4e00\u822c\u800c\u8a00\uff0c\u7537\u6027\u66f4\u4e3b\u52a8\uff0c\u66f4\u5bcc\u4e8e\u7ade\u4e89\u6027\uff0c\u66f4\u559c\u6b22\u652f\u914d\u3002\u4f46\u662f\u5f88\u591a\u7537\u4eba\u5e76\u6ca1\u6709\u53d1\u73b0\u9690\u85cf\u5728\u81ea\u5df1\u5185\u5fc3\u6df1\u5904\u7684\u5fc3\u7406\u7279\u8d28\u3002<\/p>\n        <p>\u5fb7\u56fd\u5fc3\u7406\u5b66\u5bb6\u66fe\u7ecf\u7ec4\u7ec7\u4e86\u4e00\u6b21\u8bd5\u9a8c\uff0c\u5728\u4e00\u95f4\u5546\u5e97\u91cc\u88c5\u4e86\u4e00\u9762\u957f\u955c\uff0c\u7136\u540e\u89c2\u5bdf\u7ecf\u8fc7\u957f\u955c\u7684\u7537\u5973\u3002 \u57288\u5c0f\u65f6\u7684\u89c2\u5bdf\u4e2d\uff0c\u5171\u67091620\u4e2a\u5973\u4eba\u7ecf\u8fc7\u8fd9\u9762\u957f\u955c\uff0c30\uff05\u505c\u4e0b\u6765\u7167\u4e86\u7167\u955c\u5b50\u3002 \u800c\u5dee\u4e0d\u591a\u6240\u6709600\u4e2a\u7ecf\u8fc7\u957f\u955c\u7684\u7537\u4eba\uff0c\u90fd\u505c\u4e0b\u6765\u597d\u597d\u7167\u4e86\u7167\u955c\u5b50\u3002<\/p>\n        <p>\u4ece\u7b2c\u4e00\u9898\u5f00\u59cb\uff0c\u9009\u62e9\u7b26\u5408\u4f60\u7684\u9009\u9879\uff0c\u6839\u636e\u6307\u793a\u524d\u8fdb\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\u63a2\u7d22\u4f60\u7684\u5fc3\u7406\u6027\u522b\u7279\u8d28\uff01<\/p>\n      <\/div>\n      \n      <footer>\n        <button class=\"btn btn-primary\" data-start-test aria-describedby=\"start-test-desc\">\n          \u5f00\u59cb\u6d4b\u9a8c\n        <\/button>\n        <span id=\"start-test-desc\" class=\"hidden\">\u70b9\u51fb\u5f00\u59cb\u8fdb\u884c\u5fc3\u7406\u6027\u522b\u6d4b\u9a8c<\/span>\n      <\/footer>\n    <\/section>\n    \n    <!-- \u6e2c\u9a57\u9801 -->\n    <section class=\"test-container quiz-page hidden\" data-page=\"quiz\" aria-label=\"\u6d4b\u9a8c\u95ee\u9898\">\n      <header>\n        <h2>\u5fc3\u7406\u6027\u522b\u8bc4\u4f30<\/h2>\n        \n        <div class=\"progress-section\" aria-label=\"\u6d4b\u9a8c\u8fdb\u5ea6\">\n          <div class=\"progress-info\">\n            <span class=\"question-counter\" data-question-counter role=\"status\">\u95ee\u9898\u8fdb\u5ea6<\/span>\n          <\/div>\n          <div class=\"progress-bar\" role=\"progressbar\" \n               aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"0\">\n            <div class=\"progress-fill\" data-progress-fill style=\"width: 0%\"><\/div>\n          <\/div>\n        <\/div>\n      <\/header>\n      \n      <article class=\"question-section\">\n        <h3 class=\"question-title\" data-question-title>\n          <!-- \u554f\u984c\u6a19\u984c\u5c07\u7531 JavaScript \u52d5\u614b\u63d2\u5165 -->\n        <\/h3>\n        \n        <fieldset class=\"options-container\" data-options-container role=\"radiogroup\">\n          <legend class=\"hidden\">\u8bf7\u9009\u62e9\u7b54\u6848<\/legend>\n          <!-- \u9078\u9805\u5c07\u7531 JavaScript \u52d5\u614b\u63d2\u5165 -->\n        <\/fieldset>\n        \n        <nav class=\"navigation-buttons\">\n          <button class=\"btn btn-secondary hidden\" data-prev-btn aria-label=\"\u8fd4\u56de\u4e0a\u4e00\u9898\">\u4e0a\u4e00\u9898<\/button>\n        <\/nav>\n      <\/article>\n    <\/section>\n    \n    <!-- \u7d50\u679c\u9801 -->\n    <section class=\"test-container result-page hidden\" data-page=\"result\" aria-label=\"\u6d4b\u9a8c\u7ed3\u679c\">\n      <header class=\"result-header\">\n        <h2>\u6d4b\u9a8c\u7ed3\u679c<\/h2>\n        <h3 class=\"result-title\" data-result-title>\u4f60\u7684\u5fc3\u7406\u6027\u522b\u7c7b\u578b\u5206\u6790<\/h3>\n        <p class=\"result-subtitle\">\u6839\u636e\u60a8\u7684\u56de\u7b54\uff0c\u6211\u4eec\u5206\u6790\u51fa\u4e86\u60a8\u7684\u5fc3\u7406\u6027\u522b\u7279\u8d28\uff1a<\/p>\n      <\/header>\n      \n      <figure class=\"result-chart-container\" aria-label=\"\u5fc3\u7406\u6027\u522b\u7279\u8d28\u5206\u6790\u56fe\">\n        <canvas id=\"gender-chart\" role=\"img\" aria-describedby=\"chart-desc\"><\/canvas>\n        <figcaption id=\"chart-desc\" class=\"hidden\">\n          \u5fc3\u7406\u6027\u522b\u7279\u8d28\u5206\u6790\u56fe\uff0c\u5c55\u793a\u60a8\u7684\u6027\u522b\u7279\u8d28\u5206\u5e03\n        <\/figcaption>\n      <\/figure>\n      \n      <article class=\"result-analysis\">\n        <h3 class=\"analysis-title\">\u8be6\u7ec6\u5206\u6790<\/h3>\n        <p class=\"analysis-text\" data-analysis-text>\n          <!-- \u7d50\u679c\u5206\u6790\u5c07\u7531 JavaScript \u63d2\u5165 -->\n        <\/p>\n      <\/article>\n      \n      <footer class=\"restart-section\">\n        <button class=\"btn btn-primary\" data-restart-test aria-describedby=\"restart-desc\">\n          \u91cd\u65b0\u6d4b\u9a8c\n        <\/button>\n        <span id=\"restart-desc\" class=\"hidden\">\u70b9\u51fb\u91cd\u65b0\u5f00\u59cb\u6d4b\u9a8c<\/span>\n      <\/footer>\n    <\/section>\n  <\/main>\n<\/div>\n\n<!-- CSS \u6a23\u5f0f -->\n<style>\n\/* CSS \u8b8a\u6578\u5b9a\u7fa9 *\/\n:root {\n  --primary-color: #2c3e50;\n  --secondary-color: #e74c3c;\n  --accent-color: #3498db;\n  --success-color: #27ae60;\n  --bg-color: #f8f9fa;\n  --text-color: #2c3e50;\n  --text-light: #7f8c8d;\n  --border-color: #ddd;\n  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);\n  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);\n  --border-radius: 16px;\n  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n  --font-size-base: 18px;\n  --font-size-h2: 36px;\n  --font-size-h3: 22px;\n  --font-size-sm: 16px;\n  --spacing-unit: 8px;\n  --max-width: 900px;\n  --chart-height: 400px;\n}\n\n\/* \u57fa\u790e\u6a23\u5f0f\u91cd\u7f6e *\/\n.gender-test-wrapper * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n\n\/* \u4e3b\u5bb9\u5668 *\/\n.gender-test-wrapper {\n  font-family: -apple-system, BlinkMacSystemFont, '\u5fae\u8edf\u6b63\u9ed1\u9ad4', 'Microsoft JhengHei', '\u601d\u6e90\u9ed1\u9ad4', \n               'Source Han Sans TC', 'PingFang TC', sans-serif;\n  font-size: var(--font-size-base);\n  line-height: 1.7;\n  color: var(--text-color);\n  background-color: var(--bg-color);\n  min-height: 600px;\n  padding: calc(var(--spacing-unit) * 3);\n}\n\n\/* \u5167\u5bb9\u5bb9\u5668 *\/\n.test-container {\n  max-width: var(--max-width);\n  margin: 0 auto;\n  background: white;\n  border-radius: var(--border-radius);\n  box-shadow: var(--card-shadow);\n  overflow: hidden;\n  min-height: 600px;\n  position: relative;\n  transition: var(--transition);\n}\n\n\/* \u9801\u9762\u6a19\u984c\u5171\u7528\u6a23\u5f0f *\/\n.test-container h2 {\n  font-size: var(--font-size-h2);\n  text-align: center;\n  color: var(--text-color);\n  font-weight: 700;\n  line-height: 1.2;\n  margin-bottom: calc(var(--spacing-unit) * 4);\n}\n\n\/* \u5f15\u5c0e\u9801\u6a23\u5f0f *\/\n.welcome-page {\n  padding: calc(var(--spacing-unit) * 7);\n  background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);\n  color: white;\n  min-height: 600px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  position: relative;\n  overflow: hidden;\n}\n\n.welcome-page::before {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 200%;\n  height: 100%;\n  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);\n  transform: translateX(-100%) rotate(45deg);\n  animation: shine 4s infinite;\n}\n\n@keyframes shine {\n  100% {\n    transform: translateX(100%) rotate(45deg);\n  }\n}\n\n.welcome-page h2 {\n  color: white;\n  text-shadow: 0 2px 4px rgba(0,0,0,0.3);\n  margin-bottom: calc(var(--spacing-unit) * 3);\n  position: relative;\n  z-index: 1;\n}\n\n.welcome-subtitle {\n  font-size: calc(var(--font-size-base) + 2px);\n  text-align: center;\n  margin-bottom: calc(var(--spacing-unit) * 6);\n  opacity: 0.95;\n  position: relative;\n  z-index: 1;\n}\n\n.feature-icons {\n  display: flex;\n  justify-content: center;\n  gap: calc(var(--spacing-unit) * 5);\n  margin-bottom: calc(var(--spacing-unit) * 7);\n  position: relative;\n  z-index: 1;\n  flex-wrap: wrap;\n}\n\n.feature-icon {\n  width: 100px;\n  height: 100px;\n  background: rgba(255,255,255,0.1);\n  border-radius: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 40px;\n  transition: var(--transition);\n  box-shadow: 0 4px 15px rgba(0,0,0,0.1);\n  position: relative;\n  animation: float 3s ease-in-out infinite;\n}\n\n@keyframes float {\n  0%, 100% { transform: translateY(0); }\n  50% { transform: translateY(-10px); }\n}\n\n.feature-icon:nth-child(2) {\n  animation-delay: 0.7s;\n}\n\n.feature-icon:nth-child(3) {\n  animation-delay: 1.4s;\n}\n\n.feature-icon:hover {\n  transform: translateY(-8px) scale(1.05);\n  background: rgba(231, 76, 60, 0.2);\n  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.15);\n}\n\n.welcome-description {\n  text-align: center;\n  line-height: 1.9;\n  margin-bottom: calc(var(--spacing-unit) * 8);\n  max-width: 750px;\n  margin-left: auto;\n  margin-right: auto;\n  opacity: 0.98;\n  position: relative;\n  z-index: 1;\n}\n\n.welcome-description p {\n  margin-bottom: calc(var(--spacing-unit) * 3);\n}\n\n.welcome-page footer {\n  text-align: center;\n  position: relative;\n  z-index: 1;\n}\n\n\/* \u6309\u9215\u6a23\u5f0f *\/\n.btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 6);\n  font-size: var(--font-size-base);\n  font-weight: 600;\n  border: none;\n  border-radius: calc(var(--border-radius) * 0.8);\n  cursor: pointer;\n  transition: var(--transition);\n  min-height: 48px;\n  min-width: 160px;\n  text-decoration: none;\n  position: relative;\n  overflow: hidden;\n}\n\n.btn-primary {\n  background: linear-gradient(45deg, #e74c3c, #c0392b);\n  color: white;\n  box-shadow: var(--card-shadow);\n  position: relative;\n  z-index: 1;\n}\n\n.btn-primary::before {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: linear-gradient(45deg, #c0392b, #e74c3c);\n  opacity: 0;\n  transition: var(--transition);\n  z-index: -1;\n}\n\n.btn-primary:hover::before {\n  opacity: 1;\n}\n\n.btn-primary:hover {\n  transform: translateY(-3px);\n  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);\n}\n\n.btn-secondary {\n  background: white;\n  color: var(--accent-color);\n  border: 2px solid var(--accent-color);\n}\n\n.btn-secondary:hover {\n  background: var(--accent-color);\n  color: white;\n  transform: translateY(-2px);\n}\n\n\/* \u6e2c\u9a57\u9801\u6a23\u5f0f *\/\n.quiz-page {\n  padding: calc(var(--spacing-unit) * 6);\n  min-height: 600px;\n  display: flex;\n  flex-direction: column;\n}\n\n.progress-section {\n  margin-bottom: calc(var(--spacing-unit) * 5);\n}\n\n.progress-info {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  margin-bottom: calc(var(--spacing-unit) * 2);\n}\n\n.question-counter {\n  font-weight: 600;\n  color: var(--accent-color);\n  font-size: var(--font-size-base);\n}\n\n.progress-bar {\n  height: 12px;\n  background: #ecf0f1;\n  border-radius: 6px;\n  overflow: hidden;\n  position: relative;\n}\n\n.progress-fill {\n  height: 100%;\n  background: linear-gradient(90deg, var(--accent-color), var(--success-color));\n  border-radius: 6px;\n  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n  position: relative;\n}\n\n.progress-fill::after {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 30%;\n  height: 100%;\n  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);\n  animation: progressShimmer 2s infinite;\n}\n\n@keyframes progressShimmer {\n  0% {\n    transform: translateX(-100%);\n  }\n  100% {\n    transform: translateX(333%);\n  }\n}\n\n.question-section {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.question-title {\n  font-size: var(--font-size-h3);\n  font-weight: 700;\n  margin-bottom: calc(var(--spacing-unit) * 5);\n  line-height: 1.5;\n  color: var(--text-color);\n}\n\n.options-container {\n  display: flex;\n  flex-direction: column;\n  gap: calc(var(--spacing-unit) * 2.5);\n  margin-bottom: calc(var(--spacing-unit) * 7);\n  border: none;\n}\n\n.option-button {\n  padding: calc(var(--spacing-unit) * 3.5);\n  background: #fafafa;\n  border: none;\n  border-radius: var(--border-radius);\n  font-size: var(--font-size-base);\n  text-align: left;\n  cursor: pointer;\n  transition: var(--transition);\n  min-height: 56px;\n  color: var(--text-color);\n  position: relative;\n  overflow: hidden;\n  box-shadow: 0 2px 8px rgba(0,0,0,0.05);\n}\n\n.option-button::before {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: -100%;\n  width: 100%;\n  height: 100%;\n  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);\n  transition: var(--transition);\n}\n\n.option-button:hover {\n  background: var(--accent-color);\n  color: white;\n  transform: translateX(4px);\n  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);\n}\n\n.option-button:hover::before {\n  left: 0;\n  transition: left 0.4s ease;\n}\n\n.option-button.selected {\n  background: linear-gradient(135deg, var(--accent-color), #2980b9);\n  border-color: var(--accent-color);\n  color: white;\n  transform: scale(1.01);\n}\n\n.navigation-buttons {\n  display: flex;\n  justify-content: center;\n  gap: calc(var(--spacing-unit) * 3);\n  margin-top: auto;\n  padding-top: calc(var(--spacing-unit) * 3);\n}\n\n\/* \u7d50\u679c\u9801\u6a23\u5f0f *\/\n.result-page {\n  padding: calc(var(--spacing-unit) * 6);\n  min-height: 600px;\n  display: flex;\n  flex-direction: column;\n}\n\n.result-header {\n  text-align: center;\n  margin-bottom: calc(var(--spacing-unit) * 6);\n}\n\n.result-title {\n  font-size: calc(var(--font-size-h2) - 4px);\n  color: var(--secondary-color);\n  margin-bottom: calc(var(--spacing-unit) * 2);\n  font-weight: 700;\n}\n\n.result-subtitle {\n  color: var(--text-light);\n  font-size: var(--font-size-base);\n}\n\n.result-chart-container {\n  margin-bottom: calc(var(--spacing-unit) * 6);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  min-height: var(--chart-height);\n  background: linear-gradient(135deg, #f8f9fa 0%, #f5f5f5 100%);\n  border-radius: var(--border-radius);\n  padding: calc(var(--spacing-unit) * 3);\n  border: 1px solid rgba(0,0,0,0.05);\n}\n\n#gender-chart {\n  max-width: 100%;\n  max-height: var(--chart-height);\n}\n\n.result-analysis {\n  background: #f9fbfc;\n  padding: calc(var(--spacing-unit) * 5);\n  border-radius: var(--border-radius);\n  margin-bottom: calc(var(--spacing-unit) * 7);\n  border: 1px solid rgba(0,0,0,0.05);\n  position: relative;\n}\n\n.analysis-title {\n  font-size: calc(var(--font-size-h3) - 2px);\n  font-weight: 600;\n  margin-bottom: calc(var(--spacing-unit) * 3);\n  color: var(--accent-color);\n  display: flex;\n  align-items: center;\n  gap: calc(var(--spacing-unit) * 2);\n}\n\n.analysis-title::before {\n  content: '\ud83d\udd0d';\n  font-size: 24px;\n}\n\n.analysis-text {\n  line-height: 1.9;\n  text-align: left;\n  color: var(--text-color);\n}\n\n.restart-section {\n  text-align: center;\n  margin-top: auto;\n  padding-top: calc(var(--spacing-unit) * 4);\n}\n\n\/* \u516c\u7528\u6a23\u5f0f *\/\n.hidden {\n  display: none !important;\n}\n\n\/* \u97ff\u61c9\u5f0f\u8a2d\u8a08 *\/\n@media (max-width: 768px) {\n  :root {\n    --font-size-base: 16px;\n    --font-size-h2: 30px;\n    --font-size-h3: 20px;\n    --chart-height: 320px;\n  }\n  \n  .gender-test-wrapper {\n    padding: calc(var(--spacing-unit) * 2);\n  }\n  \n  .welcome-page,\n  .quiz-page,\n  .result-page {\n    padding: calc(var(--spacing-unit) * 4);\n  }\n  \n  .feature-icons {\n    gap: calc(var(--spacing-unit) * 3);\n  }\n  \n  .feature-icon {\n    width: 80px;\n    height: 80px;\n    font-size: 30px;\n  }\n  \n  .btn {\n    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);\n    font-size: var(--font-size-sm);\n  }\n}\n\n\/* \u7121\u969c\u7919\u589e\u5f37 *\/\n@media (prefers-reduced-motion: reduce) {\n  * {\n    animation-duration: 0.01ms !important;\n    animation-iteration-count: 1 !important;\n    transition-duration: 0.01ms !important;\n  }\n}\n\n\/* \u5167\u5bb9\u53ef\u7528\u6027\u4fdd\u8b49 *\/\n.gender-test-wrapper[data-js-disabled] .quiz-page,\n.gender-test-wrapper[data-js-disabled] .result-page {\n  display: none;\n}\n\n.gender-test-wrapper[data-js-disabled] .welcome-page {\n  display: flex;\n}\n\n.gender-test-wrapper[data-js-disabled] .welcome-page::after {\n  content: \"\u6b64\u6e2c\u9a57\u9700\u8981\u555f\u7528 JavaScript \u624d\u80fd\u6b63\u5e38\u904b\u884c\u3002\u8acb\u958b\u555f JavaScript \u5f8c\u91cd\u65b0\u6574\u7406\u9801\u9762\u3002\";\n  display: block;\n  margin-top: calc(var(--spacing-unit) * 4);\n  padding: calc(var(--spacing-unit) * 3);\n  background: rgba(231, 76, 60, 0.1);\n  border-radius: var(--border-radius);\n  text-align: center;\n  position: relative;\n  z-index: 2;\n}\n<\/style>\n\n<!-- JavaScript \u884c\u70ba -->\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  \/\/ \u5fc3\u7406\u6027\u5225\u6e2c\u9a57\u61c9\u7528\u4e3b\u6a21\u7d44\n  const GenderTestApp = {\n    \/\/ \u6e2c\u9a57\u6578\u64da\n    questions: {\n      \"01\": {\n        text: \"\u526a\u6307\u7532\u7684\u6642\u5019\uff0c\u4f60\u4e00\u822c\u54ea\u96bb\u624b\u5148\u7d66\u54ea\u96bb\u624b\u526a\uff1f\",\n        options: [\n          { text: \"A\uff0e\u5de6\u624b\u7d66\u53f3\u624b\u526a\", next: \"02\" },\n          { text: \"B\uff0e\u53f3\u624b\u7d66\u5de6\u624b\u526a\", next: \"03\" }\n        ]\n      },\n      \"02\": {\n        text: \"\u559c\u6b61\u7528\u96fb\u52d5\u5243\u9b1a\u5200\u52dd\u904e\u5200\u7247\uff1f\",\n        options: [\n          { text: \"A\uff0e\u662f\", next: \"04\" },\n          { text: \"B\uff0e\u5426\", next: \"03\" }\n        ]\n      },\n      \"03\": {\n        text: \"\u4ed4\u7d30\u770b\u770b\u81ea\u5df1\u7684\u8863\u6ac3\uff0c\u88e1\u9762\u662f\u54ea\u7a2e\u60c5\u5f62\uff1f\",\n        options: [\n          { text: \"A\uff0e\u5f88\u591a\u4ef6\u8272\u5f69\u4e0d\u540c\u7684T\u6064\u6216\u8005\u896f\u886b\", next: \"05\" },\n          { text: \"B\uff0e\u53ea\u6709\u4e00\u5169\u500b\u984f\u8272\u7684\u5e7e\u4ef6\u800c\u5df2\", next: \"04\" }\n        ]\n      },\n      \"04\": {\n        text: \"\u5982\u679c\u6c92\u5225\u4eba\u5728\u5bb6\uff0c\u4f60\u89e3\u6c7a\u665a\u98ef\u7684\u65b9\u5f0f\u662f\uff1a\",\n        options: [\n          { text: \"A\uff0e\u51fa\u53bb\u5403\uff0c\u6216\u8005\u6ce1\u9eb5\uff0c\u6216\u8005\u53eb\u5916\u8ce3\", next: \"06\" },\n          { text: \"B\uff0e\u81ea\u5df1\u8cb7\u83dc\u4e0b\u5eda\u623f\", next: \"07\" }\n        ]\n      },\n      \"05\": {\n        text: \"\u4f60\u7684\u982d\u9aee\u662f\uff1a\",\n        options: [\n          { text: \"A\uff0e\u6700\u7c21\u55ae\u666e\u901a\u7684\u6a23\u5f0f\uff0c\u9ed1\u8272\", next: \"06\" },\n          { text: \"B\uff0e\u9177\u9177\u7684\u9aee\u578b\uff0c\u67d3\u8272\u4e86\uff0c\u6216\u8005\u5341\u5206\u5e0c\u671b\u67d3\u8272\", next: \"08\" }\n        ]\n      },\n      \"06\": {\n        text: \"\u96fb\u8996\u4e2d\u4e3b\u4eba\u516c\u8eab\u906d\u96aa\u5883\uff0c\u4f60\u8a8d\u70ba\u4ed6\u6703\u5982\u4f55\u812b\u96aa\uff1f\",\n        options: [\n          { text: \"A\uff0e\u81ea\u5df1\u7a81\u7136\u596e\u8d77\uff0c\u7d55\u5883\u6c42\u751f\uff0c\u6253\u6557\u6575\u4eba\", result: \"D\" },\n          { text: \"B\uff0e\u88ab\u6253\u5f97\u534a\u6b7b\u4e0d\u6d3b\uff0c\u53ef\u662f\u53c8\u88ab\u4eba\u6240\u6551\uff0c\u633a\u4e86\u904e\u4f86\", result: \"C\" },\n          { text: \"C\uff0e\u5916\u63f4\u7a81\u7136\u51fa\u73fe\uff0c\u6216\u8005\u662f\u81ea\u7136\u529b\u91cf\u5e72\u64fe\u4e86\u5c40\u9762\", next: \"08\" }\n        ]\n      },\n      \"07\": {\n        text: \"\u4f60\u662f\u5426\u6709\u4e0d\u53ea\u4e00\u689d\u540d\u724c\u9818\u5e36\uff0c\u800c\u4e14\u5927\u90fd\u662f\u81ea\u5df1\u8cb7\u7684\uff1f\",\n        options: [\n          { text: \"A\uff0e\u662f\", result: \"B\" },\n          { text: \"B\uff0e\u5426\", result: \"D\" }\n        ]\n      },\n      \"08\": {\n        text: \"\u4f60\u5c0d\u5f85\u7dca\u8eab\u8863\u670d\u7684\u614b\u5ea6\u662f\uff1a\",\n        options: [\n          { text: \"A\uff0e\u4e0d\u559c\u6b61\u4e5f\u4e0d\u60f3\u7a7f\", result: \"D\" },\n          { text: \"B\uff0e\u7d93\u5e38\u7a7f\u7dca\u8eabT\u6064\u6216\u8005\u6bdb\u8863\u4e4b\u985e\", result: \"A\" }\n        ]\n      }\n    },\n\n    \/\/ \u7d50\u679c\u89e3\u6790\u6578\u64da\n    results: {\n      \"A\": {\n        title: \"\u985e\u578bA\u2014\u9670\u578b\",\n        description: \"\u4f60\u7684\u5927\u8166\u6027\u5225\u548c\u751f\u7406\u6027\u5225\u8d70\u5411\u4e86\u76f8\u53cd\u7684\u65b9\u5411\uff0c\u751a\u81f3\u6709\u6642\u5019\u6703\u88ab\u4eba\u8a8d\u70ba\u5f88\u5973\u6c23\u3002\u4f60\u559c\u6b61\u7528\u83ef\u9e97\u7684\u670d\u98fe\u548c\u9996\u98fe\u4f86\u8868\u73fe\u500b\u6027\uff0c\u4e26\u4e14\u76f8\u7576\u5805\u6301\uff0c\u53ea\u8981\u4f60\u4e0d\u89ba\u5f97\u9019\u4e9b\u884c\u70ba\u59a8\u7919\u5230\u5225\u4eba\u751f\u6d3b\uff0c\u5c31\u6703\u96a8\u5fc3\u6240\u6b32\u5730\u904e\u65e5\u5b50\u3002\u901b\u8857\u548c\u770b\u6642\u5c1a\u96dc\u8a8c\u90fd\u662f\u4f60\u6253\u767c\u6642\u9593\u7684\u65b9\u6cd5\uff0c\u5f88\u591a\u60c5\u6cc1\u4e0b\uff0c\u9019\u500b\u985e\u578b\u7684\u4eba\u90fd\u6709\u76f8\u7576\u9ad8\u7684\u85dd\u8853\u5929\u5206\uff0c\u4f46\u4e5f\u53ef\u80fd\u9577\u671f\u4e0d\u5a5a\u3002\u4f60\u7684\u611b\u597d\u53ef\u80fd\u6709\u4e9b\u4e0d\u540c\u65bc\u4e00\u822c\u7537\u751f\uff0c\u5973\u5b69\u5b50\u6709\u6642\u5019\u4e5f\u6703\u62ff\u4f60\u7576\u6210\u59d0\u59b9\u4e00\u822c\u3002\",\n        traits: {\n          \u9670\u67d4\u6c23\u8cea: 90,\n          \u85dd\u8853\u5929\u5206: 85,\n          \u6642\u5c1a\u54c1\u5473: 95,\n          \u5275\u610f\u8868\u9054: 88,\n          \u500b\u6027\u5c55\u73fe: 92,\n          \u7406\u6027\u908f\u8f2f: 45\n        }\n      },\n      \"B\": {\n        title: \"\u985e\u578bB\u2014\u504f\u5973\u6027\u578b\",\n        description: \"\u4f60\u9aa8\u5b50\u88e1\u5f88\u6709\u4e9b\u9670\u67d4\u6c23\u8cea\uff0c\u8aaa\u8a71\u5f6c\u5f6c\u6709\u79ae\uff0c\u6ce8\u91cd\u5100\u8868\uff0c\u5c0d\u4f60\u4f86\u8aaa\uff0c\u751f\u6d3b\u7684\u6a94\u6b21\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u4ef6\u4e8b\u60c5\u3002\u53ea\u8981\u4f60\u4e0b\u5b9a\u6c7a\u5fc3\u505a\u4e00\u4ef6\u4e8b\u60c5\uff0c\u5dee\u4e0d\u591a\u90fd\u6703\u7d42\u6709\u6240\u6210\uff0c\u6240\u4ee5\u9019\u500b\u985e\u578b\u7684\u4eba\u5927\u591a\u6578\u64c1\u6709\u9817\u9ad8\u7684\u5b78\u6b77\u548c\u62b1\u8ca0\u3002\u5973\u6027\u5316\u7684\u5927\u8166\u6027\u5225\u5c0d\u4f60\u4f86\u8aaa\u7121\u8ad6\u5728\u751f\u6d3b\u4e0a\u9084\u662f\u4e8b\u696d\u4e0a\u90fd\u9817\u6709\u52a9\u529b\uff0c\u9019\u7a2e\u6c23\u8cea\u5728\u5973\u751f\u773c\u88e1\u770b\u4f86\u662f\u96e3\u5f97\u7684\u6eab\u67d4\u3002\u5927\u8166\u4e2d\u5973\u6027\u6027\u5225\u504f\u91cd\u7684\u4eba\u57fa\u672c\u6c92\u6709\u6210\u70ba\u9818\u5c0e\u4eba\u7269\u7684\u5fc3\u9858\uff0c\u8b93\u5225\u4eba\u7fa8\u6155\u81ea\u5df1\u7684\u751f\u6d3b\u5c31\u597d\u4e86\u3002\",\n        traits: {\n          \u6eab\u67d4\u6c23\u8cea: 85,\n          \u54c1\u5473\u683c\u8abf: 90,\n          \u5b78\u696d\u6210\u5c31: 88,\n          \u793e\u4ea4\u9b45\u529b: 85,\n          \u4e0a\u9032\u5fc3: 80,\n          \u9818\u5c0e\u617e\u671b: 40\n        }\n      },\n      \"C\": {\n        title: \"\u985e\u578bC\u2014\u534a\u5973\u6027\u578b\",\n        description: \"\u4f60\u548c\u534a\u7537\u6027\u578b\u7684\u5973\u751f\u5c6c\u65bc\u540c\u4e00\u500b\u985e\u578b\uff0c\u4f60\u7684\u5927\u8166\u6027\u5225\u4ee5\u7537\u6027\u6027\u5225\u70ba\u4e3b\uff0c\u593e\u96dc\u5973\u6027\u7684\u67d4\u97cc\u3002\u4f60\u76f8\u7576\u64c5\u9577\u8655\u7406\u4eba\u969b\u95dc\u4fc2\uff0c\u624b\u8155\u5713\u6ed1\u4e14\u61c2\u5f97\u8b8a\u901a\u3002\u548c\u4f60\u5171\u4e8b\u662f\u4ef6\u76f8\u7576\u6109\u5feb\u7684\u4e8b\u60c5\uff0c\u800c\u8eab\u4e0a\u6709\u7a2e\u6b50\u6d32\u9a0e\u58eb\u7684\u512a\u96c5\u548c\u98a8\u5ea6\uff0c\u4e5f\u8b93\u4f60\u5728\u7570\u6027\u4e2d\u5927\u6709\u4eba\u7de3\u3002\u5176\u5be6\u4f60\u5fc3\u4e2d\u9084\u5b58\u5728\u4e00\u7a2e\u4f9d\u8cf4\uff0c\u7576\u5916\u754c\u58d3\u529b\u904e\u5927\u7684\u6642\u5019\uff0c\u4f60\u5c31\u6703\u8b8a\u5f97\u50cf\u5b69\u5b50\u4e00\u6a23\u5c0b\u6c42\u5e87\u8b77\u548c\u95dc\u61f7\u3002\u9069\u5408\u65bc\u4e8b\u696d\u8207\u5bb6\u5ead\u4e4b\u9593\u7684\u7537\u6027\u975e\u4f60\u83ab\u5c6c\u3002\",\n        traits: {\n          \u4eba\u969b\u6280\u5de7: 92,\n          \u512a\u96c5\u98a8\u5ea6: 85,\n          \u5de5\u4f5c\u80fd\u529b: 85,\n          \u5bb6\u5ead\u95dc\u61f7: 80,\n          \u60c5\u7dd2\u5e73\u8861: 78,\n          \u5805\u97cc\u6027\u683c: 70\n        }\n      },\n      \"D\": {\n        title: \"\u985e\u578bD\u2014\u7537\u6027\u578b\",\n        description: \"\u4f60\u7684\u5927\u8166\u69cb\u9020\u53ef\u80fd\u4f86\u81ea\u706b\u661f\uff0c\u548c\u7d14\u5973\u6027\u6c23\u8cea\u7684\u5973\u5b69\u6700\u70ba\u822c\u914d\uff0c\u4e5f\u6700\u5bb9\u6613\u51fa\u554f\u984c\uff1a\u4f60\u5011\u7684\u5927\u8166\u6839\u672c\u4f86\u81ea\u4e0d\u540c\u7684\u661f\u7403\uff0c\u4e0d\u5b58\u5728\u4ea4\u6d41\u7684\u53ef\u80fd\u3002\u7d14\u7537\u6027\u7684\u4ee3\u8868\u4eba\u7269\u5c31\u662f\u856d\u5cf0\uff0c\u9019\u7a2e\u5be7\u6298\u4e0d\u5f4e\u7684\u7d14\u7cb9\u6027\u683c\u4e5f\u5c31\u6ce8\u5b9a\u4e86\u4f60\u53ef\u80fd\u6703\u5728\u793e\u6703\u751f\u6d3b\u4e0a\u9047\u5230\u8a31\u591a\u6c23\u60b6\u7684\u5730\u65b9\u3002\u4f60\u7684\u751f\u6d3b\u5167\u5bb9\u6bd4\u8f03\u7c21\u55ae\uff0c\u540c\u6642\u4e0d\u80fd\u7f3a\u4e4f\u5fd7\u540c\u9053\u5408\u7684\u670b\u53cb\uff0c\u7576\u7136\uff0c\u4f60\u8eab\u4e0a\u7368\u7279\u7684\u9738\u6c23\u4e5f\u610f\u5473\u8457\u5f88\u96e3\u88ab\u4eba\u6240\u63a7\u5236\u3002\u4f60\u8eab\u4e0a\u5177\u6709\u512a\u79c0\u9818\u5c0e\u8005\u7684\u8000\u773c\u5149\u8292\uff0c\u53ea\u8981\u9858\u610f\u4e26\u4e14\u597d\u597d\u7d93\u71df\uff0c\u5b8c\u5168\u53ef\u4ee5\u6210\u70ba\u51fa\u8272\u7684\u9818\u5c0e\u4eba\u7269\u3002\",\n        traits: {\n          \u9818\u5c0e\u529b: 95,\n          \u5805\u6bc5\u6027\u683c: 90,\n          \u7406\u6027\u601d\u8003: 85,\n          \u81ea\u4e3b\u610f\u8b58: 92,\n          \u9738\u6c23\u9b45\u529b: 88,\n          \u60c5\u611f\u8868\u9054: 35\n        }\n      }\n    },\n\n    \/\/ \u7576\u524d\u72c0\u614b\n    state: {\n      currentQuestion: null,\n      answers: {},\n      history: [],\n      chart: null,\n      isTransitioning: false\n    },\n\n    \/\/ \u521d\u59cb\u5316\u51fd\u6578\n    init() {\n      this.bindEvents();\n      this.enableAccessibility();\n      this.detectAndHandleJavaScript();\n    },\n\n    \/\/ \u6aa2\u6e2c\u4e26\u8655\u7406 JavaScript \u53ef\u7528\u6027\n    detectAndHandleJavaScript() {\n      const wrapper = document.querySelector('[data-test-app]');\n      if (wrapper) {\n        wrapper.removeAttribute('data-js-disabled');\n      }\n    },\n\n    \/\/ \u7d81\u5b9a\u4e8b\u4ef6\n    bindEvents() {\n      \/\/ \u4f7f\u7528\u4e8b\u4ef6\u59d4\u8a17\u8655\u7406\u6240\u6709\u6309\u9215\u9ede\u64ca\n      document.addEventListener('click', (e) => {\n        const target = e.target;\n        \n        \/\/ \u958b\u59cb\u6e2c\u9a57\u6309\u9215\n        if (target.matches('[data-start-test]')) {\n          this.startTest();\n        }\n        \n        \/\/ \u91cd\u65b0\u6e2c\u9a57\u6309\u9215\n        else if (target.matches('[data-restart-test]')) {\n          this.restartTest();\n        }\n        \n        \/\/ \u4e0a\u4e00\u984c\u6309\u9215\n        else if (target.matches('[data-prev-btn]')) {\n          this.goToPreviousQuestion();\n        }\n        \n        \/\/ \u9078\u9805\u6309\u9215\n        else if (target.matches('[data-option]') || target.closest('[data-option]')) {\n          if (!this.state.isTransitioning) {\n            const optionButton = target.matches('[data-option]') ? target : target.closest('[data-option]');\n            this.selectOption(optionButton);\n          }\n        }\n      });\n\n      \/\/ \u9375\u76e4\u5c0e\u822a\u652f\u63f4\n      document.addEventListener('keydown', (e) => {\n        switch (e.key) {\n          case 'Escape':\n            this.handleEscapeKey();\n            break;\n          case 'Enter':\n          case ' ':\n            if (e.target.matches('[data-option]')) {\n              e.preventDefault();\n              this.selectOption(e.target);\n            }\n            break;\n        }\n      });\n    },\n\n    \/\/ \u53ef\u8a2a\u554f\u6027\u589e\u5f37\n    enableAccessibility() {\n      \/\/ \u70ba\u52d5\u614b\u5167\u5bb9\u6dfb\u52a0 live region\n      const liveRegion = document.createElement('div');\n      liveRegion.setAttribute('aria-live', 'polite');\n      liveRegion.setAttribute('aria-atomic', 'true');\n      liveRegion.className = 'hidden';\n      liveRegion.id = 'test-live-region';\n      document.body.appendChild(liveRegion);\n    },\n\n    \/\/ \u901a\u77e5\u87a2\u5e55\u95b1\u8b80\u5668\n    announceToScreenReader(message) {\n      const liveRegion = document.getElementById('test-live-region');\n      if (liveRegion) {\n        liveRegion.textContent = message;\n      }\n    },\n\n    \/\/ \u958b\u59cb\u6e2c\u9a57\n    startTest() {\n      this.showPage('quiz');\n      this.currentQuestion = \"01\";\n      this.displayQuestion(\"01\");\n      this.scrollToTop();\n      this.announceToScreenReader('\u6e2c\u9a57\u958b\u59cb');\n    },\n\n    \/\/ \u986f\u793a\u554f\u984c\n    displayQuestion(questionId) {\n      const question = this.questions[questionId];\n      if (!question) return;\n\n      const questionTitle = document.querySelector('[data-question-title]');\n      const optionsContainer = document.querySelector('[data-options-container]');\n      const questionCounter = document.querySelector('[data-question-counter]');\n      const progressFill = document.querySelector('[data-progress-fill]');\n      const prevBtn = document.querySelector('[data-prev-btn]');\n\n      \/\/ \u66f4\u65b0\u554f\u984c\u6a19\u984c\n      if (questionTitle) {\n        questionTitle.textContent = question.text;\n      }\n\n      \/\/ \u66f4\u65b0\u9078\u9805\n      if (optionsContainer) {\n        optionsContainer.innerHTML = question.options.map((option, idx) => `\n          <button class=\"option-button\" data-option \n                  data-next=\"${option.next || ''}\" \n                  data-result=\"${option.result || ''}\"\n                  role=\"radio\" aria-checked=\"false\" tabindex=\"${idx === 0 ? '0' : '-1'}\">\n            ${option.text}\n          <\/button>\n        `).join('');\n      }\n\n      \/\/ \u66f4\u65b0\u9032\u5ea6\uff08\u4f30\u7b97\u9032\u5ea6\uff09\n      const progress = Math.min((this.state.history.length \/ 8) * 100, 100);\n      if (questionCounter) {\n        questionCounter.textContent = `\u554f\u984c\u9032\u5ea6 ${Math.round(progress)}%`;\n      }\n\n      if (progressFill) {\n        progressFill.style.width = `${progress}%`;\n        progressFill.parentElement.setAttribute('aria-valuenow', progress);\n      }\n\n      \/\/ \u63a7\u5236\u4e0a\u4e00\u984c\u6309\u9215\n      if (prevBtn) {\n        prevBtn.classList.toggle('hidden', this.state.history.length === 0);\n      }\n\n      \/\/ \u6e05\u9664\u9078\u64c7\u72c0\u614b\n      this.clearOptionSelection();\n      \n      \/\/ \u901a\u77e5\u87a2\u5e55\u95b1\u8b80\u5668\n      this.announceToScreenReader(`\u554f\u984c\uff1a${question.text}`);\n    },\n\n    \/\/ \u9078\u64c7\u9078\u9805\n    selectOption(selectedOption) {\n      this.state.isTransitioning = true;\n      \n      \/\/ \u66f4\u65b0 UI\n      this.updateOptionSelection(selectedOption);\n      \n      \/\/ \u4fdd\u5b58\u7b54\u6848\n      this.state.answers[this.state.currentQuestion] = selectedOption.textContent;\n      this.state.history.push(this.state.currentQuestion);\n      \n      \/\/ \u5ef6\u9072\u9032\u5165\u4e0b\u4e00\u984c\u6216\u7d50\u679c\u9801\n      setTimeout(() => {\n        const next = selectedOption.dataset.next;\n        const result = selectedOption.dataset.result;\n        \n        if (result) {\n          this.showResults(result);\n        } else if (next) {\n          this.state.currentQuestion = next;\n          this.displayQuestion(next);\n        }\n        \n        this.state.isTransitioning = false;\n        this.scrollToTop();\n      }, 400);\n    },\n\n    \/\/ \u66f4\u65b0\u9078\u9805\u9078\u64c7\u72c0\u614b\n    updateOptionSelection(selectedOption) {\n      const allOptions = document.querySelectorAll('[data-option]');\n      \n      allOptions.forEach(option => {\n        const isSelected = option === selectedOption;\n        option.classList.toggle('selected', isSelected);\n        option.setAttribute('aria-checked', isSelected);\n        option.setAttribute('tabindex', isSelected ? '0' : '-1');\n      });\n      \n      selectedOption.focus();\n    },\n\n    \/\/ \u6e05\u9664\u9078\u9805\u9078\u64c7\u72c0\u614b\n    clearOptionSelection() {\n      const allOptions = document.querySelectorAll('[data-option]');\n      allOptions.forEach((option, idx) => {\n        option.classList.remove('selected');\n        option.setAttribute('aria-checked', 'false');\n        option.setAttribute('tabindex', idx === 0 ? '0' : '-1');\n      });\n    },\n\n    \/\/ \u4e0a\u4e00\u984c\n    goToPreviousQuestion() {\n      if (this.state.history.length > 0) {\n        const previousQuestion = this.state.history.pop();\n        delete this.state.answers[this.state.currentQuestion];\n        this.state.currentQuestion = previousQuestion;\n        this.displayQuestion(previousQuestion);\n        this.scrollToTop();\n      }\n    },\n\n    \/\/ \u986f\u793a\u7d50\u679c\n    showResults(resultType) {\n      this.showPage('result');\n      this.calculateAndDisplayResults(resultType);\n      this.scrollToTop();\n      this.announceToScreenReader('\u6e2c\u9a57\u5b8c\u6210\uff0c\u6b63\u5728\u986f\u793a\u7d50\u679c\u5206\u6790');\n    },\n\n    \/\/ \u8a08\u7b97\u4e26\u986f\u793a\u7d50\u679c\n    calculateAndDisplayResults(resultType) {\n      const result = this.results[resultType];\n      \n      if (!result) {\n        console.error('\u7121\u6cd5\u627e\u5230\u5c0d\u61c9\u7684\u7d50\u679c');\n        return;\n      }\n\n      \/\/ \u66f4\u65b0\u7d50\u679c\u6a19\u984c\n      const resultTitle = document.querySelector('[data-result-title]');\n      if (resultTitle) {\n        resultTitle.textContent = result.title;\n      }\n\n      \/\/ \u66f4\u65b0\u5206\u6790\u6587\u5b57\n      const analysisText = document.querySelector('[data-analysis-text]');\n      if (analysisText) {\n        analysisText.textContent = result.description;\n      }\n      \n      \/\/ \u5275\u5efa\u96f7\u9054\u5716\n      this.createRadarChart(result.traits);\n    },\n\n    \/\/ \u5275\u5efa\u96f7\u9054\u5716\n    createRadarChart(traits) {\n      const ctx = document.getElementById('gender-chart');\n      if (!ctx) return;\n\n      \/\/ \u92b7\u6bc0\u4e4b\u524d\u7684\u5716\u8868\n      if (this.state.chart) {\n        this.state.chart.destroy();\n      }\n\n      const labels = Object.keys(traits);\n      const values = Object.values(traits);\n\n      this.state.chart = new Chart(ctx, {\n        type: 'radar',\n        data: {\n          labels: labels,\n          datasets: [{\n            label: '\u5fc3\u7406\u6027\u5225\u7279\u8cea',\n            data: values,\n            borderColor: '#e74c3c',\n            backgroundColor: 'rgba(231, 76, 60, 0.15)',\n            borderWidth: 3,\n            pointBackgroundColor: '#e74c3c',\n            pointBorderColor: '#fff',\n            pointBorderWidth: 2,\n            pointRadius: 6,\n            pointHoverRadius: 8,\n            tension: 0.4\n          }]\n        },\n        options: {\n          responsive: true,\n          maintainAspectRatio: false,\n          scales: {\n            r: {\n              angleLines: {\n                display: true,\n                color: '#e0e0e0',\n                lineWidth: 1\n              },\n              grid: {\n                color: '#f5f5f5',\n                lineWidth: 1\n              },\n              pointLabels: {\n                font: {\n                  size: 18,\n                  family: `-apple-system, BlinkMacSystemFont, '\u5fae\u8edf\u6b63\u9ed1\u9ad4', 'Microsoft JhengHei', sans-serif`\n                },\n                color: '#2c3e50'\n              },\n              suggestedMin: 0,\n              suggestedMax: 100,\n              ticks: {\n                display: true,\n                stepSize: 20,\n                color: '#95a5a6',\n                backdropColor: 'transparent'\n              }\n            }\n          },\n          plugins: {\n            legend: {\n              display: false\n            },\n            tooltip: {\n              backgroundColor: 'rgba(0, 0, 0, 0.85)',\n              titleColor: '#fff',\n              bodyColor: '#fff',\n              borderColor: '#e74c3c',\n              borderWidth: 1,\n              titleFont: {\n                size: 18,\n                weight: 'bold'\n              },\n              bodyFont: {\n                size: 16\n              },\n              padding: 12,\n              callbacks: {\n                label: (context) => {\n                  return `${context.label}: ${context.parsed.r}%`;\n                }\n              }\n            }\n          },\n          elements: {\n            line: {\n              borderWidth: 2\n            }\n          },\n          animation: {\n            duration: 1000,\n            easing: 'easeOutQuart'\n          }\n        }\n      });\n    },\n\n    \/\/ \u91cd\u65b0\u958b\u59cb\u6e2c\u9a57\n    restartTest() {\n      this.state.currentQuestion = null;\n      this.state.answers = {};\n      this.state.history = [];\n      this.showPage('welcome');\n      this.scrollToTop();\n      this.announceToScreenReader('\u6e2c\u9a57\u5df2\u91cd\u7f6e\uff0c\u8fd4\u56de\u9996\u9801');\n    },\n\n    \/\/ \u986f\u793a\u9801\u9762\n    showPage(page) {\n      const pages = document.querySelectorAll('[data-page]');\n      pages.forEach(p => {\n        const isTarget = p.dataset.page === page;\n        p.classList.toggle('hidden', !isTarget);\n        p.setAttribute('aria-hidden', !isTarget);\n      });\n    },\n\n    \/\/ \u6efe\u52d5\u5230\u9802\u90e8\n    scrollToTop() {\n      const wrapper = document.querySelector('[data-test-app]');\n      if (wrapper) {\n        wrapper.scrollIntoView({ \n          behavior: 'smooth', \n          block: 'start' \n        });\n      }\n    },\n\n    \/\/ \u8655\u7406 Escape \u9375\n    handleEscapeKey() {\n      \/\/ \u53ef\u4ee5\u6dfb\u52a0\u8fd4\u56de\u6216\u53d6\u6d88\u7684\u908f\u8f2f\n      console.log('Escape key pressed');\n    }\n  };\n\n  \/\/ \u8f85\u52a9\u51fd\u6578\uff1a\u9632\u6296\u8655\u7406\n  const debounce = (func, wait) => {\n    let timeout;\n    return function executedFunction(...args) {\n      const later = () => {\n        clearTimeout(timeout);\n        func(...args);\n      };\n      clearTimeout(timeout);\n      timeout = setTimeout(later, wait);\n    };\n  };\n\n  \/\/ \u8f85\u52a9\u51fd\u6578\uff1a\u7bc0\u6d41\u8655\u7406\n  const throttle = (func, limit) => {\n    let lastFunc;\n    let lastRan;\n    return function(...args) {\n      if (!lastRan) {\n        func.apply(this, args);\n        lastRan = Date.now();\n      } else {\n        clearTimeout(lastFunc);\n        lastFunc = setTimeout(() => {\n          if ((Date.now() - lastRan) >= limit) {\n            func.apply(this, args);\n            lastRan = Date.now();\n          }\n        }, limit - (Date.now() - lastRan));\n      }\n    };\n  };\n\n  \/\/ \u7576 DOM \u8f09\u5165\u5b8c\u6210\u5f8c\u521d\u59cb\u5316\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', () => {\n      GenderTestApp.init();\n    });\n  } else {\n    GenderTestApp.init();\n  }\n\n  \/\/ \u5c0e\u51fa\u7d66\u5168\u5c40\u4f7f\u7528\uff08\u5982\u679c\u9700\u8981\uff09\n  window.GenderTestApp = GenderTestApp;\n})();\n<\/script>\n\n\n\n<p class=\"has-text-align-right\"><a href=\"https:\/\/xinliceyan.org\/psychological-gender-test-for-female\">\u5fc3\u7406\u6027\u522b\uff08\u5973\u6027\u7bc7\uff09\u7ebf\u4e0a\u514d\u8d39\u6d4b\u9a8c<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fxinliceyan.org%2Fpsychological-gender-test-for-male\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fxinliceyan.org%2Fpsychological-gender-test-for-male\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u5e76\u4e0d\u662f\u8bf4\u5f88\u591a\u7537\u4eba\u90fd\u662f\u300c\u5a18\u5a18\u8154\u300d\uff0c\u800c\u662f\u56e0\u4e3a\u4ed6\u4eec\u5e76\u4e0d\u592a\u5728\u610f\u81ea\u5df1\u7684\u5185\u5fc3\u4e16\u754c\uff0c\u6240\u4ee5\u5ffd\u7565\u4e86\u8fd9\u4e9b\u4e8b\u5b9e\u3002\u4ece\u7b2c\u4e00\u9898\u5f00\u59cb\uff0c\u9009\u62e9\u7b26\u5408\u4f60\u7684\u9009\u9879\uff0c\u6839\u636e\u6307\u793a\u524d\u8fdb\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-2649","post","type-post","status-publish","format-standard","hentry","category-personality"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2649","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=2649"}],"version-history":[{"count":7,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2649\/revisions"}],"predecessor-version":[{"id":10482,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2649\/revisions\/10482"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}