/* ============================================================
   新闻文章详情页样式 - news_article.css
   包含：文章主体、正文排版、上下篇导航、侧边栏、相关阅读、分享
============================================================ */

/* ---------- 文章主体 ---------- */
.article-section { padding: 64px 0 96px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-main { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-content { padding: 40px 44px 48px; }
.article-tag { display: inline-block; background: var(--green-50); color: var(--green-700); font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 999px; border: 1px solid var(--green-100); margin-bottom: 16px; }
.article-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }

/* ---------- 正文排版 ---------- */
.article-body { font-size: 17px; line-height: 1.9; color: var(--ink-soft); }
.article-body p { margin-bottom: 20px; }
.article-body p strong { color: var(--ink); font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow-md); }
.article-body h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 36px 0 16px; }
.article-body blockquote {
    margin: 28px 0; padding: 20px 24px; background: var(--bg-soft);
    border-left: 4px solid var(--green-500); border-radius: 0 12px 12px 0;
    color: var(--ink-soft); font-style: italic;
}

/* ---------- 上下篇导航 ---------- */
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-nav a {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
    border-radius: var(--radius); border: 1px solid var(--line); flex: 1;
    transition: border-color .2s, background .2s;
}
.article-nav a:hover { border-color: var(--green-300); background: var(--green-50); }
.article-nav .nav-label { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.article-nav .nav-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.article-nav .next { text-align: right; }

/* ---------- 侧边栏 ---------- */
.side-nav { position: sticky; top: 110px; }
.side-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 24px; }
.side-card h4 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.side-card h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--grad); border-radius: 99px; }

/* ---------- 相关阅读 ---------- */
.related-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:first-child { padding-top: 0; }
.related-thumb { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg-soft); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; }
.related-info h5 { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-info h5 a:hover { color: var(--green-600); }
.related-info .date { font-size: 12px; color: var(--muted-2); }

/* ---------- 分享 ---------- */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line);
    color: var(--ink-soft); transition: all .2s; cursor: pointer; background: #fff;
}
.share-btn:hover { border-color: var(--green-300); color: var(--green-700); background: var(--green-50); }
.share-btn svg { width: 14px; height: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .article-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .side-card { margin-bottom: 0; }
}
@media (max-width: 768px) {
    .article-content { padding: 28px 24px 32px; }
    .article-nav { flex-direction: column; }
}
@media (max-width: 560px) {
    .article-content { padding: 20px 18px 24px; }
    .article-body { font-size: 16px; }
    .side-nav { grid-template-columns: 1fr; }
}
