/* 图片全屏查看器样式 */
.iv-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.iv-root.iv-show {
  visibility: visible;
  opacity: 1;
}
.iv-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.iv-img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 95vw;
  max-height: 95vh;
  transform: translate(-50%, -50%);
  transform-origin: center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  touch-action: none;
}
.iv-clickable {
  cursor: zoom-in;
}
.iv-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  line-height: 36px;
  text-align: center;
  font-size: 28px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.iv-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.iv-toolbar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 24px;
}
.iv-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.iv-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.iv-btn-text {
  width: auto;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 18px;
}
.iv-counter {
  min-width: 52px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}
