/* ==========================================================================
 * 站点样式包：sichuanhuaxi —— 四川华西门户系（复刻线上 Themes/SiChuanHuaXi）
 *
 * 这一族在线上有 16 个站共用（docs/15 §1），皮肤与版式完全一致，
 * 站间差别只有主色、素材与条目 —— 所以**一份包服务整族**，换色走租户的「自定义样式」。
 *
 * 用途：把存量万方 show 站的观感贴到我们自己的 markup 上。
 * 只改观感（颜色/字体/间距/边框/圆角/面板样式），不提供结构或布局。
 *
 * ⚠️ 作用域约束：本文件会被前台 `_Layout`、渲染器兜底骨架与后台 `_AdminLayout`
 *    同时加载（画布要所见即所得），所以**每条选择器都落在**
 *    `.site-header / .site-footer / .site-main / .design-canvas / .grid-stack-item-content`
 *    之内。禁止裸标签选择器（如 `a{}`、`.panel{}`），否则会污染后台界面。
 *    （SiteStylePacksTests.包CSS_规则都在站点作用域内 会校验这一点。）
 *
 * 取值来自线上实测（2026-10-30，aph 站 1425 视口）：
 *   主色 #38b8aa（老库 color.less 的 @colorMain 默认值）／页面底 #efefef／
 *   面板标题 18px/700 #444 + 40px 青绿下划线／面板分隔线 #c2c2c2／
 *   导航 16px #444、项距 50px／页脚 #1e2022、124px 高／内容容器 1300px。
 * 改完 CSS 记得把 SiteStylePacks.Version +1，否则浏览器缓存不失效。
 * ========================================================================== */

/* ---------- 全局观感（限站点作用域） ---------- */

.site-main {
  background: #efefef;
  /* 线上最后一排面板到页脚只隔 20px；默认 60px 会空出「一大片灰」 */
  padding-bottom: 20px;
  /* 首页横幅是通栏（100vw）。带滚动条的浏览器里 100vw 比内容宽 15px，
     不裁掉就会多出一条横向滚动条。只裁横向，纵向照常滚。 */
  overflow-x: clip;
}

/* 首页横幅紧贴页头（线上没有页面顶部留白） */
.site-main:has(.schx-hero) {
  padding-top: 0;
  padding-bottom: 12px;
}

/* 线上容器 1300（减左右 12 内边距 = 1324），比官方 1200 宽 */
.site-main .container,
.site-footer .container {
  max-width: 1324px;
}

.site-main a {
  color: #666;
  text-decoration: none;
}

.site-main a:hover {
  color: #38b8aa;
}

/* ---------- 页头：顶部青绿细条（登录/注册） + 白底 Logo/导航 ---------- */

.site-header {
  position: relative;
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
  padding: 30px 0 0; /* 顶部 30px 留给青绿登录条 */
}

.site-header .site-header-inner {
  max-width: 1324px;
}

.site-header .shell-grid {
  min-height: 89px;
  align-items: center;
}

/* 登录/注册：线上是页头最上面那条 30px 的青绿横条，靠右 */
.site-header .shell-cell:has(.site-account),
.site-header .shell-cell:has(.site-login),
.site-header .shell-cell:has(.shell-login) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #38b8aa;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 63px;
  z-index: 3;
}

.site-header .site-account,
.site-header .site-account-links,
.site-header .shell-login,
.site-header .site-login {
  height: 30px;
  line-height: 30px;
  color: #fff;
  font-size: 14px;
}

.site-header .site-account a,
.site-header .shell-login a,
.site-header .site-login a {
  color: #fff;
  margin-left: 8px;
}

/* 页头不带检索框（线上的检索卡在首页横幅上，是内容块不是外壳） */
.site-header .shell-cell:has(.site-search) {
  display: none !important;
}

/* 站点标识占左侧，导航靠右：线上 Logo 380×89、导航项距 50 */
.site-header .shell-cell:has(.site-brand) {
  grid-column: 1 / span 4 !important;
}

