/*
 * work-viewer.css
 * 统一作品图片查看器样式（圆角无边框版 - 匹配后台作品内容图片弹窗）
 */

/* ===== 遮罩 ===== */
#workViewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

/* ===== 关闭按钮 ===== */
.wv-close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 100001;
  line-height: 1;
  background: none;
  border: none;
}
.wv-close-btn:hover {
  color: #D92121;
}

/* ===== 导航按钮 ===== */
.wv-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  z-index: 100000;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.wv-nav:hover {
  background: rgba(0,0,0,0.6);
}
.wv-prev {
  left: 100px;
}
.wv-next {
  right: 100px;
}
.wv-nav-text {
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
}
.wv-disabled {
  display: none !important;
}

/* ===== 图片容（居中） ===== */
.wv-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

/* ===== 图片 ===== */
.wv-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: solid #fff;
  border-width: 10px 8px 30px 8px;
}

/* ===== 入场动画 ===== */
.wv-img.wv-enter {
  animation: wvFadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes wvFadeIn {
  0%   { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
