/* ===================================================================
   Mitce 机场官网 - 知识库与独立教程文章排版样式 (SEO 强化)
=================================================================== */

.article-page-body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.8;
}

.article-hero {
  padding: 60px 0 40px 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

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

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

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

.article-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category-badge {
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.article-post-date,
.article-read-time,
.article-views {
  font-size: 0.84rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.article-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 900px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 14px;
  padding-bottom: 14px;
  border-radius: 0 12px 12px 0;
}

/* 文章主体两栏布局：左侧文章内容，右侧目录及一键开通悬浮卡 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  padding: 60px 0;
  align-items: start;
}

.article-content {
  font-size: 1.05rem;
  color: #d1d5db;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px 0;
  padding-bottom: 12px;
  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: 24px;
  background: var(--primary);
  border-radius: 3px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f3f4f6;
  margin: 32px 0 16px 0;
}

.article-content p {
  margin-bottom: 22px;
  line-height: 1.85;
}

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

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

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

.article-content li strong {
  color: #38bdf8;
}

.article-callout {
  background: rgba(18, 24, 38, 0.8);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 30px 0;
}

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

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

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

/* 文章内的对比表格 */
.article-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

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

.article-table th {
  background: #111726;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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

/* 代码与订阅配置块 */
.code-block {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  margin: 24px 0;
  overflow-x: auto;
}

/* 文章内嵌入的 CTA 推荐卡片 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

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

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

/* 右侧粘性侧边栏 (目录 + 快速注册卡片) */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.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;
  transition: color var(--transition-fast);
  display: block;
  padding: 4px 0;
}

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

.sidebar-promo-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.sidebar-promo-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}

.sidebar-promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-promo-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

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