/* ===== 相册前台 · 简约风格 ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1f2d3d;
  background: #f7f8fa;
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* 顶部导航 */
.album-header { background: #fff; border-bottom: 1px solid #eceef2; position: sticky; top: 0; z-index: 10; }
.album-head-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.album-brand { font-size: 17px; font-weight: 700; color: #1f2d3d; }
.album-nav { display: flex; gap: 18px; font-size: 14px; }
.album-nav a { color: #667085; }
.album-nav a:hover { color: #2563eb; }

.album-main { padding: 24px 0 40px; }
.album-page-title { font-size: 24px; margin: 6px 0 10px; }
.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-empty { color: #9aa3b2; padding: 30px 0; }

/* 相册列表 */
.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: 160px; 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: 170px; 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; }
