@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600&display=swap");

:root {
  --card-radius: 1.5rem;
  --card-shadow: 0 25px 60px -30px rgba(15, 23, 42, 0.45);
}

body {
  font-family: "Noto Serif SC", "PingFang SC", serif;
  background: #f5f5f4;
}

.card {
  border-radius: var(--card-radius);
  background-color: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 12px 35px -20px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

/* 仅普通卡片保留hover动效，记忆精选卡片排除 */
.card:not(.highlight-card):hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

/* 核心修复：彻底固定记忆精选卡片，取消所有动效 */
.highlight-card {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%) !important; /* 强制居中，优先级最高 */
  width: 92%;
  padding: 1.75rem;
  text-align: center;
  transition: none !important; /* 取消所有过渡动效 */
  animation: none !important; /* 取消所有动画 */
  transform-origin: center center !important; /* 固定变形原点 */
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48px;
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.8) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 2.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.scroll-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.scroll-strip::-webkit-scrollbar {
  height: 0;
}

/* 优化hero-photo，防止图片加载导致布局晃动 */
.hero-photo {
  position: relative;
  border-radius: 48px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.55);
  min-height: 300px; /* 固定最小高度，加载前不塌陷 */
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.65));
}

.gallery-list .card {
  width: 100%;
}

.gallery-list .card .aspect-\[9\/16\] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.fit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 优化入场动画，避免牵连header高度变化 */
[data-reveal] {
  opacity: 0;
  transition: opacity 500ms ease !important; /* 只保留透明度过渡，避免位移 */
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* 可选：如需隐藏“照片列表”文字，取消下面注释 */
/* 
section .flex.items-center.justify-between {
  display: none;
}
*/