/* sub7 修复层:字体、图片比例、正文排版、移动端适配(须作为最后一个 stylesheet 引入) */
:root { --site-color: #006baf; }

body { font-family: var(--font-cn); font-size: 14px; line-height: 1.6; }
.ny_list .list_img, .list_item .list_img { background: #f3f5f7; }
.ny_list .view .more a, .list_item .view a { font-family: var(--font-cn); }
.content, .content p { font-family: var(--font-cn); }

/* logo */
.logo .site-logo-text { height: 92px; font-size: 32px; }
.logo img { max-width: 100%; height: auto; max-height: 92px; }

/* 焦点图 */
.flexslider .slides img { width: 100%; height: auto; aspect-ratio: 1200 / 357; object-fit: cover; }
.slides li a p { font-family: var(--font-cn); }

/* 列表:固定比例缩略图,去掉 hover 缩放 */
.ny_list .list_img img, .list_item .list_img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: none; }
.ny_list .list_img:hover img, .list_item .list_img:hover img { transform: none; }
.ny_list h3, .list_item h3 { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.ny_list h3 a, .list_item h3 a { color: #222; }
.ny_list h3 a:hover, .list_item h3 a:hover { color: var(--site-color); }
.ny_list .cnt, .list_item .cnt { font-size: 14px; line-height: 1.7; color: #777; }
.ny_list .view, .list_item .view { color: #aaa; }
.list_item .view a { border-radius: 2px; }
.list_item .view a:hover, .ny_list .view .more a:hover { color: #fff; background: var(--site-color); border-color: var(--site-color); }

/* 侧栏图 */
.pageright .toplist .topbox_gl dd img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.pageright .toplist .topbox_gl dt a:hover { color: var(--site-color); }

/* 分页(Pagenav 容器内的 ul.pagination 由 front.css 统一) */
.Pagenav { clear: both; padding: 10px 0 20px; }

/* 文章页 */
.viewtitle h1 { line-height: 1.4; font-weight: 600; }
.viewtitle .source { line-height: 1.8; }
.content.fx-content { width: 100%; min-height: 0; font-size: 16px; line-height: 1.75; padding: 0 10px; box-sizing: border-box; }
.content.fx-content p { line-height: 1.75; padding-bottom: 0; margin: 0 0 1em; }
.content.fx-content p img { max-width: 100% !important; }
.content.fx-content iframe { width: 100% !important; max-width: 100% !important; }
.content.fx-content h2:after { display: none; }
.content.fx-content li { float: none; width: auto; margin: 0; border: 0; background: none; }
.content.fx-content li:hover { box-shadow: none; }
.content.fx-content a { text-decoration: underline; }

/* 友链 */
.frendlink .linkwrap a:hover { color: var(--site-color); }

/* 移动端 */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .wrap, .wrapper { width: auto; max-width: 100%; padding-left: 12px; padding-right: 12px; box-sizing: border-box; }
  .top { height: auto; }
  .top .wrap { padding-top: 0; padding-bottom: 0; }
  .logomain { padding-top: 8px; padding-bottom: 8px; }
  .logo { height: auto; line-height: 1.2; margin: 0 0 8px; overflow: visible; }
  .logo a { float: none; display: block; }
  .logo .site-logo-text { height: auto; font-size: 24px; }
  .logo img { max-height: 56px; width: auto; }
  .search { position: static; height: auto; width: 100%; }
  .search .bdcs-search-form, .search form { display: flex; width: 100%; }
  .search .search-txt { float: none; flex: 1 1 auto; min-width: 0; width: auto; box-sizing: border-box; }
  .search .search-btn { float: none; flex: 0 0 54px; margin-left: 0; }

  .navmain { height: auto; line-height: 42px; font-size: 15px; }
  .nav.wrap { padding-left: 0; padding-right: 0; }
  .nav .box { height: auto; width: auto; padding: 0; }
  .nav .box.wrap, .nav .wrap.box { width: auto; }
  #nav_links { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #nav_links::-webkit-scrollbar { display: none; }
  #nav_links li { float: none; flex: 0 0 auto; }
  .nav .wrap li > a { padding: 0 16px; }

  .flexslider { margin: 8px 0 28px; min-height: 0; }
  .flex-control-nav { bottom: -22px; }
  .flex-control-paging li a { width: 20px; }
  .slides li a p { height: 30px; line-height: 30px; font-size: 14px; text-indent: 0; padding: 0 8px; box-sizing: border-box; white-space: nowrap; text-overflow: ellipsis; }
  .flexslider:hover .flex-prev, .flexslider:hover .flex-next, .flex-direction-nav { display: none; }

  .index_left, .pageleft, .pageright { float: none; width: auto; max-width: 100%; }
  .pageright { padding: 0; margin-top: 16px; }
  .pageright .toplist .topbox_gl { width: auto; }
  .pageleft.fl { float: none; }

  .pagetitle { height: auto; min-height: 35px; }
  .pagetitle h1 { padding-left: 12px; }
  .pagetitle .crumbs { display: none; }

  .ny_list, .list_item { display: grid; grid-template-columns: 120px 1fr; column-gap: 12px; max-height: none; overflow: visible; padding: 14px 0; }
  .ny_list .list_img, .list_item .list_img { float: none; grid-row: 1 / span 2; width: 120px; height: auto; aspect-ratio: 4 / 3; margin: 0; align-self: start; }
  .ny_list div, .list_item div { max-height: none; overflow: hidden; min-width: 0; }
  .ny_list h3, .list_item h3 { font-size: 16px; line-height: 1.4; margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .ny_list .cnt, .list_item .cnt { display: none; }
  .ny_list .view, .list_item .view { grid-column: 2; height: auto; line-height: 20px; margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .ny_list .view span, .list_item .view span { float: none; line-height: 20px; font-size: 12px; }
  .ny_list .view .more { display: none; }
  .list_item .view a { float: none; }

  .viewtitle h1 { font-size: 22px; padding: 14px 0 6px; text-align: left; }
  .viewtitle .source { text-align: left; margin-top: 8px; font-size: 12px; }
  .viewtitle .source span { display: inline-block; margin-right: 12px; }
  .crumbs { line-height: 32px; }
  .crumbs2 .fl { float: none; }
  .content.fx-content { padding: 0; }
  .content.fx-content p { text-indent: 0; }

  .frendlink { margin-top: 12px; }
  .frendlink .linktitle strong { font-size: 18px; }
  .footer-copyright { padding: 20px 0 15px; }
  .footer-copyright .wrap { padding-left: 12px; padding-right: 12px; }
}