.site-header .shell-cell:has(.site-nav) {
  grid-column: 5 / span 8 !important;
  display: flex;
  justify-content: flex-end;
}

.site-header .site-brand img,
.site-header .shell-brand img {
  /* site.css 默认 max-width:220px，这一族的线上 Logo 是 380×89 的横版图 */
  width: 380px !important;
  max-width: 380px !important;
  height: 89px !important;
  object-fit: contain;
  object-position: left center;
}

/* 导航靠右（线上四个导航项贴着容器右边缘） */
.site-nav .navbar-nav {
  justify-content: flex-end;
  width: 100%;
}

/* 首页横幅通栏：线上那张院景是整屏宽的，不受 1300 容器限制 */
@media (min-width: 992px) {
  .site-main .widget-cell.schx-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* 导航：16px、项距 100px、选中项只在文字下方一条 4px 青绿短下划线。
   线上选中项文字颜色不变（#444），也不用 border —— 用 ::after 才能跟文字等宽。 */
.site-nav .nav-item {
  margin-left: 100px;
}

.site-nav .nav-item:first-child {
  margin-left: 0;
}

.site-nav .nav-link {
  position: relative;
  color: #444 !important;
  font-size: 16px !important;
  padding: 10px 0 !important;
  margin-right: 0;
  border-bottom: 0;
  /* 线上「首    页」用 4 个 nbsp 撑成 4 字宽；站点导航取不到这个文本，
     改成每项至少 4 字宽 + 居中，首页就不会比其它项窄一截。 */
  min-width: 4em;
  text-align: center;
  border-radius: 0;
  /* site.css 给 hover/active 加了 --brand-soft 底色，线上没有底色 */
  background: transparent !important;
}

.site-nav .nav-link:hover {
  color: #38b8aa !important;
}

.site-nav .nav-link.active {
  color: #444 !important;
}

.site-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #38b8aa;
}

/* ---------- 首页横幅：线上 540px 高、通栏 ---------- */

.site-main:has(.schx-hero) .widget-grid {
  /* 首页按内容高度排（线上块高由内容决定，不是画布 120px 的整数倍）。
     空行（检索卡那一行）塌成 0，横幅与第一排面板之间不再留 120px 空带。 */
  grid-auto-rows: minmax(0, auto);
  /* 视图给的是 .widget-grid.mb-4，Bootstrap 工具类带 !important，这里也得带 */
  margin-bottom: 0 !important;
}

.site-main .widget-cell.schx-hero {
  padding: 0;
  background: transparent;
  margin-top: 0;
}

.site-main .schx-hero .carousel-inner,
.site-main .schx-hero .carousel-item,
.site-main .schx-hero .carousel-fill-img {
  height: 540px;
}

.site-main .schx-hero .carousel-fill-img {
  width: 100%;
  object-fit: cover;
}

/* ---------- 面板（首页每块） ----------
   线上：标题直接落在灰底上，只有内容区是白卡片。
   首页每块各自按内容高度收缩（本地馆藏比网络馆藏矮），不要被网格行拉齐。 */

.site-main:has(.schx-hero) .widget-cell {
  background: transparent;
  padding: 0;
  border-radius: 0;
  align-self: start;
}

/* 标题：18px/700 #444，整行 1px 灰分隔线 + 文字下方 4px 青绿短线 */
.site-main:has(.schx-hero) .widget-cell > h5,
.site-main:has(.schx-hero) .widget-head > h5 {
  font-size: 18px;
  font-weight: 700;
  color: #444;
  padding: 0;
  margin: 0;
  border-bottom: 0;
  box-shadow: none;
  position: relative;
}

.site-main:has(.schx-hero) .widget-cell > h5::after,
.site-main:has(.schx-hero) .widget-head > h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 4px;
  background: #38b8aa;
}

.site-main:has(.schx-hero) .widget-head {
  position: relative;
  padding: 10px 0;
  margin: 0 !important;
  border-bottom: 1px solid #c2c2c2;
}

