@charset "UTF-8";

/* === article.css - 文章详情排版 === */

/* Article Container */
.article-page {
  padding: 40px 0 60px;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 40px;
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #C8D5E0;
}

.article-header h1 {
  font-size: 26px;
  color: #0D1B2A;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #999;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Body */
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.article-body h2 {
  font-size: 22px;
  color: #0D1B2A;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F77F00;
}

.article-body h3 {
  font-size: 18px;
  color: #0D1B2A;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-body ul li {
  list-style-type: disc;
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-body ol li {
  list-style-type: decimal;
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-body a {
  color: #F77F00;
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body strong {
  color: #0D1B2A;
}

.article-body blockquote {
  border-left: 4px solid #F77F00;
  padding: 16px 20px;
  background-color: #F0F4F8;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

.article-body code {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  font-family: Consolas, monospace;
}

.article-body pre {
  background-color: #08121C;
  color: #fff;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

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

.article-body table th {
  background-color: #0D1B2A;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.article-body table td {
  padding: 10px 16px;
  border-bottom: 1px solid #C8D5E0;
}

.article-body table tr:nth-child(even) {
  background-color: #F0F4F8;
}

/* Article Tags */
.article-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #C8D5E0;
}

.article-tags-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag-list a {
  display: inline-block;
  padding: 6px 14px;
  background: #F0F4F8;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  transition: all 0.2s ease;
}

.article-tag-list a:hover {
  background: #F77F00;
  color: #fff;
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #C8D5E0;
  gap: 20px;
}

.article-nav-prev,
.article-nav-next {
  flex: 1;
  max-width: 45%;
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  font-size: 12px;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.article-nav a {
  font-size: 15px;
  color: #0D1B2A;
  transition: color 0.2s ease;
}

.article-nav a:hover {
  color: #F77F00;
}

/* Related Articles */
.related-articles {
  margin-top: 40px;
}

.related-articles h3 {
  font-size: 18px;
  color: #0D1B2A;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F77F00;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #F0F4F8;
  border-radius: 4px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.related-item:hover {
  border-left-color: #F77F00;
  background: #e8eef4;
}

.related-item h4 {
  font-size: 15px;
  color: #0D1B2A;
  margin-bottom: 4px;
}

.related-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Share */
.article-share {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share-label {
  font-size: 14px;
  color: #666;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F4F8;
  border: 1px solid #C8D5E0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #666;
}

.share-btn:hover {
  background: #F77F00;
  color: #fff;
  border-color: #F77F00;
}

/* Responsive */
@media (max-width: 1023px) {
  .article-container {
    padding: 30px;
  }
  
  .article-header h1 {
    font-size: 22px;
  }
  
  .article-body h2 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .article-container {
    padding: 20px;
  }
  
  .article-header h1 {
    font-size: 20px;
  }
  
  .article-body {
    font-size: 14px;
  }
  
  .article-body h2 {
    font-size: 18px;
  }
  
  .article-body h3 {
    font-size: 16px;
  }
  
  .article-nav {
    flex-direction: column;
  }
  
  .article-nav-prev,
  .article-nav-next {
    max-width: 100%;
    text-align: left;
  }
}
