/* ============================================
   MBTI Pro - 专业人格类型测评系统
   Premium Design System
   ============================================ */

/* CSS Variables */
:root {
  --navy-900: #0a0e1a;
  --navy-800: #0f172a;
  --navy-700: #1a2340;
  --navy-600: #1e293b;
  --navy-500: #2a3a5c;
  --gold-400: #d4a853;
  --gold-500: #c9982e;
  --gold-600: #b8860b;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --red-400: #f87171;
  --red-500: #ef4444;
  --cyan-400: #22d3ee;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-80: rgba(255, 255, 255, 0.8);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 30px rgba(212, 168, 83, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-400); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-500); }

img { max-width: 100%; height: auto; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-400); }
.text-slate { color: var(--slate-400); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .text-5xl { font-size: 2rem; }
  .text-4xl { font-size: 1.75rem; }
  .container { padding: 0 16px; }
  .hide-mobile { display: none; }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--slate-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--gold-400); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900) !important;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--white-10);
    backdrop-filter: blur(20px);
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(96, 165, 250, 0.06) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 3%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold-400);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--slate-400);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

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

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
  background: var(--white-10);
  color: var(--white);
  border: 1px solid var(--white-20);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--white-20);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Features Section
   ============================================ */
.features {
  background: var(--navy-800);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header .overline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  color: var(--slate-400);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.75rem; }
}

/* ============================================
   Dimension Preview (shared)
   ============================================ */
.dim-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dim-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dim-label {
  width: 40px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-400);
  text-align: center;
}

.dim-bar-wrap {
  flex: 1;
  height: 12px;
  background: var(--navy-600);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.dim-bar {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dim-percent {
  width: 48px;
  font-size: 0.85rem;
  color: var(--slate-400);
  text-align: right;
}
}

/* ============================================
   Types Overview Section
   ============================================ */
.types-section {
  background: var(--navy-800);
}

/* Types Tabs */
.types-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.types-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--white-10);
  background: transparent;
  color: var(--slate-400);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.types-tab:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.types-tab.active {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.types-panels {
  position: relative;
}

.types-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.types-panel.active {
  display: grid;
}

.type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.type-card:hover {
  border-color: var(--gold-400);
  background: rgba(212, 168, 83, 0.05);
  transform: translateY(-2px);
}

.type-card .type-code {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.type-card .type-name {
  font-size: 0.82rem;
  color: var(--slate-400);
}

@media (max-width: 768px) {
  .types-tabs { flex-wrap: wrap; }
  .types-tab { padding: 8px 16px; font-size: 0.8rem; }
  .types-panel { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  position: relative;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr; }
}

.faq-item {
  border-bottom: 1px solid var(--white-10);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover { color: var(--gold-400); }

.faq-arrow {
  transition: transform 0.3s;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--slate-400);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* ============================================
   Test Section
   ============================================ */
.test-page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 40px;
}

.test-page.active { display: block; }

.test-progress-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-700);
  z-index: 999;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

.test-header {
  text-align: center;
  margin-bottom: 40px;
}

.test-header .step-info {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.test-header .dim-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold-400);
}

.question-card {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-text {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
  text-align: center;
}

.likert-scale {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.likert-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.likert-option:hover {
  border-color: var(--white-20);
  background: rgba(255, 255, 255, 0.06);
}

.likert-option.selected {
  border-color: var(--gold-400);
  background: rgba(212, 168, 83, 0.08);
}

.likert-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.likert-option.selected .likert-radio {
  border-color: var(--gold-400);
}

.likert-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-400);
  transform: scale(0);
  transition: var(--transition);
}

.likert-option.selected .likert-radio::after {
  transform: scale(1);
}

.likert-label {
  font-size: 0.95rem;
  color: var(--slate-300);
}

.likert-option.selected .likert-label {
  color: var(--white);
}

.test-nav {
  display: flex;
  justify-content: space-between;
  max-width: 680px;
  margin: 40px auto 0;
}

