/**
 * Flybit Knowledge Base & Article Wireframe Styles
 * 调性：严谨工程白皮书 / 架构技术文档美学
 */

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  border-left: 1px solid var(--wireframe-border);
  border-right: 1px solid var(--wireframe-border);
  background-color: var(--bg-primary);
}

.article-breadcrumbs {
  padding: 12px 24px;
  border-bottom: 1px solid var(--wireframe-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--hover-tint);
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.article-breadcrumbs a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.article-hero {
  padding: 48px 36px 36px 36px;
  border-bottom: 1px solid var(--wireframe-border);
}

.article-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.article-h1 {
  font-size: 2.3rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-blue);
  padding-left: 16px;
  margin-bottom: 24px;
}

.article-tech-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px dashed var(--wireframe-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.article-sidebar {
  border-right: 1px solid var(--wireframe-border);
  padding: 32px 20px;
  background-color: #FAF9F7;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.toc-list a:hover {
  color: var(--text-main);
  background-color: var(--hover-tint);
  border-left-color: var(--accent-blue);
}

.article-content {
  padding: 40px 48px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wireframe-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "//";
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px 0;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 20px;
  color: #2D2F33;
}

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

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

.article-content blockquote {
  border-left: 3px solid var(--accent-blue);
  background-color: var(--hover-tint);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.article-content pre {
  background-color: #1A1A1C;
  color: #E2E2DF;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--wireframe-border);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: var(--hover-tint);
  padding: 2px 6px;
  border: 1px solid var(--wireframe-border);
}

.article-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

/* 文内工程对比表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.spec-table th, .spec-table td {
  border: 1px solid var(--wireframe-border);
  padding: 10px 14px;
  text-align: left;
}

.spec-table th {
  background-color: var(--hover-tint);
  font-weight: 700;
}

/* 推荐与购买 CTA 蓝图卡片 */
.article-cta-box {
  margin: 48px 0 24px 0;
  border: 1px solid var(--accent-blue);
  background-color: #FFFFFF;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.article-cta-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.article-cta-btn {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.article-cta-btn:hover {
  background-color: #17212b;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--wireframe-border);
  }
  .article-content {
    padding: 32px 20px;
  }
}
