/* ============================================================
   闪电猫 SpeedCat 文章专栏独立样式表 (原生 CSS · 极速响应)
   ============================================================ */

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

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--amber-light);
}

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

/* 文章头部区 */
.article-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
}

.article-category-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(244, 114, 182, 0.12);
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.article-main-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

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

/* 文章核心版心布局 (正文 + 侧边栏/浮动CTA) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.85;
  backdrop-filter: blur(14px);
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--amber-light);
  margin: 26px 0 12px;
}

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

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

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

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

.article-content a {
  color: var(--cyan-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.article-content a:hover {
  color: var(--amber-light);
}

/* 提示框与高亮卡片 */
.info-callout {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--cyan-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.info-callout.amber {
  background: rgba(244, 114, 182, 0.08);
  border-left-color: var(--amber-primary);
}

.info-callout-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

/* 文章内置表格 */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}

.custom-table th, .custom-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
}

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

/* 文章侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color var(--transition-fast);
  display: block;
}

.sidebar-links a:hover {
  color: var(--amber-light);
}

.sidebar-cta-card {
  background: linear-gradient(135deg, rgba(30, 41, 67, 0.95) 0%, rgba(18, 24, 38, 0.95) 100%);
  border: 2px solid var(--border-highlight);
  text-align: center;
}

.sidebar-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.sidebar-cta-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* 文章底部横幅 CTA */
.article-bottom-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.article-bottom-cta h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-bottom-cta p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 0.94rem;
}

/* 内部文章跳转互链模块 */
.related-posts-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.related-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--amber-light);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
