/* =====================================================================
   PCR ARCHIVE — 共用基础样式：字体、弹窗、通用状态
   ===================================================================== */

@font-face {
  font-family: 'EF Wide';
  src: url('../fonts/ef/Novecentosanswide-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'EF Wide';
  src: url('../fonts/ef/Novecentosanswide-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'EF Gilroy';
  src: url('../fonts/ef/Gilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'EF Mono';
  src: url('../fonts/ef/SpaceGrotesk.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'EF Stencil';
  src: url('../fonts/ef/ProtestStrike-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

[hidden] { display: none !important; }
body.is-locked { overflow: hidden; }
img.is-broken { opacity: .16; }

/* 图片弹窗（三个页面共用） */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 22px;
  background: rgba(29, 43, 66, .55);
  backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  margin: 0;
  max-width: min(1500px, 96vw);
  max-height: 93svh;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20, 30, 50, .3);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.modal__scroll {
  overflow: auto;
  border-radius: 6px;
  min-height: 0;
}
.modal__scroll img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
}
.modal__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 7px 4px 1px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
}
.modal__meta a { color: var(--pink-deep); text-decoration: none; }
.modal__meta a:hover { text-decoration: underline; }
.modal__close {
  position: absolute; top: 6px; right: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px;
  color: #fff; background: rgba(29, 43, 66, .7);
  border: 0; border-radius: 50%; z-index: 2;
  cursor: pointer;
  transition: background .18s;
}
.modal__close:hover { background: var(--pink); }
