/* ============================
   AI职业体检 — 全局样式
   深色 + 金色主题设计
   ============================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(20, 20, 50, 0.8);
  --bg-card-solid: #14143a;
  --bg-card-hover: rgba(30, 30, 70, 0.9);

  --gold-primary: #ffd700;
  --gold-secondary: #f0c040;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --gold-soft: rgba(255, 215, 0, 0.15);

  --purple-primary: #8b5cf6;
  --purple-secondary: #a78bfa;
  --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);

  --text-primary: #ffffff;
  --text-secondary: #b0b0c8;
  --text-muted: #6b6b8a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);

  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Page System ---------- */
.page {
  display: none;
  min-height: 100vh;
  position: relative;
}

.page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.is-hidden {
  display: none !important;
}

/* ============================
   页面1：测试介绍
   ============================ */
#intro {
  background: linear-gradient(180deg, #0a0a1a 0%, #12122e 50%, #1a0a2e 100%);
  justify-content: center;
  padding: 40px 20px;
}

#intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bgFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(2%, -2%) rotate(1deg);
  }

  66% {
    transform: translate(-1%, 1%) rotate(-0.5deg);
  }
}

.intro-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.intro-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out;
}

.intro-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 2px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.intro-dimensions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.dim-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.dim-tag:hover {
  background: var(--gold-soft);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--gold-primary);
}

.dim-icon {
  font-size: 14px;
}

.intro-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.stat-number {
  font-size: 32px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  background: var(--gold-gradient);
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out 0.5s both;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  font-family: var(--font-family);
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.btn-start:active {
  transform: translateY(0);
}

.btn-secondary {
  margin-top: 12px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
}

.intro-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.intro-resume-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: var(--purple-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* --- 增强版 Intro 样式 --- */

/* Hero区域 */
.intro-hero {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 16px;
}

.hero-dna-icon {
  font-size: 56px;
  margin-bottom: 8px;
  animation: floatDNA 3s ease-in-out infinite;
}

@keyframes floatDNA {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* 通用 Section 样式 */
.intro-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
}

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

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.section-desc strong {
  color: var(--gold-primary);
}

/* 维度卡片 */
.intro-dim-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.intro-dim-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.3s ease;
}

.intro-dim-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.04);
}

.dim-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dim-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.dim-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 你将获得 */
.intro-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-md);
}

.benefit-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--purple-primary);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.benefit-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ */
.intro-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.faq-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.faq-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-secondary);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA 区域 */
.intro-cta-area {
  text-align: center;
  padding: 32px 0 20px;
}

.intro-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Intro页面改为自动高度、可滚动 */
#intro {
  min-height: auto;
  padding-bottom: 40px;
}

.intro-container {
  max-width: 420px;
  padding: 0 8px;
}

/* ============================
   页面2：答题
   ============================ */
#quiz {
  background: var(--bg-primary);
  padding: 0;
}

.quiz-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.btn-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-back.hidden {
  opacity: 0;
  pointer-events: none;
}

.quiz-progress-info {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.quiz-progress-info #currentNum {
  color: var(--gold-primary);
  font-size: 20px;
}

.quiz-dimension-badge {
  padding: 4px 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  font-size: 12px;
  color: var(--gold-primary);
}

.progress-bar-container {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 68px;
  z-index: 10;
}

.progress-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.question-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 40px;
  animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.option-item:active {
  transform: scale(0.98);
}

.option-item.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.option-item.selected .option-radio {
  border-color: var(--purple-primary);
  background: var(--purple-primary);
}

.option-item.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.option-text {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.option-item.selected .option-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================
   页面3：加载动画
   ============================ */
#loading {
  background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2d 100%);
  justify-content: center;
  padding: 40px 20px;
}

.loading-container {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.loading-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-icon {
  font-size: 50px;
  position: relative;
  z-index: 2;
  animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.4);
  animation: pulseRing 2s ease-out infinite;
}

.pulse-ring.delay-1 {
  animation-delay: 0.6s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.loading-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '....';
  }
}

.loading-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.loading-steps {
  text-align: left;
  margin-bottom: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.4s ease;
}

.loading-step.active {
  color: var(--text-primary);
}

