/* certification.css 修改版 */
/* 添加步骤显示控制 */
.step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}
.back-btn {
    color: #2d8cf0;
    text-decoration: none;
    font-size: 14px;
}
.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 优化步骤切换动画 */
.step[data-step].active {
  animation: stepEnter 0.4s ease forwards;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.certification-container {
  max-width: 480px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.step .card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  margin: 1.5rem 0;
  transition: transform 0.3s ease;
}

.step .card:hover {
  transform: translateY(-2px);
}

.step h2 {
  color: #23d5ab;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.score-display {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: #f8f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #23d5ab;
  border: 3px solid #23d5ab;
}

.upload-box {
  position: relative;
  border: 2px dashed #07c160;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: #23d5ab;
  background: #23d5ab;
}

.upload-box::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  pointer-events: none;
}
.upload-box.has-image .preview {
  display: block;
}


.upload-box .preview {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: none;
}

.upload-box.has-image::before {
  display: none;
}

.upload-box.has-image .preview {
  display: block;
}

.btn.primary {
  background: #23d5ab;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  width: 100%;
  transition: opacity 0.3s;
}

.btn.primary:hover {
  opacity: 0.9;
}

.result-card {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  color: #07c160;
  margin-bottom: 1rem;
}



/* 移动端适配 */
@media (max-width: 480px) {
  .certification-container {
    padding: 0 0.5rem;
  }
  
  .step .card {
    padding: 1rem;
  }
  
  .score-display {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
}

