/* ==================== 章回切换过渡 ==================== */
.chapter {
  transition: opacity 0.45s ease, visibility 0.45s;
}

/* ==================== 卷首入场动画 ==================== */
.hero-title,
.hero-motd-wrap,
.hero-address {
  opacity: 0;
  transform: translateY(16px);
}

.prologue-content.ready .hero-title {
  animation: inkReveal 0.8s ease forwards;
}

.prologue-content.ready .hero-motd-wrap {
  animation: inkReveal 0.8s ease 0.2s forwards;
}

.prologue-content.ready .hero-address {
  animation: inkReveal 0.8s ease 0.4s forwards;
}

@keyframes inkReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title.no-anim { animation: inkReveal 0.6s ease forwards !important; }

/* ==================== 告示纸片悬浮 ==================== */
.notice-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ==================== 侧栏标签墨迹 ==================== */
.sidebar-tab::before {
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 社区内标签下划线 ==================== */
.community-tab::after {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 减少动效 ==================== */
@media (prefers-reduced-motion: reduce) {
  .chapter { transition: none; }
  .hero-title, .hero-motd-wrap, .hero-address {
    opacity: 1; transform: none; animation: none !important;
  }
  .sidebar-tab::before { transition: none; }
  .community-tab::after { transition: none; }
}
