/* ==========================================================================
   LinkCube (linkcube.surf) - 文章与知识库专用样式表
   专注长文深度阅读体验、高质感排版与清晰的内部导流系统
   ========================================================================== */

.article-page {
  padding: 40px 0 90px;
}

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

.breadcrumb-nav a {
  color: var(--text-muted);
}

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

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

.breadcrumb-current {
  color: var(--primary-light);
  font-weight: 600;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章主体网格布局 (左侧内容 + 右侧边栏) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* 主文章卡片 */
.article-main-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  box-shadow: var(--shadow-card);
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.article-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.article-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

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

/* 文章正文富文本排版 */
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 22px;
  text-align: justify;
}

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

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--cyan) 100%);
  border-radius: var(--radius-full);
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--cyan-light);
  margin: 30px 0 14px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  color: #94a3b8;
}

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

.article-content a {
  color: var(--cyan-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

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

/* 重点提示框 Callout */
.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

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

.callout-box p {
  margin-bottom: 0 !important;
  font-size: 14.5px;
  color: #e2e8f0;
}

.callout-box.warning {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}

.callout-box.warning .callout-title {
  color: #f87171;
}

/* 数据对比表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--cyan-light);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.data-table tr:nth-child(even) td {
  background: rgba(148, 163, 184, 0.03);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* 文中行动呼吁 CTA 插入框 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 8px 30px -10px rgba(16, 185, 129, 0.3);
}

.article-cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* 标签组 */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.tag-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.article-keyword-badge {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--cyan-light);
}

/* 上一篇 / 下一篇内部跳转 */
.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.page-jump-card {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.page-jump-card:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

.jump-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.jump-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* 侧边栏布局 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.widget-nav-list li a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  transition: var(--transition);
}

.widget-nav-list li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

/* 侧边栏套餐推荐卡片 */
.sidebar-promo-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-featured);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.promo-badge {
  display: inline-block;
  background: #10b981;
  color: #030712;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.promo-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.promo-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-light);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.promo-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-main-card {
    padding: 26px 18px;
  }
  .article-pagination {
    grid-template-columns: 1fr;
  }
}
