/* ============================================================
 * 材质效果灯箱（2026-11 付费转化）
 * index.html 与 buy.html 共用 —— 故独立成文件，不污染任一页面的基础样式。
 * 依赖 CSS 变量；buy.html 未引 style.css，故此处给出兜底值。
 * ============================================================ */

.mat-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* 接近不透明：灯箱常压在付费弹窗之上，透出下层文字会形成重影 */
  background: rgba(10, 12, 16, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mat-lb.show { display: flex; animation: mat-lb-fade .18s ease-out; }
@keyframes mat-lb-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mat-lb.show { animation: none; }
}

.mat-lb-panel {
  position: relative;
  width: 100%;
  max-width: 760px;
}

/* 舞台：图片、说明、CTA、页码统一居中 */
.mat-lb-stage { text-align: center; }

.mat-lb-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.mat-lb-cap { color: #fff; text-align: center; margin-top: 14px; }
.mat-lb-cap b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.mat-lb-cap em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #9aa4b0;
  margin-top: 3px;
}

.mat-lb-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent, #185fa5);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.mat-lb-cta:hover { background: var(--accent-bg, #e6f1fb); }
.mat-lb-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.mat-lb-idx {
  color: #7b8593;
  font-size: 11.5px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* 关闭 / 左右切换：全部 34–40px 触达目标 */
.mat-lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mat-lb-close:hover,
.mat-lb-close:active {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.mat-lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.mat-lb-prev,
.mat-lb-next {
  position: absolute;
  top: 40%;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mat-lb-prev { left: -56px; }
.mat-lb-next { right: -56px; }
.mat-lb-prev:hover,
.mat-lb-next:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.mat-lb-prev:focus-visible,
.mat-lb-next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 900px) {
  /* 窄屏：左右箭头压在图上，避免飞出视口 */
  .mat-lb-prev { left: 6px; }
  .mat-lb-next { right: 6px; }
  .mat-lb-prev,
  .mat-lb-next { background: rgba(15, 18, 25, 0.55); }
}

@media (max-width: 768px) {
  .mat-lb { padding: 12px; }
  .mat-lb-close { top: -10px; right: -4px; }
  .mat-lb-cap b { font-size: 14px; }
}
