/* 文件描述：详情页公共 SEO 区块样式（可见面包屑、相关文章），各详情模板按需引入 */

/* 可见面包屑：单行展示，长标题截断，避免移动端横向溢出 */
.seo-breadcrumb {
  margin: 0 0 16px;
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  min-width: 0;
}

.seo-breadcrumb-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.seo-breadcrumb-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 分隔符 */
.seo-breadcrumb-item + .seo-breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: var(--on-surface-variant);
}

/* 当前页标题可收缩并省略 */
.seo-breadcrumb-item[aria-current="page"] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--on-surface);
}

.seo-breadcrumb-item a {
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-breadcrumb-item a:hover {
  color: var(--primary);
}

/* 可见发布/更新时间：未引入新闻详情样式的模板（案例、直播回放）共用 */
.seo-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--fs-14);
  color: #9aa3b2;
}

/* 正文图按真实宽高输出后，展示尺寸仍随容器缩放，保持比例 */
.nws-article-body img,
.bps-detail-content img,
.jxal-detail-section-body img,
.ot-view-content-body img {
  max-width: 100%;
  height: auto;
}

/* 相关文章：标题 + 单列链接列表，右侧日期 */
.seo-related {
  margin: 32px 0 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.seo-related-title {
  margin: 0 0 12px;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-surface);
}

.seo-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-related-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--slate-200);
  font-size: var(--fs-14);
}

.seo-related-item:first-child {
  border-top: 0;
}

/* 长标题允许换行，避免移动端横向溢出 */
.seo-related-item a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--on-surface);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.seo-related-item a:hover {
  color: var(--primary);
}

.seo-related-item time {
  flex: 0 0 auto;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .seo-related {
    padding: 16px;
  }

  .seo-related-item {
    flex-direction: column;
    gap: 4px;
  }
}
