/* ==========================================================================
   OPENX 遨游 — lightbox.css
   作品预览层：点示例图 / 结果图放大看，左右切换，视频可在层内播放。
   ========================================================================== */

html.oxlb-lock { overflow: hidden; }

.oxlb {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
}
.oxlb.open { display: block; }

.oxlb-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 9, 15, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: oxlb-fade .22s ease;
}

@keyframes oxlb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes oxlb-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.oxlb-stage {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center;
  padding: 68px 76px 96px;
  pointer-events: none;              /* 空白处点击穿透到遮罩 → 关闭 */
}
.oxlb-stage > * { pointer-events: auto; }

.oxlb-stage img,
.oxlb-stage video {
  max-width: 100%; max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 90px -24px rgba(0, 0, 0, .85);
  animation: oxlb-in .24s cubic-bezier(.22, .61, .36, 1);
  background: #0b0c15;
}
.oxlb-stage video { outline: none; }

/* 程序化作品图（内联 SVG）：clone 进来后按比例撑满 */
.oxlb-art {
  width: min(86vw, 820px);
  max-height: 100%;
  display: flex;
  animation: oxlb-in .24s cubic-bezier(.22, .61, .36, 1);
}
.oxlb-art .art {
  width: 100%;
  max-height: calc(100vh - 170px);
  box-shadow: 0 30px 90px -24px rgba(0, 0, 0, .85);
}

/* ---------------- 控件 ---------------- */
.oxlb-close,
.oxlb-nav {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.oxlb-close:hover,
.oxlb-nav:hover { background: rgba(255, 255, 255, .24); }

.oxlb-close {
  top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; line-height: 1;
}
.oxlb-nav {
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 26px; line-height: 1; padding-bottom: 4px;
}
.oxlb-nav.prev { left: 18px; }
.oxlb-nav.next { right: 18px; }
.oxlb-nav:hover { transform: translateY(-50%) scale(1.06); }

.oxlb.single .oxlb-nav { display: none; }

.oxlb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  background: linear-gradient(to top, rgba(8, 9, 15, .9), rgba(8, 9, 15, 0));
}
.oxlb-cap {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oxlb-cnt {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
}
.oxlb-dl {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px;
  border-radius: 99px;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: .78rem;
  transition: background .2s;
}
.oxlb-dl:hover { background: rgba(255, 255, 255, .26); }

@media (max-width: 720px) {
  .oxlb-stage { padding: 56px 12px 88px; }
  .oxlb-nav { display: none; }
  .oxlb-art { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .oxlb-backdrop, .oxlb-stage img, .oxlb-stage video, .oxlb-art { animation: none; }
}
