/* ============================================================
   NTKRIB 文章页（GEOFlow 知识库文章 /articles/<slug>/）
   2026-09-14 重做：原样式依赖已下线的 /css/news.css、/css/article.css（404），
   文章页几乎裸奔；这里按展厅设计语言（news-detail.css 同一套 token）重写：
     · 暗色顶栏（site-nav.css 注入）+ 白色正文区 + 浅色页脚（site-footer.css 注入）
     · 标题 48px/700，正文 15px/#475467/行高 2，配图圆角 20px，主按钮紫色渐变
   token 与 news-detail.css 对齐：#101828 标题 / #475467 正文 / #999 次要 / #954fec→#584cd6 主色
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.article-page {
  margin: 0;
  background: #fff;
  color: #14151a;
  font-family: "Plus Jakarta Sans", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.article-page img { max-width: 100%; }

/* --- 正文容器：顶栏高度 136px 让位，阅读宽度 880px --- */
.article-main {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 136px 0 0;
  min-height: 100svh;
}

/* --- 眉标 / 标题 --- */
.article-kicker {
  margin: 0 0 22px;
  color: #8f8f99;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.article-title {
  margin: 0;
  color: #000;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
}

/* 导语（列表页 / 文章页共用） */
.article-lead {
  margin: 22px 0 0;
  max-width: 760px;
  color: #8f8f99;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .2px;
}

/* --- 正文排版 --- */
.article-content { margin-top: 44px; }

.article-content h2 {
  margin: 52px 0 18px;
  color: #101828;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.article-content h3 {
  margin: 36px 0 14px;
  color: #101828;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.article-content p {
  margin: 0 0 18px;
  color: #475467;
  font-size: 15px;
  line-height: 2;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #475467;
}

.article-content li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.9;
}

.article-content strong, .article-content b { color: #101828; font-weight: 700; }

.article-content a {
  color: #584cd6;
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 76, 214, .35);
  transition: border-color .2s ease, color .2s ease;
}

.article-content a:hover { color: #954fec; border-bottom-color: #954fec; }

.article-content blockquote {
  margin: 36px 0;
  padding: 26px 30px;
  background: #f8fbff;
  border-left: 5px solid #954fec;
  border-radius: 0 14px 14px 0;
}

.article-content blockquote p { margin: 0; color: #101828; font-size: 17px; font-weight: 700; line-height: 1.9; }

.article-content figure { margin: 40px 0; }

.article-content figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  background: #f2f2f2;
}

.article-content figcaption { margin-top: 12px; color: #999; font-size: 13px; line-height: 1.7; }

.article-content table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.article-content th, .article-content td {
  padding: 12px 14px;
  border: 1px solid rgba(20, 21, 26, .1);
  text-align: left;
  line-height: 1.7;
}

.article-content th { background: #f7f7f8; color: #101828; font-weight: 700; }

.article-content hr { margin: 44px 0; border: 0; border-top: 1px solid rgba(20, 21, 26, .1); }

/* --- 文末署名 / 返回导航 / 主按钮 --- */
.article-signature {
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 21, 26, .1);
  color: #999;
  font-size: 14px;
  line-height: 2;
}

.article-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.article-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(20, 21, 26, .16);
  border-radius: 100px;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .24s ease, transform .24s ease;
}

.article-footer-nav a:hover { border-color: #954fec; transform: translateY(-2px); }

.site-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 100px;
  background: linear-gradient(135deg, #954fec, #584cd6);
  box-shadow: 0 16px 40px rgba(88, 76, 214, .22);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .24s ease, transform .24s ease;
}

.site-footer-cta:hover { box-shadow: 0 20px 50px rgba(88, 76, 214, .4); transform: translateY(-2px); }

/* 正文与页脚之间留白，页脚由 site-footer.js 注入 */
.article-main + * { margin-top: 96px; }

/* --- 知识库列表页（/articles/ 索引，同款版面）--- */
body.article-index .news-list { margin-top: 44px; border-top: 1px solid rgba(20, 21, 26, .1); }

body.article-index .news-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 24px;
  gap: 6px 24px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid rgba(20, 21, 26, .1);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, padding-left .2s ease;
}

body.article-index .news-row:hover { background: #fafafa; padding-left: 12px; }

body.article-index .news-row-date { color: #8f8f99; font-size: 13px; font-weight: 600; letter-spacing: .06em; }

body.article-index .news-row-title { margin: 0; color: #101828; font-size: 19px; font-weight: 700; line-height: 1.5; }

body.article-index .news-row-summary {
  margin: 8px 0 0;
  color: #8f8f99;
  font-size: 14px;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.article-index .news-row-arrow { color: #954fec; font-size: 18px; }

/* --- 移动端 --- */
@media (max-width: 760px) {
  body.article-page { font-size: 14px; }
  .article-main { width: calc(100% - 40px); padding-top: 112px; }
  .article-title { font-size: 27px; line-height: 1.3; }
  .article-content { margin-top: 32px; }
  .article-content p, .article-content li { font-size: 14px; }
  .article-content h2 { margin-top: 40px; font-size: 19px; }
  .article-content figure img { border-radius: 16px; }
  .article-footer-nav a, .site-footer-cta { width: 100%; justify-content: center; }
  body.article-index .news-row { grid-template-columns: minmax(0, 1fr) 20px; }
  body.article-index .news-row-date { grid-column: 1 / -1; }
}
