/* ==========================================================================
   XFLTD 养鸡场 (xfltd.lol) - 专栏文章与知识库独立原生样式表
   ========================================================================== */

.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;
}

.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, 42px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  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 300px;
  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: #e2e8f0;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 38px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--gradient-gold);
  border-radius: 3px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin: 28px 0 14px;
}

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

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

.article-content li {
  margin-bottom: 10px;
  color: #cbd5e1;
}

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

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

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

.article-callout {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15px;
  color: #fde68a;
}

.article-callout strong {
  color: var(--accent-gold);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
}

.article-table th {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

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

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

.sidebar-article-list li {
  margin-bottom: 14px;
}

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

.sidebar-article-list a:hover {
  color: var(--accent-gold);
}

.sidebar-cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
}

.sidebar-cta-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.sidebar-cta-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* 文章底部转化区 */
.article-cta-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin-top: 40px;
  text-align: center;
}

.article-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-tag-item {
  font-size: 12.5px;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 28px 20px;
  }
}
