/* ==========================================================================
   宝云机场 - 知识库与教程独立文章专用样式 (Wiki & Tutorial Article Styles)
   流媒体暗黑放映厅质感 + 极佳的长文阅读排版体验
   ========================================================================== */

.wiki-page-header {
  padding: 40px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

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

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

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.4;
}

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

.article-main-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: #fff;
}

.article-lead {
  font-size: 1.125rem;
  color: #D4D4D8;
  line-height: 1.7;
  max-width: 920px;
}

/* 双栏文章布局：左侧正文，右侧粘性目录与转化侧边栏 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 0, 122, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, #FF0055, #7928CA);
  border-radius: 4px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFB4D6;
  margin: 26px 0 14px;
}

.article-content p {
  color: #D4D4D8;
  font-size: 1.03rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  color: #D4D4D8;
  font-size: 1rem;
  line-height: 1.8;
  margin: 16px 0 24px 24px;
}

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

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

/* 信息提示框 */
.callout-box {
  background: rgba(255, 0, 122, 0.08);
  border-left: 4px solid #FF007A;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 26px 0;
}

.callout-box.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10B981;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #F59E0B;
}

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

/* 比较表格 */
.custom-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}

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

.custom-table th {
  background: rgba(255, 0, 122, 0.15);
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(255, 0, 122, 0.3);
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #D4D4D8;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* 代码与配置卡片 */
.code-block {
  background: #06040B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.9rem;
  color: #A3E635;
  margin: 22px 0;
  overflow-x: auto;
  position: relative;
}

.code-title {
  font-size: 0.75rem;
  color: #A1A1AA;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* 步骤指引卡片 */
.step-guide-card {
  background: rgba(18, 14, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF0055, #7928CA);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

.step-text h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.step-text p {
  margin-bottom: 0;
  font-size: 0.938rem;
  color: var(--text-muted);
}

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

.sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 目录 (TOC) */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: var(--transition);
  display: block;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.toc-link:hover, .toc-link.active {
  color: #FF007A;
  border-left-color: #FF007A;
}

/* 侧边栏 CTA 挂件 */
.sidebar-cta-widget {
  background: linear-gradient(145deg, rgba(38, 22, 68, 0.9) 0%, rgba(20, 14, 40, 0.95) 100%);
  border: 1px solid rgba(255, 0, 122, 0.45);
  box-shadow: 0 0 25px rgba(255, 0, 122, 0.25);
  text-align: center;
}

.sidebar-cta-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

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

.sidebar-cta-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* 文章底部互动与内链导航 */
.article-footer-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-home-anchors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.anchor-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A1A1AA;
  text-decoration: none;
  font-size: 0.813rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.anchor-chip:hover {
  background: rgba(255, 0, 122, 0.15);
  color: #fff;
  border-color: #FF007A;
}

.related-articles-section {
  margin-top: 60px;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 122, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.related-title {
  font-size: 0.938rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.related-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
}

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