/* ==========================================================================
   智联网络 (zlwl.homes) 技术专栏与SEO文章页面样式表
   极简苹果白 + 黑色单线框架体系
   ========================================================================== */

.article-page {
  padding: 48px 0 80px;
}

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

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

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: var(--text-muted);
}

/* 文章头部 */
.article-header {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  background: #ffffff;
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 17, 17, 0.2);
  font-size: 0.84rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* 文章正文排版 */
.article-content {
  padding: 40px 36px;
  border-radius: var(--radius-md);
  background: #ffffff;
  margin-bottom: 36px;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2c2c30;
  margin-bottom: 20px;
}

.article-content ul, 
.article-content ol {
  margin: 16px 0 24px 24px;
  color: #2c2c30;
  line-height: 1.8;
}

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

/* 强调锚文本链接 */
.article-content a.internal-anchor {
  color: var(--apple-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-content a.internal-anchor:hover {
  color: #0056b3;
}

/* 科技高亮警示框 */
.callout-box {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  background: #fafafc;
  margin: 28px 0;
  box-shadow: none;
}

.callout-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 !important;
}

/* 比较表格 */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border-line);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-line);
  text-align: left;
}

.comparison-table th {
  background: #f0f0f4;
  font-weight: 700;
}

.comparison-table tr:nth-child(even) {
  background: #fafafc;
}

/* 关键词标签区 */
.article-tags-section {
  padding: 24px 32px;
  border-radius: var(--radius-md);
  background: #ffffff;
  margin-bottom: 36px;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-line);
  background: var(--bg-main);
  color: var(--text-secondary);
  font-weight: 500;
}

/* 内链文章推荐矩阵 */
.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

.related-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.related-card-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.related-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.related-card:hover .related-card-title {
  color: var(--apple-blue);
}

/* 悬浮文章 CTA */
.article-cta-box {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: center;
}

@media (max-width: 768px) {
  .article-header,
  .article-content,
  .article-tags-section,
  .article-cta-box {
    padding: 24px 18px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}
