/* ===== 新闻详情页 + 纯 Banner（不依赖 Bootstrap） ===== */
/* 详情布局 */
.news-detail-layout{
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* 主文章卡片 */
.news-article{
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

/* 返回 */
.news-back{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 14px;
}
.news-back:hover{
    color: var(--primary-color);
}

/* 标题 / meta */
.news-article-title{
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 14px;
}
.news-article-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
}
.news-article-meta .meta-dot{ opacity: .7; }
.news-article-meta .meta-cat{
    color: var(--primary-color);
    font-weight: 600;
}

/* 封面 */
.news-article-cover{
    margin: 18px 0 22px;
    border-radius: 12px;
    overflow: hidden;
}
.news-article-cover img{
    width: 100%;
    height: auto;
    display: block;
}

/* 富文本正文（适配常见标签） */
.news-article-body{
    color: var(--text-dark);
    line-height: 1.95;
    font-size: 16px;
}
.news-article-body p{ margin: 0 0 16px; }
.news-article-body img{
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.news-article-body h2{
    font-size: 22px;
    margin: 26px 0 12px;
}
.news-article-body h3{
    font-size: 18px;
    margin: 22px 0 10px;
}
.news-article-body ul,
.news-article-body ol{
    padding-left: 20px;
    margin: 0 0 16px;
}
.news-article-body blockquote{
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid rgba(196,30,58,.35);
    background: rgba(196,30,58,.06);
    border-radius: 10px;
    color: var(--text-dark);
}

/* 上下篇 */
.news-pager{
    display: flex;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.news-pager-item{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.news-pager-item .label{
    font-size: 12px;
    color: var(--text-light);
}
.news-pager-item .title{
    font-size: 14px;
    line-height: 1.4;
}
.news-pager-item:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: rgba(196,30,58,.28);
}
.news-pager-item.disabled{
    opacity: .55;
    cursor: not-allowed;
    background: rgba(0,0,0,.03);
    box-shadow: none;
}

/* 侧栏 */
.news-sidebar .side-card{
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
}
.news-sidebar .side-card h3{
    font-size: 18px;
    margin-bottom: 14px;
}

/* 最新资讯列表 */
.side-news-list{
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-news-list li{
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.side-news-list li:first-child{
    border-top: none;
    padding-top: 0;
}
.side-news-list a{
    flex: 1;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
}
.side-news-list a:hover{
    color: var(--primary-color);
}
.side-news-list .date{
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
    padding-top: 2px;
}

/* 分类标签 */
.side-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.side-tags .tag{
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(196,30,58,.20);
    background: rgba(196,30,58,.08);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.side-tags .tag:hover{
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* 响应式 */
@media (max-width: 1024px){
    .news-detail-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
    .page-banner{ height: 220px; }
    .news-article{ padding: 20px; }
    .news-article-title{ font-size: 24px; }
    .news-pager{ flex-direction: column; }
}
