/* ========================================
   AI时代·核心竞争力觉醒测评
   深色科技感主题
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@400;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2e;
  --bg-card: rgba(20, 20, 50, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --glow-purple: rgba(139, 92, 246, 0.4);
  --glow-blue: rgba(59, 130, 246, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(139, 92, 246, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Animated Background --- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
}

@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);
  }
}

/* Floating particles */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(139, 92, 246, 0.5);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 20px 16px;
  min-height: 100vh;
}

/* --- Welcome Section --- */
.section-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 0;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent-purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
  }
}

.welcome-title {
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #8b5cf6 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.welcome-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.welcome-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

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

.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
}

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

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Quiz Section --- */
.section-quiz {
  display: none;
  padding: 20px 0;
}

/* Progress Bar */
.progress-wrapper {
  margin-bottom: 32px;
}

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

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.progress-text {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--accent-purple);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-glass);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 100px;
  transition: width var(--transition-slow);
}

/* Question Container */
.question-container {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.question-container.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.question-container.fade-in {
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.question-number {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
}

.option-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.option-btn.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.option-btn.selected .option-letter {
  background: var(--accent-purple);
  color: #fff;
}

.option-text {
  flex: 1;
  line-height: 1.5;
}

/* Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.btn-nav {
  padding: 12px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Quiz Tip Box --- */
.quiz-tip-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.quiz-tip-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.quiz-tip-box p+p {
  margin-top: 8px;
}

.quiz-tip-box strong {
  color: var(--accent-purple);
}

.quiz-tip-remaining span {
  color: var(--accent-purple);
  font-weight: 600;
}

/* --- Question Navigation Grid --- */
.question-nav-section {
  margin-top: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.question-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  user-select: none;
}

.question-nav-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.nav-toggle-arrow.collapsed {
  transform: rotate(-90deg);
}

.question-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 4px 16px 16px;
  transition: all var(--transition-normal);
}

.question-nav-grid.collapsed {
  display: none;
}

.qnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qnav-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* 当前题目 */
.qnav-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* 已答过的题目 */
.qnav-btn.answered {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

/* 已答 + 当前 */
.qnav-btn.answered.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

/* --- Result Section --- */
.section-result {
  display: none;
  padding: 40px 0 60px;
}

.section-result.fade-in {
  animation: slideUp 0.6s ease forwards;
}

.result-header {
  text-align: center;
  margin-bottom: 32px;
}

.result-header-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Result Card */
.result-card {
  border-radius: var(--radius-xl);
  padding: 32px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.result-card>* {
  position: relative;
  z-index: 1;
}

.result-image-wrapper {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.45));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

  50% {
    transform: translateY(-10px);
  }
}

.result-title {
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.result-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Result Description */
.result-info {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.result-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.result-advice {
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 500;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Radar Chart */
.chart-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.chart-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.radar-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Dimension Bars */
.dimension-bar-item {
  margin-bottom: 16px;
}

.dimension-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dimension-pct {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: var(--accent-purple);
}

.dimension-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.dimension-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Screenshot Tip */
.screenshot-tip {
  text-align: center;
  padding: 20px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.screenshot-tip p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.screenshot-tip .tip-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

/* --- Error / Invalid Section --- */
.section-error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 0;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.5;
}

.error-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

/* --- Watermark --- */
.watermark {
  text-align: center;
  padding: 32px 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 380px) {
  .welcome-title {
    font-size: 1.5rem;
  }

  .question-text {
    font-size: 1.05rem;
  }

  .result-title {
    font-size: 1.4rem;
  }

  .option-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .result-card {
    padding: 32px 20px 24px;
  }
}

/* --- Loading Animation --- */
.loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Timer Display --- */
.timer-display {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(20, 20, 50, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.timer-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: timerPulse 2s ease infinite;
}

@keyframes timerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}