/* ========================================
   Memories 记忆碎片 - V2 重设计版
   与主网站手绘风格统一
   ======================================== */

/* 字体导入 - 使用主网站字体 */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS 变量 - 统一配色 */
:root {
  /* 主网站配色 */
  --color-primary: #2D3142;
  --color-accent: #EF8354;
  --color-secondary: #4F5D75;
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;

  /* 便签颜色 */
  --color-sticky-yellow: #FFF4B8;
  --color-sticky-pink: #FFE4E9;
  --color-sticky-blue: #E0F2FE;
  --color-sticky-green: #D1FAE5;

  /* 字体 */
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  color: var(--color-primary);
}

/* 背景装饰 - 手绘风格圆点 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(239, 131, 84, 0.08) 2px, transparent 2px),
    radial-gradient(circle, rgba(79, 93, 117, 0.06) 1.5px, transparent 1.5px);
  background-size: 80px 80px, 120px 120px;
  background-position: 0 0, 40px 40px;
  animation: driftDots 30s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes driftDots {
  from { transform: translateY(0); }
  to { transform: translateY(-80px); }
}

.container {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
}

/* ========================================
   飘散视图 - 便利贴风格
   ======================================== */
.floating-view {
  width: 100%;
  height: 100%;
  display: none;
  position: relative;
  overflow: hidden;
}

.floating-view.active {
  display: block;
}

/* 手绘风格标题 */
.page-title {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  font-family: var(--font-hand);
  color: var(--color-primary);
  z-index: 10;
  letter-spacing: 0.1rem;
  animation: gentleFloat 4s ease-in-out infinite;
  text-shadow: 3px 3px 0 rgba(239, 131, 84, 0.2);
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) translateY(-8px) rotate(1deg);
  }
}

.subtitle {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--color-secondary);
  z-index: 10;
  background: var(--color-white);
  padding: 10px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-accent);
  animation: pulseGently 3s ease-in-out infinite;
  font-weight: 500;
}

@keyframes pulseGently {
  0%, 100% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03);
  }
}

.memories-cloud {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

/* 便利贴风格照片卡片 */
.floating-memory,
.memory-card {
  position: relative;
  width: 180px;
  height: 220px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatStickyNote 10s ease-in-out infinite;
  border-radius: 8px;
  transform-style: preserve-3d;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 便利贴颜色变体 */
.floating-memory:nth-child(4n+1),
.memory-card:nth-child(4n+1) {
  background: var(--color-sticky-yellow);
  --rotate-start: -5deg;
  --rotate-end: 3deg;
}

.floating-memory:nth-child(4n+2),
.memory-card:nth-child(4n+2) {
  background: var(--color-sticky-pink);
  --rotate-start: 4deg;
  --rotate-end: -4deg;
}

.floating-memory:nth-child(4n+3),
.memory-card:nth-child(4n+3) {
  background: var(--color-sticky-blue);
  --rotate-start: -3deg;
  --rotate-end: 5deg;
}

.floating-memory:nth-child(4n+4),
.memory-card:nth-child(4n+4) {
  background: var(--color-sticky-green);
  --rotate-start: 3deg;
  --rotate-end: -2deg;
}

/* 便利贴顶部装饰 */
.floating-memory::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), transparent);
  z-index: 5;
  border-radius: 8px 8px 0 0;
}

.floating-memory:hover,
.memory-card:hover {
  transform: translateY(-15px) rotate(0deg) scale(1.15) !important;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation-play-state: paused;
  cursor: pointer;
}

.floating-memory img,
.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.98) contrast(1.05);
  padding: 12px;
  border-radius: 20px;
}

.floating-memory:hover img,
.memory-card:hover img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.1);
}

/* 便利贴浮动动画 */
@keyframes floatStickyNote {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(var(--rotate-start, -2deg));
  }
  25% {
    transform: translateY(-25px) translateX(8px) rotate(calc(var(--rotate-start, -2deg) + 2deg));
  }
  50% {
    transform: translateY(-15px) translateX(-6px) rotate(var(--rotate-end, 2deg));
  }
  75% {
    transform: translateY(-30px) translateX(10px) rotate(calc(var(--rotate-end, 2deg) - 1deg));
  }
}

/* ========================================
   时间轴视图 - 简洁现代
   ======================================== */
.timeline-view {
  width: 100%;
  height: 100%;
  display: none;
  padding: 80px 20px 50px;
  overflow-y: auto;
  position: relative;
}

