/* ==========================================================================
   SparkCloud 花火云 - 专栏文章专属样式表 (article.css)
   特性：长文优雅排版、代码块、高亮引用、目录导航、自适应阅读
   ========================================================================== */

.article-page {
  padding: 48px 0 96px 0;
  min-height: 80vh;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumb-separator {
  color: var(--text-dim);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-light);
  font-weight: 500;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.article-category-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.35);
  color: #ff7722;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

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

/* 文章目录盒 */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.article-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.article-toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.article-toc-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* 文章正文排版 */
.article-content {
  color: #cbd5e1;
  font-size: 16.5px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.article-content h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 32px 0 16px 0;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  padding-left: 10px;
}

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

.article-content strong {
  color: #ffffff;
  font-weight: 700;
}

/* 高亮呼出框 */
.callout-box {
  background: rgba(255, 85, 0, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 30px 0;
}

.callout-box.cyan {
  background: rgba(0, 240, 255, 0.08);
  border-left-color: var(--accent-cyan);
}

.callout-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 数据对比表格 */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}

.article-table th {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* 正文呼应 CTA 推广横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.15) 0%, rgba(255, 0, 122, 0.15) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.article-cta-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px auto;
}

/* 文章底部导航与相关推荐 */
.article-footer-nav {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.related-articles-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.related-article-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.related-article-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-article-meta {
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .article-title {
    font-size: 26px;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb-current {
    max-width: 180px;
  }
}
