/* ==========================================================================
   牧牛云网 (muniu.mom) 专栏文章原生样式表
   规范：纯原生 CSS，极致排版，支持 SEO 与全端优化
   ========================================================================== */

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

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

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

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

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

.breadcrumb-current {
  color: #e2e8f0;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.article-category-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.article-main-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #ffffff;
}

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

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

/* 文章主体布局 (双栏 / 主内容 + 侧边栏) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(12px);
}

/* 正文排版 */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

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

.article-body strong {
  color: #ffffff;
}

.article-body h2 {
  font-size: 24px;
  margin: 38px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #06b6d4, #10b981);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 19px;
  margin: 28px 0 14px;
  color: #e2e8f0;
}

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

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

.article-body blockquote {
  background: rgba(6, 182, 212, 0.06);
  border-left: 4px solid var(--primary-start);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  color: #e2e8f0;
  font-size: 15px;
}

/* 提示与高亮块 */
.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 28px 0;
}

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

.callout-content {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.65;
}

/* 表格样式 */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

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

.article-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
}

/* 正文内嵌 CTA 转化卡片 */
.in-article-cta {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}

.in-article-cta h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.in-article-cta p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 580px;
  margin: 0 auto 20px;
}

/* 内部链接导航块 */
.internal-links-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

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

.internal-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
}

.internal-links-list a {
  color: var(--accent-blue);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.internal-links-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 侧边栏布局 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: block;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--accent-blue);
}

.sidebar-cta-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(10, 14, 23, 0.8) 100%);
  border: 1px solid var(--border-featured);
}

.sidebar-cta-card .price {
  font-size: 32px;
  font-weight: 900;
  color: #34d399;
  font-family: var(--font-mono);
  margin: 12px 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .article-content {
    padding: 28px 20px;
  }
}
