/* ==========================================================================
   XFLTD 养鸡场 (xfltd.shop) - 知识库与文章专栏纯原生样式表
   秒开级极速排版 · 清晰阅读层级 · 响应式两栏/单栏布局
   ========================================================================== */

.article-page-header {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

.article-breadcrumb a:hover {
  color: var(--accent-gold-light);
}

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

.article-single-title {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* 文章主体排版 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
  padding: 50px 0 80px;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 38px 0 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(--gradient-gold);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 28px 0 14px;
}

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

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

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

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

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

.article-content a {
  color: var(--accent-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #ffffff;
}

/* 强调提示块 */
.callout {
  background: rgba(15, 25, 46, 0.9);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 15px;
}

.callout-title {
  font-weight: 800;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout p {
  margin-bottom: 0;
  color: #94a3b8;
}

/* 文章内嵌图表与对比表格 */
.table-responsive {
  overflow-x: auto;
  margin: 28px 0;
  background: rgba(4, 8, 20, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.data-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

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

/* 文章内部转化卡片 (CTA Card) */
.article-cta-box {
  background: linear-gradient(135deg, rgba(30, 48, 84, 0.6) 0%, rgba(13, 22, 41, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 36px 0;
  text-align: center;
}

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

.article-cta-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* 侧边栏布局 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.sidebar-post-list li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-post-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-post-link {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: block;
}

.sidebar-post-link:hover {
  color: var(--accent-gold-light);
}

.sidebar-post-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-item:hover {
  color: #ffffff;
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

/* 响应式适配 */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 30px 20px;
  }
}
