/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 评分圆圈样式 */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f8f9fa;
  border: 8px solid #b02a37; /* 加深红色边框提高对比 */
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18), 0 8px 18px rgba(0, 0, 0, 0.12); /* 外环与阴影增强层次 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.score-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff; /* 使用白色提升与背景的对比度 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* 增强可读性 */
  line-height: 1;
}

.score-label {
  font-size: 1rem;
  color: #ffffff; /* 改为白色提升对比度 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* 增强可读性 */
  opacity: 0.92; /* 轻微降低饱和，避免与分数文字抢眼 */
  margin-top: 5px;
}

/* 评测文本样式 */
.evaluation-text {
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* 单词评测样式 */
.word-evaluation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
}

.word-item {
  padding: 8px 15px;
  background-color: #f8f9fa;
  border-radius: 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-score {
  font-weight: bold;
  color: #007bff;
}

/* 录音状态样式 */
.recording-active {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .score-circle {
    width: 100px;
    height: 100px;
    border-width: 6px;
  }

  .score-value {
    font-size: 2rem;
  }

  .word-evaluation {
    gap: 8px;
  }

  .word-item {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}