/* 首页 / 内页 SEO / GEO：可被搜索引擎与 AI 抽取的关于站与 FAQ */

.nj-seo-geo,
#page #content .nj-seo-geo {
  margin: 14px 0 10px;
  padding: 16px 18px 14px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fffef9 0%, #f7f0e4 100%);
  border: 1px solid rgba(140, 105, 50, 0.22);
  border-radius: 12px;
  color: #3d2a10;
  text-align: left;
}

.nj-seo-geo h2,
#page #content .nj-seo-geo h2 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5c4528 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(140, 105, 50, 0.24);
  text-align: left;
}

.nj-seo-geo .nj-seo-lead,
#page #content .nj-seo-geo .nj-seo-lead {
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
  color: #4a3820 !important;
  background: transparent !important;
}

.nj-seo-geo .nj-seo-one-liner,
#page #content .nj-seo-geo .nj-seo-one-liner {
  margin: 0 0 14px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.7 !important;
  letter-spacing: 0.04em;
  color: #3d2a10 !important;
  background: rgba(255, 248, 230, 0.9) !important;
  border-left: 3px solid #8c6932;
}

.nj-seo-geo .nj-seo-usp,
#page #content .nj-seo-geo .nj-seo-usp {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.nj-seo-geo .nj-seo-usp li,
#page #content .nj-seo-geo .nj-seo-usp li {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #5a4428;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(140, 105, 50, 0.14);
  border-radius: 8px;
}

.nj-seo-geo .nj-seo-usp li strong,
#page #content .nj-seo-geo .nj-seo-usp li strong {
  color: #3d2a10;
  margin-right: 0.25em;
}

.nj-seo-geo .nj-seo-usp a,
#page #content .nj-seo-geo .nj-seo-usp a {
  color: #6b4e1e;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nj-seo-geo .nj-seo-usp,
  #page #content .nj-seo-geo .nj-seo-usp {
    grid-template-columns: 1fr;
  }
}

.nj-seo-geo .nj-seo-points,
#page #content .nj-seo-geo .nj-seo-points {
  margin: 0 0 14px;
  padding: 0 0 0 1.2em;
  list-style: disc;
}

.nj-seo-geo .nj-seo-points li,
#page #content .nj-seo-geo .nj-seo-points li {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #5a4428;
}

.nj-seo-geo .nj-seo-points a,
#page #content .nj-seo-geo .nj-seo-points a {
  color: #6b4e1e;
  text-decoration: underline;
}

.nj-seo-geo .nj-seo-faq h3,
#page #content .nj-seo-geo .nj-seo-faq h3 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5c4528;
  background: transparent;
}

.nj-seo-geo .nj-seo-faq details,
#page #content .nj-seo-geo .nj-seo-faq details {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(140, 105, 50, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.nj-seo-geo .nj-seo-faq summary,
#page #content .nj-seo-geo .nj-seo-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #3d2a10;
  list-style-position: outside;
}

.nj-seo-geo .nj-seo-faq details p,
#page #content .nj-seo-geo .nj-seo-faq details p {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: #5a4428 !important;
  background: transparent !important;
}

/* 经书架 / 经文内页 / 工具页：SEO 块与 #wrapper(1226) 同宽，勿再缩成 960 */
#wrapper > .nj-seo-geo,
.nj-catalog + .nj-seo-geo,
#page + .nj-seo-geo,
.nj-chao-page + .nj-seo-geo,
.nj-gongde-page + .nj-seo-geo {
  width: 1226px;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-top: 18px;
  margin-bottom: 18px;
  clear: both;
  float: none !important;
  position: relative;
  z-index: 1;
  background: #fffef8 !important;
}

@media (max-width: 1260px) {
  #wrapper > .nj-seo-geo,
  .nj-catalog + .nj-seo-geo,
  #page + .nj-seo-geo,
  .nj-chao-page + .nj-seo-geo,
  .nj-gongde-page + .nj-seo-geo {
    width: 100%;
    max-width: 1226px;
  }
}

