/* ================================================================
   夏画面 — 四季之夏
   第一屏 图层：背景(0) → 下层花瓣(1) → 夏毛笔字(2) → 上层花瓣(3) → 蝴蝶(4) → 导航栏(1000)
   第二屏 图层：背景(0) → 诗人/朱明/卷轴(1~2) → 卷轴内花朵(3) → 寻荷问暑/蝴蝶(4~5)
   ================================================================ */

/* ================================================================
   场景1：夏（主视觉）
   ================================================================ */

.scene-summer {
  /* 浅米白淡粉色渐变水墨纹理底图 — CSS 兜底 */
  background: linear-gradient(170deg, #faf6f0 0%, #fdf2f0 25%, #faf0ec 50%, #fdf5f2 75%, #faf6f0 100%);
}

/* ===== 书法大字「夏」— 画面视觉中心 ===== */
.calligraphy-xia {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24vw;
  pointer-events: none;
  /* 水墨滴墨阴影 */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18))
          drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}
.calligraphy-xia img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 水墨蝴蝶 ===== */
.butterfly {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.butterfly img {
  width: 100%;
  height: auto;
  display: block;
}

/* -- 双蝶组合：夏字上边缘偏左侧 -- */
.butterfly-pair {
  top: 18%;
  left: 28%;
  width: 16vw;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

/* -- 单只蝴蝶：画面右下象限，低于夏字主体 -- */
.butterfly-single {
  bottom: 12%;
  right: 10%;
  width: 10vw;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
  transform: rotate(-6deg);
}

/* ===== 花瓣（JS 动态生成，position:fixed on body） ===== */
.summer-petal {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.summer-petal img {
  width: 100%;
  height: auto;
  display: block;
}


/* ================================================================
   场景2：夏前奏
   ================================================================ */

.scene-summer-prelude {
  /* 与第一屏色调统一 */
  background: linear-gradient(170deg, #faf6f0 0%, #fdf2f0 25%, #faf0ec 50%, #fdf5f2 75%, #faf6f0 100%);
}

/* ---- 钓鱼诗人（左侧，坐于怪石之上） ---- */
.fishing-poet {
  position: absolute;
  z-index: 4;
  bottom: 6%;
  left: 16%;
  width: 56vw;
  pointer-events: none;
  /* 倾斜动画原点：底部中心 */
  transform-origin: bottom center;
  will-change: transform;
}
.fishing-poet img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 朱明 — 竖排红色隶书（诗人右侧、鱼竿中段） ---- */
.zhuming {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 42%;
  width: 2vw;
  pointer-events: none;
}
.zhuming img {
  width: 100%;
  height: auto;
  display: block;
  /* 红色隶书保持原色 */
}

/* ---- 卷轴（右侧，垂直居中） ---- */
.scroll-painting-wrapper {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 42vw;
  pointer-events: none;
}
.scroll-painting-bg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
}

/* ---- 卷轴内花朵 ---- */
.scroll-flower {
  position: absolute;
  pointer-events: none;
  /* 微风摇曳动画原点 */
  transform-origin: bottom center;
  will-change: transform, opacity;
}
.scroll-flower img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ranunculus asiaticus 'Butterfly' — 卷轴内上部偏左 */
.scroll-flower-ranunculus {
  top: 20%;
  left: 18%;
  width: 14%;
  animation: flower-wind-sway 2.6s ease-in-out infinite;
  animation-play-state: paused; /* IntersectionObserver 控制启停 */
}

/* Garden Cosmos — 卷轴内下部偏右 */
.scroll-flower-cosmos {
  bottom: 15%;
  right: 15%;
  width: 12%;
  animation: flower-wind-sway 2.0s ease-in-out infinite;
  animation-play-state: paused; /* IntersectionObserver 控制启停 */
}

/* ---- 右下角：寻荷问暑 + 黄外发光蝴蝶 ---- */
.xunhe-wenshu {
  position: absolute;
  z-index: 5;
  bottom: 6%;
  right: 6%;
  width: 14vw;
  pointer-events: none;
}
.xunhe-wenshu img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(200, 160, 40, 0.5));
}

.glow-butterfly-static {
  position: absolute;
  z-index: 5;
  bottom: 18%;
  right: 12%;
  width: 8vw;
  pointer-events: none;
  /* 初始隐藏 —— 飞行蝴蝶到达后显示 */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.glow-butterfly-static.visible {
  opacity: 1;
}
.glow-butterfly-static img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 200, 50, 0.9))
          drop-shadow(0 0 28px rgba(255, 170, 20, 0.6));
}


/* ================================================================
   第二屏元素动效
   ================================================================ */

