/* 首页故事显示模块的样式 */

.story-display {
  padding: 60px 5%;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../图片/story-bg.jpg') no-repeat center/cover;
  min-height: 60vh;
}

.story-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(10, 10, 10, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
  border-left: 4px solid #ff3a3a;
}

#story-title {
  color: #ff3a3a;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.story-text {
  font-size: 16px;
  line-height: 1.8;
  color: #f0f0f0;
  white-space: pre-wrap;
  margin-bottom: 30px;
  min-height: 100px;
}

.story-text span {
  animation: fadeIn 0.1s ease-in;
}

.story-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

/* 特殊动画效果 */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.flickering {
  animation: flicker 4s infinite;
}

/* 阅读进度指示器 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #ff3a3a;
  z-index: 1000;
  transition: width 0.1s;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .story-container {
    padding: 20px;
  }
  
  #story-title {
    font-size: 1.5rem;
  }
  
  .story-text {
    font-size: 14px;
  }
  
  .story-controls {
    flex-direction: column;
  }
  
  .story-controls button {
    width: 100%;
  }
}