@charset "UTF-8";

/* ========================================
   article.css - 文章详情排版（百科/新闻页加载）
   太原市悦海网络科技有限公司
   www.ceelon.com
   ======================================== */

/* ---- 文章头部 ---- */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.article-meta span {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
}

/* ---- 文章内容 ---- */
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 35px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 17px;
  color: var(--primary);
  margin: 25px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  text-align: justify;
}

.article-content a {
  color: var(--secondary);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--primary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 18px;
  padding-left: 25px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--primary);
  font-weight: 600;
}

.article-content blockquote {
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

.article-content th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.article-content tr:nth-child(even) {
  background: var(--bg);
}

/* ---- 文章底部 ---- */
.article-footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.article-tags {
  margin-bottom: 20px;
}

.article-tags span {
  font-size: 13px;
  color: var(--text-light);
  margin-right: 10px;
}

.article-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 15px;
  font-size: 12px;
  color: var(--text);
  margin-right: 8px;
  margin-bottom: 5px;
}

.article-tags a:hover {
  background: var(--primary);
  color: var(--white);
}

/* 分享按钮 */
.article-share {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.share-btn {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  font-size: 12px;
}

.share-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ---- 上下篇导航 ---- */
.article-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.article-nav a {
  color: var(--text);
  max-width: 45%;
}

.article-nav a:hover {
  color: var(--secondary);
}

.article-nav .prev::before {
  content: "<< ";
  color: var(--secondary);
}

.article-nav .next::after {
  content: " >>";
  color: var(--secondary);
}

/* ---- 相关推荐 ---- */
.related-articles {
  margin-top: 40px;
}

.related-articles h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.related-articles ul li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.related-articles ul li a {
  font-size: 14px;
  color: var(--text);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.related-articles ul li a:hover {
  color: var(--secondary);
}

.related-articles ul li .date {
  font-size: 12px;
  color: var(--text-light);
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 10px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 20px;
  }

  .article-content {
    font-size: 14px;
  }

  .article-content h2 {
    font-size: 18px;
  }

  .article-content h3 {
    font-size: 15px;
  }

  .article-nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
  }

  .article-nav a {
    max-width: 100%;
  }
}
