{"id":2647,"date":"2023-10-17T09:44:51","date_gmt":"2023-10-17T01:44:51","guid":{"rendered":"https:\/\/bookmark.tw\/?p=2647"},"modified":"2025-05-11T18:12:59","modified_gmt":"2025-05-11T10:12:59","slug":"psychological-gender-test-for-female","status":"publish","type":"post","link":"https:\/\/xinliceyan.org\/zh\/psychological-gender-test-for-female","title":{"rendered":"\u5fc3\u7406\u6027\u522b\uff08\u5973\u6027\u7bc7\uff09\u7ebf\u4e0a\u514d\u8d39\u6d4b\u9a8c"},"content":{"rendered":"<!-- \u5fc3\u7406\u6027\u5225\u6e2c\u9a57\uff08\u5973\u6027\u7bc7\uff09 -->\n\n<!-- HTML \u7d50\u69cb -->\n<div class=\"female-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\u5973\u6027\u7bc7\uff09<\/h2>\n        <p class=\"welcome-subtitle\">\u63a2\u7d22\u4f60\u5185\u5fc3\u7684\u6027\u522b\u7279\u8d28\uff0c\u53d1\u73b0\u771f\u5b9e\u7684\u81ea\u5df1<\/p>\n      <\/header>\n      \n      <div class=\"feature-icons\" role=\"img\" aria-label=\"\u7279\u8272\u56fe\u793a\">\n        <div class=\"feature-icon\" aria-label=\"\u6027\u683c\u5206\u6790\">\ud83d\udc81\u200d\u2640\ufe0f<\/div>\n        <div class=\"feature-icon\" aria-label=\"\u5fc3\u7406\u6d4b\u8bd5\">\ud83d\udd2e<\/div>\n        <div class=\"feature-icon\" aria-label=\"\u81ea\u6211\u53d1\u73b0\">\u2728<\/div>\n      <\/div>\n      \n      <div class=\"welcome-description\">\n        <p>\u4e16\u754c\u4e0a\u6709\u4e24\u79cd\u4eba\uff1a\u7537\u4eba\u548c\u5973\u4eba\u3002\u6839\u636e\u89c6\u89d2\u4e0d\u540c\uff0c\u6027\u522b\u53ef\u4ee5\u57286\u4e2a\u4e0d\u540c\u5c42\u6b21\u4e2d\u8fdb\u884c\u5212\u5206\uff0c \u5b83\u4eec\u5206\u522b\u662f\uff1a\u57fa\u56e0\u6027\u522b\u3001\u67d3\u8272\u4f53\u6027\u522b\u3001\u6027\u817a\u6027\u522b\u3001\u751f\u6b96\u5668\u6027\u522b\u3001\u5fc3\u7406\u6027\u522b\u548c\u793e\u4f1a\u6027\u522b\u3002<\/p>\n        <p>\u7537\u5973\u4e24\u6027\u5728\u5fc3\u7406\u5b66\u4e0a\u7684\u5dee\u522b\u662f\u591a\u6837\u7684\uff0c\u6709\u4eba\u8ba4\u4e3a\u7537\u5973\u5b58\u5728\u7684\u5fc3\u7406\u7279\u70b9\u5dee\u522b\u670950\u79cd\u4ee5\u4e0a\u3002 \u6700\u660e\u663e\u7684\u662f\u5728\u8bed\u8a00\u8868\u8fbe\u80fd\u529b\u3001\u5e73\u8861\u89c9\u3001\u6570\u5b66\u80fd\u529b\u7b49\u65b9\u9762\u3002<\/p>\n        <p>\u867d\u7136\u7537\u5973\u6027\u522b\u5fc3\u7406\u5728\u67d0\u4e9b\u65b9\u9762\u6709\u8fd9\u6837\u90a3\u6837\u7684\u5dee\u5f02\uff0c\u4f46\u53cd\u6620\u5728\u4e2a\u522b\u4eba\u8eab\u4e0a\u4e0d\u80fd\u4e00\u6982\u800c\u8bba\u3002 \u8fd9\u662f\u56e0\u4e3a\u9020\u6210\u7537\u5973\u6027\u522b\u5fc3\u7406\u5dee\u5f02\u7684\u539f\u56e0\u6bd4\u8f83\u590d\u6742\uff0c\u4e00\u65b9\u9762\u4e0e\u751f\u7269\u56e0\u7d20\u7684\u4f5c\u7528\u6709\u5173\uff0c \u4f46\u540e\u5929\u73af\u5883\u56e0\u7d20\u7684\u6f5c\u79fb\u9ed8\u5316\u548c\u4eba\u7684\u6d3b\u52a8\u7684\u5f71\u54cd\u4e5f\u662f\u4e0d\u53ef\u4f4e\u4f30\u7684\u3002<\/p>\n        <p>\u4f60\u662f\u6e29\u5a49\u7684\u5c0f\u5973\u751f\u8fd8\u662f\u4e2a\u300c\u5047\u5c0f\u5b50\u300d\u5462\uff1f\u4ece\u7b2c\u4e00\u9898\u5f00\u59cb\uff0c\u9009\u62e9\u7b26\u5408\u4f60\u7684\u9009\u9879\uff0c \u6839\u636e\u6307\u793a\u524d\u8fdb\uff0c\u5c31\u53ef\u4ee5\u627e\u5230\u7b54\u6848\u3002<\/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: #e84393;\n  --secondary-color: #ec8ba1;\n  --accent-color: #d6307b;\n  --success-color: #55a17f;\n  --bg-color: #fdf2f5;\n  --text-color: #2c3e50;\n  --text-light: #7f8c8d;\n  --border-color: #f5c6d9;\n  --card-shadow: 0 4px 20px rgba(232, 67, 147, 0.1);\n  --card-shadow-hover: 0 8px 30px rgba(232, 67, 147, 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.female-test-wrapper * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n\n\/* \u4e3b\u5bb9\u5668 *\/\n.female-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, #e84393 0%, #ec8ba1 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.1) 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.15);\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(255,255,255,0.25);\n  box-shadow: 0 6px 25px rgba(232, 67, 147, 0.2);\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, #e84393, #d6307b);\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, #d6307b, #e84393);\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(232, 67, 147, 0.3);\n}\n\n.btn-secondary {\n  background: white;\n  color: var(--primary-color);\n  border: 2px solid var(--primary-color);\n}\n\n.btn-secondary:hover {\n  background: var(--primary-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(--primary-color);\n  font-size: var(--font-size-base);\n}\n\n.progress-bar {\n  height: 12px;\n  background: #f8f0e3;\n  border-radius: 6px;\n  overflow: hidden;\n  position: relative;\n}\n\n.progress-fill {\n  height: 100%;\n  background: linear-gradient(90deg, var(--primary-color), var(--accent-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: #fdf2f5;\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(232, 67, 147, 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(232, 67, 147, 0.05), transparent);\n  transition: var(--transition);\n}\n\n.option-button:hover {\n  background: var(--primary-color);\n  color: white;\n  transform: translateX(4px);\n  box-shadow: 0 4px 12px rgba(232, 67, 147, 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(--primary-color), var(--accent-color));\n  border-color: var(--primary-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(--primary-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, #fdf2f5 0%, #ffe6ed 100%);\n  border-radius: var(--border-radius);\n  padding: calc(var(--spacing-unit) * 3);\n  border: 1px solid rgba(232, 67, 147, 0.05);\n}\n\n#gender-chart {\n  max-width: 100%;\n  max-height: var(--chart-height);\n}\n\n.result-analysis {\n  background: #fdf9fb;\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(232, 67, 147, 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(--primary-color);\n  display: flex;\n  align-items: center;\n  gap: calc(var(--spacing-unit) * 2);\n}\n\n.analysis-title::before {\n  content: '\ud83d\udc81\u200d\u2640\ufe0f';\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  .female-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.female-test-wrapper[data-js-disabled] .quiz-page,\n.female-test-wrapper[data-js-disabled] .result-page {\n  display: none;\n}\n\n.female-test-wrapper[data-js-disabled] .welcome-page {\n  display: flex;\n}\n\n.female-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(232, 67, 147, 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 FemaleGenderTestApp = {\n    \/\/ \u6e2c\u9a57\u6578\u64da\n    questions: {\n      \"01\": {\n        text: \"\u64f0\u4e7e\u6bdb\u5dfe\u7684\u6642\u5019\uff0c\u4f60\u7fd2\u6163\u54ea\u96bb\u624b\u5728\u524d\uff0c\u54ea\u96bb\u624b\u5728\u5f8c\uff1f\",\n        options: [\n          { text: \"A\uff0e\u5de6\u624b\u5728\u524d\uff0c\u53f3\u624b\u5728\u5f8c\", next: \"02\" },\n          { text: \"B\uff0e\u53f3\u624b\u5728\u524d\uff0c\u5de6\u624b\u5728\u5f8c\", next: \"03\" }\n        ]\n      },\n      \"02\": {\n        text: \"\u662f\u5426\u53f3\u8173\u6bd4\u5de6\u8173\u7565\u5927\u4e00\u4e9b\uff1f\",\n        options: [\n          { text: \"A\uff0e\u662f\", next: \"05\" },\n          { text: \"B\uff0e\u5426\", next: \"04\" }\n        ]\n      },\n      \"03\": {\n        text: \"\u4f60\u6703\u56e0\u70ba\u4e00\u500b\u5225\u7dfb\u7684\u5305\u88dd\uff0c\u8cb7\u4e0b\u4e00\u5f35\u6839\u672c\u4e0d\u77e5\u9053\u5167\u5bb9\u7684DVD\u5149\u789f\u55ce\uff1f\",\n        options: [\n          { text: \"A\uff0e\u662f\", next: \"04\" },\n          { text: \"B\uff0e\u5426\", next: \"05\" }\n        ]\n      },\n      \"04\": {\n        text: \"\u4e0a\u5b78\u7684\u6642\u5019\uff0c\u4f60\u7684\u6578\u5b78\u6210\u7e3e\u7e3d\u662f\u8d85\u904e\u8a9e\u6587\u6210\u7e3e\u55ce\uff1f\",\n        options: [\n          { text: \"A\uff0e\u662f\", next: \"06\" },\n          { text: \"B\uff0e\u5426\", next: \"07\" }\n        ]\n      },\n      \"05\": {\n        text: \"\u8b80\u5c0f\u8aaa\u7684\u6642\u5019\uff0c\u5982\u679c\u51fa\u73fe\u4e00\u500b\u8eab\u7a7f\u767d\u8863\u9762\u5bb9\u4fca\u79c0\u7684\u7537\u5b50\uff0c\u4f60\u8a8d\u70ba\u4ed6\u662f\u4ec0\u9ebc\u89d2\u8272\uff1f\",\n        options: [\n          { text: \"A\uff0e\u7537\u4e3b\u89d2\u7121\u7591\", next: \"07\" },\n          { text: \"B\uff0e\u6700\u591a\u53ea\u662f\u7537\u4e8c\u865f\u6216\u8005\u4e09\u865f\", next: \"06\" }\n        ]\n      },\n      \"06\": {\n        text: \"\u4f60\u89ba\u5f97\u9760\u6574\u5bb9\u7372\u5f97\u7f8e\u8c8c\u7684\u505a\u6cd5\uff1a\",\n        options: [\n          { text: \"A\uff0e\u4e0d\u53ef\u7406\u55bb\", next: \"08\" },\n          { text: \"B\uff0e\u6709\u9322\u7684\u8a71\u4e5f\u53ef\u4ee5\u53bb\u8a66\u8a66\", next: \"07\" }\n        ]\n      },\n      \"07\": {\n        text: \"\u7576\u4f60\u767c\u73fe\u597d\u53cb\u548c\u81ea\u5df1\u7684\u5c0d\u982d\u5341\u5206\u89aa\u5bc6\u7684\u6642\u5019\uff0c\u4f60\u6703\u8a8d\u70ba\uff1a\",\n        options: [\n          { text: \"A\uff0e\u5979\u4e00\u5b9a\u662f\u80cc\u53db\u81ea\u5df1\u4e86\", next: \"08\" },\n          { text: \"B\uff0e\u5979\u662f\u70ba\u4e86\u5e6b\u52a9\u81ea\u5df1\u624d\u53bb\u548c\u90a3\u4eba\u89aa\u8fd1\u7684\", result: \"C\" },\n          { text: \"C\uff0e\u5076\u7136\u8ac7\u5f97\u4f86\u800c\u5df2\uff0c\u8ddf\u81ea\u5df1\u6c92\u4ec0\u9ebc\u95dc\u4fc2\", result: \"A\" }\n        ]\n      },\n      \"08\": {\n        text: \"\u4f60\u7fd2\u6163\u7684\u8cfc\u7269\u65b9\u5f0f\u662f\uff1a\",\n        options: [\n          { text: \"A\uff0e\u770b\u6e96\u76ee\u6a19\uff0c\u4e00\u6b65\u5230\u4f4d\", result: \"B\" },\n          { text: \"B\uff0e\u8ca8\u6bd4\u4e09\u5bb6\uff0c\u6162\u6162\u770b\", result: \"D\" }\n        ]\n      }\n    },\n\n    \/\/ \u7d50\u679c\u89e3\u6790\u6578\u64da\n    results: {\n      \"A\": {\n        title: \"\u985e\u578bA\u2014\u967d\u6027\u578b\",\n        description: \"\u4f60\u7684\u500b\u6027\u5df2\u7d93\u8d85\u812b\u4e86\u5973\u5f37\u4eba\u7684\u967d\u525b\u3002\u6709\u6642\u5019\u8868\u73fe\u70ba\u5927\u5927\u54a7\u54a7\u4e0d\u62d8\u5c0f\u7bc0\uff0c\u4e5f\u6703\u88ab\u4eba\u8a8d\u70ba\u6709\u9ede\u6c92\u5fc3\u6c92\u80ba\u3002\u4f60\u53ef\u80fd\u8a8d\u70ba\u662f\u6027\u683c\u4f7f\u7136\uff0c\u5176\u5be6\u4f60\u7684\u5927\u8166\u6027\u5225\u7537\u6027\u5316\u7684\u4e00\u90e8\u5206\u4f54\u4e86\u4e3b\u5c0e\u5730\u4f4d\uff0c\u7d30\u7bc0\u4e0a\u53ef\u80fd\u4e26\u4e0d\u8b93\u4eba\u89ba\u5f97\u967d\u525b\u904e\u5ea6\uff0c\u53cd\u800c\u6703\u89ba\u5f97\u96a8\u610f\u6027\u592a\u5f37\u3002\u6b64\u5916\u4f60\u5728\u7406\u5316\u79d1\u76ee\u65b9\u9762\u53ef\u80fd\u8868\u73fe\u975e\u51e1\uff0c\u4e0d\u904e\u4f60\u5012\u4e5f\u4e26\u4e0d\u6703\u7570\u5e38\u523b\u82e6\u5b78\u7fd2\u3002\u7537\u6027\u578b\u5973\u5b69\u5728\u7570\u6027\u773c\u4e2d\u6703\u5225\u6709\u4e00\u756a\u300c\u8ff7\u7cca\u300d\u98a8\u5473\uff0c\u7537\u6027\u548c\u4f60\u76f8\u8655\u7684\u6642\u5019\u5f88\u5c11\u89ba\u5f97\u4e0d\u81ea\u7136\uff0c\u53cd\u5012\u76f8\u8ac7\u878d\u6d3d\uff0c\u6240\u4ee5\u4e0d\u5fc5\u64d4\u5fc3\u6c92\u6709\u7570\u6027\u7de3\u5462\u3002\",\n        traits: {\n          \u967d\u525b\u7279\u8cea: 85,\n          \u96a8\u610f\u6027\u683c: 90,\n          \u7406\u79d1\u80fd\u529b: 85,\n          \u7570\u6027\u7de3: 80,\n          \u884c\u52d5\u529b: 88,\n          \u7d30\u5fc3\u5ea6: 45\n        }\n      },\n      \"B\": {\n        title: \"\u985e\u578bB\u2014\u504f\u7537\u6027\u578b\",\n        description: \"\u4f60\u5c6c\u65bc\u5973\u5f37\u4eba\u5f0f\u7684\u6027\u683c\uff0c\u6709\u4e9b\u6642\u5019\u6703\u8868\u73fe\u51fa\u904e\u5206\u7684\u722d\u5f37\u597d\u52dd\u6216\u8005\u6025\u529f\u8fd1\u5229\uff0c\u5176\u5be6\u662f\u56e0\u70ba\u4f60\u4e0d\u60f3\u8f38\u7d66\u7570\u6027\u7684\u5f37\u70c8\u597d\u52dd\u5fc3\u4f5c\u795f\u3002\u4f60\u5f88\u6709\u6f5b\u529b\u6210\u70ba\u5973\u6b0a\u4e3b\u7fa9\u8005\u6216\u8005\u7e3d\u7ba1\u7d1a\u7684\u4eba\u7269\uff0c\u53ea\u8981\u6070\u5230\u597d\u8655\u5730\u904b\u7528\u4f60\u5728\u5206\u6790\u548c\u63a8\u7406\u65b9\u9762\u7684\u9577\u8655\uff0c\u5c31\u6703\u8b93\u5468\u570d\u4eba\u898b\u8b58\u5230\u4f60\u7684\u624d\u5e79\u3002\u4e0d\u904e\u4f60\u982d\u8166\u4e2d\u4ecd\u7136\u6709\u5973\u6027\u6027\u5225\u90e8\u5206\uff0c\u5728\u96a8\u6642\u5f37\u8abf\u8457\u81ea\u5df1\u7684\u6027\u5225\u3002\u7537\u591a\u5973\u5c11\u7684\u5927\u8166\u6027\u5225\u6a21\u5f0f\u6709\u6642\u5019\u6703\u8b93\u4f60\u990a\u6210\u300c\u947d\u725b\u89d2\u5c16\u300d\u7684\u58de\u7fd2\u6163\uff0c\u80fd\u6539\u7684\u8a71\u5c31\u6539\u4e00\u6539\u5427\u3002\",\n        traits: {\n          \u9818\u5c0e\u529b: 92,\n          \u597d\u52dd\u5fc3: 95,\n          \u5206\u6790\u80fd\u529b: 88,\n          \u4e8b\u696d\u5fc3: 90,\n          \u6027\u5225\u610f\u8b58: 65,\n          \u9748\u6d3b\u6027: 55\n        }\n      },\n      \"C\": {\n        title: \"\u985e\u578bC\u2014\u534a\u7537\u6027\u578b\",\n        description: \"\u4f60\u6709\u8457\u5973\u6027\u7684\u67d4\u97cc\u548c\u7537\u6027\u7684\u6a5f\u654f\uff0c\u80fd\u5920\u5713\u6ed1\u8655\u4e16\uff0c\u4fdd\u6301\u81ea\u5df1\u7684\u7acb\u8eab\u4e4b\u9053\u4e0d\u88ab\u52d5\u6416\u3002\u8077\u5834\u4e0a\u4e5f\u80fd\u6df7\u5230\u516b\u9762\u73b2\u74cf\u7684\u7a0b\u5ea6\uff0c\u4e0d\u904e\u6709\u6642\u5019\u6c7a\u65b7\u529b\u4e0d\u5920\u5f37\uff0c\u6b20\u7f3a\u967d\u525b\u7684\u529b\u91cf\uff0c\u56e0\u6b64\u7121\u6cd5\u6210\u70ba\u9738\u4e3b\u985e\u578b\u7684\u4eba\u7269\u3002\u4f60\u6700\u9069\u5408\u64d4\u4efb\u4e2d\u5c64\u4eba\u54e1\u6216\u8005\u5916\u806f\u5de5\u4f5c\uff0c\u4f60\u7684\u4e2d\u6027\u7279\u8cea\u7d66\u4e86\u4f60\u7279\u6709\u7684\u72e1\u733e\u8207\u8070\u654f\uff0c\u4e0d\u904e\u4e00\u65e6\u7121\u6cd5\u770b\u6e05\u524d\u9762\u7684\u65b9\u5411\uff0c\u4e5f\u5f88\u5bb9\u6613\u9677\u5165\u6df7\u4e82\u4e2d\u3002\u4e2d\u6027\u7684\u7279\u5fb5\u8b93\u4f60\u5728\u7537\u5973\u5169\u7a2e\u6027\u5225\u4e2d\u90fd\u80fd\u904a\u5203\u6709\u9918\u5730\u8207\u4e4b\u76f8\u8655\u3002\",\n        traits: {\n          \u5713\u6ed1\u8655\u4e16: 95,\n          \u8077\u5834\u80fd\u529b: 85,\n          \u6c7a\u65b7\u529b: 65,\n          \u8070\u654f\u5ea6: 88,\n          \u4eba\u969b\u95dc\u4fc2: 92,\n          \u65b9\u5411\u611f: 60\n        }\n      },\n      \"D\": {\n        title: \"\u985e\u578bD\u2014\u5973\u6027\u578b\",\n        description: \"\u4f60\u7684\u5927\u8166\u6027\u5225\u662f\u7d14\u7cb9\u7684\u5973\u6027\uff0c\u662f100\uff05\u7684\u5973\u6027\u5c6c\u6027\uff0c\u6709\u6642\u5019\u6703\u56e0\u70ba\u4e00\u6642\u7684\u885d\u52d5\u800c\u8cfc\u7269\u6216\u505a\u51fa\u5176\u4ed6\u6c7a\u5b9a\uff0c\u4f46\u66f4\u591a\u6642\u5019\u662f\u9762\u5c0d\u9078\u64c7\u7336\u8c6b\u4e0d\u6c7a\u3002\u4f60\u5177\u6709\u5973\u6027\u7684\u67d4\u97cc\u548c\u8d85\u7d1a\u627f\u53d7\u80fd\u529b\uff0c\u4f46\u5728\u505a\u6c7a\u5b9a\u7684\u6642\u5019\u5f80\u5f80\u5de6\u53f3\u70ba\u96e3\uff0c\u751a\u81f3\u6703\u8ddf\u5df2\u7d93\u5206\u624b\u7684\u7537\u53cb\u85d5\u65b7\u7d72\u9023\u3002\u4f60\u5927\u8166\u6027\u5225\u6c7a\u5b9a\u4e86\u4f60\u662f\u500b\u6703\u4ee5\u5225\u4eba\u70ba\u751f\u6d3b\u4f9d\u64da\u7684\u5c0f\u5973\u4eba\u3002\u5982\u679c\u6709\u4eba\u80fd\u5920\u7576\u6a5f\u7acb\u65b7\u66ff\u4f60\u505a\u51fa\u6c7a\u5b9a\uff0c\u4f60\u6703\u89ba\u5f97\u5341\u5206\u5b89\u5fc3\uff0c\u4f46\u904e\u5f8c\u4ecd\u7136\u6703\u5f8c\u6094\u70ba\u4ec0\u9ebc\u7576\u6642\u81ea\u5df1\u6c92\u6709\u505a\u51fa\u6c7a\u5b9a\u3002\",\n        traits: {\n          \u5973\u6027\u7279\u8cea: 100,\n          \u6eab\u67d4\u6307\u6578: 95,\n          \u627f\u53d7\u80fd\u529b: 90,\n          \u6c7a\u65b7\u529b: 35,\n          \u4f9d\u8cf4\u6027: 85,\n          \u67d4\u97cc\u6027: 92\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: '#e84393',\n            backgroundColor: 'rgba(232, 67, 147, 0.2)',\n            borderWidth: 3,\n            pointBackgroundColor: '#e84393',\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: '#f5c6d9',\n                lineWidth: 1\n              },\n              grid: {\n                color: '#ffe6ed',\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: '#7f8c8d',\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: '#e84393',\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      FemaleGenderTestApp.init();\n    });\n  } else {\n    FemaleGenderTestApp.init();\n  }\n\n  \/\/ \u5c0e\u51fa\u7d66\u5168\u5c40\u4f7f\u7528\uff08\u5982\u679c\u9700\u8981\uff09\n  window.FemaleGenderTestApp = FemaleGenderTestApp;\n})();\n<\/script>\n\n\n\n<p class=\"has-text-align-right\"><a href=\"https:\/\/xinliceyan.org\/psychological-gender-test-for-male\">\u5fc3\u7406\u6027\u522b\uff08\u7537\u6027\u7bc7\uff09\u7ebf\u4e0a\u514d\u8d39\u6d4b\u9a8c<\/a><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u4f60\u662f\u6e29\u5a49\u7684\u5c0f\u5973\u751f\u8fd8\u662f\u4e2a\u300c\u5047\u5c0f\u5b50\u300d\u5462\uff1f\u4ece\u7b2c\u4e00\u9898\u5f00\u59cb\uff0c\u9009\u62e9\u7b26\u5408\u4f60\u7684\u9009\u9879\uff0c\u6839\u636e\u6307\u793a\u524d\u8fdb\uff0c\u5c31\u53ef\u4ee5\u627e\u5230\u7b54\u6848\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-2647","post","type-post","status-publish","format-standard","hentry","category-personality"],"_links":{"self":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2647","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=2647"}],"version-history":[{"count":5,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2647\/revisions"}],"predecessor-version":[{"id":10481,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/posts\/2647\/revisions\/10481"}],"wp:attachment":[{"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/media?parent=2647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/categories?post=2647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinliceyan.org\/zh\/wp-json\/wp\/v2\/tags?post=2647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}