/* ==========================================================================
   ByWave.best - 文章专栏与深度技术评测专用样式表 (Vanilla CSS, 秒开优化)
   ========================================================================== */

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

/* 面包屑导航 */
.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-subtle);
}

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

.breadcrumb-item a:hover {
  color: var(--accent-cyan);
}

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

.breadcrumb-item.current {
  color: #CBD5E1;
  font-weight: 500;
}

/* 文章头部 */
.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.article-topic-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.article-main-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

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

/* 文章主体布局：双栏 (内容区 + 侧边目录/转化卡片) */
.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-color);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  font-size: 16px;
  line-height: 1.85;
  color: #E2E8F0;
  backdrop-filter: blur(12px);
}

/* 排版元素 */
.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  margin-top: 30px;
  margin-bottom: 14px;
}

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

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

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

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

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: rgba(0, 245, 255, 0.05);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: #E2E8F0;
}

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

/* 提示卡片 */
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  background: rgba(14, 23, 39, 0.9);
}

.callout-tip {
  border-left-color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.06);
}

.callout-important {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}

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

.callout-tip .callout-title {
  color: var(--accent-cyan);
}

.callout-important .callout-title {
  color: #F59E0B;
}

/* 代码高亮与指令块 */
.code-block {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38BDF8;
  overflow-x: auto;
  margin: 20px 0;
}

/* 文章内嵌入式 CTA 卡片 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(14, 30, 58, 0.95), rgba(8, 14, 28, 0.95));
  border: 1px solid rgba(0, 245, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 10px;
}

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

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

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

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 目录 (TOC) */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.toc-link {
  color: var(--text-muted);
  display: block;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.toc-link:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

/* 侧边专属转化卡片 */
.sidebar-cta-card {
  background: linear-gradient(180deg, rgba(14, 30, 58, 0.95), rgba(7, 12, 24, 0.95));
  border: 1px solid rgba(0, 245, 255, 0.35);
  text-align: center;
}

.sidebar-cta-badge {
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 10px;
}

.sidebar-price-hint {
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 8px 0;
}

.sidebar-price-hint span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: normal;
}

/* 延伸阅读 / 交叉内链 */
.related-articles-section {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

.related-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(14, 23, 39, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: var(--radius-md);
  color: #E2E8F0;
  font-size: 14.5px;
  transition: all var(--transition-fast);
}

.related-item a:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* 移动端适配 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .article-content {
    padding: 28px 20px;
  }
}