﻿/* ==========================================================================
   飞猴云官方机场 FeihouYun (feihouyun.homes) - 专栏文章专属样式表
   极简原生 CSS · 完美排版 · 响应式阅读体验 · 内部跳转组件
   ========================================================================== */

@import url('../style.css');

.article-page {
  padding-top: 40px;
  padding-bottom: 90px;
}

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

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-light);
}

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

.breadcrumb-current {
  color: var(--primary-light);
  font-weight: 600;
}

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

.article-header-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-header-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 18px;
}

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

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

/* 主体网格布局：文章正文 + 侧边栏/目录 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 45px;
  align-items: start;
}

/* 文章正文 (Article Content) */
.article-content {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 42px 40px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 38px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

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

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

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

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

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

/* 提示警示框 (Callout Alerts) */
.article-alert {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  border-left: 4px solid;
  font-size: 0.94rem;
  line-height: 1.65;
}

.article-alert-tip {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--primary);
  color: #bae6fd;
}

.article-alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--warning);
  color: #fde68a;
}

.article-alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--success);
  color: #a7f3d0;
}

/* 专栏内嵌表格对比 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 30px;
}

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

.article-table th {
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.article-table td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.article-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* 文章内部内嵌注册与购买呼吁卡片 (In-Article CTA Banner) */
.in-article-cta {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(244, 63, 94, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 35px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.in-article-cta-text h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.in-article-cta-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 侧边栏与目录 (Sidebar & TOC) */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

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

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

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  line-height: 1.45;
}

.toc-list a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.sidebar-cta-box {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-featured);
  text-align: center;
}

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

.sidebar-cta-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* 文章前后翻页 (Article Pagination) */
.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-link {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pagination-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pagination-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1.4;
}

/* 相关文章推荐网格 (Related Articles Grid) */
.related-articles-wrap {
  margin-top: 50px;
}

.related-articles-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .article-content {
    padding: 26px 18px;
    font-size: 0.96rem;
  }
  .article-header-title {
    font-size: 1.7rem;
  }
  .article-pagination {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
