/* article.css */
.article-page-wrap {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 100px 48px 80px;
  display: grid; grid-template-columns: 1fr 300px; gap: 60px;
  align-items: start;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em;
  margin-bottom: 32px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-dim); }
.breadcrumb-sep { color: rgba(242,237,216,0.2); }
.breadcrumb-current { color: var(--text-dim); }

/* Article header */
.article-header { margin-bottom: 40px; }
.article-cat-badge {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--ink);
  font-weight: 600; margin-bottom: 20px;
}
.article-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.06em; line-height: 1.4;
  color: var(--text); margin-bottom: 24px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 10px; }
.meta-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--vermilion));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ma Shan Zheng', cursive; font-size: 14px; color: var(--ink);
}
.meta-author-info {}
.meta-author-name { font-size: 13px; color: var(--text); letter-spacing: 0.04em; }
.meta-author-role { font-size: 11px; color: var(--text-faint); }
.meta-sep { width: 1px; height: 20px; background: var(--border); }
.meta-item {
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 5px;
}
.meta-icon { font-size: 13px; }

/* Article body */
.article-body {
  font-size: 15px; line-height: 2; color: var(--text-dim);
  letter-spacing: 0.05em;
}
.article-body h2 {
  font-family: 'Ma Shan Zheng', cursive; font-size: 26px;
  color: var(--text); letter-spacing: 0.08em; margin: 48px 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-family: 'Ma Shan Zheng', cursive; font-size: 20px;
  color: var(--gold-dim); letter-spacing: 0.08em; margin: 32px 0 14px;
}
.article-body p { margin-bottom: 20px; }
.article-body blockquote {
  margin: 28px 0; padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(212,168,78,0.05); border-radius: 0 12px 12px 0;
  color: var(--text-dim); font-style: italic;
}
.article-body ul, .article-body ol {
  margin: 20px 0; padding-left: 28px;
}
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--gold-dim); text-decoration: underline;
  text-decoration-color: rgba(212,168,78,0.3); transition: color 0.2s;
}
.article-body a:hover { color: var(--gold); }
.article-body .highlight-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px; margin: 28px 0;
}
.article-body .highlight-box-title {
  font-family: 'Ma Shan Zheng', cursive; font-size: 18px;
  color: var(--gold); margin-bottom: 12px; letter-spacing: 0.08em;
}

/* Article footer */
.article-footer { margin-top: 60px; }
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 40px;
}
.article-nav-item {
  padding: 20px 24px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; transition: all 0.2s;
}
.article-nav-item:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.article-nav-item.prev { text-align: left; }
.article-nav-item.next { text-align: right; }
.nav-direction { font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; margin-bottom: 6px; }
.nav-title {
  font-size: 14px; color: var(--text); line-height: 1.5;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.article-nav-item:hover .nav-title { color: var(--gold); }

/* Comments */
.comments-section { margin-top: 48px; }
.comments-title {
  font-family: 'Ma Shan Zheng', cursive; font-size: 22px;
  color: var(--text); letter-spacing: 0.08em; margin-bottom: 28px;
}
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,168,78,0.3), rgba(194,106,74,0.3));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: 'Ma Shan Zheng', cursive; color: var(--gold);
}
.comment-name { font-size: 13px; color: var(--text); letter-spacing: 0.04em; }
.comment-date { font-size: 11px; color: var(--text-faint); margin-left: auto; }
.comment-text { font-size: 13px; line-height: 1.8; color: var(--text-dim); letter-spacing: 0.04em; }
.comment-cta {
  text-align: center; padding: 28px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; margin-top: 20px;
}
.comment-cta p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

/* Sidebar */
.article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.sidebar-card-title {
  font-family: 'Ma Shan Zheng', cursive; font-size: 16px; color: var(--gold);
  letter-spacing: 0.08em; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-item a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.04em; transition: all 0.2s; line-height: 1.5;
}
.toc-item a:hover { background: rgba(212,168,78,0.06); color: var(--gold-dim); }
.toc-item.active a { color: var(--gold); background: rgba(212,168,78,0.08); }
.toc-item.h3 a { padding-left: 22px; font-size: 12px; }

/* Related articles */
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item { display: flex; gap: 12px; text-decoration: none; align-items: flex-start; }
.related-cover {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ma Shan Zheng', cursive; font-size: 22px; opacity: 0.6;
}
.cover-wuxing { background: linear-gradient(135deg, rgba(212,168,78,0.15), rgba(212,168,78,0.05)); }
.cover-shijing { background: linear-gradient(135deg, rgba(92,160,138,0.15), rgba(92,160,138,0.05)); }
.cover-ziyi    { background: linear-gradient(135deg, rgba(106,144,194,0.15), rgba(106,144,194,0.05)); }
.cover-jinji   { background: linear-gradient(135deg, rgba(194,106,74,0.15), rgba(194,106,74,0.05)); }
.cover-xingshi { background: linear-gradient(135deg, rgba(158,122,90,0.15), rgba(158,122,90,0.05)); }
.related-info {}
.related-title {
  font-size: 13px; color: var(--text); line-height: 1.5;
  letter-spacing: 0.04em; margin-bottom: 4px; transition: color 0.2s;
}
.related-item:hover .related-title { color: var(--gold); }
.related-meta { font-size: 11px; color: var(--text-faint); }

/* CTA card (shared with knowledge sidebar) */
.cta-card {
  background: linear-gradient(135deg, rgba(212,168,78,0.1), rgba(212,168,78,0.03));
  border: 1px solid rgba(212,168,78,0.3); border-radius: 16px; padding: 28px;
  text-align: center;
}
.cta-title {
  font-family: 'Ma Shan Zheng', cursive; font-size: 22px; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.cta-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }
.cta-btn {
  display: inline-block; padding: 12px 28px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), #B88A32);
  color: var(--ink); font-family: 'Ma Shan Zheng', cursive;
  font-size: 16px; letter-spacing: 0.08em; text-decoration: none;
  box-shadow: 0 0 24px rgba(212,168,78,0.3);
  transition: all 0.3s;
}
.cta-btn:hover { box-shadow: 0 0 40px rgba(212,168,78,0.5); transform: translateY(-1px); }

@media (max-width: 1024px) {
  .article-page-wrap { grid-template-columns: 1fr; padding: 90px 24px 60px; }
  .article-sidebar { position: static; }
}
@media (max-width: 600px) {
  .article-nav { grid-template-columns: 1fr; }
}
