/* ==========================================================================
   Gatern 云机场 (gaternjc.sbs) 文章详情专栏样式表
   极致阅读体验 · 纯原生 CSS · 响应式侧边栏 · 丰富内链导流组件
   ========================================================================== */

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

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

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumbs span.separator {
  color: var(--border-color);
}

.breadcrumbs span.current {
  color: var(--text-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章头部 */
.article-header-box {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.article-main-title {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

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

/* 主体双栏布局 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

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

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

.article-body strong {
  color: #fff;
}

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 32px 0 14px;
}

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

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

.article-body a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.article-body a:hover {
  color: var(--primary-light);
}

/* 强调提示块 (Callout box) */
.callout-box {
  background: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.callout-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 对比表格 */
.content-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.content-table th {
  background: rgba(30, 41, 59, 0.8);
  padding: 14px 18px;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.content-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.content-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

/* 代码与配置展示块 */
.code-block {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* 文章内部 CTA 转化卡片 */
.in-article-cta {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

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

.in-article-cta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 20px;
}

/* 侧边栏 (Sticky Sidebar) */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-toc-list {
  list-style: none;
}

.widget-toc-list li {
  margin-bottom: 10px;
}

.widget-toc-list a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  line-height: 1.45;
}

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

.sidebar-brand-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.12), rgba(15, 23, 42, 0.8));
  border-color: rgba(251, 146, 60, 0.3);
}

.sidebar-price-tag {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin: 12px 0 6px;
}

.sidebar-price-tag span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.sidebar-features {
  list-style: none;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 16px 0 20px;
}

.sidebar-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 相关推荐文章卡片 (底部内链环) */
.related-articles-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

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

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

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
