/* ===========================================================
   Lumina Blog v1.5.3 · 赞助支持（收款码）
   纯色 · 无渐变 · 深浅自适应（配色由「样式」决定）
   侧边栏 / 文章底部 / 正文上方 / 页脚 四处通用
   =========================================================== */
.widget-sponsor { }
.widget-sponsor .sponsor-note,
.widget-sponsor .sponsor-empty {
    margin: 0 0 12px;
    font-size: .85rem;
    line-height: 1.7;
    color: var(--muted);
}
.sponsor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 12px;
}
.sponsor-item {
    margin: 0;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.sponsor-item img {
    display: block;
    width: 100%;
    max-width: 168px;
    height: auto;
    margin: 0 auto 8px;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: zoom-in;
}
.sponsor-name { font-size: .84rem; font-weight: 600; color: var(--text); }
.sponsor-desc { margin-top: 2px; font-size: .76rem; line-height: 1.6; color: var(--muted); }
.sponsor-hint { margin: 10px 0 0; font-size: .72rem; color: var(--muted); }
/* 正文上方 / 文章底部：横向铺开，宽度更宽松 */
.sponsor-band .sponsor-list { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.sponsor-band .sponsor-item img { max-width: 200px; }
@media (max-width: 520px) {
    .sponsor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sponsor-item { padding: 8px; }
    .sponsor-item img { max-width: 100%; }
}
/* 兜底灯箱：仅当站内「点图片放大查看」被关闭时用（结构与 v14 保持一致） */
.lb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, .88);
    cursor: zoom-out;
}
.lb-lightbox img {
    max-width: 96vw;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    background: #fff;
}
.lb-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1e293b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
