/* ==========================================================================
   you-tu 优途机场官网 (you-tu.cyou) - 文章专栏与正文内页 CSS
   纯原生极速 | 优雅可读性排版 | 深度SEO优化 | 侧边栏转化CTA
   ========================================================================== */

/* 文章页面整体布局 */
.article-page-container {
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

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

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

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

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

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

.article-main-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

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

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

/* 文章主体布局（正文 + 侧边栏） */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* 正文区域 */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  backdrop-filter: blur(12px);
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--brand-gradient);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 28px;
  margin-bottom: 14px;
}

.article-content p {
  margin-bottom: 20px;
  text-align: justify;
}

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

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

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

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

.article-content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

.article-content ol li {
  list-style-type: decimal;
  margin-bottom: 10px;
}

/* 信息提示框 */
.alert-box {
  background: rgba(255, 85, 0, 0.08);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.alert-box.info {
  background: rgba(0, 229, 255, 0.08);
  border-left-color: var(--brand-cyan);
}

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

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

/* 重点对照表格 */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

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

.article-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

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

/* 文章内部内嵌 CTA 卡片 */
.article-inner-cta {
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.15) 0%, rgba(255, 85, 0, 0.15) 100%);
  border: 1px solid rgba(255, 85, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin: 36px 0;
}

.article-inner-cta h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

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

/* 文末标签与分享 */
.article-tags-share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.article-tags a:hover {
  background: rgba(255, 85, 0, 0.2);
  color: #FFFFFF;
}

/* 文末相关文章互链模块 */
.related-articles {
  margin-top: 50px;
}

.related-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.related-card h5 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

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

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

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

/* 侧边栏目录导航 TOC */
.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-item {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.toc-link:hover {
  color: var(--brand-primary);
  padding-left: 4px;
}

/* 侧边栏专属优惠卡片 */
.sidebar-cta-card {
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.12) 0%, rgba(14, 20, 36, 0.9) 100%);
  border: 1px solid rgba(255, 85, 0, 0.4);
  text-align: center;
}

.sidebar-cta-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sidebar-price-tag {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-primary);
  margin: 12px 0;
}

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

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

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

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

/* 响应式调整 */
@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: 24px 18px;
    font-size: 1rem;
  }
  .article-main-title {
    font-size: 1.8rem;
  }
  .related-grid, .articles-index-grid {
    grid-template-columns: 1fr;
  }
}
