

/* ============================================================
   news_view 专有：资讯详情页（顶/底/导航 走 public/head.php）
   ============================================================ */

/* 主体两栏布局 */
.content-wrapper {
  padding: 16px 0 24px;
}
.content-wrapper__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

/* ----- 面包屑 ----- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--portal-text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a {
  color: var(--portal-text-light);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--portal-blue); }
.breadcrumb__sep {
  color: #ccc;
}
.breadcrumb .current {
  color: var(--portal-text);
}

/* ----- 文章主体 ----- */
.article {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.article__head {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--portal-border);
}
.article__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 12px;
  line-height: 1.4;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--portal-text-light);
  flex-wrap: wrap;
}
.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article__meta svg {
  width: 14px;
  height: 14px;
}
.article__brand { color: var(--portal-blue); }
.article__cover { margin: 0 0 22px; text-align: center; }
.article__cover img { display: block; width: auto; max-width: 100%; max-height: 560px; height: auto; margin: 0 auto; }

.article__body {
  font-size: 15px;
  color: var(--portal-text);
  line-height: 1.85;
  word-break: break-word;
  white-space: normal;
}
.article__body p { margin: 0 0 14px; }
.article__body h2,
.article__body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.article__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 4px;
}
.article__body a {
  color: var(--portal-blue);
  text-decoration: none;
}
.article__body a:hover { text-decoration: underline; }
.article__empty { color: var(--portal-text-light); }

.article__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--portal-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--portal-text-light);
}
.article__actions { display: flex; gap: 14px; }
.action-btn {
  color: var(--portal-blue);
  cursor: pointer;
}
.action-btn:hover { text-decoration: underline; }

/* 上一篇 / 下一篇 */
.article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--portal-border);
}
.article__nav-item {
  display: block;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  min-width: 0;
}
.article__nav-item--next { text-align: right; }
.article__nav-item:hover {
  background: #f0f6fd;
  border-color: var(--portal-blue);
}
.article__nav-item--disabled {
  background: #fafafa;
  color: #ccc;
  cursor: not-allowed;
}
.article__nav-label {
  display: block;
  font-size: 12px;
  color: var(--portal-blue);
  margin-bottom: 4px;
  font-weight: 600;
}
.article__nav-item--disabled .article__nav-label { color: #ccc; }
.article__nav-title {
  display: block;
  font-size: 13px;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article__nav-item:hover .article__nav-title { color: var(--portal-blue); }

/* ----- 相关资讯 ----- */
.related-news {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 18px 22px;
}
.related-news__head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.related-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-news__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 13px;
}
.related-news__list li:last-child { border-bottom: none; }
.related-news__list li a {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.related-news__list li a:hover { color: var(--portal-blue); }
.related-news__date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--portal-text-light);
  font-family: Consolas, Monaco, monospace;
}

/* ----- 侧栏 ----- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-card-header {
  margin: -16px -16px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--portal-border);
  background: linear-gradient(to right, rgba(30,109,216,.04), transparent);
}
.sidebar-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}

/* 热门资讯 Top 10 */
.sidebar-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-topics li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 13px;
}
.sidebar-topics li:last-child { border-bottom: none; }
.sidebar-topics__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-text-light);
  background: transparent;
  border-radius: 2px;
  flex-shrink: 0;
}
.sidebar-topics__num.top {
  color: #fff;
  background: var(--portal-blue);
}
.sidebar-topics__title {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.sidebar-topics__title:hover { color: var(--portal-blue); }

/* 侧栏广告（真实图片，img 撑满容器） */
.sidebar-ad {
  display: block;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: all .2s ease;
}
.sidebar-ad:hover {
  border-color: var(--portal-blue);
  box-shadow: 0 4px 10px rgba(30,109,216,.12);
}
.sidebar-ad img {
  display: block;
  width: 100%;
  height: auto;
}

/* 热门标签词云 */
.sidebar-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-cloud__item {
  font-size: 12px;
  color: var(--portal-text-mid);
  text-decoration: none;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 3px;
  transition: all .2s ease;
}
.sidebar-cloud__item:hover {
  background: var(--portal-blue);
  color: #fff;
}
.tb-detail-empty { color: var(--portal-text-light); font-size: 12px; }

/* ----- 响应式 ----- */
@media (max-width: 991px) {
  .content-wrapper__inner { grid-template-columns: 1fr; }
  .article { padding: 20px 24px; }
}
@media (max-width: 575px) {
  .article { padding: 16px 18px; }
  .article__title { font-size: 20px; }
  .article__body { font-size: 14px; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-item--next { text-align: left; }
}
