* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* MBTI测试样式变量 */
  --mbti-primary-color: #7C3AED;
  --mbti-secondary-color: #F0E6FF;
  --mbti-accent-color: #FFE9F0;
  --mbti-text-color: #5a5a5a;
  --mbti-light-bg: #FFFDF7;
  --mbti-border-radius: 32px;
  --mbti-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --mbti-soft-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  --mbti-gradient-bg: linear-gradient(145deg, #F9F6FF 0%, #EFE6FF 100%);
  --mbti-gradient-primary: linear-gradient(135deg, #9333EA, #7C3AED);
  --mbti-gradient-secondary: linear-gradient(135deg, #F0E6FF, #E9DFFF);
  
  /* 心理年龄测试样式变量（从备份恢复） */
  --mental-primary-color: #FFB6C1;
  --mental-secondary-color: #FFE4B5;
  --mental-accent-color: #F0E68C;
  --mental-text-color: #5a5a5a;
  --mental-light-bg: #FFF8F0;
  --mental-border-radius: 20px;
  --mental-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --mental-gradient-bg: linear-gradient(135deg, #FFF8F0 0%, #FFE4E1 100%);
  --mental-gradient-primary: linear-gradient(135deg, var(--mental-primary-color), #FF69B4);
  --mental-gradient-secondary: linear-gradient(135deg, #FFF8F0, #FFE4E1);
  
  /* 回避型依恋测试样式变量（暖黄色系） */
  --avoidant-primary-color: #D4A017;
  --avoidant-secondary-color: #FFF3D6;
  --avoidant-accent-color: #F5C542;
  --avoidant-text-color: #5a5a5a;
  --avoidant-light-bg: #FFFDF5;
  --avoidant-border-radius: 32px;
  --avoidant-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --avoidant-soft-shadow: 0 4px 12px rgba(212, 160, 23, 0.1);
  --avoidant-gradient-bg: linear-gradient(145deg, #FFFCF0 0%, #FFF3D6 100%);
  --avoidant-gradient-primary: linear-gradient(135deg, #E8B830, #D4A017);
  --avoidant-gradient-secondary: linear-gradient(135deg, #FFF3D6, #FFE9B0);

  /* NBTI恋爱性格测试样式变量（淡粉色系） */
  --nbti-primary-color: #E91E8C;
  --nbti-secondary-color: #FFE4F0;
  --nbti-accent-color: #FFB6D9;
  --nbti-text-color: #5a5a5a;
  --nbti-light-bg: #FFF5FA;
  --nbti-border-radius: 32px;
  --nbti-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --nbti-soft-shadow: 0 4px 12px rgba(233, 30, 140, 0.1);
  --nbti-gradient-bg: linear-gradient(145deg, #FFF5FA 0%, #FFE4F0 100%);
  --nbti-gradient-primary: linear-gradient(135deg, #FF69B4, #E91E8C);
  --nbti-gradient-secondary: linear-gradient(135deg, #FFE4F0, #FFB6D9);

  /* 性格匹配城市测试样式变量（天蓝色系） */
  --city-primary-color: #0EA5E9;
  --city-secondary-color: #E0F2FE;
  --city-accent-color: #7DD3FC;
  --city-text-color: #5a5a5a;
  --city-light-bg: #F0F9FF;
  --city-border-radius: 32px;
  --city-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --city-soft-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
  --city-gradient-bg: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
  --city-gradient-primary: linear-gradient(135deg, #38BDF8, #0EA5E9);
  --city-gradient-secondary: linear-gradient(135deg, #E0F2FE, #BAE6FD);

  /* 焦虑型依恋测试样式变量（橙红色系） */
  --anxious-primary-color: #F97316;
  --anxious-secondary-color: #FFF7ED;
  --anxious-accent-color: #FB923C;
  --anxious-text-color: #5a5a5a;
  --anxious-light-bg: #FFFAF5;
  --anxious-border-radius: 32px;
  --anxious-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --anxious-soft-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
  --anxious-gradient-bg: linear-gradient(145deg, #FFFAF5 0%, #FFF7ED 100%);
  --anxious-gradient-primary: linear-gradient(135deg, #FB923C, #F97316);
  --anxious-gradient-secondary: linear-gradient(135deg, #FFF7ED, #FFEDD5);

  /* 默认样式（用于心理年龄测试） */
  --primary-color: var(--mental-primary-color);
  --secondary-color: var(--mental-secondary-color);
  --accent-color: var(--mental-accent-color);
  --text-color: var(--mental-text-color);
  --light-bg: var(--mental-light-bg);
  --border-radius: var(--mental-border-radius);
  --shadow: var(--mental-shadow);
  --gradient-bg: var(--mental-gradient-bg);
  --gradient-primary: var(--mental-gradient-primary);
  --gradient-secondary: var(--mental-gradient-secondary);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* 屏幕切换 */
.screen {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 开始界面 */
.start-content {
  text-align: center;
  padding: 60px 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.logo {
  font-size: 80px;
  margin-bottom: 20px;
}

.start-content h1 {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 30px;
}

.description {
  text-align: left;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.description p {
  margin-bottom: 15px;
  font-size: 16px;
}

.description ul {
  list-style: none;
  padding-left: 0;
}

.description li {
  padding: 8px 0;
  font-size: 15px;
}

/* 按钮 */
.btn {
  padding: 14px 40px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3);
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--text-color);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

.modal-content p {
  color: #999;
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-buttons .btn {
  flex: 1;
}

.error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.error-message.show {
  display: block;
}

/* 测试界面 */
.test-container {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #FF69B4);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 30px;
}

.question-card {
  margin-bottom: 30px;
}

.question-card h2 {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--light-bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.option:hover {
  background: #FFE4B5;
  transform: translateX(4px);
}

/* 禁用状态 */
.option.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.option input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.option-text {
  font-size: 15px;
  cursor: pointer;
}

.test-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.test-buttons .btn {
  flex: 1;
  max-width: 200px;
}

/* 结果界面 */
.result-container {
  background: #f5f9fb;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

/* 结果模块基础样式 */
.result-module {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

/* 模块一：年龄对比 */
.module-age-comparison {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE4E1 100%);
}

.age-display {
  margin-bottom: 30px;
}

.age-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.age-item {
  text-align: center;
}

.age-value {
  font-size: 56px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.age-label {
  font-size: 13px;
  color: #999;
  font-weight: 600;
}

.age-divider {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 700;
}

.age-insight {
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
}

.personality-highlight {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--secondary-color);
}

.personality-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
  font-weight: 600;
}

.personality-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}





/* 模块二：关键词标签 */
.keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.keyword-tag {
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.keyword-tag:hover {
  transform: translateY(-2px);
}

/* 模块三：雷达图 */
.module-radar {
  text-align: center;
}

.radar-container {
  margin: 20px auto;
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
}

.radar-container canvas {
  display: block;
}

/* 模块四：维度详情 */
.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dimension-bar {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  gap: 15px;
  align-items: center;
}

.dimension-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.dimension-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

.progress-container {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #FF69B4);
  border-radius: 4px;
  transition: width 0.5s ease;
}



/* 模块五：深度自我分析 */
.module-analysis {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.05), rgba(255, 228, 181, 0.05));
}

.analysis-section {
  margin-bottom: 25px;
  padding: 18px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.analysis-section:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-content {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
  text-align: justify;
}

/* 模块六：社交与匹配 */
.module-matching {
  background: linear-gradient(135deg, rgba(176, 224, 230, 0.05), rgba(240, 230, 140, 0.05));
}

.matching-section {
  margin-bottom: 22px;
  padding: 18px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
}

.matching-section:last-child {
  margin-bottom: 25px;
}

.module-matching .section-subtitle {
  color: var(--text-color);
}

.module-matching .module-title {
  color: var(--text-color);
  border-bottom-color: var(--accent-color);
}

.archetype-info {
  background: var(--light-bg);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  background: var(--light-bg);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  color: #999;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

/* 免责声明 */
.disclaimer {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 182, 193, 0.1);
}

.result-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.result-buttons .btn {
  flex: 1;
  max-width: 200px;
}

/* MBTI测试特定样式 */
.mbti-test {
  --primary-color: var(--mbti-primary-color);
  --secondary-color: var(--mbti-secondary-color);
  --accent-color: var(--mbti-accent-color);
  --text-color: var(--mbti-text-color);
  --light-bg: var(--mbti-light-bg);
  --border-radius: var(--mbti-border-radius);
  --shadow: var(--mbti-shadow);
  --soft-shadow: var(--mbti-soft-shadow);
  --gradient-bg: var(--mbti-gradient-bg);
  --gradient-primary: var(--mbti-gradient-primary);
  --gradient-secondary: var(--mbti-gradient-secondary);
}

/* MBTI测试特定样式覆盖 */
.mbti-test .start-content {
  padding: 64px 32px;
}

.mbti-test .test-container {
  padding: 48px 32px;
}

.mbti-test .result-container {
  background: white;
  padding: 32px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.mbti-test .result-module {
  padding: 32px 24px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.mbti-test .module-title {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.mbti-test .module-age-comparison {
  background: var(--gradient-bg);
}

.mbti-test .personality-highlight {
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.mbti-test .personality-name {
  font-size: 48px;
  margin-bottom: 16px;
}

.mbti-test .personality-nickname {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.mbti-test .personality-quote {
  font-size: 16px;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.mbti-test .personality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.mbti-test .personality-tag {
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 40px;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
}

.mbti-test .personality-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: var(--soft-shadow);
}

.mbti-test .dimension-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mbti-test .dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mbti-test .dimension-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbti-test .dimension-letter {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.mbti-test .dimension-name {
  font-size: 12px;
  color: #999;
}

.mbti-test .progress-container {
  height: 8px !important;
  background: #E5E7EB !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.mbti-test .progress-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #A78BFA, #C084FC) !important;
  border-radius: 20px !important;
  transition: width 0.5s ease;
}

.mbti-test .dimension-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.mbti-test .dimension-percentage {
  font-weight: 600;
  color: var(--mbti-primary-color);
}

.mbti-test .dimension-insight {
  color: #666;
  font-style: normal;
  margin: 0;
}

.mbti-test .module-analysis {
  background: var(--gradient-bg);
}

.mbti-test .analysis-section {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.mbti-test .section-subtitle {
  font-size: 16px;
  margin-bottom: 16px;
  gap: 10px;
}

.mbti-test .section-content {
  font-size: 15px;
}

.mbti-test .module-matching {
  background: var(--gradient-bg);
}

.mbti-test .matching-section {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.mbti-test .matching-section:last-child {
  margin-bottom: 24px;
}

.mbti-test .archetype-info {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(124, 58, 237, 0.1);
  gap: 16px;
}

.mbti-test .info-item {
  padding: 16px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mbti-test .info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.mbti-test .info-label {
  font-size: 14px;
}

.mbti-test .info-value {
  font-size: 16px;
}

.mbti-test .share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.mbti-test .share-buttons .btn {
  flex: 1;
  min-width: 140px;
}

.mbti-test .compatibility-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.mbti-test .compatibility-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--light-bg);
  border-radius: 12px;
}

.mbti-test .compatibility-label {
  font-size: 14px;
  color: #666;
}

.mbti-test .compatibility-value {
  font-size: 14px;
}

/* 分数解释说明模块 */
.module-score-explanation .score-explanations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.module-score-explanation .score-range {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #FFB6C1;
}

.module-score-explanation .score-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.module-score-explanation .score-description {
  font-size: 14px;
  color: #666;
}

/* 情绪健康指数模块 */
.module-emotional-health .health-index-container {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.module-emotional-health .health-index-display {
  text-align: center;
}

.module-emotional-health .health-index-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.module-emotional-health .health-index-level {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.module-emotional-health .health-index-advice {
  flex: 1;
  min-width: 250px;
}

/* 个性化行动建议模块 */
.module-action-suggestions .suggestions-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-action-suggestions .suggestion-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #4CAF50;
}

.module-action-suggestions .suggestion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.module-action-suggestions .suggestion-emoji {
  font-size: 20px;
}

.module-action-suggestions .suggestion-dimension {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.module-action-suggestions .suggestion-level {
  font-size: 11px;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: auto;
}

.module-action-suggestions .suggestion-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.module-action-suggestions .suggestion-text {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.module-action-suggestions .suggestion-actions {
  background: white;
  border-radius: 8px;
  padding: 12px 15px;
}

.module-action-suggestions .actions-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.module-action-suggestions .action-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.module-action-suggestions .action-step:last-child {
  margin-bottom: 0;
}

.module-action-suggestions .action-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.module-action-suggestions .action-step-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* 友情提示模块 */
.module-disclaimer .disclaimer-content {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 15px 0;
  line-height: 1.6;
}

/* 晒单活动板块 */
.share-activity {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.share-activity-title {
  font-size: 18px;
  font-weight: 700;
  color: #E65100;
  margin-bottom: 10px;
}

.share-activity-desc {
  font-size: 14px;
  color: #BF360C;
  margin-bottom: 15px;
  line-height: 1.6;
}

.share-activity-flow {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 10px auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-activity-flow:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 图片放大模态窗口 */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.image-modal.active {
  display: flex;
  background: rgba(0, 0, 0, 0.85);
}

.image-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-modal.active .image-modal-content {
  opacity: 1;
  transform: scale(1);
}

.image-modal-close {
  position: fixed;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2001;
  line-height: 1;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.image-modal-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.share-activity-rule {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}

/* 职业与关系建议模块 */
.module-career-relationship .career-section {
  margin-bottom: 20px;
}

.module-career-relationship .career-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.module-career-relationship .career-tag {
  background: #E3F2FD;
  color: #1976D2;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.module-career-relationship .strengths {
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.module-career-relationship .strengths-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.module-career-relationship .strengths-content {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.module-career-relationship .relationship-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.module-career-relationship .relationship-content {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: 10px;
}



.mbti-test .celebrities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mbti-test .celebrity-tag {
  padding: 8px 16px;
  background: var(--secondary-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.mbti-test .celebrity-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.mbti-test .egg-text {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-top: 24px;
  font-style: italic;
  padding: 16px;
  background: var(--light-bg);
  border-radius: 12px;
}

/* 用户画像分段样式 */
.mbti-test .portrait-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mbti-test .portrait-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
  margin: 0;
}

.mbti-test .portrait-section {
  background: var(--light-bg);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.mbti-test .portrait-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  margin-top: 0;
}

.mbti-test .portrait-section-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  text-align: justify;
}

.mbti-test .disclaimer {
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.mbti-test .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.mbti-test .progress-fill {
  background: var(--gradient-primary);
}

.mbti-test .option {
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.mbti-test .option:hover {
  background: var(--secondary-color);
  box-shadow: var(--soft-shadow);
}

/* 响应式设计 */
@media (max-width: 600px) {
  .start-content {
    padding: 40px 20px;
  }

  .start-content h1 {
    font-size: 36px;
  }

  .logo {
    font-size: 60px;
  }

  .test-container,
  .result-container {
    padding: 15px;
  }

  .question-card h2 {
    font-size: 18px;
  }

  .age-value {
    font-size: 42px;
  }

  .age-numbers {
    gap: 12px;
  }

  .age-divider {
    font-size: 18px;
  }

  .dimension-bar {
    grid-template-columns: 100px 1fr 50px;
    gap: 10px;
    font-size: 12px;
  }

  .radar-container {
    max-width: 300px;
    height: 300px;
  }

  .keywords-container {
    gap: 8px;
  }

  .keyword-tag {
    padding: 8px 14px;
    font-size: 12px;
  }

  .result-module {
    padding: 18px;
    margin-bottom: 15px;
  }

  .module-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .test-buttons,
  .result-buttons {
    flex-direction: column;
  }

  .test-buttons .btn,
  .result-buttons .btn {
    max-width: 100%;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .analysis-section,
  .matching-section {
    margin-bottom: 18px;
    padding: 14px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .section-content {
    font-size: 13px;
  }
}

/* 认知功能仪表盘样式 */
.mbti-test .cognitive-functions-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .mbti-test .cognitive-functions-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 回避型依恋测试样式 */
.avoidant-test {
  --primary-color: var(--avoidant-primary-color);
  --secondary-color: var(--avoidant-secondary-color);
  --accent-color: var(--avoidant-accent-color);
  --text-color: var(--avoidant-text-color);
  --light-bg: var(--avoidant-light-bg);
  --border-radius: var(--avoidant-border-radius);
  --shadow: var(--avoidant-shadow);
  --soft-shadow: var(--avoidant-soft-shadow);
  --gradient-bg: var(--avoidant-gradient-bg);
  --gradient-primary: var(--avoidant-gradient-primary);
  --gradient-secondary: var(--avoidant-gradient-secondary);
}

.avoidant-test .start-content {
  padding: 64px 32px;
}

.avoidant-test .topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 12px 4px;
  border-radius: 16px;
}

.avoidant-test .topbar .progress-bar {
  width: 100%;
  min-width: 240px;
  margin-bottom: 0;
}

.avoidant-test .progress-text {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.avoidant-test .question-area {
  background: white;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.1);
}

.avoidant-test .question-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.avoidant-test .question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #999;
  font-size: 12px;
}

.avoidant-test .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary-color);
  border: 1px solid rgba(212, 160, 23, 0.1);
}

.avoidant-test .question-title {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text-color);
}

.avoidant-test .option {
  align-items: flex-start;
  gap: 12px;
  background: var(--light-bg);
  border: 2px solid transparent;
  position: relative;
  padding-left: 36px;
}

.avoidant-test .option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.avoidant-test .option.selected::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.avoidant-test .option:hover {
  background: var(--secondary-color);
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.avoidant-test .option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.avoidant-test .option-code {
  font-weight: 800;
  color: var(--primary-color);
  min-width: 22px;
}

.avoidant-test .actions-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.avoidant-test .hint {
  color: #999;
  font-size: 13px;
  line-height: 1.7;
}

.avoidant-test .result-layout {
  display: grid;
  gap: 18px;
}

.avoidant-test .result-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.avoidant-test .type-box.result-module {
  text-align: center;
  padding: 40px 25px;
}

.avoidant-test .type-kicker {
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 8px;
  letter-spacing: .06em;
}

.avoidant-test .type-name {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-color);
}

.avoidant-test .type-subname {
  margin-top: 10px;
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

.avoidant-test .match {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--secondary-color);
  border: 1px solid rgba(212, 160, 23, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.avoidant-test .analysis-box h3,
.avoidant-test .dim-box h3,
.avoidant-test .note-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.avoidant-test .analysis-box p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.avoidant-test .dim-list {
  display: grid;
  gap: 12px;
}

.avoidant-test .dim-item {
  background: white;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 23, 0.1);
}

.avoidant-test .dim-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.avoidant-test .dim-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.avoidant-test .dim-item-score {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.avoidant-test .dim-item p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.avoidant-test .note-box p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.avoidant-test .result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.avoidant-test .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(212, 160, 23, 0.3);
}

.avoidant-test .progress-fill {
  background: var(--gradient-primary);
}

.avoidant-test .option {
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.avoidant-test .option:hover {
  background: var(--secondary-color);
  box-shadow: var(--soft-shadow);
}

.avoidant-test .result-module {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.1);
}

.avoidant-test .module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.avoidant-test .score-bar-container {
  margin: 16px 0;
}

.avoidant-test .score-bar-bg {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.avoidant-test .score-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.avoidant-test .score-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.avoidant-test .level-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.avoidant-test .level-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.avoidant-test .level-dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

.avoidant-test .section-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 16px;
}

.avoidant-test .section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.avoidant-test .section-card-content {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  white-space: pre-wrap;
}

.avoidant-test .advice-box {
  background: var(--gradient-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 23, 0.15);
}

.avoidant-test .advice-box .advice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.avoidant-test .advice-box .advice-content {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .avoidant-test .result-top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .avoidant-test .start-content { padding: 40px 20px; }
  .avoidant-test .start-content h1 { font-size: 32px; }
  .avoidant-test .question-title { font-size: 15px; }
}

/* NBTI恋爱性格测试样式 */
.nbti-test {
  --primary-color: var(--nbti-primary-color);
  --secondary-color: var(--nbti-secondary-color);
  --accent-color: var(--nbti-accent-color);
  --text-color: var(--nbti-text-color);
  --light-bg: var(--nbti-light-bg);
  --border-radius: var(--nbti-border-radius);
  --shadow: var(--nbti-shadow);
  --soft-shadow: var(--nbti-soft-shadow);
  --gradient-bg: var(--nbti-gradient-bg);
  --gradient-primary: var(--nbti-gradient-primary);
  --gradient-secondary: var(--nbti-gradient-secondary);
}

.nbti-test .start-content {
  padding: 64px 32px;
}

.nbti-test .topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 12px 4px;
  border-radius: 16px;
}

.nbti-test .topbar .progress-bar {
  width: 100%;
  min-width: 240px;
  margin-bottom: 0;
}

.nbti-test .progress-text {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.nbti-test .question-area {
  background: white;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.nbti-test .question-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.nbti-test .question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #999;
  font-size: 12px;
}

.nbti-test .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary-color);
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.nbti-test .question-title {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text-color);
}

.nbti-test .option {
  align-items: flex-start;
  gap: 12px;
  background: var(--light-bg);
  border: 2px solid transparent;
  position: relative;
  padding-left: 36px;
}

.nbti-test .option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nbti-test .option.selected::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.nbti-test .option:hover {
  background: var(--secondary-color);
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.nbti-test .option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nbti-test .option-code {
  font-weight: 800;
  color: var(--primary-color);
  min-width: 22px;
}

.nbti-test .actions-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.nbti-test .hint {
  color: #999;
  font-size: 13px;
  line-height: 1.7;
}

.nbti-test .result-layout {
  display: grid;
  gap: 18px;
}

.nbti-test .result-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.nbti-test .type-box.result-module {
  text-align: center;
  padding: 40px 25px;
}

.nbti-test .type-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}

.nbti-test .type-kicker {
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 8px;
  letter-spacing: .06em;
}

.nbti-test .type-name {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-color);
}

.nbti-test .type-subname {
  margin-top: 10px;
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

.nbti-test .match {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--secondary-color);
  border: 1px solid rgba(233, 30, 140, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.nbti-test .analysis-box h3,
.nbti-test .dim-box h3,
.nbti-test .note-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.nbti-test .analysis-box p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.nbti-test .dim-list {
  display: grid;
  gap: 12px;
}

.nbti-test .dim-item {
  background: white;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.nbti-test .dim-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.nbti-test .dim-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.nbti-test .dim-item-score {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.nbti-test .dim-item p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.nbti-test .note-box p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.nbti-test .result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.nbti-test .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(233, 30, 140, 0.3);
}

.nbti-test .progress-fill {
  background: var(--gradient-primary);
}

.nbti-test .option {
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.nbti-test .option:hover {
  background: var(--secondary-color);
  box-shadow: var(--soft-shadow);
}

.nbti-test .result-module {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.nbti-test .module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.nbti-test .section-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 16px;
}

.nbti-test .section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.nbti-test .section-card-content {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  white-space: pre-wrap;
}

.nbti-test .advice-box {
  background: var(--gradient-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(233, 30, 140, 0.15);
}

.nbti-test .advice-box .advice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.nbti-test .advice-box .advice-content {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  white-space: pre-wrap;
}

.nbti-test .trait-list {
  display: grid;
  gap: 12px;
}

.nbti-test .trait-item {
  background: var(--light-bg);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.nbti-test .trait-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.nbti-test .trait-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.nbti-test .trait-item-value {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.nbti-test .trait-item p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.nbti-test .trait-bar-bg {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.nbti-test .trait-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.8s ease;
}

@media (max-width: 860px) {
  .nbti-test .result-top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nbti-test .start-content { padding: 40px 20px; }
  .nbti-test .start-content h1 { font-size: 32px; }
  .nbti-test .question-title { font-size: 15px; }
}

/* 性格匹配城市测试样式（天蓝色系） */
.city-test {
  --primary-color: var(--city-primary-color);
  --secondary-color: var(--city-secondary-color);
  --accent-color: var(--city-accent-color);
  --text-color: var(--city-text-color);
  --light-bg: var(--city-light-bg);
  --border-radius: var(--city-border-radius);
  --shadow: var(--city-shadow);
  --soft-shadow: var(--city-soft-shadow);
  --gradient-bg: var(--city-gradient-bg);
  --gradient-primary: var(--city-gradient-primary);
  --gradient-secondary: var(--city-gradient-secondary);
}

.city-test .start-content {
  padding: 64px 32px;
}

.city-test .topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 12px 4px;
  border-radius: 16px;
}

.city-test .topbar .progress-bar {
  width: 100%;
  min-width: 240px;
  margin-bottom: 0;
}

.city-test .progress-text {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.city-test .question-area {
  background: white;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.city-test .question-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.city-test .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary-color);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.city-test .option {
  align-items: flex-start;
  gap: 12px;
  background: var(--light-bg);
  border: 2px solid transparent;
  position: relative;
  padding-left: 36px;
}

.city-test .option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.city-test .option.selected::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.city-test .option:hover {
  background: var(--secondary-color);
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.city-test .option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.city-test .option-code {
  font-weight: 800;
  color: var(--primary-color);
  min-width: 22px;
}

.city-test .actions-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.city-test .result-layout {
  display: grid;
  gap: 18px;
}

.city-test .result-module {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.city-test .module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.city-test .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.city-test .progress-fill {
  background: var(--gradient-primary);
}

.city-test .option {
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.city-test .option:hover {
  background: var(--secondary-color);
  box-shadow: var(--soft-shadow);
}

@media (max-width: 600px) {
  .city-test .start-content { padding: 40px 20px; }
  .city-test .start-content h1 { font-size: 32px; }
}

/* 焦虑型依恋测试样式（橙红色系） */
.anxious-test {
  --primary-color: var(--anxious-primary-color);
  --secondary-color: var(--anxious-secondary-color);
  --accent-color: var(--anxious-accent-color);
  --text-color: var(--anxious-text-color);
  --light-bg: var(--anxious-light-bg);
  --border-radius: var(--anxious-border-radius);
  --shadow: var(--anxious-shadow);
  --soft-shadow: var(--anxious-soft-shadow);
  --gradient-bg: var(--anxious-gradient-bg);
  --gradient-primary: var(--anxious-gradient-primary);
  --gradient-secondary: var(--anxious-gradient-secondary);
}

.anxious-test .start-content {
  padding: 64px 32px;
}

.anxious-test .topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 12px 4px;
  border-radius: 16px;
}

.anxious-test .topbar .progress-bar {
  width: 100%;
  min-width: 240px;
  margin-bottom: 0;
}

.anxious-test .progress-text {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.anxious-test .question-area {
  background: white;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.anxious-test .question-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.anxious-test .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary-color);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.anxious-test .option {
  align-items: flex-start;
  gap: 12px;
  background: var(--light-bg);
  border: 2px solid transparent;
  position: relative;
  padding-left: 36px;
}

.anxious-test .option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.anxious-test .option.selected::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.anxious-test .option:hover {
  background: var(--secondary-color);
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.anxious-test .option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.anxious-test .option-code {
  font-weight: 800;
  color: var(--primary-color);
  min-width: 22px;
}

.anxious-test .actions-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.anxious-test .result-layout {
  display: grid;
  gap: 18px;
}

.anxious-test .result-module {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.anxious-test .module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.anxious-test .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.anxious-test .progress-fill {
  background: var(--gradient-primary);
}

.anxious-test .option {
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.anxious-test .option:hover {
  background: var(--secondary-color);
  box-shadow: var(--soft-shadow);
}

.anxious-test .type-hero {
  text-align: center;
  padding: 40px 25px;
}

.anxious-test .type-hero-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}

.anxious-test .type-hero-kicker {
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 8px;
  letter-spacing: .06em;
}

.anxious-test .type-hero-name {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-color);
}

.anxious-test .type-hero-subname {
  margin-top: 10px;
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

.anxious-test .type-match-badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--secondary-color);
  border: 1px solid rgba(249, 115, 22, 0.15);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.anxious-test .type-match-score {
  font-size: 28px;
  font-weight: 800;
}

.anxious-test .type-match-label {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
}

.anxious-test .score-bar-container {
  margin: 16px 0;
}

.anxious-test .score-bar-bg {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.anxious-test .score-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.anxious-test .score-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.anxious-test .level-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.anxious-test .level-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.anxious-test .level-dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.anxious-test .section-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 16px;
}

.anxious-test .section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.anxious-test .section-card-content {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  white-space: pre-wrap;
}

.anxious-test .advice-box {
  background: var(--gradient-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.anxious-test .advice-box .advice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.anxious-test .advice-box .advice-content {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  white-space: pre-wrap;
}

.anxious-test .analysis-box h3,
.anxious-test .dim-box h3,
.anxious-test .note-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
}

.anxious-test .analysis-box p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.anxious-test .note-box p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.anxious-test .result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .anxious-test .start-content { padding: 40px 20px; }
  .anxious-test .start-content h1 { font-size: 32px; }
}
