/* ==========================================================================
   Xlinkworld.lol - 资讯与深度文章专用样式表 (Pure CSS, 秒开优化)
   ========================================================================== */

.article-page-layout {
  padding-top: 40px;
  padding-bottom: 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

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

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

.breadcrumbs .separator {
  color: var(--text-dim);
  opacity: 0.6;
}

.breadcrumbs .current {
  color: #cbd5e1;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章头部 */
.article-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
}

.article-category-badge {
  display: inline-block;
  background: rgba(255, 170, 102, 0.14);
  color: #ffd8b8;
  border: 1px solid rgba(255, 170, 102, 0.35);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 170, 102, 0.12);
}

.article-main-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

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

.article-meta-row svg {
  width: 15px;
  height: 15px;
  color: var(--primary-blue);
}

/* 目录 (TOC) */
.article-toc {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-cyan);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}

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

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

.article-toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.article-toc-list a:hover {
  color: var(--primary-cyan);
  text-decoration: underline;
}

/* 文章正文 */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.article-body h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-cyan);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 28px 0 14px 0;
}

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

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

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

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

/* 强调关键词高亮与内链 */
.article-body a.text-link {
  color: var(--primary-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.article-body a.text-link:hover {
  color: #ffffff;
}

/* 提示卡片 */
.article-alert {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 14.5px;
}

.article-alert--tip {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.article-alert--important {
  border-left-color: var(--primary-cyan);
  background: rgba(255, 170, 102, 0.1);
}

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

/* 结构化对比表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--bg-card);
}

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

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

.article-table tr:last-child td {
  border-bottom: none;
}

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

/* 代码或配置展示框 */
.code-snippet {
  background: #040812;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #ffd8b8;
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.6;
}

/* 文中呼吁注册横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 120, 40, 0.15) 0%, rgba(255, 190, 118, 0.05) 100%);
  border: 1px solid rgba(255, 150, 70, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin: 45px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 120, 40, 0.1);
}

.article-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* 相关阅读推荐 */
.related-articles-section {
  margin-top: 55px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

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

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

@media (max-width: 860px) {
  .article-header-card {
    padding: 28px 20px;
  }
  .article-main-title {
    font-size: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
