/* ========================================================
   天航机场网 (tianhang.homes) 文章与知识库专用纯原生 CSS
   高可读性 / SEO友善排版 / 内部链接流转 / 秒开极致性能
   ======================================================== */

.article-page {
  padding-top: 110px;
  padding-bottom: 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

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

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

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

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

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

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

.article-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

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

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

.article-meta-item svg {
  color: var(--primary);
  width: 15px;
  height: 15px;
}

/* 核心正文排版 */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
}

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

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 30px;
  margin-bottom: 14px;
}

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

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

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

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--primary-hover);
}

/* 警示与引言高亮框 */
.article-alert {
  background: rgba(14, 165, 233, 0.1);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  color: #e2e8f0;
}

.article-alert.tip {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: #10b981;
}

.article-alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
}

/* 表格排版 */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

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

.article-table th {
  background: rgba(52, 211, 153, 0.15);
  color: var(--primary);
  padding: 12px 16px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-weight: 700;
}

.article-table td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 23, 46, 0.5);
  color: #cbd5e1;
}

/* 正文内嵌快捷注册卡片 */
.in-article-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%),
              rgba(11, 23, 46, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.18);
}

.in-article-cta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.in-article-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
}

/* 文章侧边栏 */
.article-sidebar {
  position: sticky;
  top: 100px;
}

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

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  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;
  font-size: 0.88rem;
}

.toc-list li {
  margin-bottom: 10px;
}

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

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

/* 文章底部内部跳转流转区 */
.article-navigation {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-articles-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.related-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.related-meta {
  font-size: 0.78rem;
  color: var(--primary);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
