/* 资讯栏目：目录折叠 + 搜索 */

.news-layout { margin-top: 10px; margin-bottom: 40px; }
.news-layout > .row {
  display: flex;
  flex-wrap: wrap;
}
.news-aside-wrap {
  position: relative;
}
@media (min-width: 992px) {
  .news-aside-wrap {
    position: sticky;
    top: 72px;
    align-self: flex-start;
    z-index: 20;
    max-height: calc(100vh - 88px);
  }
  .news-aside-wrap .news-toc {
    max-height: calc(100vh - 88px);
    overflow: auto;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }
}

.news-toc {
  background: #f7f9fc;
  border: 1px solid #e5e5e5;
  padding: 14px 12px 12px;
  margin-bottom: 24px;
}
.news-toc > h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #044b8a;
}

.news-search {
  position: relative;
  margin-bottom: 12px;
}
.news-search input {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d7e2;
  border-radius: 3px;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.news-search input:focus {
  outline: none;
  border-color: #3090ef;
  box-shadow: 0 0 0 2px rgba(48, 144, 239, 0.15);
}
.news-search .search-icon-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  line-height: 32px;
  padding: 0;
}
.news-search .search-icon-btn:hover {
  color: #044b8a;
}
.news-search-hint {
  font-size: 12px;
  color: #888;
  margin: -4px 0 10px;
  min-height: 18px;
}

.news-search-bar {
  margin: 0 0 22px;
  display: flex;
  gap: 8px;
}
.news-search-bar input {
  flex: 1;
  height: 42px;
  border: 1px solid #d0d7e2;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 15px;
  color: #333;
}
.news-search-bar input:focus {
  outline: none;
  border-color: #3090ef;
  box-shadow: 0 0 0 2px rgba(48, 144, 239, 0.15);
}
.news-search-bar button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid #3090ef;
  background: #3090ef;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
}
.news-search-bar button:hover {
  background: #044b8a;
  border-color: #044b8a;
}

.toc-major { margin-bottom: 8px; }
.toc-major.is-selected .toc-major-title {
  background: rgba(48, 144, 239, 0.1);
}
.toc-major-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #044b8a;
  padding: 8px 6px;
  border: none;
  border-bottom: 1px solid #d9e3ef;
  background: transparent;
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
}
.toc-major-title:hover { background: rgba(48, 144, 239, 0.06); }

/* 鼠标：按下有框，抬起后消失；键盘 Tab 仍保留可见焦点 */
.news-toc .toc-major-title:focus,
.news-toc a:focus,
.news-toc .search-icon-btn:focus,
.news-toc .news-search input:focus {
  outline: none;
}
.news-toc .toc-major-title:active,
.news-toc a:active,
.news-toc .search-icon-btn:active {
  outline: 1px solid #333;
  outline-offset: -1px;
}
.news-toc .toc-major-title:focus-visible,
.news-toc a:focus-visible,
.news-toc .search-icon-btn:focus-visible,
.news-toc .news-search input:focus-visible {
  outline: 2px solid #3090ef;
  outline-offset: 1px;
}
.toc-major-title .toc-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #044b8a;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.toc-major.collapsed .toc-caret {
  transform: rotate(-90deg);
}
.toc-major.collapsed .toc-major-body {
  display: none;
}

