﻿/* ==========================================================================
   瞬云 SHUNYUN.BLOG - 知识库与工程文档专用排版样式 (Technical Article Styles)
   ========================================================================== */

.article-page {
  padding-top: 40px;
  padding-bottom: 100px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cad-text-dim);
  margin-bottom: 28px;
}

.breadcrumb-nav a {
  color: var(--cad-cyan);
}

.breadcrumb-separator {
  color: rgba(56, 189, 248, 0.4);
}

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

/* Sidebar Sticky Table of Contents */
.article-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-blueprint-dark);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cad-yellow);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 0.86rem;
  color: var(--cad-white-muted);
  display: block;
  padding: 4px 0;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: all 0.2s;
}

.toc-link:hover, .toc-link.active {
  color: var(--cad-cyan);
  border-left-color: var(--cad-cyan);
  padding-left: 14px;
}

.sidebar-cta-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(56, 189, 248, 0.2);
  text-align: center;
}

.sidebar-cta-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.sidebar-cta-card p {
  font-size: 0.78rem;
  color: var(--cad-text-dim);
  margin-bottom: 14px;
}

/* Article Main Content */
.article-main {
  background: var(--bg-blueprint-card);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 48px 40px;
  box-shadow: var(--shadow-blueprint);
}

.article-header {
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 30px;
  margin-bottom: 36px;
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-category-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cad-yellow);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 2px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

.article-date-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cad-text-dim);
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--cad-white);
  font-weight: 800;
}

.article-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cad-white-muted);
  background: rgba(8, 19, 36, 0.6);
  border-left: 3px solid var(--cad-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Article Body Typography */
.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--cad-white-muted);
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--cad-white);
  border-bottom: 1px dashed rgba(56, 189, 248, 0.25);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2::before {
  content: "#";
  color: var(--cad-yellow);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--cad-cyan);
}

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

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

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--cad-white);
}

/* Engineering Blueprint Callouts */
.callout-box {
  background: rgba(8, 19, 36, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 4px solid var(--cad-cyan);
  padding: 20px;
  margin: 28px 0;
  border-radius: var(--radius-sm);
}

.callout-box.warning {
  border-left-color: var(--cad-yellow);
  background: rgba(250, 204, 21, 0.04);
}

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

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cad-yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Code Snippets */
pre.code-block {
  background: #03070f;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #a5b4fc;
  line-height: 1.6;
  margin: 24px 0;
  position: relative;
}

pre.code-block::before {
  content: "TERMINAL / CONFIG";
  position: absolute;
  top: 6px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cad-text-dim);
  letter-spacing: 0.08em;
}

code.inline-code {
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.12);
  color: var(--cad-cyan);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Technical Specification Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}

.spec-table th, .spec-table td {
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 12px 16px;
  text-align: left;
}

.spec-table th {
  background: rgba(8, 19, 36, 0.9);
  font-family: var(--font-mono);
  color: var(--cad-yellow);
  font-weight: 700;
}

.spec-table td {
  background: rgba(11, 26, 48, 0.5);
  color: var(--cad-white-muted);
}

/* Internal Linking & Next Steps */
.article-footer-nav {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.related-article-card {
  background: var(--bg-blueprint-dark);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s;
}

.related-article-card:hover {
  border-color: var(--cad-yellow);
  transform: translateY(-2px);
}

.related-dir {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cad-yellow);
  margin-bottom: 6px;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cad-white);
  line-height: 1.4;
}

/* Bottom Floating Banner */
.bottom-cta-banner {
  background: linear-gradient(90deg, #050b16 0%, #0f2444 50%, #050b16 100%);
  border-top: 1px solid var(--cad-yellow);
  padding: 18px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-banner-text strong {
  color: var(--cad-yellow);
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .article-main {
    padding: 30px 20px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}
