/* dsx_legacy 内页修正 */
#sp-breadcrumb-block {
  background: #f6f6f6;
  padding: 0;
  margin-bottom: 30px;
}
#sp-breadcrumb {
  background: none;
  padding: 0 15px;
}
#sp-breadcrumb .breadcrumb {
  background: none;
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
}
#sp-breadcrumb .breadcrumb > li + li:before {
  content: "›";
  color: #999;
}
#sp-component {
  padding-bottom: 30px;
}
#sp-component .page-header {
  border: 0;
  margin: 0 0 15px;
  padding: 0;
}
#sp-component .page-header h1 {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: #222;
  margin: 0;
}
#sp-component .page-header h2 {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin: 10px 0;
}
.article-info {
  color: #999;
  font-size: 13px;
  margin-bottom: 15px;
}
.article-info dd {
  margin-bottom: 3px;
}
.com-content-article__body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.com-content-article__body img {
  max-width: 100%;
  height: auto;
}
.pagination .page-link {
  color: #2796bd;
}

/* Bootstrap 5 兼容旧站 BS3 布局 */
.float-end { float: right !important; }
.float-start { float: left !important; }
.d-flex { display: flex !important; }

/* Bootstrap 5 可访问性工具类（旧模板未提供，会导致隐藏文字显示出来） */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 面包屑 */
.mod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: none;
  list-style: none;
  font-size: 13px;
  color: #666;
}
.mod-breadcrumbs__here { display: none !important; }
.mod-breadcrumbs__divider { display: none !important; }
.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #999;
  margin-right: 6px;
}
.mod-breadcrumbs a { color: #666; }
.mod-breadcrumbs a:hover { color: #2796bd; }
#sp-breadcrumb .sp-column { padding: 0; }
#sp-breadcrumb .mod-breadcrumbs,
#sp-breadcrumb ol.breadcrumb { list-style: none; }
#sp-breadcrumb .mod-breadcrumbs__wrapper:before,
#sp-breadcrumb .mod-breadcrumbs:before,
#sp-breadcrumb ol.breadcrumb:before { content: none !important; display: none !important; }
#sp-breadcrumb ol.breadcrumb > li:before { display: none !important; }
#sp-breadcrumb ol.breadcrumb > li:after {
  content: "";
  height: 5px;
  width: 5px;
  background: #b1b1b1;
  border-radius: 5px;
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
}
#sp-breadcrumb ol.breadcrumb > li.active:after { display: none; }
#sp-breadcrumb ol.breadcrumb > li { font-size: 12px; }
/* 导航当前项 */
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li:hover > a { background: #1b7f9f; color: #fff; }

/* 文章信息 */
.article-info-term { display: none !important; }

/* 分类列表：隐藏作者列，保留名称和点击数 */
.com-content-category table th:nth-child(2),
.com-content-category table td:nth-child(2) { display: none; }
.com-content-category .counter { display: none; }

/* 分页样式（旧站蓝色方块） */
.pagination {
  display: inline-flex;
  gap: 2px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.pagination .page-link {
  display: block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
}
.pagination .page-item.active .page-link {
  background: #2796bd;
  border-color: #2796bd;
  color: #fff;
}
.pagination .page-link:hover { background: #f2f2f2; }

/* 站内搜索结果 */
.dsx-search-results .search-summary {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}
.dsx-search-results .search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dsx-search-results .search-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.dsx-search-results .search-title {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: normal;
}
.dsx-search-results .search-title a {
  color: #2796bd;
  text-decoration: none;
}
.dsx-search-results .search-title a:hover { text-decoration: underline; }
.dsx-search-results .search-date {
  color: #999;
  font-size: 12px;
  margin-bottom: 6px;
}
.dsx-search-results .search-snippet {
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}
.dsx-search-results .search-tip { color: #666; }

/* 首页轮播：整张图片可点击 */
.sp-slider-item .sp-slider-image {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* 首页轮播：中小屏适配（旧模板只在桌面端显示，文字边距会把窄屏撑坏） */
@media (max-width: 1199px) {
  .sp-university-layout .sp-slider-content .sp-introtext {
    margin: 20px 40px 10px;
  }
}

@media (max-width: 991px) {
  .sp-university-layout .sp-slider-content {
    padding: 0 15px;
  }
  .sp-university-layout .sp-slider-content .sp-title {
    font-size: 34px;
    line-height: 1.25;
  }
  .sp-university-layout .sp-slider-content .sp-introtext {
    margin: 20px 40px 10px;
  }
}

/* 旧站遗留的空 SPPB 区块，窄屏会在图片新闻和底部之间撑出大片空白 */
@media (max-width: 991px) {
  #section-id-1488967667777,
  #section-id-1489028018413,
  #section-id-1489028018418 {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* 手机端：items 与容器同高，图片整体显示（不要被截断为上半部分） */
  .sp-university-layout .sp-slider-item,
  .sp-university-layout .sp-slider-item .sp-slider-image {
    height: 400px;
  }
  .sp-university-layout .sp-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 18px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
  }
  .sp-university-layout .sp-slider-content .sp-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    text-align: left;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
  }
  .sp-university-layout .sp-slider-content .sp-introtext {
    display: none;
  }
  .sp-university-layout .sp-slider-controllers > a {
    width: 34px !important;
    height: 34px !important;
    margin-top: -17px !important;
    line-height: 34px !important;
    background: transparent !important;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.65);
    -webkit-tap-highlight-color: transparent;
  }
  .sp-university-layout .sp-slider-controllers > a span {
    font-size: 34px;
    line-height: 34px;
  }
}

@media (max-width: 480px) {
  .sp-university-layout .sp-slider-item,
  .sp-university-layout .sp-slider-item .sp-slider-image {
    height: 300px;
  }
}

/* 文章评分（旧站星星） */
.post_rating .voting-result {
  display: inline;
  margin-left: 6px;
  color: #888;
  font-size: 13px;
}
.post_rating .voting-result.is-success {
  color: #2e9b4f;
  font-weight: 500;
}
.post_rating .voting-result.is-error {
  color: #c0392b;
}
.post_rating .ajax-loader {
  display: none;
  margin-left: 6px;
  color: #2796bd;
}
.post_rating .voting-symbol .star {
  cursor: pointer;
}

/* 移动端 offcanvas 菜单 */
.offcanvas-menu {
  overflow-y: auto;
  overflow-x: hidden;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li > ul.collapse {
  display: none;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li > ul.collapse.in {
  display: block;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li .offcanvas-menu-toggler {
  color: #fff;
  z-index: 2;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li > a {
  display: block;
  padding-right: 52px;
}

/* 顶部搜索框：输入框 + 搜索按钮 */
#sp-top3 .search.mod_search102 form {
  display: flex;
  align-items: center;
  width: 220px;
  max-width: 100%;
  margin-left: auto;
}
#sp-top3 .search.mod_search102 input.search-query {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 34px;
  border-radius: 4px 0 0 4px;
  border-right: 0;
}
#sp-top3 .search.mod_search102 .search-btn {
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0;
  border: 1px solid #2796bd;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #2796bd;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
#sp-top3 .search.mod_search102 .search-btn:hover,
#sp-top3 .search.mod_search102 .search-btn:focus {
  background: #1b7f9f;
  border-color: #1b7f9f;
  color: #fff;
}
#sp-top3 .search.mod_search102 .search-btn:focus-visible {
  outline: 2px solid #1b7f9f;
  outline-offset: 2px;
}

/* ===== 手机端优化 ===== */
@media (max-width: 767px) {
  /* 登录弹窗：手机端水平、垂直居中 */
  #myLogin.in {
    display: flex !important;
    overflow-y: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 20px !important;
    box-sizing: border-box;
  }
  .layout2 #myLogin .modal-dialog {
    width: 100%;
    max-width: 380px;
    margin: auto;
  }

  /* 登录页：登录框在手机端居中，标签与输入框上下排列 */
  .com-users-login .com-users-login__form {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .com-users-login .form-horizontal .control-label {
    float: none;
    width: auto;
    padding: 0 0 6px;
    text-align: left;
  }
  .com-users-login .form-horizontal .controls {
    margin-left: 0;
  }
  .com-users-login .form-horizontal .controls .form-control {
    width: 100%;
  }
  .com-users-login .password-group .input-group {
    display: flex;
    width: 100%;
  }
  .com-users-login .password-group .input-group .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .com-users-login .password-group .input-group .input-password-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .com-users-login .com-users-login__submit .controls {
    width: 100%;
    text-align: center;
  }
  .com-users-login .com-users-login__submit .btn {
    width: 100%;
  }
  .com-users-login .plg_system_webauthn_login_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }
  .com-users-login .plg_system_webauthn_login_button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  /* 分类列表分页：手机端自动换行，避免右侧页码被裁切 */
  .com-content-category__pagination {
    width: 100%;
  }
  .com-content-category__pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 14px 0 20px;
  }
  .com-content-category__pagination .pagination .page-link {
    padding: 4px 7px;
    font-size: 13px;
  }

  /* 文章上一篇/下一篇：手机端居中排列，空间不足时自动换行 */
  .pagenavigation .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 16px 0 20px;
  }
  .pagenavigation .pagination .btn {
    margin: 0;
  }

  /* 顶部欢迎条压缩为一行 */
  #sp-header-top {
    padding: 4px 0;
  }
  #sp-header-top .yt-loginform {
    margin: 0;
    padding: 0;
  }
  #sp-header-top .yt-loginform > li {
    line-height: 22px;
  }

  /* logo 与搜索框各占一行，搜索框居中 */
  #sp-header-center {
    margin: 10px 0 12px;
  }
  #sp-header-center #sp-logo {
    width: 100%;
    float: none;
    padding: 0;
    text-align: center;
  }
  #sp-header-center #sp-logo h1.logo img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
  #sp-top3 {
    width: 100%;
    float: none;
    padding: 0;
  }
  #sp-top3 .sp-column {
    padding: 0;
  }
  #sp-top3 .sp-module {
    display: block;
    float: none;
    width: 100%;
    margin: 8px auto 0;
  }
  #sp-top3 .search.mod_search102 {
    text-align: center;
  }
  #sp-top3 .search.mod_search102 form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  #sp-top3 .search.mod_search102 input.search-query {
    width: auto;
    box-sizing: border-box;
  }

  /* 旧站遗留的空 SPPB 区块，窄屏会撑出大片空白 */
  #sp-block-bottom {
    padding: 26px 0 10px;
  }
  #sp-block-bottom #sp-bottom1,
  #sp-block-bottom #sp-bottom2,
  #sp-block-bottom #sp-bottom3,
  #sp-block-bottom #sp-bottom4 {
    width: 50%;
    float: left;
    padding-left: 10px;
    padding-right: 10px;
  }
  #sp-block-bottom .sp-module {
    margin-bottom: 16px;
  }
  #sp-block-bottom .sp-module h3.sp-module-title {
    margin: 0 0 8px;
    font-size: 14px;
  }
  #sp-block-bottom .sp-module .menu > li a {
    font-size: 12px;
    line-height: 22px;
  }
  #sp-block-bottom .custom ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #sp-block-bottom .custom li {
    font-size: 12px;
    line-height: 20px;
  }

  /* 页脚 */
  #sp-footer {
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
  }

  /* 文章页：图片、表格不撑破屏幕 */
  #sp-component .page-header h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  .com-content-article__body {
    font-size: 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .com-content-article__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  /* 面包屑 */
  #sp-breadcrumb-block {
    margin-bottom: 15px;
  }
  #sp-breadcrumb .breadcrumb {
    padding: 6px 0;
    font-size: 12px;
  }
}

