/* ==========================================================================
   牧牛云网 (muniu.sbs) - 文章详情专栏独立原生样式表
   零重型依赖 · 纯原生 CSS · 优秀的长文排版与极速SEO阅读体验
   ========================================================================== */

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

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

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

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

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

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

.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.article-main-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

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

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

/* 正文主体排版 */
.article-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  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: 4px;
  height: 22px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 28px;
  margin-bottom: 12px;
}

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

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

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

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

.article-content a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: var(--brand-glow);
}

/* 核心要点高亮框 */
.callout-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  color: #e2e8f0;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--accent-gold);
}

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

/* 比较表格与代码框 */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.article-table th {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-glow);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

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

/* 文章内部CTA横幅 */
.article-cta-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 36px 0;
  text-align: center;
}

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

.article-cta-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

/* 侧边栏小组件 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 94px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toc-list a {
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.toc-list a:hover {
  color: var(--brand-cyan);
  padding-left: 6px;
}

.related-posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-post-item a {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.45;
  display: block;
}

.related-post-item a:hover {
  color: var(--brand-cyan);
}

.related-post-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 24px;
  }

  .article-sidebar {
    position: static;
  }
}
