/* ==========================================================================
   AnyLand 机场网 (any-land.homes) - 深度长文专栏与教程原生排版样式表
   特性：阅读排版规范 · 目录导航 · 代码高亮块 · 对比表格 · 提示框 · 秒开加载
   ========================================================================== */

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

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.breadcrumb-wrap a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-wrap a:hover {
  color: #34d399;
}

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

.breadcrumb-current {
  color: #e2e8f0;
  font-weight: 600;
}

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

.article-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.article-main-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

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

/* 文章目录盒 */
.article-toc-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-left: 4px solid #34d399;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}

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

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}

.toc-list li a:hover {
  color: #34d399;
  transform: translateX(4px);
}

/* 文章正文排版规范 */
.article-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 24px;
}

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

.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-brand);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 32px 0 16px;
}

.article-body ul, .article-body ol {
  margin: 0 0 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body li {
  line-height: 1.7;
}

/* 提示警示框 */
.article-callout {
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 30px 0;
  border-left: 4px solid #34d399;
}

.article-callout.tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

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

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

.callout-title.tip { color: #34d399; }
.callout-title.warning { color: #fbbf24; }

/* 代码与配置块 */
.article-code-block {
  background: #090d1a;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.5px;
  color: #34d399;
  line-height: 1.6;
}

/* 对比表格 */
.article-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.6);
}

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

.article-table th {
  background: rgba(30, 41, 59, 0.6);
  padding: 14px 18px;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}

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

.article-table tr:hover td {
  background: rgba(52, 211, 153, 0.04);
}

/* 内链与锚点高亮 (排除按钮与标签胶囊，避免样式污染) */
.article-body a:not(.btn):not(.tag-badge) {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-body a:not(.btn):not(.tag-badge):hover {
  color: #6ee7b7;
}

/* 文章底部 CTA 转换框 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 2px solid rgba(52, 211, 153, 0.45);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(52, 211, 153, 0.15);
}

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

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

/* 文章内行动呼吁按钮绝对高对比度保证 */
.article-body .btn,
.article-cta-box .btn {
  text-decoration: none !important;
  display: inline-flex !important;
}

.article-body .btn-primary,
.article-cta-box .btn-primary {
  background: var(--gradient-btn) !important;
  color: #022c22 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.5), 0 0 15px rgba(16, 185, 129, 0.35) !important;
  border: none !important;
}

.article-body .btn-primary:hover,
.article-cta-box .btn-primary:hover {
  background: var(--gradient-btn-hover) !important;
  color: #022c22 !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(52, 211, 153, 0.7), 0 0 25px rgba(16, 185, 129, 0.5) !important;
}

/* 标签云与关键词索引 */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 40px;
}

.tag-badge {
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
}

/* 上一篇 / 下一篇导航 */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

.post-nav-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-nav-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
}

.post-nav-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.45;
}

.post-nav-card:hover .post-nav-title {
  color: #34d399;
}

/* 推荐相关阅读网格 */
.related-posts-section h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
}

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

@media (max-width: 768px) {
  .article-main-title {
    font-size: 28px;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
