/* 统一模板样式 - 用于bk.html、news.html、bklist.html和newslist.html */

/* 全局链接样式 - 去除所有下划线 */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

/* 搜索框样式 */
.search-box {
  position: relative;
  background-color: #f2f7fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
}

.search-close:hover {
  color: #333;
}

/* 面包屑导航样式 */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  margin-right: 5px;
}

.breadcrumb a:hover {
  color: #999;
}

.breadcrumb span {
  margin-right: 5px;
}

/* 文章内容样式 */
.arc_content .title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
  word-break: break-word;
}

.arc_content .tag {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.arc_content .tag span {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
}

.arc_content .tag .icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.arc_content .editbox {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.arc_content .editbox img {
  max-width: 100%;
  height: auto;
}

/* 上一篇/下一篇导航 */
.pagenav {
  display: flex;
  margin: 30px 0;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.pagenav li {
  flex: 1;
  list-style: none;
}

.pagenav li a {
  display: block;
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 4px;
  color: #666;
  transition: all 0.3s;
  font-size: 14px;
  text-decoration: none;
}

.pagenav li a:hover {
  background: #e0e0e0;
  color: #333;
}

.pagenav li a span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
  color: #333;
  font-weight: 500;
}

/* 相关推荐 */
.arc_rela .title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  padding-left: 0;
}

.arc_rela .title:before {
  display: none;
}

.arc_rela_list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.arc_rela_list li {
  width: 50%;
  padding: 0 10px;
  margin-bottom: 10px;
  list-style: none;
  list-style-type: none;
  background: none;
  position: relative;
}

.arc_rela_list li:before {
  display: none;
}

.arc_rela_list li a {
  display: block;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
  text-decoration: none;
}

.arc_rela_list li a:hover {
  color: #2196f3;
}

/* 列表页样式 */
.mar_top {
  margin-bottom: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mar_top .title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  word-break: break-word;
}

.mar_top .brief {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.mar_list {
  margin: 0;
  padding: 0;
}

.mar_list .item {
  display: flex;
  margin-bottom: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.mar_list .item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mar_list .imgbox {
  width: 320px;
  height: 166px;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
}

.mar_list .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f5f5f5;
  transition: all 0.5s;
}

.mar_list .imgbox:hover img {
  transform: scale(1.05);
}

.mar_list .info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mar_list .title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  transition: all 0.3s;
  text-decoration: none;
  word-break: break-word;
}

.mar_list .title:hover {
  color: #2196f3;
}

.mar_list .brief {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.mar_list .bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mar_list .tag {
  color: #999;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.mar_list .tag .icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}

.mar_list .more {
  display: inline-block;
  padding: 6px 15px;
  background: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
  text-decoration: none;
}

.mar_list .more:hover {
  background: #2196f3;
  color: #fff;
}

/* 分页样式 - 美化版 */
.pagebar {
  margin-top: 30px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 5px;
}

.pagination a {
  padding: 8px 12px;
  margin: 3px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 3px;
  background: #f5f5f5;
  min-width: 18px;
  text-align: center;
  box-shadow: none;
}

.pagination a:hover {
  background: #e0e0e0;
  color: #333;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.pagination a.active {
  background: #2196f3;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}

.pagination .st {
  font-weight: bold;
  background: #e0e0e0;
}

.pagination .st:hover {
  background: #2196f3;
  color: #fff;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

/* 当前页/总页数样式 */
.pagination a.page-current {
  background: #f5f5f5;
  color: #666;
  cursor: default;
  text-decoration: none;
  box-shadow: none;
}

/* 添加总页数链接样式 */
.pagination a.page-count {
  background: #2196f3;
  color: #fff;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: none;
}

.pagination a.page-count:hover {
  background: #0d8aee;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

/* 添加第一页链接样式 */
.pagination a.page-first {
  background: #4caf50;
  color: #fff;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: none;
}

.pagination a.page-first:hover {
  background: #3d8b40;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

/* 响应式样式 */
/* 大屏幕设备 */
@media (min-width: 1200px) {
  .breadcrumb {
    font-size: 16px;
    padding: 12px 18px;
  }
  
  .search-box {
    padding: 18px;
    margin-bottom: 20px;
  }
  
  .search-input {
    height: 42px;
    font-size: 16px;
  }
  
  .arc_content .title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .arc_content .tag {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .arc_content .editbox {
    font-size: 16px;
    line-height: 1.8;
  }
  
  .pagenav li a {
    font-size: 15px;
    padding: 10px 15px;
  }
  
  .arc_rela .title {
    font-size: 20px;
  }
  
  .arc_rela_list li a {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* 中等屏幕设备 */
@media (max-width: 1199px) and (min-width: 992px) {
  .breadcrumb {
    font-size: 15px;
    padding: 11px 16px;
  }
  
  .search-box {
    padding: 15px;
    margin-bottom: 18px;
  }
  
  .search-input {
    height: 40px;
    font-size: 15px;
  }
  
  .arc_content .title {
    font-size: 26px;
    margin-bottom: 12px;
  }
  
  .arc_content .tag {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .arc_content .editbox {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .pagenav li a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .arc_rela .title {
    font-size: 18px;
  }
  
  .arc_rela_list li a {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* iPad Pro 11英寸 (1024px) */
@media (width: 1024px) {
  .breadcrumb {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .search-box {
    padding: 14px;
    margin-bottom: 16px;
  }
  
  .search-input {
    height: 38px;
    font-size: 15px;
  }
  
  /* 修改左右布局调整 */
  .mar_l {
    width: 25%;
    float: left;
    margin-right: 2%;
  }
  
  .mar_r {
    width: 73%;
    float: right;
  }
  
  .mar_main .auto {
    width: 100%;
    padding: 0 2%;
  }
  
  .arc_content .title {
    font-size: 24px;
    margin-bottom: 10px;
    white-space: normal;
    word-break: break-word;
  }
  
  .arc_content .tag {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .arc_content .editbox {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .mar_top .title {
    white-space: normal;
    word-break: break-word;
  }
  
  .mar_list .item .title {
    white-space: normal;
    word-break: break-word;
  }
  
  .mar_list .imgbox {
    width: 280px;
    height: 145px; /* 保持接近2:1的宽高比 */
  }
  
  .mar_list .imgbox img {
    object-fit: cover;
    background-color: #f5f5f5;
  }
}

/* iPad 10.9英寸 (820px) */
@media (width: 820px) {
  .breadcrumb {
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 15px;
  }
  
  .search-box {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .search-input {
    height: 36px;
    font-size: 14px;
  }
  
  /* 修改左右布局调整 */
  .mar_l {
    width: 28%;
    float: left;
    margin-right: 2%;
  }
  
  .mar_r {
    width: 70%;
    float: right;
  }
  
  /* 调整左侧栏目样式，确保文字能完整显示 */
  .mar_l li a {
    font-size: 16px;
    padding-left: 75px;
    background-position: 35px center;
    background-size: 25px;
  }
  
  .mar_main .auto {
    width: 100%;
    padding: 0 2%;
  }
  
  .arc_content .title {
    font-size: 22px;
    margin-bottom: 10px;
    white-space: normal;
    word-break: break-word;
  }
  
  .arc_content .tag {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .arc_content .editbox {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .mar_top .title {
    font-size: 20px;
    white-space: normal;
    word-break: break-word;
  }
  
  .mar_list .item .title {
    white-space: normal;
    word-break: break-word;
  }
  
  .mar_list .imgbox {
    width: 260px;
    height: 135px; /* 保持接近2:1的宽高比 */
  }
  
  .mar_list .imgbox img {
    object-fit: cover;
    background-color: #f5f5f5;
  }
}

/* 平板电脑横屏 */
@media (max-width: 991px) and (min-width: 769px) {
  .breadcrumb {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .search-box {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .search-input {
    height: 38px;
    font-size: 15px;
  }
  
  /* 添加左右布局调整 */
  .mar_l {
    width: 25%;
    float: left;
    margin-right: 2%;
  }
  
  .mar_r {
    width: 73%;
    float: right;
  }
  
  .mar_main .auto {
    width: 100%;
    padding: 0 2%;
  }
  
  .arc_content .title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .arc_content .tag {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .arc_content .tag span {
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 5px;
  }
  
  .arc_content .editbox {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .pagenav li a {
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .pagenav li a span {
    display: block;
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .arc_rela .title {
    font-size: 17px;
  }
  
  .arc_rela_list li a {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .mar_list .imgbox {
    width: 240px;
    height: 125px; /* 保持接近2:1的宽高比 */
  }
  
  .mar_list .imgbox img {
    object-fit: cover;
    background-color: #f5f5f5;
  }
}

/* 平板电脑竖屏 */
@media (max-width: 768px) and (min-width: 577px) {
  .breadcrumb {
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 15px;
  }
  
  .search-box {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .search-input {
    height: 36px;
    font-size: 14px;
  }
  
  /* 平板竖屏设备上的左右布局调整 */
  .mar_l {
    width: 30%;
    float: left;
  }
  
  .mar_r {
    width: 68%;
    float: right;
  }
  
  .mar_main .auto {
    width: 100%;
    padding: 0 2%;
  }
  
  .arc_content .title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .arc_content .tag {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .arc_content .tag span {
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 5px;
  }
  
  .arc_content .editbox {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .arc_content .editbox img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .pagenav {
    flex-direction: column;
  }
  
  .pagenav li {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .pagenav li a {
    font-size: 13px;
    padding: 8px 10px;
    display: block;
  }
  
  .pagenav li a span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .arc_rela .title {
    font-size: 16px;
  }
  
  .arc_rela_list li {
    width: 100%;
  }
  
  .arc_rela_list li a {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .mar_list .item {
    flex-direction: column;
  }
  
  .mar_list .imgbox {
    width: 100%;
    height: 0;
    padding-bottom: 51.28%; /* 接近2:1的宽高比 (100%÷1.95) */
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .mar_list .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
  }
}

/* 手机横屏 */
@media (max-width: 576px) and (min-width: 481px) {
  .breadcrumb {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }
  
  .search-box {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .search-input {
    height: 34px;
    font-size: 14px;
    padding: 0 15px;
  }
  
  .arc_content .title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .arc_content .tag {
    font-size: 11px;
    margin-bottom: 12px;
  }
  
  .arc_content .tag span {
    margin-right: 6px;
    display: inline-block;
    margin-bottom: 5px;
  }
  
  .arc_content .tag .icon {
    width: 14px;
    height: 14px;
  }
  
  .arc_content .editbox {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .arc_content .editbox img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .pagenav {
    flex-direction: column;
  }
  
  .pagenav li {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .pagenav li a {
    font-size: 12px;
    padding: 6px 8px;
    display: block;
  }
  
  .pagenav li a span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .arc_rela .title {
    font-size: 15px;
  }
  
  .arc_rela_list li {
    width: 100%;
  }
  
  .arc_rela_list li a {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .mar_list .item {
    flex-direction: column;
  }
  
  .mar_list .imgbox {
    width: 100%;
    height: 0;
    padding-bottom: 51.28%; /* 接近2:1的宽高比 */
    margin-right: 0;
    margin-bottom: 15px;
    position: relative;
  }
  
  .mar_list .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
  }
  
  .mar_list .title {
    font-size: 16px;
  }
  
  .mar_list .brief {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .mar_list .bot {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mar_list .tag {
    margin-bottom: 10px;
  }
  
  .pagebar {
    margin-top: 15px;
  }
  
  .pagination {
    padding: 2px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .pagination a {
    padding: 5px 8px;
    margin: 1px;
    font-size: 14px;
    min-width: 20px;
    box-shadow: none;
  }
  
  .pagination a:hover {
    transform: none;
    box-shadow: none;
  }
}

/* 手机竖屏 */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  
  .search-box {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .search-input {
    height: 32px;
    font-size: 13px;
    padding: 0 12px;
  }
  
  .arc_content .title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .arc_content .tag {
    font-size: 10px;
    margin-bottom: 10px;
  }
  
  .arc_content .tag span {
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
  }
  
  .arc_content .tag .icon {
    width: 12px;
    height: 12px;
  }
  
  .arc_content .editbox {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .arc_content .editbox img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .pagenav {
    flex-direction: column;
  }
  
  .pagenav li {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .pagenav li a {
    font-size: 12px;
    padding: 6px 8px;
    display: block;
  }
  
  .pagenav li a span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .arc_rela .title {
    font-size: 14px;
  }
  
  .arc_rela_list li {
    width: 100%;
  }
  
  .arc_rela_list li a {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .mar_list .item {
    flex-direction: column;
    padding: 15px;
  }
  
  .mar_list .imgbox {
    width: 100%;
    height: 0;
    padding-bottom: 51.28%; /* 接近2:1的宽高比 */
    margin-right: 0;
    margin-bottom: 12px;
    position: relative;
  }
  
  .mar_list .imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
  }
  
  .mar_list .title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .mar_list .brief {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  .mar_list .bot {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mar_list .tag {
    margin-bottom: 8px;
    font-size: 11px;
  }
  
  .mar_list .more {
    padding: 5px 12px;
    font-size: 12px;
  }
  
  .mar_top {
    padding: 15px;
  }
  
  .mar_top .title {
    font-size: 18px;
  }
  
  .pagebar {
    margin-top: 15px;
  }
  
  .pagination {
    padding: 2px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .pagination a {
    padding: 4px 6px;
    margin: 1px;
    font-size: 14px;
    min-width: 16px;
    box-shadow: none;
  }
  
  .pagination a:hover {
    transform: none;
    box-shadow: none;
  }
} 