/* ==========================================================================
   Article Detail Page CSS - 魔戒 (MoJie) · mojienet.lol
   Template 100 极光流幕风格 · 深度知识库排版系统
   ========================================================================== */

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #f59e0b);
  z-index: 1001;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
  transition: width 0.1s linear;
}

.article-hero {
  padding: 140px 0 50px;
  position: relative;
  z-index: 10;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin-bottom: 20px;
}

.breadcrumb-nav a {
  color: var(--aurora-cyan);
  transition: color 0.2s;
}

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

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

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--aurora-text-muted);
}

.article-main-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 24px;
}

.article-lead-box {
  background: rgba(14, 25, 45, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-left: 4px solid var(--aurora-emerald);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #e2e8f0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

.article-content {
  background: rgba(12, 21, 38, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #38bdf8;
  margin: 28px 0 14px;
}

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

.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

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

.article-content blockquote {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--aurora-emerald);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: #e2e8f0;
  font-style: italic;
}

.article-content pre {
  background: #040812;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: var(--aurora-font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 24px 0;
}

.article-content code {
  font-family: var(--aurora-font-mono);
  font-size: 0.9em;
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  text-align: left;
}

.article-content th {
  background: rgba(6, 182, 212, 0.12);
  color: #ffffff;
  font-weight: 700;
}

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

/* Sidebar TOC */
.article-sidebar {
  position: relative;
}

.toc-card {
  position: sticky;
  top: 96px;
  background: rgba(12, 22, 38, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.toc-link {
  color: var(--aurora-text-muted);
  transition: all 0.2s ease;
  display: block;
  padding: 4px 0;
  line-height: 1.4;
}

.toc-link:hover, .toc-link.active {
  color: #38bdf8;
  padding-left: 6px;
  border-left: 2px solid var(--aurora-emerald);
}

.toc-cta-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Bottom CTA Banner */
.article-cta-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.article-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 20px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .article-content {
    padding: 24px 18px;
  }
}
