/*

1. Add your custom Css styles below
2. Place the this code in your template:

 <link href="css/custom.css" rel="stylesheet">

*/

/* ==========================================================================
   首页 / 课程分类页 —— 紧凑图文列表版式
   一行一篇：左侧小缩略图 + 右侧标题/日期/摘要
   缩略图宽度 = 原版式 30% 的约 1/3
   如需再调图片大小，只改下面 .post-image 的 width 一处即可
   ========================================================================== */

/* --- 列表条目 --- */
#blog.post-thumbnails .post-item {
  width: 100%;
  padding: 0;
}
#blog.post-thumbnails .post-item .post-item-wrap {
  background-color: transparent;
  border-bottom: 1px solid #e8ecf1;
  padding: 9px 0;
  overflow: hidden;
}
#blog.post-thumbnails .post-item:last-child .post-item-wrap {
  border-bottom: 0;
}

/* --- 缩略图：原 30% 宽度的 1/3 --- */
#blog.post-thumbnails .post-item .post-image,
#blog.post-thumbnails .post-item .post-slider,
#blog.post-thumbnails .post-item .post-video,
#blog.post-thumbnails .post-item .post-audio {
  float: left;
  width: 10%;
  max-width: 120px;
  margin: 0;
}
#blog.post-thumbnails .post-item .post-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e8ecf1;
  border-radius: 3px;
}

/* --- 文字区 --- */
#blog.post-thumbnails .post-item:not(.quote) .post-item-description {
  float: left;
  width: 90% !important;
  padding: 0 0 0 14px;
  line-height: 21px;
}
#blog.post-thumbnails .post-item .post-item-description > h2,
#blog.post-thumbnails .post-item .post-item-description > h2 > a {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 4px;
  color: #1f2b3d;
  font-weight: 600;
}
#blog.post-thumbnails .post-item .post-item-description > h2 > a:hover {
  color: #103a97;
}
#blog.post-thumbnails .post-item .post-item-description .post-meta-date,
#blog.post-thumbnails .post-item .post-item-description .post-meta-category {
  position: static;
  top: 0;
  font-size: 12px;
  color: #9aa5b1;
  margin-right: 14px;
}
#blog.post-thumbnails .post-item .post-item-description .post-meta-date a,
#blog.post-thumbnails .post-item .post-item-description .post-meta-category a {
  color: #9aa5b1;
}
#blog.post-thumbnails .post-item .post-item-description .post-meta-category a:hover {
  color: #103a97;
}
#blog.post-thumbnails .post-item .post-item-description > p {
  font-size: 13px;
  line-height: 20px;
  color: #6b7684;
  margin: 3px 0 0;
}

/* --- 平板（768~991px）：图片略放大，避免过小 --- */
@media (min-width: 768px) and (max-width: 991px) {
  #blog.post-thumbnails .post-item .post-image,
  #blog.post-thumbnails .post-item .post-slider,
  #blog.post-thumbnails .post-item .post-video,
  #blog.post-thumbnails .post-item .post-audio {
    width: 14%;
    max-width: 110px;
  }
  #blog.post-thumbnails .post-item:not(.quote) .post-item-description {
    width: 86% !important;
  }
}

/* --- 小屏（手机）：同样左图右文，图片占 28% --- */
@media (max-width: 767px) {
  #blog.post-thumbnails .post-item .post-image,
  #blog.post-thumbnails .post-item .post-slider,
  #blog.post-thumbnails .post-item .post-video,
  #blog.post-thumbnails .post-item .post-audio {
    float: left;
    width: 28%;
    max-width: none;
  }
  #blog.post-thumbnails .post-item:not(.quote) .post-item-description {
    float: left;
    width: 72% !important;
    padding: 0 0 0 10px;
  }
  #blog.post-thumbnails .post-item .post-item-description > h2,
  #blog.post-thumbnails .post-item .post-item-description > h2 > a {
    font-size: 15px;
    line-height: 21px;
  }
}

/* ==========================================================================
   文章页 —— 洋葱导航（面包屑）
   首页 › 所属栏目（由泛到专） › 当前标题
   点击任一栏目可回到该栏目列表页
   ========================================================================== */
#blog .post-breadcrumb {
  font-size: 13px;
  line-height: 22px;
  color: #9aa5b1;
  padding: 0 0 10px;
  margin: 0 0 14px;
  border-bottom: 1px solid #e8ecf1;
  overflow: hidden;
}
#blog .post-breadcrumb a {
  color: #103a97;
  text-decoration: none;
}
#blog .post-breadcrumb a:hover {
  text-decoration: underline;
}
#blog .post-breadcrumb .crumb-sep {
  margin: 0 6px;
  color: #c9d1dc;
}
#blog .post-breadcrumb .crumb-current {
  color: #9aa5b1;
}

/* --- 小屏（手机）：字号收窄 --- */
@media (max-width: 767px) {
  #blog .post-breadcrumb {
    font-size: 12px;
    line-height: 20px;
    padding: 0 0 8px;
    margin: 0 0 10px;
  }
  #blog .post-breadcrumb .crumb-sep {
    margin: 0 4px;
  }
}

