@import url("./column-header.css?v=20260843");
:root{--pc-container-width:100%;--pc-container-padding:16px;--pc-reading-width:100%;--pc-grid-gap:20px;}@media (min-width:1200px){:root{--pc-container-width:1000px;--pc-reading-width:780px;}}html{background:#f4f6fb;}
/* ===== 相册前台 · 简约风格 ===== */
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1f2d3d;
  background: #f7f8fa;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--pc-container-width);
}
/* 主体撑满剩余高度，使页脚始终贴页面底部而非紧贴正文末尾 */
main { flex: 1 0 auto; width: 100%; }
.container { max-width: var(--pc-container-width); margin: 0 auto; padding: 0 var(--pc-container-padding); }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* 顶部导航 / 页面标题 / 空状态 见 column-header.css（@import 引入，各栏目共享） */
/* 左右内边距用变量，避免 shorthand 覆盖 .container 的左右留白（与博客/收藏保持一致） */
.album-main { padding: 24px var(--pc-container-padding) 40px; }
.album-page-count { font-size: 14px; color: #9aa3b2; font-weight: 400; margin-left: 8px; }
.album-album-desc { color: #5b6675; margin: 0 0 18px; }
.album-back { margin: 0 0 6px; font-size: 14px; }

/* 相册列表 */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.album-card { background: #fff; border: 1px solid #eceef2; border-radius: 12px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.album-card:hover { box-shadow: 0 8px 24px rgba(31,45,61,.10); transform: translateY(-2px); }
.album-card-cover { position: relative; height: 176px; background: #eef1f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.album-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card-ph { font-size: 42px; }
.album-card-count { position: absolute; right: 8px; bottom: 8px; background: rgba(15,23,42,.55); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.album-card-body { padding: 12px 14px 16px; }
.album-card-title { font-size: 16px; margin: 0 0 4px; color: #1f2d3d; }
.album-card-desc { font-size: 13px; color: #8a93a3; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 照片网格 */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.photo-cell { margin: 0; background: #fff; border: 1px solid #eceef2; border-radius: 10px; overflow: hidden; cursor: zoom-in; transition: box-shadow .15s ease, transform .15s ease; }
.photo-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,45,61,.10); }
.photo-cell-img { width: 100%; height: 184px; object-fit: cover; display: block; }
.photo-cell-cap { padding: 8px 10px; font-size: 13px; color: #33415c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 灯箱 / 幻灯片 ===== */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; }
.lb.open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.88); }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb-view { max-width: min(1000px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-meta { color: #e8edf5; text-align: center; max-width: 760px; }
.lb-title { font-size: 16px; font-weight: 600; }
.lb-desc { font-size: 14px; color: #c4ccd8; margin-top: 4px; }
.lb-counter { font-size: 12px; color: #9aa3b2; margin-top: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-slide { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 14px; padding: 8px 18px; cursor: pointer; }
.lb-slide:hover { background: rgba(255,255,255,.3); }
.lb-slide.playing { background: #2f6fed; }

/* 底部信息区块：固定页面底部，与正文保持间距 */
.album-footer {
  width: 100%;
  max-width: var(--pc-container-width);
  margin: 36px auto 0;
  background: #1f2d3d;
  color: #c4ccd8;
  font-size: 13px;
  padding: 18px 0;
  text-align: center;
  flex-shrink: 0;
}
.album-footer a { color: #c4ccd8; }
.album-footer a:hover { color: #fff; }

/* ===== PC 端：容器统一 1000px =====
   内容区由 1200px 收窄到 968px，缩略图按同比例降低高度，
   避免格子变窄后封面被拉成过高竖条。 */
@media (min-width: 1200px) {
  .album-grid { gap: 16px; }
  .album-card-cover { height: 148px; }
  .photo-grid { gap: 12px; }
  .photo-cell-img { height: 150px; }
}
