/* 竹林意境 - 真实竹林图片 */

/* ===== 页面两侧竹影（使用真实图片） ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 99;
  background-size: cover;
  background-position: center;
}

body::before {
  left: 0;
  background: url('/images/bamboo-trunk.png') left center / auto 100% no-repeat;
  opacity: 0.6;
  filter: brightness(0.8) saturate(1.1);
}

body::after {
  right: 0;
  background: url('/images/bamboo-trunk.png') right center / auto 100% no-repeat;
  opacity: 0.6;
  filter: brightness(0.8) saturate(1.1);
  transform: scaleX(-1);
}

/* 滚动时加深效果 */
body.scrolling::before,
body.scrolling::after {
  opacity: 0.85;
}

/* ===== 竹叶飘落（保留动画） ===== */
.floating-leaf {
  position: fixed;
  width: 20px;
  height: 32px;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.6) 0%, rgba(26, 74, 46, 0.45) 100%);
  border-radius: 3px 85% 3px 85%;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}

.floating-leaf:nth-child(7) { left: 10%; animation: leafFall1 14s linear infinite; }
.floating-leaf:nth-child(8) { left: 25%; animation: leafFall2 18s linear 2s infinite; }
.floating-leaf:nth-child(9) { left: 75%; animation: leafFall1 16s linear 5s infinite; }
.floating-leaf:nth-child(10) { left: 90%; animation: leafFall2 20s linear 8s infinite; }
.floating-leaf:nth-child(11) { left: 50%; animation: leafFall1 15s linear 11s infinite; }

@keyframes leafFall1 {
  0% { top: -40px; transform: rotate(-25deg) translateX(0); opacity: 0; }
  5% { opacity: 0.55; }
  90% { opacity: 0.55; }
  100% { top: 100vh; transform: rotate(30deg) translateX(80px); opacity: 0; }
}

@keyframes leafFall2 {
  0% { top: -40px; transform: rotate(20deg) translateX(0); opacity: 0; }
  5% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { top: 100vh; transform: rotate(-25deg) translateX(-60px); opacity: 0; }
}

/* ===== 底部渐变 ===== */
.page-footer-decor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 98;
  pointer-events: none;
  background: linear-gradient(to top, rgba(45, 106, 79, 0.08) 0%, transparent 100%);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  body::before, body::after {
    width: 100px;
    opacity: 0.4;
  }
  .floating-leaf { transform: scale(0.8); }
}

/* ===== 竹叶装饰元素隐藏（用真实图片替代） ===== */
.bamboo-leaf-decor {
  display: none;
}
