/* 资讯页 A-2 版式：大图头条 + 左侧图文列表 + 右侧栏（吸顶）
   宽度跟全站 --ls-width 走，后台改全站宽度这里自动跟随。
   v1.1.1：论坛标识挪到 meta 行（发布人前面）；列表标题加大一号（16→18px）；
   资讯链接按后台开关决定本页跳转 / 新窗口打开。 */

.spn-news {
    min-height: 60vh;
    padding: 20px 0 48px;
    background: #f4f6f9;
}

.spn-wrap {
    max-width: var(--ls-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 大图头条 ===== */
.spn-hero {
    margin-bottom: 22px;
}

.spn-hero-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
}

.spn-hero-cover {
    width: 45%;
    height: 320px;
    flex-shrink: 0;
    align-self: stretch;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.spn-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.spn-hero-card:hover .spn-hero-cover img {
    transform: scale(1.03);
}

.spn-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spn-cover-empty i {
    font-size: 56px;
    color: #c7d2fe;
}

.spn-hero-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spn-hero-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ===== 大图头条标题 ===== */
.spn-hero-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spn-hero-title a {
    color: inherit;
    text-decoration: none;
}

.spn-hero-title a:hover {
    color: #3b82f6;
}

/* 论坛标识：meta 行最前（发布人前面）的小胶囊，点击跳论坛 */
.spn-bbs-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 4px 9px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.spn-bbs-tag:hover {
    color: #4f46e5;
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.spn-bbs-tag i {
    font-size: 13px;
}

/* ===== 内容类型角标：只给视频 / 投票挂，长文与动态不挂 ===== */
.spn-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.spn-type-badge i {
    font-size: 13px;
}

.spn-type-video {
    color: #e11d48;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.spn-type-vote {
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
}

/* 挂在封面左上角的那一份：半透明底 + 投影，保证压在图片上也看得清 */
.spn-badge-cover {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.spn-badge-cover.spn-type-video {
    background: rgba(255, 241, 242, 0.94);
}

.spn-badge-cover.spn-type-vote {
    background: rgba(240, 253, 250, 0.94);
}


.spn-hero-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spn-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 18px;
}

.spn-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.spn-hero-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6338f6);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.spn-hero-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* ===== 双栏布局 ===== */
.spn-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.spn-layout.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.spn-sidebar {
    position: sticky;
    top: 70px;
}

/* ===== 列表 ===== */
.spn-list-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 12px;
}

.spn-list-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spn-list-head h2 i {
    color: #f59e0b;
    font-size: 18px;
}

.spn-list {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.05);
    overflow: hidden;
}

.spn-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.spn-item:last-child {
    border-bottom: none;
}

.spn-item:hover {
    background: #fafbfc;
}

.spn-item-cover {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    /* 类型角标要绝对定位到封面左上角 */
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    display: block;
}

.spn-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.spn-item:hover .spn-item-cover img {
    transform: scale(1.04);
}

.spn-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.spn-item-title {
    margin: 2px 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2937;
}

.spn-item-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spn-item-title a:hover {
    color: #3b82f6;
}

.spn-item-desc {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spn-item-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #9ca3af;
}

.spn-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 加载更多 ===== */
.spn-more {
    text-align: center;
    padding: 20px 0 4px;
}

.spn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    font-size: 14px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spn-more-btn:hover:not(:disabled) {
    color: #3b82f6;
    border-color: #93c5fd;
    background: #eff6ff;
}

.spn-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 空状态 ===== */
.spn-empty {
    text-align: center;
    padding: 56px 20px;
    color: #9ca3af;
}

.spn-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.spn-empty p {
    margin: 12px 0 0;
    font-size: 14px;
}

.spn-empty .spn-empty-sub {
    font-size: 12px;
    color: #c0c4cc;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .spn-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .spn-sidebar {
        position: static;
    }

    .spn-hero-card {
        flex-direction: column;
        align-items: stretch;
    }

    .spn-hero-cover {
        width: 100%;
        height: 200px;
    }

    .spn-item-cover {
        width: 130px;
        height: 88px;
    }
}
