/* ===================================================================
   nice机场 - 深度技术专栏与配置教程专属样式 (Apple Newsroom / Stripe Docs 风格)
   =================================================================== */

.article-page {
  background: #ffffff;
  padding: 48px 0 96px 0;
}

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

.breadcrumb-nav a {
  color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
  color: var(--brand-red);
}

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

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

/* 目录粘性侧栏 (Table of Contents) */
.toc-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toc-item a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
}

.toc-item a:hover {
  color: var(--brand-red);
  border-left-color: var(--brand-red);
}

/* 右侧行动号召粘性小挂件 */
.cta-widget-sticky {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-red-light) 100%);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-widget-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* 文章正文区域 */
.article-main-content {
  color: var(--text-primary);
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-title-h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

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

.article-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

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

.callout-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-red);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.callout-box.tip {
  border-left-color: #059669;
  background: #f0fdf4;
}

.callout-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.data-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.data-table th {
  background: var(--bg-secondary);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.article-faq-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--border-light);
}

.article-faq-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

/* 响应式适配 */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .toc-sidebar {
    display: none;
  }
}

@media (max-width: 820px) {
  .article-layout, .article-layout-two-col {
    grid-template-columns: 1fr;
  }
  .cta-widget-sticky {
    position: static;
    margin-top: 40px;
  }
  .article-title-h1 {
    font-size: 2rem;
  }
}
