
/* 页面整体不滚动 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: rgb(246, 246, 246);
}

canvas.scroll-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  
  /* 避免阻挡交互 */
}


canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 0;
}


/* 每个分类容器（section） */
.scroll-section {
  width: 100vw;
  height: 100vh;
  display: none;
  position: relative;
}

.scroll-section.active {
  display: block;
}



/* 外部容器（canvas 父容器） */
.card-scroll-outer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}


/* canvas 渲染容器 */
.card-scroll-outer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ✅ 标题翻页动画 CSS */
#card-caption {
  position: fixed;
  left: 5%;
  bottom: 10%;
  transform: translate(0%, 0%);
  height: 18vh;
  /* 比如 12% 的宽度作为高度 */
  overflow: hidden;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ea
}

#card-caption.show {
  opacity: 1;
}

.caption-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform;
}

.caption-item {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 17.5vh;
  /* ✅ 字体大小为视口高度的 12% */
  color: black;
  height: 18vh;
  /* ✅ 与字体同步 */
  line-height: 18vh;
  /* ✅ 保证垂直居中 */
  white-space: nowrap;
  padding-right: 2vh;
  transform: translateY(-6.4vh);
  /* 适配字体高度的偏移 */
}

#image-intro {
  position: fixed;
  top: 20vh;
  left: 5vw;
  width: 40vw;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3vh;
  /* ✅ 设置文字大小为 4vh */
  line-height: 1.6;
  color: black;
  text-align: justify;
  /* ✅ 两端对齐 */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#image-intro.hidden {
  opacity: 0;
  display: none !important;
}

#image-intro .intro-text::first-letter {
  float: left;
  font-size: 9.5vh;
  line-height: 1;
  padding-right: 0.5vw;
  margin-top: 0vh;
}



#image-intro.visible {
  opacity: 1;
}

#image-intro .intro-meta {
  opacity: 0;
  margin-top: 1vh;
  font-size: 3vh;
  /* ✅ 年份和角色稍微小一点 */
  text-align: left;
  transition: opacity 0.6s ease;
  color: #444;
}

#image-intro.show-meta .intro-meta {
  opacity: 1;
}







.learn-more-button {
  position: fixed;
  top: 67vh;
  left: 5vw;
  
  font-size: 3vh;
  font-family: 'Cormorant Garamond', serif;
  color: black;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 999;
  pointer-events: none;
  display: none;
  user-select: none;
}

.learn-more-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.learn-more-button:hover {
  text-decoration: underline;
  cursor: pointer;
}

#arrow-up,
#arrow-down {
  position: fixed;
  left: 65%;
  transform: translateX(-50%);
  font-size: 4vh;
  font-family: 'Cormorant Garamond',serif;
  color: rgb(95, 95, 95);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  animation-play-state: paused;
  transition: opacity 0.5s ease;
}

#arrow-up {
  top: 5vh;
  animation:
    breatheOpacity 2s ease-in-out infinite,
    bounce 2s ease-in-out infinite 1s;
}

#arrow-down {
  animation:
    breatheOpacity 2s ease-in-out infinite,
    bounce 2s ease-in-out infinite;
  bottom: 5vh;
}

@keyframes breatheOpacity {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}