/* ==========================================================================
   文章站与教程页专属样式表 (Article & Tutorial Hub CSS)
   三番云机场 (Sanfan Cloud)
   ========================================================================== */

.article-page-header {
  background: linear-gradient(180deg, #EBF8FF 0%, #FAF9F5 100%);
  padding: 48px 0 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-nav {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-light);
}

.breadcrumb-nav li a {
  color: var(--tender-green);
  font-weight: 500;
}

.breadcrumb-nav li a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #CBD5E0;
}

.article-headline {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--slate-body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--slate-light);
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal-dark);
  font-weight: 600;
}

.author-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--leaf-green-light);
  color: var(--tender-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px 0 80px 0;
}

.article-content {
  color: var(--charcoal-dark);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--leaf-green-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2D3748;
  margin-top: 32px;
  margin-bottom: 16px;
}

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

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

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

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

.article-content blockquote {
  background: var(--bg-subtle);
  border-left: 4px solid var(--tender-green);
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--slate-body);
}

.article-content code {
  font-family: var(--font-mono);
  background: #EDF2F7;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #C53030;
}

.article-callout {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--sky-blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout-title {
  font-weight: 700;
  color: var(--sky-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 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.95rem;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--charcoal-dark);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-light);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--slate-body);
}

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

.data-table tr:hover {
  background: #F7FAFC;
}

/* 文章内置 CTA 横幅 */
.article-inline-cta {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.article-inline-cta h4 {
  font-size: 1.35rem;
  color: #14532D;
  margin-bottom: 10px;
}

.article-inline-cta p {
  color: #166534;
  margin-bottom: 20px;
}

/* 侧边栏与目录 */
.article-sidebar {
  position: relative;
}

.sticky-sidebar-box {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-nav-list {
  list-style: none;
  font-size: 0.9rem;
}

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

.sidebar-nav-list a {
  color: var(--slate-body);
  display: block;
  line-height: 1.5;
}

.sidebar-nav-list a:hover {
  color: var(--tender-green);
  padding-left: 4px;
}

.related-posts-list {
  list-style: none;
  font-size: 0.88rem;
}

.related-posts-list li {
  margin-bottom: 14px;
}

.related-posts-list a {
  color: var(--charcoal-dark);
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.related-posts-list a:hover {
  color: var(--tender-green);
}

.related-posts-list span.date {
  font-size: 0.75rem;
  color: var(--slate-light);
  display: block;
  margin-top: 4px;
}

/* 文章专属独立 FAQ 模块 */
.article-faq-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px dashed var(--border-light);
}

.article-faq-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .article-main-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: 2;
  }
}
