:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --border-gray: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 卡片通用样式 */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

/* 引导页样式 */
.landing-card {
  padding: 3rem 2rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  margin-top: 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-header {
  margin-bottom: 2rem;
}

.landing-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.landing-icon i {
  color: white;
  font-size: 2.5rem;
}

.landing-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-desc {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: left;
  border: 1px solid var(--border-gray);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.feature-icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* 答题页样式 */
.quiz-container {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quiz-header {
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background-color: var(--border-gray);
  border-radius: 4px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.quiz-card {
  padding: 2.5rem 2rem;
  position: relative;
}

.question-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.question-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border-gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
}

.option:hover {
  border-color: var(--primary-light);
  background-color: rgba(99, 102, 241, 0.05);
  transform: translateX(5px);
}

.option.selected {
  border-color: var(--primary);
  background-color: rgba(99, 102, 241, 0.1);
}

.option-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.option-text {
  font-size: 1.1rem;
  color: var(--text-gray);
}

/* 结果页样式 */
.result-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  animation: fadeIn 0.5s ease-out;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.result-score {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.result-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--bg-white);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.result-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.result-chart {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.result-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 管理页样式 */
.admin-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  animation: fadeIn 0.5s ease-out;
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--bg-white);
  transition: var(--transition);
  text-align: center;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.admin-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.admin-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.admin-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(59, 130, 246, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* 导航样式 */
.nav-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link i {
  margin-right: 0.5rem;
}

/* 页脚样式 */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 3rem;
  width: 100%;
}

.footer-content {
  text-align: center;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .landing-title {
    font-size: 1.75rem;
  }
  
  .landing-features {
    grid-template-columns: 1fr;
  }
  
  .question-text {
    font-size: 1.25rem;
  }
  
  .option {
    padding: 1rem 1.25rem;
  }
  
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  
  .result-cards {
    grid-template-columns: 1fr;
  }
  
  .admin-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .landing-card {
    padding: 2rem 1.5rem;
  }
  
  .quiz-card {
    padding: 2rem 1.5rem;
  }
  
  .question-number {
    top: 1rem;
    right: 1rem;
  }
  
  .nav-bar {
    padding: 0.75rem 1rem;
  }
  
  .nav-title {
    font-size: 1rem;
  }
}