/* article.css - 文章详情排版 */
/* 太原市斯航网络科技有限公司 - 文章页面样式 */

/* ===== 文章头部 ===== */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #4DB6AC;
}

.article-header h1 {
  color: #3E2723;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  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;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 0.8125rem;
  color: #999999;
}

.article-meta span {
  margin-right: 1.5rem;
  margin-bottom: 0.25rem;
}

.article-meta a {
  color: #4DB6AC;
}

.article-meta a:hover {
  color: #3E2723;
}

/* ===== 文章正文 ===== */
.article-content {
  color: #333333;
  line-height: 1.9;
  font-size: 1rem;
}

.article-content h2 {
  color: #3E2723;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #4DB6AC;
}

.article-content h3 {
  color: #3E2723;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content a {
  color: #4DB6AC;
  text-decoration: underline;
}

.article-content a:hover {
  color: #3E2723;
}

.article-content blockquote {
  background-color: #F5F2F0;
  border-left: 4px solid #4DB6AC;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666666;
}

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

.article-content code {
  background-color: #F5F2F0;
  padding: 0.125rem 0.375rem;
  font-size: 0.875rem;
  color: #3E2723;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.article-content pre {
  background-color: #261A17;
  color: #FFFFFF;
  padding: 1.25rem;
  overflow-x: auto;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.article-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.article-content table {
  margin-bottom: 1.25rem;
}

.article-content strong {
  color: #3E2723;
  font-weight: 600;
}

/* ===== 文章底部 ===== */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #D5CFCB;
}

/* TAG */
.article-tags {
  margin-bottom: 1.5rem;
}

.article-tags-label {
  font-weight: 600;
  color: #3E2723;
  margin-right: 0.5rem;
}

.article-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: #F5F2F0;
  border: 1px solid #D5CFCB;
  color: #666666;
  font-size: 0.8125rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.article-tags a:hover {
  background-color: #4DB6AC;
  color: #FFFFFF;
  border-color: #4DB6AC;
  text-decoration: none;
}

/* 相关文章 */
.related-articles {
  margin-top: 2rem;
}

.related-articles h3 {
  color: #3E2723;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #4DB6AC;
}

.related-list {
  list-style: none;
  padding-left: 0;
}

.related-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #F5F2F0;
  margin-bottom: 0;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  color: #333333;
  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;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.related-list a:hover {
  color: #4DB6AC;
  text-decoration: none;
}

.related-list .related-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-right: 1rem;
}

.related-list .related-date {
  font-size: 0.75rem;
  color: #999999;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* ===== 文章列表页 ===== */
.article-list {
  list-style: none;
  padding-left: 0;
}

.article-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #D5CFCB;
}

.article-list-item:last-child {
  border-bottom: none;
}

.article-list-item h3 {
  margin-bottom: 0.625rem;
}

.article-list-item h3 a {
  color: #3E2723;
  font-size: 1.125rem;
}

.article-list-item h3 a:hover {
  color: #4DB6AC;
  text-decoration: none;
}

.article-list-item .list-meta {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 0.5rem;
}

.article-list-item .list-summary {
  color: #666666;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== 百科/新闻列表页通用 ===== */
.archive-header {
  margin-bottom: 2rem;
}

.archive-header h1 {
  color: #3E2723;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: #666666;
  font-size: 0.9375rem;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 480px) {
  .article-header h1 {
    font-size: 1.375rem;
  }
  
  .article-content h2 {
    font-size: 1.25rem;
  }
  
  .article-content h3 {
    font-size: 1.125rem;
  }
}
