/* 🆕 v4.0 水平测试页面样式 */

.placement-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* 进度条 */
.placement-progress {
  margin-bottom: 24px;
}
.placement-progress-bar {
  height: 6px;
  background: var(--tg-theme-secondary-bg-color, #e0e0e0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.placement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e67e22, #f39c12);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.placement-progress-text {
  text-align: center;
  font-size: 13px;
  color: var(--tg-theme-hint-color, #999);
}

/* 题目卡片 */
.placement-question-card {
  background: var(--tg-theme-bg-color, #fff);
  border: 1px solid var(--tg-theme-secondary-bg-color, #eee);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.placement-question-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #e67e22;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.placement-question-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--tg-theme-text-color, #222);
  text-align: center;
  padding: 16px 0;
  line-height: 1.4;
}

/* 选项按钮 */
.placement-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.placement-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--tg-theme-secondary-bg-color, #e0e0e0);
  border-radius: 12px;
  background: var(--tg-theme-bg-color, #fff);
  color: var(--tg-theme-text-color, #222);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.placement-option-btn:active {
  transform: scale(0.98);
}
.placement-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tg-theme-secondary-bg-color, #f0f0f0);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.placement-option-btn.correct {
  border-color: #27ae60;
  background: #eafaf1;
  animation: pulse-green 0.3s ease;
}
.placement-option-btn.wrong {
  border-color: #e74c3c;
  background: #fdedec;
  animation: shake 0.3s ease;
}
.placement-option-btn.correct .placement-option-label {
  background: #27ae60;
  color: #fff;
}
.placement-option-btn.wrong .placement-option-label {
  background: #e74c3c;
  color: #fff;
}

@keyframes pulse-green {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 结果页 */
.placement-result {
  text-align: center;
  padding: 24px 16px;
}
.placement-result-emoji {
  font-size: 64px;
  margin-bottom: 16px;
}
.placement-result-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.placement-result-level {
  font-size: 36px;
  font-weight: 800;
  color: #e67e22;
  margin-bottom: 24px;
}

/* 雷达图 */
.placement-radar {
  background: var(--tg-theme-secondary-bg-color, #f8f8f8);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
.placement-radar-title {
  font-size: 14px;
  color: var(--tg-theme-hint-color, #999);
  margin-bottom: 16px;
}
.placement-skill-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.placement-skill-label {
  width: 80px;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}
.placement-skill-track {
  flex: 1;
  height: 10px;
  background: var(--tg-theme-bg-color, #fff);
  border-radius: 5px;
  overflow: hidden;
}
.placement-skill-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.placement-skill-pct {
  width: 40px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

/* 继续按钮 */
.placement-continue-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  border: none;
  border-radius: 12px;
  background: #e67e22;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.placement-continue-btn:active {
  background: #d35400;
}

/* 升级卡片 */
.placement-upgrade-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
.placement-upgrade-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.placement-upgrade-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  opacity: 0.8;
}
.placement-upgrade-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 10px;
  background: #f39c12;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
