/* ==========================================================================
   红杏出墙 (hongx.homes) 技术专栏与SEO文章页面专用样式表
   规范：极简苹果白 + 黑色单线框架体系
   ========================================================================== */

.article-page {
  padding: 48px 0 80px;
  background-color: var(--bg-main);
}

.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);
  flex-wrap: wrap;
}

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

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

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

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

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

.article-h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  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;
  color: #222226;
  font-size: 1.05rem;
  line-height: 1.82;
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
  letter-spacing: -0.015em;
}

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

.article-content p {
  margin-bottom: 20px;
  color: #333338;
}

.article-content ul, 
.article-content ol {
  margin: 18px 0 24px 24px;
  color: #333338;
}

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

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* 强调说明框 */
.callout-box {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--border-line);
  border-left: 4px solid var(--brand-apricot);
  background: var(--bg-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  line-height: 1.68;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

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

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

.article-table th {
  background: var(--bg-main);
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-primary);
}

.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  color: #333338;
}

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

/* 文章内部跳转与关联推荐框 */
.internal-links-box {
  margin-top: 48px;
  padding: 26px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.internal-links-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.internal-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.internal-link-card:hover {
  background: #111111;
  color: #ffffff;
}

/* 底部快捷行动条 */
.article-cta-box {
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .article-header {
    padding: 24px 20px;
  }
  
  .article-content {
    padding: 24px 20px;
    font-size: 1rem;
  }
  
  .internal-links-grid {
    grid-template-columns: 1fr;
  }
}