.toc-major-body { margin: 2px 0 4px 2px; }
.news-toc ul { list-style: none; padding: 0; margin: 0; }
.news-toc li { border-top: 1px solid #eef2f7; }
.news-toc .toc-major-body > ul > li:first-child { border-top: none; }
.news-toc a {
  display: block;
  padding: 7px 4px 7px 8px;
  color: #555;
  line-height: 1.35;
  font-size: 13px;
  border-left: 2px solid transparent;
  overflow: hidden;
}
.news-toc a:hover,
.news-toc a.active {
  color: #044b8a;
  border-left-color: #3090ef;
  background: rgba(48, 144, 239, 0.04);
}
.toc-date {
  display: block;
  color: #999;
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 400;
}
.toc-link-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toc-back { margin: 10px 4px 2px; font-size: 12px; color: #888; }
.toc-empty {
  padding: 12px 6px;
  color: #888;
  font-size: 13px;
}

/* sticky 由 .news-aside-wrap 承担，避免双重定位冲突 */

.news-intro {
  margin-bottom: 8px;
}
.news-intro .news-list-heading {
  margin-top: 0;
}
.news-intro p { line-height: 1.8; }
.news-group { margin-bottom: 28px; }
.news-group-list {
  overflow-anchor: none; /* 减少上方展开时浏览器滚动锚定乱跳 */
}
.news-list-heading {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: #044b8a;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}
.news-item-card {
  padding: 22px 0;
  border-top: 1px solid #e5e5e5;
  color: #555;
  scroll-margin-top: 0;
}
.news-group-list .news-item-card:first-child {
  border-top: none;
  padding-top: 0;
}
.news-item-card.is-open {
  /* 与列表同背景，避免展开后一块发灰/发青 */
  background: transparent;
}
.news-item-card .meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}
.news-item-card .news-item-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
}
/* 正文内小标题：小于主标题 */
.news-reader-body h1,
.news-reader-body h2 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #1a1a1a;
  margin: 8px 0 12px;
}
.news-item-excerpt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.news-item-excerpt .summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-read-btn {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #175199;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.news-read-btn:hover {
  color: #044b8a;
}

.news-reader {
  margin-top: 4px;
}
.news-reader-loading {
  padding: 16px 0;
  color: #888;
  font-size: 14px;
}
.news-reader-panel {
  position: relative;
  border-top: none;
  padding-top: 8px;
  margin-top: 0;
}
.news-reader-body .article-meta {
  margin-bottom: 16px;
}

/* 知乎首页式：与卡片内容区背景等宽 + 蓝色收起（无分隔线） */
.news-reader-dock {
  position: relative;
  margin-top: 0;
}
.news-collapse-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 42px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #fff;
  border: none;
  border-top: none;
  line-height: 42px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.news-collapse-bar.is-docked.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.news-collapse-bar.is-docked {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.news-collapse-bar.is-fixed {
  position: fixed;
  bottom: 0;
  z-index: 1050;
  border: none;
  box-shadow: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(42px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.2s ease;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.news-collapse-bar.is-fixed.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.news-collapse-btn {
  min-width: 72px;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 3px;
  background: #056de8;
  color: #fff;
  font-size: 14px;
  line-height: 32px;
  cursor: pointer;
  white-space: nowrap;
}
.news-collapse-btn:hover {
  background: #0456b8;
}
.news-list-empty {
  padding: 28px 0;
  color: #888;
  font-size: 15px;
}

.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 20px 0 8px;
  border-top: 1px dashed #dde3ea;
  margin-top: 8px;
}
.news-pager-info {
  font-size: 14px;
  color: #666;
  min-width: 96px;
  text-align: center;
}
.news-pager-btn {
  min-width: 72px;
  padding: 8px 14px;
  border: 1px solid #3090ef;
  background: #fff;
  color: #044b8a;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
}
.news-pager-btn:hover:not(:disabled) {
  background: #3090ef;
  color: #fff;
}
.news-pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: #c5ced8;
  color: #999;
}
.news-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.news-pager-jump-label,
.news-pager-jump-unit {
  font-size: 14px;
  color: #666;
}
.news-pager-input {
  width: 56px;
  height: 34px;
  border: 1px solid #d0d7e2;
  border-radius: 2px;
  padding: 0 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  box-sizing: border-box;
}
.news-pager-input:focus {
  outline: none;
  border-color: #3090ef;
  box-shadow: 0 0 0 2px rgba(48, 144, 239, 0.15);
}
.news-pager-go {
  min-width: 56px;
}

.article-figure {
  margin: 18px 0 24px;
}
.article-figure img {
  border: 1px solid #e5e5e5;
}
.article-header h1 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 8px;
  color: #1a1a1a;
}
.article-meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 18px;
}
.article-body h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #044b8a;
}
.article-body p {
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 12px;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  border-bottom: solid 1px rgba(7, 112, 175, 0.6);
  color: rgba(7, 112, 175, 0.9);
  padding-bottom: 2px;
}
.geo-footer-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  line-height: 1.8;
}

.mark-hit {
  background: #fff3a3;
  padding: 0 1px;
}
