/* 公告中心浮层。PC 居中面板，移动端底部上滑。
   和一次性弹窗（site-notice.css）分开：那一份是「飘一条就走」的通知条，
   这一份是常驻入口打开的列表，两者的层级、动画、生命周期都不一样。 */

.lsnc-mask {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 18, 26, .45);
    backdrop-filter: blur(2px);
    animation: lsnc-fade .18s ease;
}

@keyframes lsnc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lsnc-panel {
    display: flex;
    flex-direction: column;
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: 72vh;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 18, 26, .28);
    animation: lsnc-rise .22s cubic-bezier(.22, .68, .36, 1);
}

@keyframes lsnc-rise {
    from { transform: translateY(18px) scale(.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.lsnc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(15, 18, 26, .06);
}

.lsnc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1b1f2a;
}

.lsnc-close {
    margin-left: auto;
    padding: 4px;
    font-size: 18px;
    color: #9aa1ad;
    cursor: pointer;
    background: none;
    border: 0;
}

.lsnc-body {
    flex: 1;
    padding: 8px 18px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lsnc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 18, 26, .06);
    cursor: pointer;
}

.lsnc-item:hover .lsnc-line {
    color: #2f6bff;
}

.lsnc-item:last-child { border-bottom: 0; }

.lsnc-ico {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 12px;
}

.lsnc-main { min-width: 0; flex: 1; }

/* 第一行：正文摘要，**一行**，溢出省略号。 */
.lsnc-line {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: #333a47;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 第二行：类型 + 日期。 */
.lsnc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #9aa1ad;
}

.lsnc-kind { color: #2f6bff; }

/* 右侧那个礼物标识，宽度固定，永远在最右边。 */
.lsnc-gift {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    border-radius: 9px;
}

/* 详情浮层压在公告中心面板上面。 */
.lsnc-detail-mask { z-index: 10030; }

.lsnc-empty {
    padding: 48px 0;
    font-size: 14px;
    color: #9aa1ad;
    text-align: center;
}

.lsnc-loading {
    padding: 16px 0;
    font-size: 13px;
    color: #9aa1ad;
    text-align: center;
}

/* 入口链接上的小红点。挂在带 `#notice-center` 的 <a> 上。 */
.lsnc-dot {
    position: relative;
    top: -6px;
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 2px;
    font-size: 11px;
    font-style: normal;
    line-height: 16px;
    color: #fff;
    text-align: center;
    background: #f04438;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .lsnc-mask { align-items: flex-end; }

    .lsnc-panel {
        width: 100%;
        max-width: none;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        animation: lsnc-up .24s cubic-bezier(.22, .68, .36, 1);
    }

    @keyframes lsnc-up {
        from { transform: translateY(100%); }
        to { transform: none; }
    }

    .lsnc-head { padding: 14px 16px 10px; }
    .lsnc-body { padding: 4px 16px 24px; }
}
