
/* 新闻详情页面布局: 左侧主内容(重要内容前置) + 右侧侧边栏(辅助) */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0;
}

/* 主内容区 - 新闻详情卡片 (核心内容优先) */
.news-detail-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 32px;
}
.detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.3;
}
.detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
    flex-wrap: wrap;
}
.detail-meta time, .detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.detail-meta i {
    color: var(--silver-blue);
    width: 16px;
}
.detail-content {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.8;
    margin-bottom: 40px;
}
.detail-content p {
    margin-bottom: 20px;
}
.detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    height: auto;
}
.detail-content h2, .detail-content h3 {
    margin: 24px 0 12px;
    color: var(--dark);
}

/* 上下篇导航 (利于爬虫抓取关联内容) */
.post-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    margin-top: 16px;
}
.nav-prev, .nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-next {
    text-align: right;
    align-items: flex-end;
}
.nav-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.nav-link {
    font-weight: 500;
    color: var(--silver-blue);
    text-decoration: none;
    transition: var(--transition);
    max-width: 90%;
    cursor: pointer;
}
.nav-link:hover {
    color: #1c6f8c;
    text-decoration: underline;
}
.disabled-nav {
    color: #adb5bd;
    cursor: default;
    pointer-events: none;
}

/* 右侧边栏 - 最新10条新闻 (次要但增强内链) */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}
.latest-news-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}
.box-header {
    background: var(--silver-blue);
    padding: 16px 20px;
    color: white;
}
.box-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.latest-list {
    list-style: none;
    padding: 8px 0;
}
.latest-list li {
    border-bottom: 1px solid var(--border-light);
}
.latest-list li:last-child {
    border-bottom: none;
}
.latest-item {
    display: flex;
    padding: 14px 20px;
    text-decoration: none;
    transition: var(--transition);
    gap: 12px;
    cursor: pointer;
}
.latest-item:hover {
    background: #f1f5f9;
}
.latest-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #e2e8f0;
}
.latest-info .latest-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-info .latest-date {
    font-size: 11px;
    color: var(--text-muted);
}
.active-latest {
    background: #eef2ff;
    border-left: 3px solid var(--silver-blue);
}

/* 响应式 */
@media (max-width: 992px) {
    .detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .sidebar { position: static; }
}
@media (max-width: 768px) {
    .detail-title { font-size: 24px; }
    .news-detail-card { padding: 20px; }
    .post-nav { flex-direction: column; gap: 16px; }
    .nav-next { text-align: left; align-items: flex-start; }
}


/* JSON-LD 结构化数据样式不影响布局 */
select.bg-light{
    padding: 0;
}

section { padding: 70px 0; }
