/* ============================================
   花开四季相册样式 - 独立于主题
   图片悬停效果已移除
   ============================================ */

/* 整体布局：左侧导航 + 右侧内容 */
.flower-album {
  display: flex;
  max-width: 1080px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  gap: 0;
}

/* ---------- 左侧月份导航 ---------- */
.flower-album .month-nav {
  width: 110px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 1rem;
  flex-shrink: 0;
}

#month-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.month-item {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 30px;
  color: #4a5568;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid rgba(107, 74, 158, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

/* 月份导航的悬停效果（保留） */
.month-item:hover {
  background: #f0edf9;
  color: #6b4a9e;
  transform: translateX(4px);
  border-color: rgba(107, 74, 158, 0.3);
}

.month-item.active {
  background: #6b4a9e;
  color: #fff;
  font-weight: 600;
  border-color: #6b4a9e;
  box-shadow: 0 6px 12px rgba(107, 74, 158, 0.25);
}

/* ---------- 右侧相册内容 ---------- */
.flower-album .album-container {
  flex: 1;
  padding-left: 1.5rem;
  min-width: 0;
}

/* 照片分组卡片 */
.flower-album .photo-group {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
  scroll-margin-top: 30px;
}

.flower-album .group-header {
  margin-bottom: 1.2rem;
}

.flower-album .group-title {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-weight: 600;
  border: none;
}

.flower-album .group-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background: #6b4a9e;
  border-radius: 3px;
}

.flower-album .group-desc {
  font-size: 0.95rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ---------- 照片网格 ---------- */
.flower-album .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* 照片项卡片：无悬停动态效果 */
.flower-album .photo-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: #f8f8fc;
  aspect-ratio: 4 / 3;
  /* 已移除 transition 和 :hover 效果 */
}

/* 图片：无悬停效果 */
.flower-album .photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  /* 已移除 transition 和 :hover 效果 */
}

/* ---------- 点击放大的模态框 ---------- */
.flower-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}

.flower-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .flower-album {
    flex-direction: column;
  }

  .flower-album .month-nav {
    width: 100%;
    position: static;
    height: auto;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  #month-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .month-item {
    padding: 0.4rem 0.9rem;
    min-width: 64px;
  }

  .flower-album .album-container {
    padding-left: 0;
  }

  .flower-album .photo-group {
    padding: 1.2rem;
  }

  .flower-album .group-title {
    font-size: 1.4rem;
  }

  .flower-album .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .flower-album .photo-grid {
    grid-template-columns: 1fr;
  }

  .flower-album .photo-item {
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }
}