.loading-step.done {
  color: var(--success);
}

.step-icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-icon.done {
  color: var(--success);
}

.loading-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--gold-primary));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}

.loading-progress-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================
   页面4：报告
   ============================ */
#report {
  background: linear-gradient(180deg, #0a0a1a 0%, #0d0d28 30%, #12122e 100%);
  padding: 0 0 40px;
}

.report-container {
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
}

.report-header {
  text-align: center;
  padding: 40px 20px 32px;
}

.report-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: fadeInDown 0.5s ease-out;
}

.report-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.report-date {
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* Report Cards */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease-out both;
}

.report-card:nth-child(2) {
  animation-delay: 0.1s;
}

.report-card:nth-child(3) {
  animation-delay: 0.15s;
}

.report-card:nth-child(4) {
  animation-delay: 0.2s;
}

.report-card:nth-child(5) {
  animation-delay: 0.25s;
}

.report-card:nth-child(6) {
  animation-delay: 0.3s;
}

.report-card:nth-child(7) {
  animation-delay: 0.35s;
}

.card-header {
  margin-bottom: 20px;
}

.card-header-line {
  width: 32px;
  height: 3px;
  background: var(--purple-gradient);
  border-radius: 2px;
  margin-bottom: 12px;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Score Card */
.score-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(20, 20, 50, 0.9) 0%, rgba(30, 15, 50, 0.9) 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.score-gauge {
  width: 100%;
  height: 220px;
  margin-bottom: 8px;
}

.score-info {
  position: relative;
}

.score-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.score-value {
  font-size: 56px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.score-beat {
  font-size: 14px;
  color: var(--purple-secondary);
  font-weight: 500;
}

.summary-card {
  background: linear-gradient(135deg, rgba(28, 17, 56, 0.88) 0%, rgba(16, 26, 54, 0.92) 100%);
  border-color: rgba(255, 215, 0, 0.12);
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-metric-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-metric-value {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.summary-metric-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.summary-callout {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.16);
}

.summary-callout-label {
  font-size: 12px;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.summary-callout-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.summary-conclusion {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Type Card */
.type-card {
  text-align: center;
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.09), transparent 34%),
    linear-gradient(160deg, rgba(24, 18, 48, 0.96) 0%, rgba(13, 18, 38, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.type-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(255, 215, 0, 0.14);
  box-shadow: 0 10px 30px rgba(8, 8, 20, 0.22);
}

.type-name {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-primary);
  font-size: 20px;
  font-weight: 900;
  border-radius: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 215, 0, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.type-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 14px;
}

/* Radar Chart */
.radar-card {
  padding: 24px 16px;
}

.radar-chart {
  width: 100%;
  height: 320px;
}

/* Dimensions List */
.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dimension-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.dimension-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dim-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.dim-emoji {
  font-size: 20px;
}

.dim-score-display {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-primary);
}

.dim-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.dim-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.dim-progress-fill.digitization {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.dim-progress-fill.standardization {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.dim-progress-fill.human_moat {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.dim-progress-fill.judgment_moat {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.dim-progress-fill.ai_agility {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.dim-percent {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 12px;
}

.dim-analysis {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Advantages */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.advantage-number {
  width: 28px;
  height: 28px;
  background: var(--gold-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #1a1a1a;
  flex-shrink: 0;
}

.advantage-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.advantage-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Suggestions */
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.suggestion-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.suggestion-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--purple-secondary);
}

.suggestion-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Report Footer */
.report-footer {
  text-align: center;
  padding: 40px 20px 20px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 24px;
}

.btn-restart {
  padding: 12px 32px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-restart:hover {
  border-color: var(--purple-primary);
  color: var(--purple-secondary);
  background: rgba(139, 92, 246, 0.1);
}

.report-footer-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-export {
  padding: 14px 28px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 50px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-export:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.report-action-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.report-action-status.is-error {
  color: #fca5a5;
}

/* ============================
   通用动画
   ============================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================
   移动端响应式
   ============================ */
@media (max-width: 400px) {
  .intro-title {
    font-size: 34px;
  }

  .stat-number {
    font-size: 28px;
  }

  .btn-start {
    padding: 14px 40px;
    font-size: 16px;
  }

  .question-text {
    font-size: 18px;
  }

  .score-value {
    font-size: 48px;
  }

  .radar-chart {
    height: 280px;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) {
  .report-container {
    padding: 0 24px;
  }

  .report-card {
    padding: 28px;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================
   页面0：兑换码验证
   ============================ */
#codegate {
  background: linear-gradient(180deg, #0a0a1a 0%, #12122e 50%, #1a0a2e 100%);
  justify-content: center;
  padding: 40px 20px;
}

#codegate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.codegate-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.codegate-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease-out;
}

.codegate-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 2px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.codegate-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.codegate-input-wrap {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.codegate-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: all 0.3s ease;
}

.codegate-input::placeholder {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-family);
}

.codegate-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.codegate-input.success {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.codegate-input.shake {
  animation: shake 0.5s ease-in-out;
  border-color: var(--danger);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }
}

.codegate-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 8px;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.codegate-error.show {
  opacity: 1;
}

#codegate .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  background: var(--gold-gradient);
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  font-family: var(--font-family);
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

#codegate .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

#codegate .cta-button:active {
  transform: translateY(0);
}

#codegate .cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.codegate-help {
  margin-top: 32px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.codegate-help p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.codegate-hint {
  color: var(--gold-secondary) !important;
  font-weight: 500;
}

.btn-start:disabled,
.btn-start.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-start:disabled:hover,
.btn-start.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

#calibration {
  min-height: 100vh;
  padding: 0 0 40px;
}

.calibration-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.calibration-hero {
  text-align: center;
  margin-bottom: 18px;
}

.calibration-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 12px;
}

.calibration-subtitle {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.calibration-summary {
  background: linear-gradient(135deg, rgba(28, 17, 56, 0.88) 0%, rgba(16, 26, 54, 0.92) 100%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 18px;
}

.calibration-tags,
.summary-calibration-tags,
.quiz-context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calibration-tag,
.quiz-context-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.calibration-tag.is-selected,
.quiz-context-tag {
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.22);
  background: rgba(255, 215, 0, 0.08);
}

.calibration-tag.is-pending {
  color: var(--text-muted);
}

.calibration-hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.calibration-hint.is-ready {
  color: var(--purple-secondary);
}

.calibration-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calibration-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
}

.calibration-section-header {
  margin-bottom: 14px;
}

.calibration-section-kicker {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.calibration-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.calibration-section-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.calibration-option-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calibration-option {
  width: 100%;
  text-align: left;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(13, 18, 38, 0.92);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(3, 4, 12, 0.18);
}

.calibration-option::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.calibration-option:hover {
  border-color: rgba(139, 92, 246, 0.22);
  background:
    linear-gradient(140deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(13, 18, 38, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(3, 4, 12, 0.24);
}

.calibration-option.selected {
  border-color: rgba(255, 215, 0, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.10), transparent 42%),
    linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(139, 92, 246, 0.08)),
    rgba(13, 18, 38, 0.98);
  box-shadow: 0 16px 32px rgba(10, 10, 22, 0.28);
}

.calibration-option.selected::before {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.95), rgba(139, 92, 246, 0.7));
  width: 4px;
}

.calibration-option-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-right: 12px;
}

.calibration-option-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-right: 8px;
}

.calibration-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
}

.summary-calibration {
  margin-bottom: 18px;
}

.summary-calibration-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.quiz-context-tags {
  padding: 12px 20px 0;
}

.quiz-context-tag {
  font-size: 11px;
}

@media (max-width: 640px) {
  .type-card {
    padding: 24px 16px 20px;
  }

  .type-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
    border-radius: 18px;
  }

  .type-tag {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
    border-radius: 14px;
  }

  .type-desc {
    font-size: 13px;
    line-height: 1.85;
    padding: 14px 12px;
  }

  .calibration-option {
    padding: 15px 14px 15px 18px;
    border-radius: 16px;
  }

  .calibration-option-label {
    font-size: 14px;
  }

  .calibration-option-desc {
    font-size: 12px;
  }

  .calibration-tags,
  .summary-calibration-tags,
  .quiz-context-tags {
    gap: 8px;
  }

  .calibration-tag,
  .quiz-context-tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
  }
}
