/* 基础重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #f5f5f5; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #333; font-weight: bold; }
.logo img { height: 36px; }
.main-nav { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.share-btn { background: none; border: none; cursor: pointer; font-size: 20px; }

/* 公告滚动 */
.announcement-bar { overflow: hidden; background: #fafafa; border-bottom: 1px solid #eee; height: 30px; line-height: 30px; white-space: nowrap; }
.announcement-scroll { display: inline-block; animation: scrollLeft 30s linear infinite; }
.announcement-scroll span { margin-right: 50px; }
@keyframes scrollLeft { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 专辑区域 */
.albums-section { max-width: 1200px; margin: 20px auto; padding: 0 15px; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.album-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: #333; transition: transform 0.2s; }
.album-card:hover { transform: translateY(-2px); }
.album-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.album-name { padding: 8px; display: block; text-align: center; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-date { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* 瀑布流 */
.masonry-grid { max-width: 1200px; margin: 20px auto; }
.masonry-item { width: 220px; margin-bottom: 10px; border-radius: 6px; overflow: hidden; transition: transform 0.2s; cursor: pointer; }
.masonry-item img { width: 100%; height: auto; display: block; }
.ad-card { background: #f0f0f0; min-height: 250px; display: flex; align-items: center; justify-content: center; }
#loading-spinner { text-align: center; padding: 20px; }

/* 灯箱 */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox.hidden { display: none; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 90vh; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }
.lightbox-close { top: -40px; right: 0; }
.lightbox-prev { left: -50px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -50px; top: 50%; transform: translateY(-50%); }

/* 响应式 */
@media (max-width: 768px) {
    .masonry-item { width: 48%; }
    .albums-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}