/* ==========================================================================
   一元机场 - 文章与深度教程专用排版样式 (article.css)
   针对长文阅读、代码高亮、对比表格、步骤向导、SEO 结构化优化
   ========================================================================== */

.article-page-wrap {
  padding: 40px 0 80px;
}

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

.breadcrumb-nav a {
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb-nav a:hover {
  color: var(--ice-blue-primary);
}
.breadcrumb-nav .sep {
  color: var(--text-light);
}
.breadcrumb-nav .current {
  color: var(--ice-blue-deep);
  font-weight: 600;
}

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

.article-main-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ice-glass-border);
  box-shadow: 0 10px 30px rgba(79, 142, 172, 0.08);
  padding: 48px;
}

/* 文章头部元数据 */
.article-header {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-cat-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--ice-blue-soft);
  color: var(--ice-blue-deep);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

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

/* 文章正文排版规范 */
.article-body-text {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.85;
}

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

.article-body-text h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E0F2FE;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body-text h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--mint-green);
  border-radius: var(--radius-full);
}

.article-body-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px;
}

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

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

/* 提示警示框 Callouts */
.callout-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 26px 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.callout-box.tip {
  background: #F0FDF4;
  border-left: 4px solid var(--mint-green);
  color: #166534;
}

.callout-box.info {
  background: #F0F9FF;
  border-left: 4px solid var(--ice-blue-primary);
  color: #0369A1;
}

.callout-box.warning {
  background: #FFFBEB;
  border-left: 4px solid var(--lemon-yellow);
  color: #92400E;
}

/* 对比表格 Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
}

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

.comparison-table th {
  background: #F8FAFC;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid #E2E8F0;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-sub);
}

.comparison-table tr:hover td {
  background: #F8FAFC;
}

/* 步骤指示卡 */
.step-guide-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.step-guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-guide-badge {
  background: var(--ice-blue-primary);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
}

.step-guide-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* 占位配图与插图容器 */
.article-figure {
  margin: 30px 0;
  text-align: center;
}

.figure-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  border: 2px dashed #BAE6FD;
  border-radius: var(--radius-md);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.figure-box svg {
  width: 56px;
  height: 56px;
  color: var(--ice-blue-deep);
}

.figure-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* 文章专属文章底部 FAQ */
.article-faq-container {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px dashed #E2E8F0;
}

.article-faq-container h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 侧边栏 Widget */
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ice-glass-border);
  box-shadow: 0 10px 25px rgba(79, 142, 172, 0.08);
  padding: 24px;
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F1F5F9;
}

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

.toc-list a {
  color: var(--text-sub);
  display: block;
  line-height: 1.5;
  transition: var(--transition-smooth);
}

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

.sidebar-cta-card {
  background: linear-gradient(135deg, #E0F2FE 0%, #D8F2E8 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid #BAE6FD;
}

.sidebar-cta-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sidebar-cta-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* 相关推荐文章 */
.related-articles-section {
  margin-top: 48px;
}

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

.related-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-bounce);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-blue-primary);
  background: #FFFFFF;
}

.related-card h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-main-content {
    padding: 28px 18px;
  }
  .article-h1 {
    font-size: 1.8rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