/* ---- 卷轴内花朵：微风摇曳关键帧 ---- */
@keyframes flower-wind-sway {
  0%, 100% { transform: rotate(-2.5deg) translateY(-3px); opacity: 0.90; }
  25%      { transform: rotate(0deg)    translateY(0px);  opacity: 0.97; }
  50%      { transform: rotate(2.5deg)  translateY(3px);  opacity: 0.89; }
  75%      { transform: rotate(0deg)    translateY(0px);  opacity: 0.97; }
}

/* ---- 动画启停控制类（IntersectionObserver 通过 classList 切换） ---- */
.animate-play {
  animation-play-state: running !important;
}


/* ================================================================
   飞行蝴蝶（JS 动态生成，position:fixed on body）
   ================================================================ */
.flying-butterfly {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, filter;
  z-index: 20;
}
.flying-butterfly img {
  width: 100%;
  height: auto;
  display: block;
}


/* ================================================================
   场景3：夏1 — 2×4 花卉图鉴
   ================================================================ */

.scene-summer1 {
  background: linear-gradient(170deg, #faf6f0 0%, #fdf2f0 25%, #faf0ec 50%, #fdf5f2 75%, #faf6f0 100%);
}

/* 花卉网格样式已迁移至 main.css 统一管理 */

/* ---- 左下角水墨荷叶 ---- */
.ink-lotus-leaf {
  position: absolute;
  z-index: 2;
  bottom: -3%;
  left: 0;
  width: 25%;
  pointer-events: none;
  opacity: 0.65;
}
.ink-lotus-leaf img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 左上角蝴蝶（蝴蝶飞抵后显示） ---- */
.butterfly-summer1 {
  position: absolute;
  z-index: 3;
  top: 5%;
  left: 3%;
  width: 7vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.butterfly-summer1.visible {
  opacity: 1;
}
.butterfly-summer1 img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}


/* ================================================================
   场景4：夏2 — 关于我们
   ================================================================ */

.scene-summer2 {
  background: linear-gradient(170deg, #faf6f0 0%, #fdf2f0 25%, #faf0ec 50%, #fdf5f2 75%, #faf6f0 100%);
}

/* ---- 正文段落文字 ---- */

/* ---- 底部通栏页脚 — 样式已迁移至 main.css .about-footer ---- */


/* ================================================================
   响应式调整
   ================================================================ */
@media (max-width: 768px) {
  .calligraphy-xia {
    width: 40vw;
  }
  .butterfly-pair {
    top: 14%;
    left: 20%;
    width: 22vw;
  }
  .butterfly-single {
    bottom: 8%;
    right: 6%;
    width: 16vw;
  }

  .fishing-poet {
    width: 28vw;
    left: 2%;
  }
  .zhuming {
    top: 20%;
    left: 26%;
    width: 7vw;
  }
  .scroll-painting-wrapper {
    width: 52vw;
    right: 2%;
  }
  .xunhe-wenshu {
    width: 18vw;
    bottom: 4%;
    right: 4%;
  }
  .glow-butterfly-static {
    width: 12vw;
    bottom: 14%;
    right: 8%;
  }

  /* flower-grid 响应式已迁移至 main.css */
  .butterfly-summer1 {
    top: 4%;
    left: 2%;
    width: 10vw;
  }
  .ink-lotus-leaf {
    width: 20%;
  }

  /* about-intro / about-logo 响应式已迁移至 main.css */
}

@media (max-width: 480px) {
  .calligraphy-xia {
    width: 50vw;
  }
  .butterfly-pair {
    top: 10%;
    left: 12%;
    width: 28vw;
  }
  .butterfly-single {
    bottom: 6%;
    right: 4%;
    width: 20vw;
  }

  .fishing-poet {
    width: 34vw;
    left: 1%;
  }
  .zhuming {
    top: 18%;
    left: 30%;
    width: 9vw;
  }
  .scroll-painting-wrapper {
    width: 60vw;
    right: 1%;
    top: 52%;
  }
  .scroll-flower-ranunculus {
    width: 18%;
  }
  .scroll-flower-cosmos {
    width: 16%;
  }
  .xunhe-wenshu {
    width: 22vw;
    bottom: 3%;
    right: 3%;
  }
  .glow-butterfly-static {
    width: 14vw;
    bottom: 12%;
    right: 6%;
  }

  /* flower-grid 响应式已迁移至 main.css */
  .butterfly-summer1 {
    top: 3%;
    left: 2%;
    width: 14vw;
  }
  .ink-lotus-leaf {
    width: 26%;
  }

  /* about-intro 响应式已迁移至 main.css */
}
