body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: black;
  color: #eee;
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  background: url("photos/stanley202410/150342.667.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero {
  background: url('photos/stanley202410/150342.667.jpg') center/cover no-repeat;
}
.hero-text {
  /* color: black; */
  color:yellowgreen;
}

/* 暗色遮罩（更电影感） */
/* .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), black);
} */

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%; 
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45%; /* 关键：拉长渐变区域 */
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.8),
    rgba(0,0,0,1)
  );

  opacity: 0; /* 👈 初始完全透明 */
  transition: opacity 0.2s linear;

  opacity: var(--overlay-opacity, 0);
  transition: opacity 0.2s linear;
}


/* .hero::after {
  display: none;
} */

/* .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25%;
  pointer-events: none; 
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.4)
  );
} */

/* .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.3)),
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
} */

/* 文字 */
.hero-text {
  position: relative;
  text-align: center;
}

.hero-text h1 {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: 2px;
}

.hero-text p {
  margin-top: 10px;
  font-size: 30px;
  /* color: #bbb; */
}


.hero-text h1 {
  
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-text p {
  /* color: white; */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===== About ===== */
.about {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
  line-height: 1.8;
  color: #aaa;
  font-size: 18px;
}

/* ===== Gallery ===== */
.gallery-section {
  padding: 40px 20px;
}

.gallery-section h2 {
  margin-left: 10px;
  font-weight: 400;
  color: #ccc;
}

/* 横向滚动优化 */
.album {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
}

/* 隐藏滚动条（高级感） */
.album::-webkit-scrollbar {
  display: none;
}

/* .album img {
  height: 240px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0.85;
  scroll-snap-align: start;
}

/* hover 更自然 */
/* .album img:hover {
  transform: scale(1.05);
  opacity: 1;
} */ 

.album img {
  height: 240px;
  border-radius: 12px;
  cursor: pointer;

  opacity: 0; 
  transform: translateY(40px);

  transition: all 0.8s ease;
}

.album img.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lightbox ===== */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.95);
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 14px;
}

/* 左右按钮 */
#prev, #next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

#prev:hover, #next:hover {
  opacity: 0.7;
}