/* ==========================================================================
   西游云文章专属样式表 (css/article.css)
   高质量长文排版 / 面包屑导航 / 目录索引 / 内部相关跳转
   ========================================================================== */

.article-page-header {
  position: relative;
  z-index: 5;
  padding: 50px 0 30px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.7) 0%, rgba(7, 11, 20, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--text-gold);
}

.breadcrumbs-separator {
  color: var(--text-muted);
}

.article-header-title {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #FFFFFF;
}

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

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

.article-meta-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--text-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
}

/* 文章主布局 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 50px 0 80px;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(14px);
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

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

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

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

.article-content a:not(.btn) {
  color: var(--text-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:not(.btn):hover {
  color: #FFFFFF;
}

.article-highlight-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
  color: #F8FAFC;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
}

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

.article-table th, .article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-weight: 700;
}

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

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

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

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 46, 75, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sidebar-article-list {
  list-style: none;
}

.sidebar-article-list li {
  margin-bottom: 14px;
}

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

.sidebar-article-list a:hover {
  color: var(--text-gold);
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 28px 20px;
  }
}
