/* ==========================================================================
   LinkCube (linkcube.best) 知识专栏与文章阅读样式表
   ========================================================================== */

.article-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

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

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

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

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

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 文章头部区域 */
.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.article-tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-keyword-tag {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.article-main-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.article-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 文章正文排版 */
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
}

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

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.article-content h2::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px;
}

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

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

.article-content strong {
  color: var(--text-main);
  font-weight: 700;
}

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

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

/* 文章内置高亮提示框 */
.article-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.article-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--amber);
}

.callout-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 文章内置数据与对比表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.article-table th {
  background: rgba(11, 19, 36, 0.9);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-body);
}

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

/* 文章内专属 CTA 转化卡片 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 44px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-cta-box p {
  font-size: 14.5px;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 20px;
}

/* 底部作者与版权卡片 */
.article-author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 48px 0 32px;
}

.author-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #060b14;
  font-weight: 800;
  flex-shrink: 0;
}

.author-meta-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-meta-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 上下篇导航与推荐文章 */
.article-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 40px 0;
}

.nav-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.nav-link-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.nav-link-card-label {
  font-size: 12px;
  color: var(--secondary-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.nav-link-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* 博客列表页专属样式 */
.articles-hub-header {
  text-align: center;
  padding: 40px 0 50px;
}

.articles-hub-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
}

.articles-hub-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .articles-list-grid {
    grid-template-columns: 1fr;
  }
  .article-nav-links {
    grid-template-columns: 1fr;
  }
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
}
