/* ===== 测试页面样式 - 温暖灵动 ===== */

/* 测试头部 */
.test-header {
  text-align: center;
  padding: 30px 20px 16px;
  color: var(--text-primary);
  animation: fadeInUp 0.5s ease-out;
}

.test-header .logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--warm-coral);
  letter-spacing: 2px;
}

.test-header h1 {
  font-size: 26px;
  font-weight: 700;
}

/* 进度条 */
.progress-bar {
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 24px;
  position: relative;
  height: 28px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.progress-fill {
  background: linear-gradient(90deg, #FF9A9E, #FAD0C4, #F8C8D4);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 2%;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}

/* 测试内容区 */
.test-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-warm);
  border: 1px solid rgba(255,255,255,0.6);
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.question-container {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question-number {
  font-size: 13px;
  color: var(--warm-coral);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

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

/* 选项按钮 */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  padding: 16px 24px;
  border: 2px solid #EDE5DC;
  border-radius: var(--radius-md);
  background: #FFFAF5;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-weight: 500;
}

.option-btn:hover {
  border-color: var(--warm-coral);
  background: #FFF5EE;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(255, 154, 158, 0.15);
}

.option-btn.selected {
  border-color: var(--warm-coral);
  background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 100%);
  color: #fff;
  font-weight: 600;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 154, 158, 0.3);
}

/* 导航按钮 */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-nav {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.btn-prev {
  background: #F5F0EB;
  color: var(--text-secondary);
}

.btn-prev:hover:not(:disabled) {
  background: #EDE5DC;
  transform: translateX(-2px);
}

.btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-next {
  background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
  color: #fff;
  box-shadow: 0 3px 12px rgba(255, 154, 158, 0.25);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 154, 158, 0.4);
}

/* 完成按钮 */
.btn-submit {
  background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 154, 158, 0.35);
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 154, 158, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
  .test-content { padding: 24px 16px; }
  .question-text { font-size: 19px; }
  .option-btn { padding: 14px 18px; font-size: 15px; }
}
