/**
 * 往届回顾页面样式
 * 包含：左侧导航、瀑布流图片、灯箱
 */

/* ─────────────────────────────────────────────
   往届回顾页面布局
   ───────────────────────────────────────────── */
.review-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ─────────────────────────────────────────────
   左侧导航
   ───────────────────────────────────────────── */
.review-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.review-sidebar-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.review-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(88, 166, 255, 0.3);
}

.review-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-nav-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.review-nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.review-nav-item.active {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   响应式
   ───────────────────────────────────────────── */
.review-content {
  flex: 1;
  min-width: 0;
}

.review-year-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.review-year-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.review-year-header p,.review-year-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   瀑布流
   ───────────────────────────────────────────── */
.review-masonry {
  columns: 3;
  column-gap: 16px;
}

.review-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-secondary);
}

.review-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.review-item:hover img {
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   占位提示
   ───────────────────────────────────────────── */
.review-placeholder {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
}

/* ─────────────────────────────────────────────
   灯箱（Lightbox）
   ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─────────────────────────────────────────────
   响应式
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .review-masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .review-layout {
    flex-direction: column;
  }

  .review-sidebar {
    width: 100%;
    position: static;
  }

  .review-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .review-nav-item {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 12px;
  }

  .review-masonry {
    columns: 1;
  }
}