/* Retina 屏：模板会隐藏 .sp-default-logo，但页面里没有 retina logo，手机端会看不到 logo */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
  #sp-header-center .sp-default-logo {
    display: inline-block !important;
  }
}




/* SEO / performance additions */
.dsx-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-slider-item .sp-slider-image{display:block;width:100%;height:100%;overflow:hidden}
.sp-slider-item .sp-slider-image picture{display:block;width:100%;height:100%}
.sp-slider-item .sp-slider-image img{display:block;width:100%;height:100%;object-fit:cover}
.dsx-image-slider{position:relative;height:700px;overflow:hidden;border-radius:8px;background:#111}
.dsx-image-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .5s ease}
.dsx-image-slide.is-active{opacity:1;visibility:visible;z-index:2}
.dsx-image-slide a{display:block;width:100%;height:100%}
.dsx-image-slide picture{display:block;width:100%;height:100%}
.dsx-image-slide img{display:block;width:100%;height:100%;object-fit:cover}
.dsx-image-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:24px 20px 18px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.78))}
.dsx-image-caption h3{margin:0;font-size:18px;line-height:1.4}
.dsx-image-caption h3 a{color:#fff;text-decoration:none}
.dsx-image-dots{position:absolute;right:16px;bottom:16px;z-index:3;display:flex;gap:6px}
.dsx-image-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer}
.dsx-image-dots button.is-active{background:#fff}
@media(max-width:991px){.dsx-image-slider{height:420px}}
@media(max-width:480px){.dsx-image-slider{height:300px}}
#sp-header-center #sp-logo .logo img{margin:0 auto;max-width:100%;height:auto;}
