/* ==========================================================================
   番茄 v2 航线机场网 (fanqiev2.homes) - 专栏文章专属高效排版样式表
   零外部依赖 | 纯原生 CSS | 极致阅读体验 | 搜索引擎内容抓取优化
   ========================================================================== */

.article-page {
  padding: 60px 0 100px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* 1. 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

.breadcrumb span.divider {
  color: var(--text-dim);
}

/* 2. 文章头部信息 */
.article-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.article-category-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff7875;
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.3);
  margin-bottom: 18px;
}

.article-main-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 20px;
}

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

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

/* 3. 文章正文内容排版 */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  backdrop-filter: blur(12px);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

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

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 30px;
  margin-bottom: 14px;
}

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

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

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

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

.article-content strong {
  color: #ffffff;
}

.article-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: var(--secondary-hover);
}

/* 引用提示框 */
.callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.98rem;
  color: #e0f2fe;
}

.callout.callout-warning {
  background: rgba(255, 77, 79, 0.08);
  border-left-color: var(--primary);
  color: #ffe4e6;
}

.callout strong {
  color: #ffffff;
}

/* 数据表格 */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

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

.data-table th, 
.data-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 700;
}

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

/* 4. 文章内部嵌入 CTA 注册转换卡片 */
.article-inline-cta {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 77, 79, 0.35);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.article-inline-cta h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 10px;
  margin-top: 0;
}

.article-inline-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

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

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

.widget-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.sidebar-toc-list a {
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.sidebar-toc-list a:hover {
  color: var(--primary-hover);
  padding-left: 4px;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-article-item a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  display: block;
  line-height: 1.45;
  margin-bottom: 4px;
}

.related-article-item a:hover {
  color: var(--primary-hover);
}

.related-article-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* 文章专栏聚合页专属列表样式 */
.articles-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 6. 响应式适配 */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .articles-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-content {
    padding: 26px 20px;
    font-size: 1rem;
  }
  .article-main-title {
    font-size: 1.85rem;
  }
  .articles-index-grid {
    grid-template-columns: 1fr;
  }
}
