/* ==========================================================================
   AnyLand.buzz - 文章专用原生样式表 (Article Native CSS)
   保证文章可读性、SEO结构、内部跳转与秒开加载
   ========================================================================== */

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

.article-container {
  max-width: 920px;
  margin: 0 auto;
}

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

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

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

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

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

.article-tags-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.article-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.article-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.article-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.article-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #ffffff;
}

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

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

/* 文章目录 (TOC) */
.article-toc {
  background: rgba(16, 24, 44, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}

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

.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.article-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 45px 0 20px 0;
  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: 60px;
  height: 2px;
  background: var(--grad-primary);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 32px 0 16px 0;
}

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

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

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

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

/* 强调高亮与内部跳转链接 */
.article-content a.internal-jump {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.article-content a.internal-jump:hover {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 4px;
}

/* 信息提示框 Callouts */
.callout {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout-info {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent-cyan);
  color: #e0f2fe;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--accent-amber);
  color: #fef3c7;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--accent-emerald);
  color: #d1fae5;
}

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

/* 对比表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}

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

.data-table th,
.data-table td {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  background: rgba(30, 41, 59, 0.7);
  color: #ffffff;
  font-weight: 700;
}

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

.data-table tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}

/* 文章内部推荐与相关文章矩阵 */
.related-articles-box {
  margin-top: 55px;
  padding: 32px 28px;
  background: rgba(16, 24, 44, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: #cbd5e1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
  color: #ffffff;
}

.related-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.related-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 移动端文章优化 */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.85rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-content h2 {
    font-size: 1.45rem;
  }
}
