/* 三级：图片沉浸浏览（复用原有全屏单图浏览） */
.screen--gallery {
  background: #05070d;
}

.gallery-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070d;
  touch-action: none;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  will-change: transform;
}

.gallery-topbar {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  pointer-events: none;
}

.gallery-counter {
  font-size: 44px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.gallery-module {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 160px;
  font-size: 100px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: rgba(200, 16, 46, 0.8);
}

.nav-btn--prev { left: 30px; }
.nav-btn--next { right: 30px; }

.zoom-controls {
  position: absolute;
  right: 60px;
  bottom: 180px;
  display: flex;
  gap: 20px;
}

.zoom-btn {
  width: 120px;
  height: 120px;
  font-size: 70px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zoom-btn:hover {
  background: var(--crcc-red);
}

.gallery-hint {
  flex: none;
  font-size: 30px;
  color: var(--text-dim);
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
}

/* 底部标题信息条 */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 70px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0) 0%, rgba(5, 7, 13, 0.9) 48%, rgba(5, 7, 13, 0.98) 100%);
  pointer-events: none;
}

.gallery-caption-accent {
  flex: none;
  width: 12px;
  height: 72px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--crcc-red-bright), var(--crcc-red));
  box-shadow: 0 0 24px rgba(200, 16, 46, 0.7);
}

.gallery-caption-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.gallery-title {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-desc {
  margin: 0;
  font-size: 30px;
  color: var(--text-dim);
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-desc:empty {
  display: none;
}

/* 图片切换淡入转场 */
.gallery-image.is-changing {
  animation: imageFade 0.5s ease;
}

@keyframes imageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