.timeline-view.active {
  display: block;
  animation: slideInView 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 返回按钮 */
.back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.back-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateX(-8px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.timeline-container {
  max-width: 1100px;
  margin: 40px auto 0;
  position: relative;
  padding: 40px 0;
}

/* 简洁时间线 */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--color-accent) 5%,
    var(--color-secondary) 50%,
    var(--color-accent) 95%,
    transparent 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 70px;
  animation: itemSlideIn 0.5s ease-out forwards;
  opacity: 0;
  min-height: 100px;
}

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

.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: calc(50% + 50px);
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: calc(50% + 50px);
  margin-left: 0;
}

/* 时间点 */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(239, 131, 84, 0.15);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: dotBreathe 3s ease-in-out infinite;
}

@keyframes dotBreathe {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(239, 131, 84, 0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 131, 84, 0.1);
  }
}

.timeline-dot:hover {
  transform: translateX(-50%) scale(1.4);
  background: var(--color-accent);
  box-shadow: 0 0 0 10px rgba(239, 131, 84, 0.2);
}

/* 便利贴风格卡片 */
.timeline-content {
  background: var(--color-white);
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

/* 卡片颜色变体 */
.timeline-item:nth-child(4n+1) .timeline-content {
  background: var(--color-sticky-yellow);
}

.timeline-item:nth-child(4n+2) .timeline-content {
  background: var(--color-sticky-pink);
}

.timeline-item:nth-child(4n+3) .timeline-content {
  background: var(--color-sticky-blue);
}

.timeline-item:nth-child(4n+4) .timeline-content {
  background: var(--color-sticky-green);
}

/* 手绘下划线装饰 */
.timeline-content::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

.timeline-content:hover::after {
  opacity: 0.3;
}

.timeline-content:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* 时间轴内容信息区 */
.timeline-info {
  padding: 24px;
}

.timeline-date {
  font-size: 0.85rem;
  font-family: var(--font-hand);
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.5rem;
  font-family: var(--font-hand);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.timeline-desc {
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--color-primary);
  line-height: 1.7;
  opacity: 0.85;
}

/* ========================================
   详情弹窗 - 现代简洁
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 49, 66, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  animation: fadeInModal 0.3s ease;
  cursor: default;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--color-white);
  border-radius: 16px;
  max-width: 920px;
  max-height: 90vh;
  width: 90%;
  overflow: hidden;
  position: relative;
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(45, 49, 66, 0.3);
}

@keyframes modalPopIn {
  from {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: var(--shadow-md);
  font-weight: 300;
}

.close-btn:hover {
  background: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--color-bg);
}

.modal-info {
  padding: 40px;
  background: var(--color-bg);
  position: relative;
}

.modal-title {
  font-size: 2.2rem;
  font-family: var(--font-hand);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-date {
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.modal-description {
  font-size: 1.05rem;
  font-family: var(--font-main);
  color: var(--color-primary);
  line-height: 1.8;
  opacity: 0.9;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .page-title {
    font-size: 3.5rem;
  }

  .floating-memory {
    width: 200px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    top: 40px;
  }

  .subtitle {
    top: 130px;
    font-size: 0.9rem;
  }

  .memories-cloud {
    gap: 25px;
    padding: 60px 20px;
  }

  .floating-memory,
  .memory-card {
    width: 140px;
    height: 180px;
  }

  /* 时间轴改为单列左侧布局 */
  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start !important;
  }

  .timeline-item:nth-child(even) .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card {
    margin-left: 70px;
    margin-right: 0;
    max-width: calc(100% - 90px);
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-image {
    height: 180px;
  }

  /* 移动端：标题显示在卡片上方 */
  .revealed-title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto 20px;
    max-width: 90%;
    font-size: 1.5rem;
  }

  .timeline-item:nth-child(odd) .revealed-title,
  .timeline-item:nth-child(even) .revealed-title {
    animation-name: revealTitleFadeIn !important;
  }

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

  .modal-content {
    width: 95%;
    border-radius: 12px;
  }

  .modal-info {
    padding: 30px 24px;
  }

  .modal-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .memories-cloud {
    gap: 20px;
    padding: 40px 15px;
  }

  .floating-memory,
  .memory-card {
    width: 130px;
    height: 170px;
  }

  .back-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .timeline-info {
    padding: 18px;
  }

  .timeline-title {
    font-size: 1.3rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
  }

  .scene-name-hidden {
    font-size: 1.05em;
  }

  .view-btn {
    padding: 10px 22px;
    font-size: 0.9em;
  }
}

