body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #000;
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
  overflow: hidden;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(0, 255, 255, 0.2) 50%,
    rgba(0, 255, 255, 0.1) 100%
  );
  animation: techGlow 3s linear infinite;
  z-index: 1;
}

.container {
  max-width: 60%;
  margin: 0 auto;
  padding: 20px;
  background: #0000FF;
  border: 5px solid #FFFF00;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.container::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: #FFFF00;
  border: 5px solid #000;
  z-index: -1;
}

.title {
  font-family: 'Arial Black', sans-serif;
  font-size: 72px;
  color: #FFFF00;
  margin: 10px 0;
  text-shadow: 3px 3px 0 #FF0000, -3px -3px 0 #0000FF;
  animation: blink 1s step-end infinite;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto 20px;
  width: 50%;
  align-items: center;
}

.typewriter {
  font-family: 'Comic Sans MS', 'Marker Felt', 'Waltograph', cursive;
  white-space: pre;
  overflow: hidden;
  border-right: 3px solid #F588AF;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: blink-caret 0.75s step-end infinite;
  font-size: 36px;
  line-height: 1.5;
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  animation: typing 3s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange }
}

.barrage {
  position: fixed;
  white-space: nowrap;
  font-size: 24px;
  font-family: 'Courier New', monospace;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
  animation: barrageMove linear infinite;
  z-index: 999;
}

@keyframes barrageMove {
  from { 
    transform: translateX(100vw);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to { 
    transform: translateX(-100%);
    opacity: 0;
  }
}

.praise-container {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 10px solid #FF0000;
  box-shadow: 0 0 30px #0000FF, 0 0 60px #FFFF00;
  padding: 10px;
  overflow-y: auto;
  max-height: calc(100vh - 40px); /* 确保容器不超过视口高度 */
  overflow-y: auto; /* 允许内容滚动 */
  box-sizing: border-box; /* 确保padding包含在高度内 */
}

.praise-line {
  font-size: 28px;
  color: #000;
  width: 90%; /* 调整为90%宽度 */
  text-align: left;
  margin: 5px 0;
  padding: 8px;
  line-height: 1.3; /* 调整行高 */
  background: #FFFF00;
  border: 3px solid #FF0000;
  animation: shake 0.5s infinite;
  font-style: italic;
  text-decoration: underline;
  box-shadow: 0 0 10px #00FFFF;
  max-height: calc((100vh - 40px) / 10); /* 每行高度平均分配 */
  overflow: hidden; /* 防止内容溢出 */
  word-break: break-word; /* 确保长单词换行 */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

input, button {
  font-family: 'Comic Sans MS', 'Marker Felt', 'Waltograph', cursive;
  font-size: 18px;
  padding: 12px 20px;
  margin: 10px auto;
  width: 50%;
  border: 2px solid #F588AF;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s ease;
}

button {
  width: 16.666%;
}

input:focus {
  border-color: #FCBC52;
  box-shadow: 0 0 10px rgba(252, 188, 82, 0.5);
}

button {
  background-color: #FFFF00;
  color: #FF0000;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 0 5px #0000FF;
}

button:hover {
  background-color: #FFFF00;
  transform: scale(1.05);
  animation: blink 0.5s step-end infinite;
}

button {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
}

#backBtn {
  width: 80px;
  height: 40px;
  font-size: 12px;
  padding: 5px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#loading {
  color: #FFFF00;
  font-weight: bold;
}

.loading-text {
  margin-top: 20px;
  font-size: 216px;
  color: #ff0000;
  text-shadow: 2px 2px 0 #ffff00, -2px -2px 0 #0000ff;
  animation: blink 0.5s step-end infinite;
}

.progress-bar {
  height: 50%;
  width: 0%;
  background: linear-gradient(90deg, #00ffff, #0088ff, #00ffff);
  transition: width 0.3s ease;
  animation: techGlow 0.5s infinite alternate;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #0088ff;
  border-radius: 5px;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange }
}

.barrage {
  position: fixed;
  white-space: nowrap;
  font-size: 24px;
  font-family: 'Courier New', monospace;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
  animation: barrageMove linear infinite;
  z-index: 999;
}

@keyframes barrageMove {
  from { 
    transform: translateX(100vw);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to { 
    transform: translateX(-100%);
    opacity: 0;
  }
}