/* 「更多 >>」 */
.site-main .widget-head a,
.site-main .widget-more {
  font-size: 14px;
  color: #666;
}

/* 白卡片只包内容区（标题在灰底上） */
.site-main:has(.schx-hero) .widget-cell > .db-links,
.site-main:has(.schx-hero) .widget-cell > .db-tiles,
.site-main:has(.schx-hero) .widget-cell > .db-featured,
.site-main:has(.schx-hero) .widget-cell > .db-covers,
.site-main:has(.schx-hero) .widget-cell > .list-group,
.site-main:has(.schx-hero) .widget-cell > .row {
  background: #fff;
  padding: 14px 20px;
}

/* ---------- 检索卡：压在横幅下半部（线上是 705px 宽、75% 黑底） ---------- */

.site-main .widget-grid {
  position: relative;         /* 检索卡的定位上下文（画布与前台同一套网格） */
}

/* 检索卡是绝对定位的**网格子项**：若它自己占第 4 行，`top` 会相对那一行的
   网格区域算（不是相对网格顶），位置会掉到面板中间。强制它归到第 1 行，
   定位上下文就回到网格顶部；绝对定位又不占行，所以不会影响横幅/面板。 */
.site-main .widget-cell.schx-search {
  position: absolute;
  grid-row: 1 / span 1 !important;
  grid-column: 1 / span 12 !important;
  top: 373px;                 /* 横幅 540 高时：卡片压在横幅下部（线上实测 373） */
  left: 50%;
  transform: translateX(-50%);
  width: 705px;
  max-width: calc(100% - 24px);
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 20px;
  background: rgba(0, 0, 0, .75);
  z-index: 5;
  border-radius: 0;
}

/* 窄屏不叠横幅：回到正常文档流（否则会压住面板） */
@media (max-width: 991px) {
  .site-main .widget-cell.schx-search {
    position: static;
    grid-row: auto !important;
    transform: none;
    width: auto;
    max-width: none;
    margin: 8px auto;
  }
}

/* 卡片里没有标题，别留标题行的高度 */
.site-main .widget-cell.schx-search > h5 {
  display: none;
}

/* 检索范围页签（网络资源 / 本地资源）：白字 + 左侧 12px 空心圆点 */
.site-main .schx-search .xn-search-tabs {
  display: flex;
  gap: 20px;
  margin: 0 0 10px;
  padding: 0;
}

.site-main .schx-search .xn-search-tab {
  position: relative;
  padding: 0 0 0 20px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.site-main .schx-search .xn-search-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 2px solid #bfbfbf;
  border-radius: 50%;
}

.site-main .schx-search .xn-search-tab.active::before {
  border-color: #38b8aa;
  background: #38b8aa;
}

.site-main .schx-search .xn-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  height: 48px;
  max-height: 48px;
  overflow: hidden;
}

.site-main .schx-search .xn-search > * {
  height: 48px;
  align-self: center;
}

.site-main .schx-search .xn-search-cat-select {
  height: 48px;
  width: 158px;
  min-width: 158px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #666;
  font-size: 14px;
  padding: 0 0 0 15px;
}

.site-main .schx-search .xn-search-input {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 15px;
  font-size: 14px;
  box-shadow: none;
}

.site-main .schx-search .xn-search-input:focus {
  box-shadow: none;
  outline: none;
}

.site-main .schx-search .xn-search-btn {
  height: 48px;
  width: 122px;
  border: 0;
  border-radius: 0;
  background: #38b8aa;
  color: #fff;
  font-size: 16px;
}

/* ---------- 两栏链接（网络馆藏 / 本地馆藏） ---------- */

.site-main .db-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.site-main .db-links .db-link {
  display: block;
  height: 34px;
  font-size: 14px;
  line-height: 34px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-main .db-links .db-link:hover {
  color: #38b8aa;
}

/* ---------- 图标瓦片（推荐资源 / 入馆须知 / 读者服务） ---------- */

.site-main .db-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-content: start;   /* 不设的话行会被容器剩余高度拉散，两行图标之间出现大片空白 */
  text-align: center;
}

