/* ========================================
   全局基础样式
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 
               'Hiragino Sans GB', 'Microsoft YaHei', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 动态背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ========================================
   欢迎页样式
======================================== */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.welcome-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo-wrapper {
  margin-bottom: 20px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 主标题 */
.main-title {
  margin-bottom: 15px;
}

.emoji-group {
  display: block;
  font-size: 48px;
  margin-bottom: 10px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.title-text {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: white;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 30px;
  font-weight: 500;
}

/* 特色卡片 */
.feature-cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.feature-card {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px 20px;
  min-width: 100px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 5px;
}

.feature-text {
  font-size: 13px;
  color: white;
  font-weight: 600;
  line-height: 1.4;
}

.feature-text small {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

/* 描述文本 */
.description {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.description strong {
  color: #fff;
  font-weight: 700;
}

/* 主按钮 */
.primary-btn {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: #667eea;
  border: none;
  padding: 18px 60px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(102,126,234,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before {
  width: 300px;
  height: 300px;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.primary-btn:active {
  transform: translateY(-1px);
}

.primary-btn span {
  position: relative;
  z-index: 1;
}

/* 元信息 */
.meta-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* 底部文本 */
.footer-text {
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-text strong {
  color: white;
  font-weight: 600;
}

.footer-text small {
  font-size: 11px;
  opacity: 0.8;
}

/* ========================================
   测试页样式
======================================== */
.test-section {
  padding: 30px 0 60px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 进度条容器 */
.progress-container {
  background: white;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-text {
  font-size: 24px;
  font-weight: 800;
  color: #667eea;
}

.progress-label {
  font-size: 14px;
  color: #999;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(102,126,234,0.5);
}

/* 题目卡片 */
.question-card {
  background: white;
  padding: 35px 30px;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  margin-bottom: 25px;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.question-number {
  font-size: 13px;
  color: #667eea;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* 选项容器 */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background: #f8f9fa;
  border: 2px solid transparent;
  padding: 18px 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #667eea;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.option:hover {
  background: #f0f0f8;
  border-color: #667eea;
  transform: translateX(5px);
}

.option:hover::before {
  transform: scaleY(1);
}

.option.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.option.selected::before {
  width: 100%;
  background: rgba(255,255,255,0.2);
}

/* 按钮组 */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.secondary-btn {
  background: rgba(255,255,255,0.9);
  color: #667eea;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 768px) {
  .title-text {
    font-size: 32px;
  }
  
  .emoji-group {
    font-size: 40px;
  }
  
  .subtitle {
    font-size: 18px;
  }
  
  .feature-cards {
    gap: 10px;
  }
  
  .feature-card {
    min-width: 90px;
    padding: 12px 15px;
  }
  
  .feature-icon {
    font-size: 28px;
  }
  
  .primary-btn {
    padding: 16px 50px;
    font-size: 18px;
  }
  
  .question-card {
    padding: 25px 20px;
  }
  
  .question-text {
    font-size: 18px;
  }
  
  .option {
    padding: 16px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .title-text {
    font-size: 28px;
  }
  
  .feature-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    width: 100%;
    max-width: 200px;
  }
  
  .meta-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .progress-text {
    font-size: 20px;
  }
  
  .question-text {
    font-size: 16px;
  }
}
