/* article.css - 文章详情排版（百科/新闻页加载） */

/* === Article Header === */
.article-header { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: 26px; color: var(--primary); margin-bottom: 15px; line-height: 1.4; }
.article-meta { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; font-size: 13px; color: var(--text-light); }
.article-meta span { margin-right: 20px; }
.article-meta i { color: var(--secondary); margin-right: 5px; }

/* === Article Body === */
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.article-body h2 { font-size: 22px; color: var(--primary); margin: 35px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 18px; color: var(--green-light); margin: 28px 0 14px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 18px 0; padding-left: 28px; }
.article-body ul li { list-style: disc; margin-bottom: 10px; }
.article-body ol li { list-style: decimal; margin-bottom: 10px; }
.article-body strong { color: var(--primary); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: var(--secondary); }
.article-body blockquote { margin: 25px 0; padding: 20px 25px; background: var(--bg); border-left: 4px solid var(--secondary); font-style: italic; color: var(--text-light); }
.article-body code { background: #f0ebe5; padding: 2px 8px; border-radius: 3px; font-size: 13px; color: #c7254e; }
.article-body pre { background: #f8f8f8; padding: 20px; border-radius: 6px; overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); }
.article-body pre code { background: none; padding: 0; color: var(--text); }
.article-body table { width: 100%; margin: 20px 0; border: 1px solid var(--border); }
.article-body th { background: var(--primary); color: var(--white); padding: 12px 15px; text-align: left; font-weight: 600; }
.article-body td { padding: 12px 15px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) { background: #faf8f5; }

/* === Article Tags === */
.article-tags { margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border); }
.article-tags-label { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.article-tags a { display: inline-block; padding: 6px 16px; background: var(--bg); border-radius: 20px; font-size: 13px; color: var(--text); margin: 0 8px 8px 0; transition: all 0.3s; }
.article-tags a:hover { background: var(--primary); color: var(--white); }

/* === Article Nav === */
.article-nav { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border); }
.article-nav-prev, .article-nav-next { max-width: 45%; }
.article-nav-label { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.article-nav a { font-size: 14px; color: var(--primary); line-height: 1.5; }
.article-nav a:hover { color: var(--secondary); }

/* === Share Buttons === */
.share-bar { margin-top: 30px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.share-label { font-size: 14px; color: var(--text-light); margin-right: 15px; }
.share-btn { display: inline-block; width: 36px; height: 36px; border-radius: 50%; text-align: center; line-height: 36px; margin-right: 8px; color: var(--white); font-size: 14px; }
.share-wx { background: #07c160; }
.share-wb { background: #e6162d; }
.share-qq { background: #12b7f5; }

/* === Responsive === */
@media screen and (max-width: 768px) {
  .article-header h1 { font-size: 20px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 16px; }
  .article-nav { -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; }
  .article-nav-prev, .article-nav-next { max-width: 100%; margin-bottom: 15px; }
}
