/* 96IDC Theme | Author: 96IDC | QQ: 2386214936 | Site: www.96idc.cn */
/* ==========================================================================
   newsview 页面样式（公告 / 新闻详情 · 蓝白科技风）
   ========================================================================== */

/* 本页用 .idc-pagehead 作统一页头条，隐藏基础皮肤遗留的同款页头条，避免标题重复 */
.main-content .page-title-wrapper {
  display: none !important;
}

/* —— 文章头 —— */
.nv-head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--idc-border-light);
}

.nv-cate {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  color: var(--idc-primary);
  background: var(--idc-primary-soft);
  border-radius: 100px;
}

.nv-title {
  margin: 0 0 8px;
  color: var(--idc-text-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  word-break: break-word;
}

.nv-meta {
  margin-bottom: 0 !important;
  font-size: 12px;
}

/* —— 正文（iframe 注入公告 HTML） —— */
.nv-body {
  padding: 4px 0;
}

.nv-body iframe {
  display: block;
  width: 100%;
  min-height: 220px;
  background: #fff;
  border: 0;
}

/* 正文内联样式兜底：公告 HTML 自身可能带 pre / p / img */
.newscontent pre,
.newscontent .newscontent {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}

.newscontent img {
  max-width: 100%;
  height: auto;
}

.newscontent p {
  display: block !important;
  white-space: normal;
}

/* —— 标签 —— */
.nv-labels {
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--idc-border-light);
}

.nv-labels h5 {
  color: var(--idc-text-heading);
  font-size: 14px;
  font-weight: 600;
}

.nv-labels li {
  color: var(--idc-text-secondary);
  font-size: 13px;
}

/* —— 上一篇 / 下一篇 —— */
.nv-nav {
  padding-top: 16px;
  margin-top: 18px !important;
  border-top: 1px solid var(--idc-border-light);
}

.nv-nav__btn {
  max-width: 47%;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* —— 侧栏 —— */
.nv-info .idc-stat-row {
  padding: 12px 0;
}

.nv-info .idc-stat-row__value {
  max-width: 62%;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nv-back {
  margin-top: 4px;
}

.nv-more {
  color: var(--idc-primary);
  font-size: 13px;
}

.nv-side-tip {
  margin-top: 16px;
  color: var(--idc-text-muted);
  background: var(--idc-input-bg);
  border-color: var(--idc-border);
}

/* —— 响应式 —— */
@media (max-width: 991.98px) {
  .nv-nav {
    flex-direction: column;
    gap: 10px;
  }

  .nv-nav__btn {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .nv-title {
    font-size: 17px;
    line-height: 26px;
  }

  .nv-body iframe {
    min-height: 180px;
  }
}

/* —— 窄屏页头条：标题与面包屑改为两行（.idc-pagehead 默认单行，<576px 会裁切面包屑） —— */
@media (max-width: 575.98px) {
  .idc-pagehead {
    flex-wrap: wrap;
    padding: 12px 14px 12px 18px;
  }

  .idc-pagehead__left {
    width: 100%;
  }

  .idc-pagehead__title {
    font-size: 18px;
    line-height: 22px;
  }

  .idc-pagehead__crumb {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 4px;
  }
}
