/* 高流量文章留存增强 v20260622 */
.art-retention-progress {
  position: fixed;
  top: 55px;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9990;
  background: linear-gradient(90deg, #3370FF, #1456F0);
  transition: width 0.12s linear;
  pointer-events: none;
}

body.blog-hub-page .art-retention-progress,
body.compact-business .art-retention-progress,
body.news-article-page .art-retention-progress {
  top: 55px;
}

.art-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  margin: 16px 0 24px;
  background: #F6F6FB;
  border: 1px solid #DEE0E3;
  border-radius: 10px;
  font-size: 13px;
}

.art-share-bar__label {
  color: #64748b;
  font-weight: 600;
  margin-right: 4px;
}

.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #C9CDD4;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.art-share-btn:hover {
  border-color: #3370FF;
  color: #1D4ED8;
  box-shadow: 0 2px 8px rgba(51, 112, 255, 0.12);
}

.art-share-btn.is-copied {
  border-color: #3370FF;
  background: #EFF4FF;
  color: #1D4ED8;
}

.art-mid-cta {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF4FF, #F0F5FF);
  border: 1px solid #B8CCFF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.art-mid-cta p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1E40AF;
  flex: 1 1 200px;
}

.art-mid-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #3370FF;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.art-mid-cta a:hover {
  filter: brightness(1.05);
}

.art-mid-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.art-mid-cta__zsxq {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

.art-mid-cta a:not(.art-mid-cta__zsxq):hover {
  background: #1456F0;
}

.sidebar-card.sidebar-contextual {
  border: 1.5px solid rgba(51, 112, 255, 0.35);
  background: linear-gradient(180deg, #F0F5FF, #fff);
}

.sidebar-contextual .sidebar-context-lead {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 12px;
}

.sidebar-context-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-context-list li {
  margin: 0 0 10px;
  padding: 0;
  border: none;
}

.sidebar-context-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #DEE0E3;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-context-list a:hover {
  border-color: #3370FF;
  box-shadow: 0 2px 8px rgba(51, 112, 255, 0.1);
}

.sidebar-context-list .ctx-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1F2329;
  margin-bottom: 2px;
}

.sidebar-context-list .ctx-desc {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

.sidebar-context-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-context-tools a {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #EFF4FF;
  color: #1D4ED8;
  border: 1px solid #B8CCFF;
  text-decoration: none;
  font-weight: 600;
}

.sidebar-context-tools a:hover {
  background: #E1E9FF;
}

.news-side-card.sidebar-contextual {
  border: 1.5px solid rgba(51, 112, 255, 0.35);
  background: linear-gradient(180deg, #F0F5FF, #fff);
}

/* blog 文末推荐（news 页用 news-stay-path，见 news-article.css） */
.related-articles {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #DEE0E3;
}

.related-articles h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1D4ED8;
  margin: 0 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
}

.related-card {
  background: #fff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  border: 1px solid #DEE0E3;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.related-card h4 a {
  color: #1F2329;
  text-decoration: none;
}

.related-card h4 a:hover {
  color: #1D4ED8;
}

.related-card p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.related-articles.related-articles--enhanced h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-articles--enhanced .related-card {
  border: 1px solid #DEE0E3;
  transition: all 0.2s;
}

.related-articles--enhanced .related-card:hover {
  border-color: #3370FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(51, 112, 255, 0.12);
}

.art-seo-deep-appendix {
  margin: 32px 0 0;
  padding: 20px 18px;
  border-radius: 10px;
  background: #F6F6FB;
  border: 1px solid #DEE0E3;
}

.art-seo-deep-appendix__title {
  font-size: 1rem !important;
  color: #64748b !important;
  margin: 0 0 12px !important;
  font-weight: 600 !important;
}

.art-seo-deep-body h2 {
  font-size: 0.95rem !important;
  color: #64748b !important;
  margin-top: 1rem !important;
}

.art-seo-deep-fold {
  display: none;
}

.art-retention-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #DEE0E3;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  gap: 8px;
}

.art-retention-mobile-bar.is-visible {
  display: flex;
}

.art-retention-mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.art-retention-mobile-bar .bar-read {
  background: #F2F3F5;
  color: #334155;
}

.art-retention-mobile-bar .bar-cta {
  background: #3370FF;
  color: #fff;
}

@media (min-width: 901px) {
  .art-retention-mobile-bar {
    display: none !important;
  }
}
