/* ========================================================
   巨浪云 (julangyun.sbs) 深度文章与知识库专用样式
   极致阅读体验 / SEO 语义结构增强 / 高转化率内部跳转
   ======================================================== */

.article-header-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.95) 0%, rgba(12, 19, 34, 0.8) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

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

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

.article-main-title {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-bottom: 10px;
}

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

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 50px 0 80px;
  align-items: start;
}

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--accent-blue));
  border-radius: 4px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 30px;
  margin-bottom: 14px;
}

.article-body p {
  margin-bottom: 22px;
  color: #cbd5e1;
}

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

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

.article-body li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: #93c5fd;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 比较表格与数据展示 */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.article-table th {
  background: rgba(14, 28, 56, 0.9);
  color: #38bdf8;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

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

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

/* 强调高亮框 */
.callout-box {
  padding: 22px;
  border-radius: var(--radius-md);
  margin: 30px 0;
  border: 1px solid;
}

.callout-box.tip {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.callout-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 侧边栏 Widget */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 28, 56, 0.95) 0%, rgba(8, 16, 32, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.promo-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 12px 0 16px;
}

.promo-price span {
  color: var(--primary);
  font-size: 1.2rem;
}

.related-posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-posts-list li {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.related-posts-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.related-posts-list a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
  display: block;
}

.related-posts-list a:hover {
  color: var(--primary);
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 文章内置内链导航卡片与底部互动卡 */
.article-nav-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.article-nav-card:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.06);
}

.nav-direction {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

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

@media (max-width: 640px) {
  .article-body {
    padding: 24px 18px;
    font-size: 0.98rem;
  }
  .article-nav-links-grid {
    grid-template-columns: 1fr;
  }
}
