/* ==========================================================================
   kendeji.click - 文章与评测专栏样式表 (Pure Native CSS)
   ========================================================================== */

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

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

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

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

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-current {
  color: var(--text-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章容器主结构 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}

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

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-topic-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.article-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 顶部与文中高转化 CTA 横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(0, 229, 255, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-cta-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.article-cta-text p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin: 0;
}

.btn-article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-article-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

/* 文章正文排版 */
.article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #e2e8f0;
}

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

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 30px 0 14px;
}

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

.article-content ul li {
  list-style: disc;
  margin-bottom: 10px;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 10px;
}

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

.article-content a:hover {
  color: #ffffff;
}

/* 警示与强调框 */
.callout {
  background: rgba(17, 24, 39, 0.9);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 26px 0;
}

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

.callout.success {
  border-left-color: var(--accent-green);
}

.callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-body {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 表格样式 */
.article-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.article-table th, .article-table td {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.article-table th {
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}

.article-table td {
  color: var(--text-sub);
}

/* 代码与配置块 */
.code-block {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}

/* 文章底部标签与分享 */
.article-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.tag-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag-item {
  font-size: 0.8rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-item:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.15);
}

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

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

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

.sidebar-plan-highlight {
  text-align: center;
}

.sidebar-plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
  margin: 10px 0;
}

.sidebar-plan-price span {
  font-size: 1rem;
  color: var(--primary);
}

.sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-article-item a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  transition: var(--transition);
}

.sidebar-article-item a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-article-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 底部相关文章推荐 */
.related-articles-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.related-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 响应式断点 */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-main {
    padding: 30px 24px;
  }
  .article-h1 {
    font-size: 1.7rem;
  }
  .article-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .btn-article-cta {
    width: 100%;
    justify-content: center;
  }
}
