/* ========================================
   主题页面视觉增强样式
   ======================================== */

/* 文本内容容器优化 */
.theme-text-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 2;
  font-size: 17px;
  letter-spacing: 0.03em;
  position: relative;
}

/* 段落样式优化 */
.intro-paragraph,
.plot-paragraph,
.insight-paragraph {
  margin: 0;
  padding: 24px 28px;
  border-left: 3px solid rgba(247, 192, 92, 0.4);
  background: linear-gradient(90deg, rgba(247, 192, 92, 0.08), transparent);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

/* 段落悬停效果 */
.intro-paragraph:hover,
.plot-paragraph:hover,
.insight-paragraph:hover {
  border-left-color: rgba(247, 192, 92, 0.7);
  background: linear-gradient(90deg, rgba(247, 192, 92, 0.15), transparent 70%);
  transform: translateX(8px);
  box-shadow: 
    -3px 0 0 rgba(247, 192, 92, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 段落发光装饰 */
.intro-paragraph::before,
.plot-paragraph::before,
.insight-paragraph::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    rgba(247, 231, 173, 0.8),
    rgba(247, 192, 92, 0.6),
    rgba(212, 168, 83, 0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intro-paragraph:hover::before,
.plot-paragraph:hover::before,
.insight-paragraph:hover::before {
  opacity: 1;
}

/* 高亮段落特殊样式 */
.intro-paragraph.highlight {
  border-left-width: 4px;
  border-left-color: rgba(247, 192, 92, 0.65);
  background: linear-gradient(90deg, 
    rgba(247, 192, 92, 0.12), 
    rgba(247, 192, 92, 0.06) 60%,
    transparent);
  box-shadow: 
    0 0 30px rgba(247, 192, 92, 0.15),
    inset 0 0 20px rgba(247, 192, 92, 0.05);
  font-weight: 500;
  position: relative;
}

/* 高亮段落图标 - 已禁用 */
/* 移除星标装饰 */

/* 故事章节样式 */
.plot-section {
  position: relative;
  padding: 32px 0;
  border-bottom: 1px solid rgba(247, 192, 92, 0.15);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.plot-section:last-child {
  border-bottom: none;
}

.plot-section:hover {
  padding-left: 16px;
}

/* 章节标题 */
.plot-heading {
  margin: 0 0 20px;
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: rgba(247, 231, 173, 0.95);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  transition: all 0.4s ease;
}

/* 标题下划线装饰 */
.plot-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(247, 192, 92, 0.8), 
    rgba(247, 192, 92, 0.3));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plot-section:hover .plot-heading::after {
  width: 100%;
}

/* 标题图标 */
.plot-heading::before {
  content: "▸";
  position: absolute;
  left: -24px;
  color: rgba(247, 192, 92, 0.6);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.plot-section:hover .plot-heading::before {
  opacity: 1;
  transform: translateX(0);
}

/* 启示章节样式 */
.insight-section {
  position: relative;
  padding: 28px 32px 28px 68px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(26, 20, 16, 0.4), 
    rgba(6, 7, 10, 0.3));
  border: 1px solid rgba(247, 192, 92, 0.2);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

/* 章节编号 */
.insight-section::before {
  content: attr(data-number);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 48px;
  font-weight: 700;
  color: rgba(247, 192, 92, 0.12);
  transition: all 0.4s ease;
}

.insight-section:hover::before {
  color: rgba(247, 192, 92, 0.25);
  transform: translateY(-50%) scale(1.1);
}

/* 使用CSS计数器自动编号 */
.theme-text-content {
  counter-reset: insight-counter;
}

.insight-section {
  counter-increment: insight-counter;
}

.insight-section::before {
  content: counter(insight-counter);
}

/* 启示章节悬停效果 */
.insight-section:hover {
  background: linear-gradient(135deg, 
    rgba(26, 20, 16, 0.55), 
    rgba(6, 7, 10, 0.4));
  border-color: rgba(247, 192, 92, 0.4);
  transform: translateX(8px);
  box-shadow: 
    -4px 0 0 rgba(247, 192, 92, 0.3),
    0 12px 36px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(247, 192, 92, 0.06);
}

/* 启示标题 */
.insight-heading {
  margin: 0 0 16px;
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: rgba(247, 231, 173, 0.98);
  font-weight: 600;
  line-height: 1.5;
}

/* 总结区域 */
.insight-conclusion {
  margin-top: 48px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(247, 192, 92, 0.15),
    rgba(247, 192, 92, 0.08));
  border: 2px solid rgba(247, 192, 92, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 50px rgba(247, 192, 92, 0.2),
    inset 0 0 60px rgba(247, 192, 92, 0.08);
  animation: conclusionGlow 4s ease-in-out infinite;
}

/* 总结呼吸光效 */
@keyframes conclusionGlow {
  0%, 100% {
    box-shadow: 
      0 0 40px rgba(247, 192, 92, 0.15),
      inset 0 0 50px rgba(247, 192, 92, 0.06);
    border-color: rgba(247, 192, 92, 0.3);
  }
  50% {
    box-shadow: 
      0 0 70px rgba(247, 192, 92, 0.3),
      inset 0 0 80px rgba(247, 192, 92, 0.12);
    border-color: rgba(247, 192, 92, 0.5);
  }
}

/* 总结装饰图案 */
.insight-conclusion::before {
  content: """;
  position: absolute;
  left: 20px;
  top: 10px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(247, 192, 92, 0.15);
  line-height: 1;
}

.insight-conclusion::after {
  content: """;
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(247, 192, 92, 0.15);
  line-height: 1;
}

/* 总结标题 */
.conclusion-heading {
  margin: 0 0 20px;
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(247, 231, 173, 1);
  text-shadow: 0 0 20px rgba(247, 192, 92, 0.6);
}

/* 总结文字 */
.conclusion-text {
  margin: 0;
  font-size: 18px;
  line-height: 2.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* 页面滚动渐进显示动画 */
.theme-text-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.theme-text-content > *:nth-child(1) { animation-delay: 0.1s; }
.theme-text-content > *:nth-child(2) { animation-delay: 0.2s; }
.theme-text-content > *:nth-child(3) { animation-delay: 0.3s; }
.theme-text-content > *:nth-child(4) { animation-delay: 0.4s; }
.theme-text-content > *:nth-child(5) { animation-delay: 0.5s; }
.theme-text-content > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner增强效果 */
.theme-banner {
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Banner悬停时的粒子效果 */
.theme-banner::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(247, 192, 92, 0.3), 
    transparent);
  opacity: 0;
  animation: borderRotate 3s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.theme-banner:hover::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 阅读进度指示器 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(247, 192, 92, 0.8), 
    rgba(247, 231, 173, 0.9));
  box-shadow: 0 0 10px rgba(247, 192, 92, 0.6);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .theme-text-content {
    gap: 24px;
    font-size: 16px;
  }

  .intro-paragraph,
  .plot-paragraph,
  .insight-paragraph {
    padding: 20px 20px;
  }

  .plot-heading {
    font-size: 19px;
  }

  .insight-section {
    padding: 24px 24px 24px 56px;
    margin-bottom: 20px;
  }

  .insight-section::before {
    font-size: 36px;
    left: 12px;
  }

  .insight-heading {
    font-size: 17px;
  }

  .insight-conclusion {
    padding: 32px 24px;
  }

  .conclusion-text {
    font-size: 16px;
    line-height: 2;
  }

  .insight-conclusion::before,
  .insight-conclusion::after {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .intro-paragraph:hover,
  .plot-paragraph:hover,
  .insight-paragraph:hover,
  .insight-section:hover {
    transform: none;
  }

  .plot-heading::before {
    display: none;
  }

  .insight-section {
    padding: 20px;
  }

  .insight-section::before {
    position: static;
    display: block;
    margin-bottom: 12px;
    font-size: 32px;
    transform: none;
  }

  .insight-conclusion::before,
  .insight-conclusion::after {
    font-size: 48px;
  }
}

/* 打印样式优化 */
@media print {
  .theme-page-header,
  .theme-page-footer,
  .theme-banner {
    display: none;
  }

  .theme-content {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .intro-paragraph,
  .plot-paragraph,
  .insight-paragraph,
  .insight-section {
    page-break-inside: avoid;
  }
}
