@font-face {
    font-family: 'ZQKNNY';
    src: url('../ZQKNNY-Medium-2.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 帖子灯箱（完整内容弹窗） */
.post-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
.post-lightbox.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.post-lightbox-dialog {
    width: min(920px, 100%);
    max-height: min(82vh, 820px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(20, 20, 24, 0.82);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    transform: translateY(14px) scale(.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}
.post-lightbox.show .post-lightbox-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.post-lightbox-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.post-lightbox-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2px;
    color: rgba(255,255,255,0.95);
}
.post-lightbox-subtitle {
    margin: 6px 0 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.66);
}
.post-lightbox-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.post-lightbox-close:hover { background: rgba(255,255,255,0.12); }
.post-lightbox-close:active { transform: scale(.98); }
.post-lightbox-body {
    padding: 14px 16px 18px 16px;
    overflow: auto;
    max-height: calc(min(82vh, 820px) - 60px);
}
.post-lightbox-cover {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: none;
    margin: 0 0 12px 0;
    border: 1px solid rgba(255,255,255,0.10);
}
.post-lightbox-content {
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}
.post-lightbox-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.post-lightbox-content a { color: rgba(160, 220, 255, 0.95); }

/* 帖子卡片副标题 */
.post-subtitle {
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255,255,255,0.68);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .post-lightbox, .post-lightbox-dialog, .post-lightbox-close {
        transition: none !important;
    }
}
