/* ===================================================================
   Gatern VIP 专栏文章专属样式表 - article.css
   专为 SEO 与长文可读性调优，提供清晰排版、代码块、对比表格与内链展示
   =================================================================== */

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

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

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.breadcrumbs span.separator {
  color: var(--text-dim);
}

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

.article-category-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--accent-peach);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

/* 快速摘要导读盒 */
.article-lead-box {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.08) 0%, rgba(244, 63, 94, 0.08) 100%);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 38px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.lead-box-title {
  font-weight: 800;
  color: var(--accent-peach);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

/* 正文富文本排版 */
.article-content {
  font-size: 1.04rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--grad-primary);
  border-radius: 4px;
}

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

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

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

.article-content a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

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

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

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

/* 提示卡片 Callouts */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 30px 0;
  border: 1px solid transparent;
}

.callout-info {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.callout-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.callout-warning {
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.3);
  color: #fed7aa;
}

/* 对比表格 */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  font-size: 0.94rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: #ffffff;
}

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

.table-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.table-tag.good {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.table-tag.warn {
  background: rgba(244, 63, 94, 0.15);
  color: #fca5a5;
}

/* 文章中的推荐卡片 / 内嵌 CTA */
.article-cta-box {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(251, 146, 60, 0.12) 100%);
  border: 1px solid var(--border-featured);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin: 50px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.article-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 22px;
}

/* 相关推荐文章卡片 */
.related-articles-section {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.related-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.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-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.related-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}