/* ========================================
   滚动条美化
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(45, 49, 66, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* 链接样式 */
a {
  cursor: pointer;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* 加载动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(239, 131, 84, 0.2);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}

/* ========================================
   新增：动态场景加载功能
   ======================================== */

/* 空状态提示 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-secondary);
}

.empty-state p {
  margin: 10px 0;
  line-height: 1.6;
}

/* 神秘提示标记 */
.mystery-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  color: var(--color-accent);
  font-family: var(--font-hand);
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(239, 131, 84, 0.3);
  transition: all 0.3s ease;
  pointer-events: none;
  animation: mysteryPulse 2s ease-in-out infinite;
}

@keyframes mysteryPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 20px rgba(239, 131, 84, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(239, 131, 84, 0.5);
  }
}

.floating-memory:hover .mystery-hint {
  transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
}

/* 时间轴场景卡片 - 新增样式 */
.timeline-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 420px;
  width: 100%;
}

.timeline-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.timeline-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.timeline-card:hover .timeline-image img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* 图片数量标记 */
.image-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(239, 131, 84, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  font-family: var(--font-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 场景编号 */
.scene-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  font-family: var(--font-main);
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(239, 131, 84, 0.3);
}

/* 隐藏场景名（营造神秘感） */
.scene-name-hidden {
  font-size: 1.2em;
  color: var(--color-secondary);
  font-style: italic;
  font-family: var(--font-hand);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* 查看按钮 */
.view-btn {
  background: linear-gradient(135deg, var(--color-accent), #ff9068);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 131, 84, 0.3);
  position: relative;
  overflow: hidden;
}

.view-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.view-btn:hover::before {
  width: 300px;
  height: 300px;
}

.view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(239, 131, 84, 0.5);
}

/* ========================================
   查看后显示的剧情标题（在另一侧）
   ======================================== */
.revealed-title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px 30px;
  background: linear-gradient(135deg, rgba(239, 131, 84, 0.95), rgba(118, 75, 162, 0.95));
  color: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 700;
  opacity: 0;
  animation: revealTitleSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 5;
  max-width: 280px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 奇数项在左，标题显示在右 */
.timeline-item:nth-child(odd) .revealed-title {
  right: calc(50% + 60px);
  animation-name: revealTitleSlideFromLeft;
}

/* 偶数项在右，标题显示在左 */
.timeline-item:nth-child(even) .revealed-title {
  left: calc(50% + 60px);
  animation-name: revealTitleSlideFromRight;
}

/* 标题装饰 */
.revealed-title::before {
  content: '✨';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5em;
  animation: sparkle 2s ease-in-out infinite;
}

.revealed-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 2px;
}

/* 从左侧滑入动画 */
@keyframes revealTitleSlideFromLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* 从右侧滑入动画 */
@keyframes revealTitleSlideFromRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* 闪烁动画 */
@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.2);
  }
}

/* 弹窗中的图片导航 - 左右侧布局 */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  z-index: 20;
  pointer-events: none;
}

.nav-btn {
  background: rgba(45, 49, 66, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.prev-btn {
  margin-right: auto;
}

.nav-btn.next-btn {
  margin-left: auto;
}

.nav-btn:hover:not([disabled]) {
  background: rgba(239, 131, 84, 0.9);
  border-color: var(--color-accent);
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(239, 131, 84, 0.5);
}

.nav-btn[disabled] {
  opacity: 0.2;
  cursor: not-allowed;
  background: rgba(45, 49, 66, 0.4);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
}

.image-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 49, 66, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.85em;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* 弹窗场景名称显示 */
.modal-info .modal-title {
  position: relative;
  padding-bottom: 15px;
}

.modal-info .modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* 场景描述文字样式 */
.modal-description {
  background: rgba(239, 131, 84, 0.05);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--color-accent);
  position: relative;
}

.modal-description::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4em;
  font-family: var(--font-hand);
  color: var(--color-accent);
  opacity: 0.2;
}

/* 错误状态提示 */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state button {
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 131, 84, 0.3);
}

.error-state button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(239, 131, 84, 0.4);
}

/* 响应式：移动端图片导航调整 */
@media (max-width: 768px) {
  .modal-nav {
    padding: 0 15px;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
  }

  .nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .image-indicator {
    font-size: 0.8em;
    padding: 6px 16px;
    bottom: 20px;
  }

  .timeline-image {
    height: 220px;
  }

  .scene-name-hidden {
    font-size: 1.1em;
  }

  .view-btn {
    padding: 10px 24px;
    font-size: 0.9em;
  }
}
