/* ==========================================================================
   西游云机场文章与知识库专属样式库 (css/article.css)
   专为高质量长文阅读、SEO爬虫友好、内链导流设计
   ========================================================================== */

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: #38bdf8;
}

.breadcrumbs .separator {
  opacity: 0.5;
}

.breadcrumbs .current {
  color: #94a3b8;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文章主体网格布局 (左侧内容 + 右侧黏性侧边栏) */
.article-grid-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* 主内容区域 */
.article-main-content {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 45px;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.article-category-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.article-main-content h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-info-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-sub);
  flex-wrap: wrap;
}

.article-info-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 正文排版 */
.article-body {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
}

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

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin: 38px 0 16px;
  padding-left: 14px;
  border-left: 4px solid #3b82f6;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 26px 0 12px;
}

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

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

.article-body ul li::marker {
  color: #38bdf8;
}

.article-body strong {
  color: #ffffff;
  font-weight: 600;
}

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

.article-body a:hover {
  color: #60a5fa;
}

/* 高亮信息框 */
.callout-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 4px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 25px 0;
  font-size: 14.5px;
  color: #e2e8f0;
}

.callout-box .callout-title {
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 数据表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 25px 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.styled-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.styled-table tr:hover {
  background: rgba(30, 41, 59, 0.4);
}

/* 文章内的专属FAQ区域 */
.article-faq-container {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-faq-container h2 {
  border-left-color: #06b6d4;
  margin-bottom: 24px;
}

/* 文章底部的行动呼吁卡片 (In-article CTA) */
.article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin: 45px 0 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-cta-box h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 20px;
}

/* 文章底部内链导航推荐 */
.related-articles-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.related-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.related-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(30, 41, 59, 0.6);
}

.related-card .related-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 6px;
}

.related-card:hover .related-title {
  color: #38bdf8;
}

.related-card .related-date {
  font-size: 12px;
  color: var(--text-sub);
}

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

.sidebar-widget {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 侧边栏优惠与购买挂件 */
.sidebar-cta-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  text-align: center;
}

.sidebar-cta-card .price-tag {
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  margin: 10px 0;
}

.sidebar-cta-card .sub-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sidebar-cta-card .btn-primary {
  width: 100%;
}

/* 侧边栏文章大纲目录 TOC */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.toc-list a {
  color: var(--text-muted);
  padding: 4px 0;
  border-radius: 4px;
  display: block;
}

.toc-list a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .article-grid-container {
    grid-template-columns: 1fr;
  }
  .article-main-content {
    padding: 26px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
