/* achievement-lightbox.css —— 情侣成就墙「点亮放大」交互（复刻 love.naiblog.cn）
 * 两级：
 *  1) 点亮成就卡片 → 详情弹窗（标题/大图/点击预览/icon/描述/解锁日期）
 *  2) 点详情里的大图 → 全屏原图灯箱（可再次放大/拖动，Esc 关闭）
 * 独立类名 wbAch*，不复用照片灯箱 _previewOverlay，避免左右切换干扰。
 */
@keyframes wbAchFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wbAchPopIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- 成就卡片可点击提示 ---- */
._achievementCard_1xef9_890:not(._locked_1xef9_953) { cursor: pointer; }

/* ---- 一级：详情弹窗遮罩 ---- */
.wbAchMask {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  animation: wbAchFadeIn .22s ease;
}
/* ---- 详情弹窗卡片 ---- */
.wbAchModal {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  animation: wbAchPopIn .28s cubic-bezier(.2,.8,.2,1);
  color: #333;
}
.wbAchClose {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.85);
  color: #666; font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.wbAchClose:hover { background: #ff7ba9; color: #fff; border-color: #ff7ba9; }
.wbAchHeader {
  padding: 18px 22px 12px; font-size: 17px; font-weight: 700; color: #222;
}
/* 图片区（带"点击预览"提示，hover 显现） */
.wbAchImgBox {
  position: relative; margin: 0 22px; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #f2f0f2; cursor: zoom-in;
}
.wbAchImgBox img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.wbAchImgBox:hover img { transform: scale(1.03); }
.wbAchImgTip {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(0,0,0,.28); color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .25s ease;
}
.wbAchImgBox:hover .wbAchImgTip { opacity: 1; }
.wbAchBody { padding: 16px 22px 22px; text-align: center; }
.wbAchIcon { font-size: 30px; line-height: 1; margin: 2px 0 10px; }
.wbAchDesc { font-size: 15px; color: #555; margin: 0 0 14px; line-height: 1.6; }
.wbAchDate {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #ff6b9d;
  padding-top: 12px; border-top: 1px solid #ffe0ec; width: 100%; justify-content: center;
}

/* ---- 二级：全屏原图灯箱 ---- */
.wbAchLightbox {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; box-sizing: border-box; overflow: hidden;
  cursor: zoom-out; animation: wbAchFadeIn .25s ease;
  touch-action: none;
}
.wbAchLightbox img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 10px 80px rgba(0,0,0,.7);
  cursor: zoom-in; transform-origin: center center; transition: transform .18s ease;
  will-change: transform;
}
.wbAchLightbox .wbAchClose {
  top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12);
  color: #fff; font-size: 26px;
}
.wbAchLightbox .wbAchClose:hover { background: #ff7ba9; }
.wbAchLbTitle {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  color: #fff; font-size: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none;
}

@media (max-width: 520px) {
  .wbAchModal { max-width: 100%; border-radius: 14px; }
  .wbAchImgBox { margin: 0 16px; }
  .wbAchHeader { padding: 16px 18px 10px; }
  .wbAchBody { padding: 14px 18px 20px; }
}