/* --- 分类页分页（线条风格，不用色块） --- */
.post-pagination {
  clear: both;
  text-align: center;
  padding: 20px 0 6px;
  line-height: 1;
}
.post-pagination .page-numbers {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  padding: 0 8px;
  margin: 0 3px;
  border: 1px solid #dfe5ec;
  border-radius: 3px;
  color: #40506b;
  font-size: 13px;
  text-decoration: none;
  background-color: #ffffff;
}
.post-pagination .page-numbers:hover {
  border-color: #103a97;
  color: #103a97;
}
.post-pagination .page-numbers.current {
  border-color: #103a97;
  color: #103a97;
  font-weight: 600;
}
.post-pagination .page-numbers.dots {
  border-color: transparent;
  background-color: transparent;
}
/* ==========================================================================
   首页知识门户版式（2026-10-17）
   结构：banner 下 → 三张栏目导航卡片 → 三大板块（每块：栏目标题区 + 最新6篇双列）
   命名全部 hp- 前缀，不影响分类页 #blog 旧版式
   ========================================================================== */

/* --- 栏目导航卡片（banner 下方） --- */
.hp-quick {
  padding: 34px 0 4px;
}
.hp-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background-color: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hp-card:hover {
  border-color: #103a97;
  box-shadow: 0 6px 18px rgba(16, 58, 151, .08);
  transform: translateY(-2px);
  text-decoration: none;
}
.hp-card-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: #eef3fa;
  color: #103a97;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-card-icon svg {
  width: 24px;
  height: 24px;
}
.hp-card-text {
  min-width: 0;
}
.hp-card-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3d;
  margin: 0 0 3px;
  line-height: 1.3;
}
.hp-card-text p {
  font-size: 12px;
  color: #8a94a6;
  margin: 0;
  line-height: 1.4;
}
.hp-card-arrow {
  margin-left: auto;
  color: #c3cbd8;
  font-size: 22px;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}
.hp-card:hover .hp-card-arrow {
  color: #103a97;
  transform: translateX(3px);
}

/* --- 栏目板块 --- */
.hp-section {
  padding: 40px 0 44px;
}
.hp-section-alt {
  background-color: #f7f9fc;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
}

/* 标题区 */
.hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3e9f1;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.hp-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hp-head-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #eef3fa;
  color: #103a97;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-head-icon svg {
  width: 23px;
  height: 23px;
}
.hp-head-text {
  min-width: 0;
}
.hp-head-text h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.hp-head-text h2 a {
  color: #1f2b3d;
  text-decoration: none;
}
.hp-head-text h2 a:hover {
  color: #103a97;
}
.hp-head-sub {
  font-size: 12px;
  color: #8a94a6;
  margin: 4px 0 0;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-head-sub b {
  color: #103a97;
  font-weight: 600;
}
.hp-more {
  flex: 0 0 auto;
  display: inline-block;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
  color: #40506b;
  background-color: #ffffff;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.hp-more:hover {
  border-color: #103a97;
  color: #103a97;
  text-decoration: none;
}

/* 文章双列网格 */
.hp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 30px;
}
.hp-item {
  display: flex;
  gap: 14px;
  padding: 11px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.hp-item:hover {
  background-color: rgba(16, 58, 151, .045);
  text-decoration: none;
}
.hp-item-img {
  flex: 0 0 128px;
}
.hp-item-img img {
  display: block;
  width: 128px;
  height: 84px;
  object-fit: cover;
  border: 1px solid #e8ecf1;
  border-radius: 4px;
  transition: border-color .15s ease;
}
.hp-item:hover .hp-item-img img {
  border-color: #103a97;
}
.hp-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2b3d;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}
.hp-item:hover .hp-item-title {
  color: #103a97;
}
.hp-item-meta {
  font-size: 12px;
  color: #9aa5b1;
  margin-top: 5px;
}
.hp-item-desc {
  font-size: 13px;
  color: #6b7684;
  line-height: 19px;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 平板（768~991px）：单列 --- */
@media (min-width: 768px) and (max-width: 991px) {
  .hp-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 手机 --- */
@media (max-width: 767px) {
  .hp-quick {
    padding: 20px 0 0;
  }
  .hp-quick-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hp-card {
    padding: 14px 16px;
  }
  .hp-section {
    padding: 26px 0 30px;
  }
  .hp-head {
    margin-bottom: 14px;
    padding-bottom: 11px;
  }
  .hp-head-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .hp-head-icon svg {
    width: 20px;
    height: 20px;
  }
  .hp-head-text h2 {
    font-size: 19px;
  }
  .hp-head-sub {
    font-size: 11px;
  }
  .hp-more {
    padding: 5px 12px;
    font-size: 12px;
  }
  .hp-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .hp-item {
    padding: 10px 4px;
    gap: 11px;
  }
  .hp-item-img {
    flex: 0 0 96px;
  }
  .hp-item-img img {
    width: 96px;
    height: 68px;
  }
  .hp-item-title {
    font-size: 14px;
    line-height: 20px;
  }
  .hp-item-desc {
    -webkit-line-clamp: 1;
  }
}