.site-main .db-tile {
  display: block;
  margin-top: 10px;
  padding: 0;
}

/* 图标容器归零行高：否则 span 的行盒会在图标下面多撑出几像素，
   两行之间又被网格放大成明显的空隙 */
.site-main .db-tile-icon {
  display: block;
  line-height: 0;
}

.site-main .db-tile-img {
  width: 50px;
  height: 50px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.site-main .db-tile-title {
  display: block;
  margin-top: 13px;
  font-size: 14px;
  color: #333;
  line-height: 20px;
}

/* 悬停彩色图标（有 icon_hover 时才渲染两张） */
.site-main .db-tile-img-hover {
  display: none;
}

.site-main .db-tile:hover .db-tile-img-hover {
  display: block;
}

/* 只有「配了悬停图标」的瓦片才把常态图标藏起来 ——
   一笔写成无条件隐藏时，没配 icon_hover 的块（入馆须知）一悬停图标整块消失。 */
.site-main .db-tile:hover:has(.db-tile-img-hover) .db-tile-img:not(.db-tile-img-hover) {
  display: none;
}

/* 线上是全局 `.widget a:hover{color:#38b8aa}`：瓦片标题也跟着变色 */
.site-main .db-tile:hover .db-tile-title {
  color: #38b8aa;
}

/* 推荐资源：图标在左（80px 圆形）、文字在右，2×2 */
.site-main .widget-cell.schx-recommend .db-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 0;
}

.site-main .widget-cell.schx-recommend .db-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 80px;
  margin-top: 0;
  text-align: left;
}

.site-main .widget-cell.schx-recommend .db-tile-icon {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

.site-main .widget-cell.schx-recommend .db-tile-img {
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.site-main .widget-cell.schx-recommend .db-tile-title {
  margin-top: 0;
}

/* ---------- 封面横条（新资源推荐） ---------- */

.site-main .db-covers-track {
  gap: 12px;
}

/* 新资源推荐：线上封面区约 200px 高（背景图 + 景深封面），别缩成一条窄带 */
.site-main .widget-cell.schx-newres .db-covers-track {
  min-height: 200px;
}

.site-main .db-cover img,
.site-main .db-cover {
  width: 101px;
  height: 135px;
  object-fit: cover;
}

/* ---------- 学科专题：左 300×200 大图 + 右标题/日期列表 ----------
   用「两列（左封面 + 右列表）」展示样式：右侧列表包含全部条目。 */

.site-main .widget-cell.schx-topics > .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 15px;
  margin: 0;
}

/* Bootstrap 的列自带左右 padding / 百分比宽度；这里按线上固定 300px 图 + 自适应列表 */
.site-main .widget-cell.schx-topics > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.site-main .widget-cell.schx-topics .col-md-5 {
  flex: 0 0 300px;
  max-width: 300px;
}

.site-main .widget-cell.schx-topics .col-md-5 img {
  display: block;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
}

.site-main .widget-cell.schx-topics .col-md-7 {
  flex: 1 1 auto;
  min-width: 0;
}

.site-main .widget-cell.schx-topics .list-group-item {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 20px;
  margin-bottom: 10px;
}

.site-main .widget-cell.schx-topics .list-group-item:last-child {
  margin-bottom: 0;
}

.site-main .widget-cell.schx-topics .list-group-item > .d-flex {
  align-items: baseline;
  gap: 8px;
}

.site-main .widget-cell.schx-topics .list-group-item > .d-flex > span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #5e5e5e;
}

.site-main .widget-cell.schx-topics .list-group-item .text-muted {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  color: #5e5e5e !important;
}

/* 线上学科专题只有标题 + 发布日期，不展开字段摘要 */
.site-main .widget-cell.schx-topics .list-group-item small.d-block {
  /* Bootstrap 的 .d-block 是 display:block !important，这里必须同样 !important 才盖得住 */
  display: none !important;
}

