/* ==========================================================================
   番茄 v2 航线机场网 (fanqiev2.mom) - 文章专栏原生样式表
   极致阅读体验 · 丰富排版层级 · 原生响应式 · 零冗余框架
   ========================================================================== */

.article-page {
  padding-top: 30px;
  padding-bottom: 90px;
}

/* 面包屑导航 */
.breadcrumb-nav {
  padding: 16px 0 24px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: #ffffff;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 500;
}

/* 主内容两栏栅格 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

/* 文章主体容器 */
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 42px 48px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

/* 文章头部 */
.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-header-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.article-headline {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.32;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.byline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 文章正文排版规范 */
.article-content {
  font-size: 1.05rem;
  line-height: 1.84;
  color: #d1d5db;
}

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

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

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 4px;
}

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

.article-content ul, 
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content li {
  line-height: 1.7;
}

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

/* 强调与提示信息框 */
.callout {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 77, 79, 0.08);
}

.callout-info {
  border-left-color: var(--color-accent);
  background: rgba(56, 189, 248, 0.08);
}

.callout-success {
  border-left-color: var(--color-success);
  background: rgba(16, 185, 129, 0.08);
}

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

.callout p:last-child {
  margin-bottom: 0;
}

/* 比较表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

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

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

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

/* 代码与配置块 */
.code-box {
  background: #060910;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  margin: 24px 0;
}

/* 文中专属推荐引导框 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(255, 77, 79, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 22px auto;
  font-size: 0.95rem;
}

/* 内部相关文章网格 (内链枢纽) */
.related-articles {
  margin-top: 55px;
  border-top: 1px solid var(--border-light);
  padding-top: 36px;
}

.related-articles h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
}

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

.related-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 77, 79, 0.35);
  transform: translateY(-3px);
}

.related-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 8px;
}

.related-card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: auto;
}

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

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

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

/* 目录链接样式 */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: var(--transition);
  line-height: 1.4;
}

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

.toc-list .toc-sub {
  padding-left: 14px;
  font-size: 0.82rem;
}

/* 侧边栏推广卡片 */
.sidebar-promo-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 24, 36, 0.9) 0%, rgba(15, 20, 32, 0.95) 100%);
  border: 1px solid rgba(255, 77, 79, 0.4);
}

.sidebar-promo-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 12px 0 6px 0;
}

.sidebar-promo-price span {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.sidebar-promo-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  margin: 16px 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-main {
    padding: 30px 24px;
  }
  .article-headline {
    font-size: 1.8rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
