/* ==========================================================================
   一元机场 (Yiyuan Airport) - SEO Article & Tutorial Reader Layout
   ========================================================================== */

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

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 24px;
}

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

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--text-cyan);
}

.breadcrumb-separator {
  color: var(--border-highlight);
}

/* Article Hero Header */
.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 30px;
}

.article-topic-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--text-purple);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

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

.article-meta-item strong {
  color: var(--text-secondary);
}

/* Article Content Layout: Sticky Sidebar TOC + Main Content */
.article-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky TOC Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toc-nav-link {
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color var(--transition-fast);
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.toc-nav-link:hover, .toc-nav-link.active {
  color: var(--text-cyan);
  border-left-color: var(--text-cyan);
  font-weight: 600;
}

.toc-nav-link.sub-item {
  padding-left: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-cta-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.sidebar-cta-banner h5 {
  font-size: 0.92rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.sidebar-cta-banner p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Main Prose Content */
.article-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

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

.article-prose h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.article-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-prose strong {
  color: var(--text-white);
}

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

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

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

.article-prose a {
  color: var(--text-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: #7dd3fc;
}

/* Callout Boxes (Alerts / Tips / Warnings) */
.callout-box {
  background: rgba(15, 18, 36, 0.85);
  border-left: 4px solid var(--text-cyan);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.callout-box.tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.callout-box.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.callout-box.alert {
  border-left-color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

.callout-box-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* In-Article Comparison Table */
.article-table-container {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.article-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.article-comparison-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-comparison-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

/* Article Big CTA Banner */
.article-end-cta {
  margin: 50px 0 40px;
  background: linear-gradient(135deg, rgba(26, 17, 48, 0.95), rgba(15, 24, 48, 0.95));
  border: 2px solid #a855f7;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
}

.article-end-cta h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.article-end-cta p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Related Articles List */
.related-articles-section {
  margin-top: 50px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
}

.related-articles-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.related-articles-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: 18px;
  transition: all var(--transition-fast);
}

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

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive adjustment for article layout */
@media (max-width: 900px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none; /* Hide sticky sidebar on small screens or display collapsible */
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}
