/* ============================================
   逗号CMS - 简约风模板（jianyue）
   配色参考：主色 #1871b1，hover #00a4dc / #41d38a
   ============================================ */

@charset "utf-8";

* { font-size: 16px; font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; }
html, body, div, p, ol, ul, li, dl, dt, dd, h1, h2, h3, h4, h5, h6,
form, input, select, button, textarea, iframe, th, td {
  margin: 0; padding: 0; list-style-type: none;
}
a { color: #000; text-decoration: none; transition: color .2s; }
a:hover { color: #1871b1; }
p { font-size: 1em; margin-bottom: 1em; }
img { max-width: 100%; height: auto; border: 0; }
body {
  background: #f1f1f1;
  font-size: 1em;
  line-height: 1.5em;
  color: #666;
  -webkit-font-smoothing: antialiased;
}
i { padding-right: 3px; }
code {
  padding: 2px 4px; font-size: 90%;
  color: #c7254e; background-color: #f9f2f4; border-radius: 4px;
}

/* ========== 布局容器 ========== */
.wrap {
  padding-right: 15px; padding-left: 15px;
  margin-right: auto; margin-left: auto;
  position: relative;
}
.zwrap { padding-right: 0; padding-left: 0; }
.clear { clear: both; }

/* ========== 顶部 LOGO 区 ========== */
.top { padding: 0; background-color: #fff; margin-bottom: 15px; }
.page-header { overflow: hidden; }
.page-header a.logo { margin: 10px 0; float: left; color: #377bee; display: flex; align-items: center; padding: 15px; }
.page-header a.logo img { height: 60px; width: auto; padding: 15px; }
.page-header a.logo span { font-size: 26px; font-weight: 700; color: #1871b1; }

/* ========== 蓝色导航条 ========== */
.nav {
  height: auto;
  background-color: #1871b1;
}
.navbar-collapse {
  background-color: #1871b1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-collapse ul { flex: 1; font-size: 0; }
.nav ul li { display: inline-block; font-size: 16px; }
.nav ul li a {
  display: block;
  font-size: 16px;
  line-height: 45px;
  padding: 0 25px 0 23px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  transition: all .1s ease-in;
}
.nav ul li a:hover,
.nav ul li a.active,
.nav ul li.current-menu-item a {
  color: #fff;
  background-color: rgba(0,0,0,0.15);
}

/* 导航条右侧搜索 */
.nav-search { padding-right: 15px; flex-shrink: 0; }
.nav-search form {
  display: flex;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
}
.nav-search input[type="text"] {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  width: 160px;
  outline: none;
}
.nav-search input[type="text"]::placeholder { color: rgba(255,255,255,.65); }
.nav-search button {
  border: none;
  background: rgba(0,0,0,.2);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  transition: background .2s;
}
.nav-search button:hover { background: rgba(0,0,0,.35); }

/* 手机端按钮 */
.navbar-header { display: none; }
.navbar-toggle,
.toggle-search {
  color: #fff;
  line-height: 33px;
  cursor: pointer;
  font-size: 16px;
  padding: 0 20px;
  display: inline-block;
  height: 45px;
  vertical-align: top;
}
.navbar-toggle:hover,
.toggle-search:hover { background: rgba(0,0,0,0.15); }
.navbar-toggle i,
.toggle-search i { padding-right: 0; line-height: 45px; }

.search-expand { display: none; background: rgba(0,0,0,0.15); padding: 6px 12px; }
.searchform { display: flex; gap: 8px; }
.searchform input.search {
  flex: 1;
  line-height: 31px;
  border: 0;
  padding: 4px 10px;
  border-radius: 3px;
  color: #333;
}

/* ========== 主内容区 ========== */
.main-wrap { display: block; }
.wrap-inner { position: relative; }
.wrap-inner::after { content: ''; display: block; clear: both; }

.main { float: left; width: 100%; }
.sider { display: none; }
.right { padding-left: 20px; }

/* ========== 通用白卡片 ========== */
.block {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ececec;
}
.block-head {
  display: block;
  padding-left: 0;
  font-weight: 500;
  font-size: 1.2em;
}
.category {
  display: inline-block;
  margin-right: 5px;
  margin-left: -10px;
}
.category i { color: #1871b1; font-size: 16px; padding-right: 4px; }
.category a,
.block-head .category {
  color: #1871b1;
}
.block-head::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #1871b1;
  margin-top: 10px;
  margin-left: 0;
}

/* ========== 文章列表 ========== */
.block-list { margin-top: 10px; }
.block-list .item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #ececec;
  overflow: hidden;
}
.block-list .item:last-child { border-bottom: none; }
.block-list .item.list-mode-2 { flex-direction: row-reverse; }
.block-list .item .viewimg {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  overflow: hidden;
  display: block;
}
.block-list .item .viewimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  padding: 3px;
  background: #fff;
}
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.item-body h3 { font-size: 1.05em; line-height: 1.4; margin-bottom: 8px; }
.item-body h3 a { color: #000; }
.item-body h3 a:hover { color: #00a4dc; }
.item-body .tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: normal;
}
.item-body .tag.hot { background: #fff3e0; color: #e65100; }
.item-body .tag.rec { background: #fce4ec; color: #c62828; }

/* 文章元信息行（发布时间/分类/阅读量/阅读详情） */
.preem {
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  font-size: .85em;
  color: #999;
}
.preem span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .85em;
  color: #999;
  margin: 0;
}
.preem span i {
  padding-right: 0;
  color: #bbb;
  font-size: .95em;
}
.preem span a {
  font-size: inherit;
  color: #999;
}
.preem span a:hover { color: #00a4dc; }
.preem .more {
  float: none;
  margin-left: auto;
}
.preem .more a {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  background-color: #fff;
  border: 1px solid #ececec;
  color: #999;
  border-radius: 3px;
  transition: all .2s;
}
.preem .more a:hover {
  background-color: #1871b1;
  color: #fff !important;
  border-color: #1871b1;
}

/* ========== 分类标签栏 ========== */
.category-bar { padding: 15px 20px; }
.category-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #1871b1;
  margin-right: 15px;
}
.category-count { font-size: .85em; color: #999; }
.cat-tabs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-tab {
  display: inline-block;
  padding: 4px 14px;
  background: #f3f3f3;
  color: #666;
  border-radius: 3px;
  font-size: .85em;
  transition: all .2s;
}
.cat-tab:hover { background: #1871b1; color: #fff; }
.cat-tab.active { background: #1871b1; color: #fff; }

/* ========== 侧边栏 ========== */
.subblock {
  background-color: #fff;
  margin-bottom: 20px;
}
.subblock h3 {
  color: #000;
  padding-left: 12px;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 40px;
  border: 1px solid #ececec;
  border-bottom: none;
  position: relative;
}
.subblock h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #1871b1;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}
.subblock ul {
  padding: 8px 12px;
  border: 1px solid #ececec;
  border-top: none;
}
.subblock li {
  border-bottom: 1px dashed #f0f0f0;
  padding: 4px 0;
}
.subblock li:last-child { border-bottom: none; }
.subblock li a { color: #666; }
.subblock li a:hover { color: #00a4dc; }

/* 侧边栏图文列表（图文对齐修复） */
.sideshow {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow: hidden;
}
.sideshow .side-thumb {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 60px;
  border: 1px solid #ececec;
  background: #fff;
  overflow: hidden;
}
.sideshow .side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  float: none;
  margin: 0;
  border: none;
}
.sideshow .side-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
}
.sideshow .side-title-link {
  display: block;
  font-size: .9em;
  color: #666;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sideshow .side-title-link:hover { color: #00a4dc; }
.sideshow .datetime {
  display: block;
  color: #bbb;
  font-size: .75em;
  margin-top: 0;
}

/* 无图时，直接展示纯文字列表（保留兼容旧结构） */
.sideshow > a:not(.side-thumb) {
  display: block;
  font-size: .9em;
  color: #666;
  overflow: hidden;
}
.sideshow > a:not(.side-thumb):hover { color: #00a4dc; }

/* 友链（横向 inline 排列，紧挨展示） */
.linkcat ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 12px;
}
.linkcat ul li {
  display: inline-block;
  width: auto;
  border-bottom: 0;
  padding: 0;
  vertical-align: middle;
}
.linkcat ul li a {
  font-size: .85em;
  color: #999;
  white-space: nowrap;
}
.linkcat ul li a:hover { color: #1871b1; }

/* ========== 分页 ========== */
.pagination {
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid #ececec;
  background: #fff;
  color: #999;
  text-align: center;
  font-size: .85em;
  border-radius: 3px;
  transition: all .2s;
}
.pagination .current,
.pagination a:hover {
  background-color: #1871b1;
  color: #fff;
  border-color: #1871b1;
}

/* ========== 文章详情 ========== */
.article { overflow: hidden; }
.title { margin-bottom: 1em; }
.title h1 {
  font-size: 24px;
  line-height: 1.4;
  color: #222;
  margin-bottom: .4em;
}
.subtitle,
.subtitle a {
  font-size: .9em;
  color: #999;
}
.article_content {
  margin-top: 15px;
  margin-bottom: 1em;
  line-height: 1.8em;
  font-size: 1em;
  color: #333;
}
.article_content p {
  font-size: 1em;
  clear: both;
  text-indent: 2em;
  line-height: 1.9em;
  padding-bottom: .5em;
  margin-bottom: 0;
}
.article_content h2,
.article_content h3 {
  margin: 20px 0;
  padding: 8px 12px;
  border-left: 4px solid #1871b1;
  color: #333;
  background: #f7f9fa;
  font-weight: 700;
}
.article_content h2 { font-size: 1.25em; }
.article_content h3 { font-size: 1.1em; }
.article_content img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto;
  border-radius: 4px;
}
.article_content blockquote {
  background-color: #f5f5f5;
  margin: 12px 0;
  padding: 16px 20px;
  border-left: 4px solid #1871b1;
}
.article_content blockquote p { text-indent: 0; }
.article_content a { color: #1871b1; }
.article_content a:hover { color: #00a4dc; }
.article_content ul,
.article_content ol { padding-left: 30px; margin-bottom: 12px; }
.article_content li { list-style: disc; margin-bottom: 4px; }

/* 上一篇/下一篇 */
.con_pretext {
  background-color: #fbfbfb;
  overflow: hidden;
  padding: 15px 20px;
  font-size: 15px;
  color: #999;
  margin-top: 20px;
  border: 1px solid #ececec;
}
.con_pretext a { color: #666; }
.con_pretext a:hover { color: #00a4dc; }
.first { float: left; width: 49%; }
.last { float: right; width: 49%; text-align: right; }

/* 阅读全文遮罩 */
.readmore-preview { position: relative; }
.readmore-overlay {
  position: relative;
  margin-top: -120px;
  padding-top: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, #fff 100%);
  text-align: center;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.readmore-overlay-link { display: block; width: 100%; }
.readmore-overlay-arrow {
  animation: arrowBounce 1.5s ease-in-out infinite;
  font-size: 28px;
  color: #1871b1;
  display: block;
  margin-bottom: 6px;
}
.readmore-overlay-hint { font-size: 13px; color: #999; letter-spacing: 1px; }
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(8px); opacity: 1; }
}

.readmore-wrapper { text-align: center; padding: 20px 0; }
.readmore-btn {
  background: #1871b1;
  color: #fff;
  border: none;
  padding: 10px 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s;
}
.readmore-btn:hover { background: #00a4dc; }

/* 阅读全文广告弹窗 */
.readmore-ad-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.readmore-ad-overlay.show { display: flex; }
.readmore-ad-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.readmore-ad-box .ad-tip {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
}
.readmore-ad-box .countdown-number {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #1871b1;
  min-width: 30px;
  text-align: center;
  background: #eaf3fa;
  padding: 0 10px;
  border-radius: 6px;
  line-height: 1.4;
  margin-right: 6px;
}
.readmore-ad-box .ad-body img { max-width: 100%; height: auto; }

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}
.empty-state i { font-size: 42px; display: block; margin-bottom: 12px; }

/* ========== 底部 ========== */
.footer {
  clear: both;
  margin-top: 20px;
  padding: 24px 10px;
  background: #333;
  color: #bbb;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}
.footer a { color: #999; }
.footer a:hover { color: #00a4dc; }
.ffooter {
  margin-bottom: 0;
  border-top: 1px solid rgba(255,255,255,.065);
  padding-top: 12px;
  text-align: center;
}
.footer p { margin-bottom: 4px; }

/* ========== 底部悬浮广告 ========== */
.footer-float-ad {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding: 6px;
  text-align: center;
  display: flex;
  z-index: 999;
  justify-content: center;
  align-items: center;
}
.footer-float-ad .close-btn {
  position: absolute;
  right: 12px; top: -12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 26px;
}
.footer-float-ad .ad-content img { max-height: 70px; width: auto; }

/* ========== 返回顶部 ========== */
.totop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: none;
  width: 42px;
  height: 42px;
  background: #1871b1;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(24,113,177,.35);
  z-index: 99;
}
.totop::before {
  content: '\f077';
  font-family: FontAwesome;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}
.totop:hover { background: #00a4dc; }

/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .wrap { width: 750px; }
  .main { float: left; width: 66.66666667%; }
  .sider { float: left; width: 33.33333333%; display: block; }
  .navbar-header { display: none; }
  .navbar-collapse { display: flex !important; }
}

@media (min-width: 992px) {
  .wrap { width: 970px; }
}

@media (min-width: 1200px) {
  .wrap { width: 1170px; }
}

@media (max-width: 768px) {
  .wrap { padding-right: 12px; padding-left: 12px; }
  .page-header a.logo { text-align: center; width: 100%; display: flex; justify-content: center; float: none; }
  .page-header a.logo img { height: 44px; }

  /* 手机端：隐藏汉堡按钮和搜索图标，菜单横向滑动 */
  .navbar-header { display: none; }
  .navbar-collapse {
    display: block !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navbar-collapse::-webkit-scrollbar { display: none; }
  .navbar-collapse ul {
    display: flex !important;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    font-size: 0;
  }
  .nav ul li { display: inline-block; flex-shrink: 0; }
  .nav ul li a {
    line-height: 44px;
    padding: 0 16px;
    border-bottom: none;
    white-space: nowrap;
  }
  .nav-search { display: none; }

  .block-list .item,
  .block-list .item.list-mode-2 { flex-direction: row; gap: 12px; padding: 12px 0; }
  .block-list .item .viewimg { width: 110px; height: 80px; }
  .block-list .item .viewimg img { padding: 0; border: 1px solid #ececec; }
  .item-body h3 { font-size: .95em; }
  .item-body .preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .8em;
    margin-bottom: 4px;
  }
  .preem { font-size: .75em; gap: 0 8px; }
  .preem span { font-size: .75em; }
  .preem .more { display: none; }

  .first, .last { float: none; width: 100%; text-align: left; margin-bottom: 6px; }

  .readmore-overlay { margin-top: -100px; padding-top: 55px; min-height: 90px; }
  .readmore-overlay-arrow { font-size: 22px; }

  .footer-float-ad .ad-content img { max-height: 50px; }
  .totop { right: 14px; bottom: 14px; width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .block-list .item .viewimg { width: 90px; height: 66px; }
}