.btn-test {
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-back {
  background: var(--white-10);
  color: var(--slate-300);
  border: 1px solid var(--white-10);
}

.btn-back:hover { background: var(--white-20); }
.btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-next {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-weight: 700;
}

.btn-next:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================
   Result Section
   ============================================ */
.result-page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

.result-page.active { display: block; }

.result-hero {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.result-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.result-certificate {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-gold);
}

.cert-top {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.cert-type {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.cert-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-group {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.cert-seal {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
  display: flex;
  justify-content: center;
  gap: 32px;
}

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

.seal-item .seal-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-400);
}

.seal-item .seal-label {
  font-size: 0.7rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Dimension Bars */
.dim-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.dim-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

.dim-analysis {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dim-item {
  position: relative;
}

.dim-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dim-pole {
  font-weight: 700;
  font-size: 0.9rem;
}

.dim-pole.active { color: var(--gold-400); }
.dim-pole.inactive { color: var(--slate-500); }

.dim-score {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.dim-bar-outer {
  height: 10px;
  background: var(--navy-600);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.dim-bar-inner {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dim-desc {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* Cognitive Functions */
.cog-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.cog-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.cog-section .cog-subtitle {
  font-size: 0.85rem;
  color: var(--slate-400);
  text-align: center;
  margin-bottom: 32px;
}

.cog-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cog-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cog-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cog-rank.r1 { background: rgba(212, 168, 83, 0.2); color: var(--gold-400); }
.cog-rank.r2 { background: rgba(96, 165, 250, 0.15); color: var(--blue-400); }
.cog-rank.r3 { background: rgba(167, 139, 250, 0.15); color: var(--purple-400); }
.cog-rank.r4 { background: rgba(100, 116, 139, 0.2); color: var(--slate-400); }

.cog-info {
  flex: 1;
}

.cog-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cog-name .cog-abbrev {
  color: var(--gold-400);
  margin-right: 6px;
}

.cog-role {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.cog-bar-outer {
  flex: 1;
  max-width: 200px;
  height: 8px;
  background: var(--navy-600);
  border-radius: 4px;
  overflow: hidden;
}

.cog-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cog-bar-inner.dominant { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.cog-bar-inner.auxiliary { background: linear-gradient(90deg, var(--blue-400), var(--blue-500)); }
.cog-bar-inner.tertiary { background: linear-gradient(90deg, var(--purple-400), var(--purple-500)); }
.cog-bar-inner.inferior { background: linear-gradient(90deg, var(--slate-400), var(--slate-500)); }

/* Result Tabs */
.result-tabs {
  max-width: 800px;
  margin: 40px auto 0;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--navy-700);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-400);
}

.tab-btn:hover:not(.active) {
  color: var(--slate-300);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.tab-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.tab-content p {
  color: var(--slate-400);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sw-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.sw-card.strengths {
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.sw-card.weaknesses {
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.sw-card h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.sw-card.strengths h4 { color: var(--green-400); }
.sw-card.weaknesses h4 { color: var(--red-400); }

.sw-list {
  list-style: none;
  padding: 0;
}

.sw-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--slate-300);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sw-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.sw-card.strengths .sw-list li::before { background: var(--green-400); }
.sw-card.weaknesses .sw-list li::before { background: var(--red-400); }

/* Career Cards */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.career-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.career-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.career-card .career-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.career-card .career-field {
  font-size: 0.75rem;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.career-card .career-reason {
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* Relationship */
.compat-section h4 {
  margin-bottom: 16px;
}

.compat-types {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.compat-tag {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.compat-best {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--green-400);
}

.compat-good {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--blue-400);
}

.compat-challenge {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--red-400);
}

/* Growth Plan */
.growth-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.growth-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
}

.growth-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.growth-step-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.growth-step-content p {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Result Actions */
.result-actions {
  max-width: 700px;
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-800);
  border-top: 1px solid var(--white-10);
  padding: 28px 0 20px;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-brand-short p {
  color: var(--slate-500);
  font-size: 0.8rem;
  margin-top: 4px;
}

.footer-links-compact {
  display: flex;
  gap: 24px;
}

.footer-links-compact a {
  color: var(--slate-500);
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-compact a:hover { color: var(--gold-400); }

.btn-sm {
  padding: 8px 24px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  color: var(--slate-500);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer-compact { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links-compact { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .strengths-weaknesses { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Landing Page Hidden
   ============================================ */
.landing-page {
  transition: opacity 0.3s;
}

.landing-page.hidden {
  display: none;
}

/* ============================================
   Loading/Calculating
   ============================================ */
.calculating-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.calculating-overlay.active {
  display: flex;
}

.calc-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--white-10);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.calc-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.calc-sub {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 8px;
}

/* ============================================
   Type Detail Modal
   ============================================ */
.type-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.9);
  z-index: 3000;
  overflow-y: auto;
  padding: 40px 20px;
}

.type-modal-overlay.active {
  display: block;
}

.type-modal {
  max-width: 800px;
  margin: 0 auto;
  background: var(--navy-800);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.type-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-10);
  border: none;
  color: var(--slate-400);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.type-modal-close:hover {
  background: var(--white-20);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

/* Print styles for result */
@media print {
  .nav, .footer, .result-actions, .test-progress-bar { display: none !important; }
  body { background: white; color: #222; }
  .result-page { padding-top: 0; }
  .result-certificate { border-color: #d4a853; box-shadow: none; }
}

/* Share Section */
.share-section {
  max-width: 700px;
  margin: 24px auto 0;
  text-align: center;
}

.share-section p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--white-10);
  background: var(--white-10);
  color: var(--slate-300);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--white-20);
  color: var(--white);
}

/* Trust Indicators */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--white-10);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 0.75rem;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .trust-bar { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .share-buttons { flex-wrap: wrap; }
}

/* Premium Badge on Result */
.premium-cta {
  max-width: 700px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.premium-cta h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.premium-cta p {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 16px;
  line-height: 1.7;
}

.premium-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--slate-300);
}

.premium-feature .pf-icon {
  color: var(--gold-400);
  font-size: 0.7rem;
}

/* Result type description below certificate */
.result-type-desc {
  max-width: 600px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--slate-400);
  line-height: 1.8;
}

/* Certificate meta info */
.cert-meta {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--slate-500);
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.cert-divider {
  color: var(--navy-500);
}

/* Free vs Premium Comparison */
.compare-section {
  max-width: 700px;
  margin: 40px auto 0;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--white-10);
}
.compare-table thead th {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--white-10);
}
.compare-table thead th:first-child {
  text-align: left;
}
.compare-table thead th.premium-col {
  color: var(--gold-400);
  position: relative;
}
.compare-table thead th.premium-col::after {
  content: '推荐';
  position: absolute;
  top: -1px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 0 0 4px 4px;
  font-weight: 800;
}
.compare-table tbody td {
  padding: 12px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--slate-400);
}
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--slate-300);
  font-weight: 500;
}
.compare-table tbody td.check-yes {
  color: var(--green-400);
}
.compare-table tbody td.check-no {
  color: var(--slate-500);
}
.compare-table tbody td.premium-col {
  background: rgba(212, 168, 83, 0.03);
}
.compare-table tfoot td {
  padding: 16px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}
.compare-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
}
.compare-price-free {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-400);
}
.compare-original {
  font-size: 0.8rem;
  color: var(--slate-500);
  text-decoration: line-through;
  margin-left: 4px;
}

/* Social Proof Ticker */
.social-proof-ticker {
  background: rgba(212, 168, 83, 0.05);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: flex;
  gap: 48px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate-400);
  flex-shrink: 0;
}
.ticker-item .ticker-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--navy-900);
}
.ticker-item .ticker-type {
  color: var(--gold-400);
  font-weight: 700;
}
.ticker-item .ticker-time {
  color: var(--slate-500);
  font-size: 0.7rem;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Mobile test experience */
@media (max-width: 768px) {
  .scale-options {
    flex-direction: row !important;
    gap: 6px !important;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .scale-option {
    min-width: 52px;
    padding: 10px 6px !important;
    flex-shrink: 0;
  }
  .scale-option .scale-num {
    font-size: 1rem !important;
  }
  .scale-option .scale-label {
    font-size: 0.6rem !important;
    white-space: nowrap;
  }
  .question-nav {
    flex-direction: column;
    gap: 8px;
  }
  .question-nav .btn {
    width: 100%;
  }
  .test-progress-bar {
    margin-bottom: 16px;
  }
  .question-counter {
    font-size: 0.8rem;
  }
  .cert-type {
    font-size: 4rem !important;
  }
  .compare-table { font-size: 0.75rem; }
  .compare-table thead th, .compare-table tbody td { padding: 8px 6px; }
  .compare-table tbody td:first-child { font-size: 0.7rem; }
  .ticker-content { gap: 32px; }
  .premium-cta.enhanced { padding: 24px 16px; }
  .premium-cta.enhanced .premium-price { font-size: 1.6rem; }
}

/* Enhanced Premium CTA */
.premium-cta.enhanced {
  max-width: 700px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(212, 168, 83, 0.03));
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium-cta.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600), var(--gold-400));
}
.premium-cta.enhanced .premium-badge {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.premium-cta.enhanced h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.premium-cta.enhanced .premium-subtitle {
  color: var(--gold-400);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.premium-cta.enhanced p {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 20px;
  line-height: 1.7;
}
.premium-cta.enhanced .premium-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.premium-cta.enhanced .premium-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-400);
}
.premium-cta.enhanced .premium-original {
  font-size: 1rem;
  color: var(--slate-500);
  text-decoration: line-through;
}
.premium-cta.enhanced .premium-save {
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--green-400);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.premium-cta.enhanced .premium-urgency {
  font-size: 0.8rem;
  color: var(--red-400);
  margin-bottom: 16px;
  font-weight: 600;
}
.premium-cta.enhanced .btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
  transition: var(--transition);
}
.premium-cta.enhanced .btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.5);
}
.premium-cta.enhanced .premium-guarantee {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Smooth page transitions */
.landing-page, .test-page, .result-page {
  animation: pageIn 0.4s ease;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
