
/* 新闻详情页面布局: 左侧主内容(重要内容前置) + 右侧侧边栏(辅助) */
.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; }
}

/* ====== Solutions 详情页移动端响应式补充 ====== */
@media (max-width: 992px) {
    /* 面包屑导航：由 common.css 统一适配，无需重复 */
    /* 头部 banner 标题 */
    .bg-dark .section-header { padding: 24px 0; }
    .bg-dark .section-title { font-size: 28px; }
    .bg-dark .section-desc { font-size: 14px; }
    /* 详情卡片与侧边栏堆叠后的间距 */
    .detail-layout { padding: 24px 0; gap: 24px; }
    .sidebar { margin-top: 0; }
    /* 侧边栏推荐阅读改为横向卡片流，节省纵向空间 */
    .latest-item { padding: 10px 16px; }
    .latest-img { width: 50px; height: 50px; }
    .latest-info .latest-title { font-size: 13px; }
    /* 详情内容字号微调 */
    .detail-content { font-size: 15px; }
    .detail-content img { border-radius: 8px; }
    /* 上下篇导航：允许换行，按钮可点击区域增大 */
    .nav-link { font-size: 14px; max-width: 100%; }
    .nav-label { font-size: 12px; }
}

@media (max-width: 768px) {
    section { padding: 40px 0; }
    .container { padding: 0 16px; }
    /* banner 标题缩小 */
    .bg-dark .section-title { font-size: 24px; }
    .bg-dark .section-desc { font-size: 13px; }
    .bg-dark .section-header { padding: 20px 0; }
    /* 详情卡片紧凑化 */
    .news-detail-card { padding: 18px; border-radius: 12px; }
    .detail-title { font-size: 20px; margin-bottom: 12px; line-height: 1.35; }
    .detail-meta { gap: 14px; font-size: 13px; padding-bottom: 14px; margin-bottom: 18px; }
    .detail-meta i { width: 14px; }
    .detail-content { font-size: 14px; line-height: 1.75; margin-bottom: 28px; }
    .detail-content p { margin-bottom: 14px; }
    .detail-content h2, .detail-content h3 { font-size: 17px; margin: 18px 0 10px; }
    .detail-content img { margin: 14px 0; }
    /* 上下篇导航紧凑 */
    .post-nav { padding-top: 18px; gap: 14px; }
    .nav-link { font-size: 13px; }
    .nav-label { font-size: 11px; }
    /* 侧边栏推荐阅读 */
    .latest-news-box { border-radius: 12px; margin-bottom: 0; }
    .box-header { padding: 12px 16px; }
    .box-header h3 { font-size: 16px; }
    .latest-item { padding: 10px 14px; gap: 10px; }
    .latest-img { width: 48px; height: 48px; border-radius: 6px; }
    .latest-info .latest-title { font-size: 13px; line-height: 1.35; margin-bottom: 4px; }
    .latest-info .latest-date { font-size: 10px; }
}

@media (max-width: 480px) {
    /* banner 标题进一步缩小 */
    .bg-dark .section-title { font-size: 20px; line-height: 1.3; }
    .bg-dark .section-desc { font-size: 12px; }
    .bg-dark .section-header { padding: 18px 0; }
    /* 详情卡片极简 */
    .news-detail-card { padding: 14px; border-radius: 10px; }
    .detail-title { font-size: 18px; }
    .detail-meta { gap: 10px; font-size: 12px; }
    .detail-content { font-size: 13.5px; line-height: 1.7; }
    .detail-content p { margin-bottom: 12px; }
    .detail-content h2, .detail-content h3 { font-size: 16px; margin: 14px 0 8px; }
    .detail-content img { margin: 12px 0; border-radius: 6px; }
    /* 上下篇导航极简 */
    .post-nav { padding-top: 14px; gap: 12px; }
    .nav-link { font-size: 12px; }
    .nav-label { font-size: 10px; }
    /* 侧边栏极简 */
    .box-header { padding: 10px 14px; }
    .box-header h3 { font-size: 14px; }
    .latest-item { padding: 8px 12px; gap: 8px; }
    .latest-img { width: 42px; height: 42px; }
    .latest-info .latest-title { font-size: 12px; }
    .latest-info .latest-date { font-size: 10px; }
}


/* JSON-LD 结构化数据样式不影响布局 */
select.bg-light{
    padding: 0;
}

section { padding: 70px 0; }