/* 头条列表（其他站用的 featured_list）：左图 + 右列表 */
.site-main .db-featured {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0 15px;
}

.site-main .db-featured-left {
  display: flex;
  flex-direction: column;
}

.site-main .db-featured-cover {
  display: block;
  margin-bottom: 10px;
}

.site-main .db-featured-cover img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
}

.site-main .db-featured-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.site-main .db-featured-summary {
  font-size: 13px;
  color: #999;
}

/* ---------- 资讯列表：标题单行省略 + 日期右对齐，行距 27/31 ---------- */

.site-main .widget-cell.schx-news .list-group-item {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 27px;
  margin-bottom: 4px;
}

.site-main .widget-cell.schx-news .list-group-item:last-child {
  margin-bottom: 0;
}

.site-main .widget-cell.schx-news .list-group-item > .d-flex {
  align-items: baseline;
  gap: 8px;
}

.site-main .widget-cell.schx-news .list-group-item > .d-flex > span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #5e5e5e;
}

.site-main .widget-cell.schx-news .list-group-item .text-muted {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  color: #5e5e5e !important;
}

.site-main .widget-cell.schx-news .list-group-item small.d-block {
  display: none;
}

/* 通用列表（其他数据块） */
.site-main .db-list .db-list-item,
.site-main .db-list a {
  font-size: 14px;
  line-height: 32px;
  color: #666;
}

/* ---------- 内页：左 3 侧栏菜单 + 右 9 正文 ---------- */

.site-main .db-side-item {
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #444;
}

.site-main .db-side-item.active,
.site-main .db-side-item.is-active {
  background: #38b8aa;
  color: #fff;
}

.site-main .db-side-icon,
.site-main .db-side-img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  object-fit: contain;
}

.site-main .db-side-title {
  font-size: 15px;
}

/* 正文：标题 22px 居中 + 下分割线，正文 14px/28px */
.site-main .widget-cell.schx-article {
  padding: 10px 60px 40px;
}