/* 抄心经：SEO/FAQ 放右栏底部，协调左右高度 */
#sidebar .nj-seo-geo-side,
.nj-seo-geo.nj-seo-geo-side,
#page #sidebar .nj-seo-geo-side {
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 4px !important;
  padding: 12px 12px 10px !important;
  box-sizing: border-box;
  clear: both;
  float: none !important;
  border-radius: 12px !important;
  background: #fffef8 !important;
  border: 1px solid rgba(140, 105, 50, 0.22) !important;
  list-style: none !important;
}

/* 彻底隔离侧栏「印章按钮」样式污染 */
#page #sidebar .nj-seo-geo-side a,
#page #sidebar .nj-seo-geo-side li a,
#sidebar .nj-seo-geo-side a {
  display: inline !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #6b4e1e !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: inherit !important;
  text-align: left !important;
  text-decoration: underline !important;
  white-space: normal !important;
  overflow: visible !important;
}

#page #sidebar .nj-seo-geo-side a:hover,
#page #sidebar .nj-seo-geo-side li a:hover,
#sidebar .nj-seo-geo-side a:hover {
  background: none !important;
  color: #8b1e1e !important;
  border: none !important;
}

#sidebar .nj-seo-geo-side h2,
.nj-seo-geo-side h2,
#page #sidebar .nj-seo-geo-side h2 {
  font-size: 14px !important;
  letter-spacing: 0.08em;
  color: #5c4528 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(140, 105, 50, 0.24) !important;
  text-align: left !important;
}

#sidebar .nj-seo-geo-side .nj-seo-lead,
.nj-seo-geo-side .nj-seo-lead,
#page #sidebar .nj-seo-geo-side p {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: #4a3820 !important;
  text-align: left !important;
  min-height: 0 !important;
}

#sidebar .nj-seo-geo-side .nj-seo-one-liner,
.nj-seo-geo-side .nj-seo-one-liner {
  font-size: 12px !important;
  padding: 8px 10px !important;
}

#sidebar .nj-seo-geo-side .nj-seo-usp,
.nj-seo-geo-side .nj-seo-usp {
  grid-template-columns: 1fr;
  gap: 6px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
}

#sidebar .nj-seo-geo-side .nj-seo-usp li,
.nj-seo-geo-side .nj-seo-usp li,
#page #sidebar .nj-seo-geo-side .nj-seo-usp li {
  display: block !important;
  float: none !important;
  width: auto !important;
  font-size: 11px !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(140, 105, 50, 0.14) !important;
  border-radius: 8px !important;
  color: #5a4428 !important;
}

/* 相关入口：普通段落 + 下划线链接，不再做成按钮条 */
#sidebar .nj-seo-related,
.nj-seo-geo-side .nj-seo-related {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(245, 236, 214, 0.55);
  border: 1px solid rgba(140, 105, 50, 0.12);
  border-radius: 8px;
}

#sidebar .nj-seo-related p,
.nj-seo-geo-side .nj-seo-related p,
#page #sidebar .nj-seo-related p {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
  color: #5a4630 !important;
  background: transparent !important;
  border: none !important;
}

#sidebar .nj-seo-related p:last-child,
.nj-seo-geo-side .nj-seo-related p:last-child {
  margin-bottom: 0 !important;
}

#sidebar .nj-seo-geo-side .nj-seo-faq details,
.nj-seo-geo-side .nj-seo-faq details,
#page #sidebar .nj-seo-geo-side .nj-seo-faq details {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(140, 105, 50, 0.16) !important;
}

#sidebar .nj-seo-geo-side .nj-seo-faq summary,
.nj-seo-geo-side .nj-seo-faq summary,
#page #sidebar .nj-seo-geo-side .nj-seo-faq summary {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #3d2a10 !important;
  cursor: pointer;
  list-style-position: outside;
}

/* 侧栏：feed 与 SEO 卡间隙 → 两侧圆角 */
#sidebar:has(.nj-seo-geo-side) .nj-feed,
#sidebar:has(.nj-seo-geo-side) .nj-feed-chao {
  border-radius: 12px !important;
  margin-bottom: 4px !important;
}

#sidebar .nj-seo-geo-side {
  margin-top: 12px !important;
}
