/*
 * 朗读评估工具样式表
 *
 * 使用简洁的布局和柔和的配色，以提供良好的用户体验。
 */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

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

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
}

p {
  line-height: 1.5;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}

.controls {
  margin-top: 10px;
  text-align: center;
}

.controls button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 0 10px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  color: #fff;
  margin-top: 10px;
}

#startBtn {
  background-color: #3498db;
}

#stopBtn {
  background-color: #e74c3c;
}

#stopBtn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

/* 额外按钮样式 */
#demoBtn {
  background-color: #27ae60;
}

#pinyinBtn {
  background-color: #8e44ad;
}

/* 倒计时显示区域 */
#timerContainer {
  margin-top: 10px;
  font-size: 18px;
  text-align: center;
  color: #e67e22;
}

/* 注音输出区域 */
#pinyinOutputContainer {
  margin-top: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#pinyinOutput {
  white-space: pre-wrap;
  word-break: break-word;
}

#apiKeyContainer {
  margin-top: 20px;
}

#apiKeyContainer label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#apiKey {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#transcriptContainer,
#resultContainer {
  margin-top: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#transcript {
  min-height: 40px;
  white-space: pre-wrap;
  word-break: break-word;
}

#report {
  white-space: pre-wrap;
  word-break: break-word;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}