/* MBTI测试样式 */
:root {
  --mbti-primary: #6366f1;
  --mbti-primary-light: #818cf8;
  --mbti-secondary: #f472b6;
  --mbti-accent: #34d399;
}

.mbti-hero {
  background: linear-gradient(135deg, var(--mbti-primary) 0%, #8b5cf6 50%, var(--mbti-secondary) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.mbti-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mbti-hero-desc {
  font-size: 20px;
  opacity: 0.9;
}

.mbti-intro {
  padding: 60px 0;
  text-align: center;
}

.mbti-intro h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.mbti-intro p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.mbti-dimensions {
  padding: 60px 0;
  background: #f8fafc;
}

.mbti-dimensions h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.mbti-dimensions > p {
  font-size: 16px;
  color: var(--ink-4);
  text-align: center;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  line-height: 1.6;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0;
}

.dimension-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.dimension-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--mbti-primary) 0%, #8b5cf6 50%, var(--mbti-secondary) 100%);
}

.dimension-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
}

.dimension-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-radius: 24px;
  margin-bottom: 24px;
  border: 2px solid rgba(99, 102, 241, 0.12);
  transition: all 0.3s ease;
}

.dimension-card:hover .dimension-icon-wrap {
  transform: scale(1.12);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
}

.dimension-icon {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mbti-primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dimension-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.dimension-desc {
  font-size: 12px;
  color: var(--mbti-primary);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  padding: 5px 16px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 20px;
}

.dimension-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0;
}

.mbti-test-select {
  padding: 60px 0;
  text-align: center;
}

.mbti-test-select h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 40px;
}

.test-options {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 24px !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.test-option-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.35s ease;
  flex: 1 1 280px !important;
}

.test-option-card:hover {
  border-color: var(--mbti-primary);
  transform: translateY(-4px);
}

.test-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--mbti-primary) 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 16px;
  margin-bottom: 20px;
}

.test-option-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.test-option-desc {
  font-size: 14px;
  color: var(--mbti-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.test-option-detail {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 24px;
}

.test-option-card .btn {
  width: 100%;
}

.mbti-result-preview {
  padding: 60px 0;
  background: #f8fafc;
}

.mbti-result-preview h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 40px;
}

.report-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* 测试页面样式 */
.mbti-test-container {
  padding: 40px 0;
}

.test-progress {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.test-progress-bar {
  background: linear-gradient(90deg, var(--mbti-primary) 0%, #8b5cf6 100%);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.test-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.test-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.test-question {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.6;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-option {
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-option:hover {
  background: #f0fdf4;
  border-color: var(--mbti-accent);
}

.test-option.selected {
  background: var(--mbti-primary);
  border-color: var(--mbti-primary);
  color: #fff;
}

.test-option-label {
  font-weight: 600;
  margin-right: 12px;
}

.test-option-text {
  font-size: 16px;
}

.test-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.test-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.test-btn-primary {
  background: var(--mbti-primary);
  color: #fff;
}

.test-btn-primary:hover {
  background: #4f46e5;
}

.test-btn-secondary {
  background: #e2e8f0;
  color: var(--ink);
}

.test-btn-secondary:hover {
  background: #cbd5e1;
}

.test-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 24px;
}

.text-muted {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* 结果页面样式 */
.mbti-result-container {
  padding: 40px 0;
}

.result-header {
  background: linear-gradient(135deg, var(--mbti-primary) 0%, #8b5cf6 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 32px;
}

.result-type {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.result-desc {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.result-dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.result-dimension {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-dimension-letter {
  font-size: 24px;
  font-weight: 700;
  color: var(--mbti-primary);
  margin-bottom: 4px;
}

.result-dimension-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.result-dimension-desc {
  font-size: 12px;
  color: var(--ink-3);
}

.result-section {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.result-list-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.result-career {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-career-tag {
  background: var(--mbti-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.result-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #94a3b8;
}

.result-disclaimer p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 768px) {
  .mbti-hero h1 {
    font-size: 32px;
  }
  
  .test-options {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  
  .test-option-card {
    width: 100%;
  }
  
  .result-dimensions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dimensions-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .test-nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .test-btn {
    width: 100%;
  }
}
