/* ============================================================
   Megatex Blanket — 单页通用模板辅助样式（page.php）
   结构：图集网格（CMS 单页图集 piclist）
   依赖：news.css（面包屑 na-crumb / 正文排版 na-body / 分页 pagination）
   ============================================================ */

/* ---------- 1. 图集网格 ---------- */
.pg-pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}
.pg-pic {
  margin: 0;
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pg-pic:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(44, 42, 37, .10);
}
.pg-pic a { display: block; }
.pg-pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pg-pic figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #666;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .pg-pics { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
}

@media (max-width: 480px) {
  .pg-pics { grid-template-columns: 1fr; }
  .pg-pic figcaption { font-size: 12px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .pg-pic { transition: none; }
  .pg-pic:hover { transform: none; box-shadow: none; }
}
