/* ==========================================================================
   九云机场星际知识库与教程专区 (Knowledge Base & Tutorial Reader)
   Dedicated Documentation & Article Reading Stylesheet
   ========================================================================== */

.kb-layout {
  padding: 4rem 0 6rem;
}

.kb-hero {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.kb-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--quantum-cyan);
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-bottom: 1.5rem;
  transition: var(--trans-mid);
}

.kb-back-home:hover {
  background: rgba(0, 242, 254, 0.2);
  transform: translateX(-4px);
}

/* Category Filter Bar */
.kb-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.kb-filter-btn {
  background: var(--hud-panel-bg);
  border: 1px solid var(--hud-panel-border);
  color: var(--text-dim);
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--trans-fast);
}

.kb-filter-btn:hover, .kb-filter-btn.active {
  color: #fff;
  border-color: var(--nebula-pink);
  background: rgba(255, 42, 133, 0.15);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.3);
}

/* Article Grid in Hub */
.kb-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.kb-article-card {
  background: var(--hud-panel-bg);
  border: 1px solid var(--hud-panel-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  position: relative;
  transition: var(--trans-mid);
  text-decoration: none;
  overflow: hidden;
}

.kb-article-card:hover {
  transform: translateY(-6px);
  border-color: var(--nebula-pink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 42, 133, 0.25);
}

.kb-card-badge {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--quantum-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.kb-card-title {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.kb-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.kb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.kb-keywords-taggroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kb-read-link {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--rocket-ember);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ARTICLE READER VIEW STYLES
   ========================================================================== */
.article-reading-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.article-meta-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-main-title {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
}

.article-keywords-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.article-keywords-label {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--rocket-ember);
  letter-spacing: 0.1em;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-family: var(--font-tech);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-pure);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 42, 133, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-content h2::before {
  content: '//';
  font-family: var(--font-hud);
  color: var(--nebula-pink);
  font-size: 1.2rem;
}

.article-content h3 {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--quantum-cyan);
  margin: 1.8rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.4rem;
}

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

.article-content ul, .article-content ol {
  margin: 1rem 0 1.6rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Callout Box (Warning, Info, Cosmic Note) */
.article-callout {
  background: rgba(19, 10, 46, 0.8);
  border-left: 4px solid var(--quantum-cyan);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.article-callout.orange {
  border-left-color: var(--rocket-orange);
}

.article-callout.pink {
  border-left-color: var(--nebula-pink);
}

.article-callout-title {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data Table in Article */
.article-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.article-table th {
  background: rgba(38, 17, 88, 0.8);
  color: var(--quantum-cyan);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 8, 38, 0.6);
}

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

/* Code Snippet Box */
.article-code-block {
  background: #05020c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.2rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.92rem;
  color: #38ef7d;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}

/* Bottom Article CTA */
.article-bottom-cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(38, 17, 88, 0.9), rgba(15, 8, 38, 0.95));
  border: 1px solid var(--rocket-orange);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 77, 0, 0.3);
}

.article-bottom-cta h3 {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.8rem;
}

.article-bottom-cta p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 1.8rem;
  font-size: 1rem;
}
