/* ========== NBTI 测试页样式 (Light) ========== */

.test-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部进度区 */
.test-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 250, 0.95);
  backdrop-filter: blur(16px);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.test-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .test-header-inner {
    max-width: 860px;
  }
}

.test-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.test-counter {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.test-counter .current {
  color: #1a8a10;
  font-weight: 700;
  font-size: 1.1rem;
}

.test-dimension {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(26, 138, 16, 0.08);
  border: 1px solid rgba(26, 138, 16, 0.15);
}

/* 题目区 */
.test-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .test-body {
    max-width: 860px;
  }
}

.question-container {
  will-change: transform, opacity;
}

.question-number {
  font-size: 0.8rem;
  color: #1a8a10;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* 选项 */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.option-btn:hover {
  border-color: #1a8a10;
  background: rgba(26, 138, 16, 0.06);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(26, 138, 16, 0.15);
}

.option-btn.selected {
  border-color: #1a8a10;
  background: rgba(26, 138, 16, 0.1);
  box-shadow: 0 0 20px rgba(26, 138, 16, 0.2);
  transform: translateX(6px) scale(1.01);
}

.option-btn:active {
  transform: translateX(3px) scale(0.99);
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-btn.selected .option-label {
  background: #1a8a10;
  border-color: #1a8a10;
  color: #fff;
  box-shadow: 0 0 10px rgba(26, 138, 16, 0.4);
  transform: scale(1.1);
}

.option-text {
  padding-top: 4px;
}

/* 底部操作 */
.test-footer {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .test-footer {
    max-width: 860px;
  }
}

.test-footer .btn {
  flex: 1;
}

/* 题目切换动画 - GPU加速 */
.question-enter {
  animation: questionSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.question-exit {
  animation: fadeOutLeft 0.2s ease-in forwards;
}

@keyframes questionSlideIn {
  from { opacity: 0; transform: translate3d(30px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeOutLeft {
  to { opacity: 0; transform: translate3d(-30px, 0, 0); }
}