.site-main .schx-article-head {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.site-main .schx-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.site-main .schx-article {
  font-size: 14px;
  line-height: 28px;
  color: #555;
}

.site-main .schx-article a {
  color: #38b8aa;
  text-decoration: underline;
}

/* 内页已有正文标题时隐藏页级 h1，避免同屏两个标题 */
.site-main .page-content:has(.schx-article) > .page-title {
  display: none;
}

/* ---------- 页脚：#1e2022 三行居中 ---------- */

.site-footer,
.site-footer .site-footer-inner {
  background: #1e2022;
  color: #a9a9a9;
}

.site-footer .container {
  max-width: 1324px;
}

.site-footer {
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  line-height: 24px;
  /* ⚠️ 不要在这里写 white-space:pre-line：.site-footer 里标签之间的缩进/换行
     也会被当成换行符，凭空多出 1–2 行（实测多 48px）。
     需要保留换行的是版权文本本身，交给下面的 .site-footer-text。 */
  white-space: normal;
}

/* 外壳用的是网格：页脚这里拍平成普通块，否则每个 shell-cell 会占满一整行网格高度 */
.site-footer .shell-grid,
.site-footer .shell-cell {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}

.site-footer .site-footer-text {
  margin: 0;
  color: #a9a9a9;
}

/* ⚠️ 外壳视图的标签之间有换行/缩进（文本节点），它们会各自撑出一个 24px 的行盒 ——
   页脚就这样凭空高出 100 多像素。把容器行高归零，只让正文段落自己有行高。 */
.site-footer .container,
.site-footer .shell-grid,
.site-footer .shell-cell {
  line-height: 0;
  font-size: 0;
}

.site-footer .site-footer-text {
  font-size: 14px;
  line-height: 24px;
  white-space: pre-line;   /* 配置里的版权/地址是多行文本，保留换行 */
}


.site-footer a {
  color: #a9a9a9;
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- 窄屏（≤991px）：单列、清掉负边距 ---------- */

@media (max-width: 991px) {
  .site-main .widget-cell {
    margin: 0 0 16px !important;
  }

  .site-main .db-featured {
    grid-template-columns: 1fr;
  }

  .site-main .db-featured-cover,
  .site-main .db-featured-cover img {
    width: 100%;
    height: auto;
  }

  .site-nav .nav-item {
    margin-left: 16px;
  }
}

/* ---------- 2026-11-03 用户反馈批次 ---------- */

/* 内容页的页级标题：线上是 14px 加粗 + 细下划线的小标题条（如「资源服务」） */
.site-main .page-content > .page-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 4px 0;
  margin: 0 0 12px;
  border-bottom: 1px solid #ddd;
}

/* 正文里的「下载」按钮：线上是灰底白字的 btn-default（bs3），
   包内正文是纯 HTML，没有 bootstrap 3 的 .btn，这里补一套等价样式 */
.site-main .schx-article a[download] {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 8px;
  background: #aea79f;
  border: 1px solid #aea79f;
  border-radius: 4px;
  color: #fff !important;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
}

.site-main .schx-article a[download]:hover {
  background: #8f8a83;
  border-color: #8f8a83;
  color: #fff !important;
}

/* 资源服务页：两个面板之间不留 120px 空行，第一个面板只占 1/3 宽 */
.site-main .widget-cell.schx-res {
  margin-bottom: 0;
}

.site-main .widget-cell.schx-topics {
  overflow: hidden;
}

/* ---------- 2026-11-05 用户反馈批次：专题列表页 ---------- */

/* 线上 /index/topicLists 是 me-list topic-list：白底面板，标题在面板头部，
   每行 48px（标题左 + 日期右 + 标题前 4×4 小方块），下面是分页条。
   平台这边页面标题是页级 h1（在面板外），所以把 h1 和内容块拼成同一张面板：
   h1 当头部，块当主体。 */
.site-main .page-content:has(.widget-cell.schx-topic-list) > .page-title {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
  padding: 10px 20px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.site-main .widget-cell.schx-topic-list {
  /* 块默认有 8px 外边距（画布格子内缩），这里去掉，才能和标题条左右对齐成一张面板 */
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  padding: 10px 20px 20px;
}

.site-main .widget-cell.schx-topic-list .list-group-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.site-main .widget-cell.schx-topic-list .list-group-item > .d-flex {
  position: relative;
  display: block;
  height: 48px;
  line-height: 48px;
  padding-right: 70px;
}

.site-main .widget-cell.schx-topic-list .list-group-item > .d-flex > span:first-child {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
}

/* 线上标题前的 4×4 小方块（a > .ad-icon） */
.site-main .widget-cell.schx-topic-list .list-group-item > .d-flex > span:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  vertical-align: 3px;
  background: #5e5e5e;
}

.site-main .widget-cell.schx-topic-list .list-group-item > .d-flex > small {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #ccc !important;
}

.site-main .widget-cell.schx-topic-list .list-group-item:hover > .d-flex > span:first-child {
  color: #38b8aa;
}

.site-main .widget-cell.schx-topic-list .list-group-item:hover > .d-flex > span:first-child::before {
  background: #38b8aa;
}

/* 分页条：线上是 bs3 pagination（青绿字 + 当前页浅灰底） */
.site-main .widget-cell.schx-topic-list .pagination {
  margin: 20px 0 0;
}

.site-main .widget-cell.schx-topic-list .pagination .page-link {
  color: #38b8aa;
  background: #fff;
  border-color: #ddd;
  padding: 8px 12px;
}

.site-main .widget-cell.schx-topic-list .pagination .active > .page-link {
  color: #aea79f;
  background: #f5f5f5;
  border-color: #ddd;
}

.site-main .widget-cell.schx-topic-list .pagination .disabled > .page-link {
  color: #aea79f;
  background: #fff;
  border-color: #ddd;
}
