/* 主题伞页（pillar / hub）—— category.list_template = 'pillar' 时加载。
 *
 * 为什么需要它：知识库伞页 /article_zsk.html 原本用普通资讯列表模板渲染，
 * 721 篇平铺成 61 页。对读者是"翻不完"，对爬虫是"每篇正文离入口 30 次点击"。
 * pillar 页把伞页变成 7 个主题的入口（pillar-cluster 的 hub），正文经由主题页
 * 到达 —— 每篇的点击深度从最多 61 页降到 2 层。
 *
 * 这是一个新文件，不是改动既有 bundle，所以【不需要】bump layout.tsx 的 ?v=
 * （那条红线针对的是"改了旧 URL 的内容、CDN 还缓着旧版"；新 URL 无旧缓存）。
 *
 * 视觉语言沿用站内既有：品牌色 #00a0e8、1px #e4e4e4 边框、13/14px 正文灰
 * #666、卡片 hover 提亮边框 —— 与 inner/article_list.css 同一套。
 * 响应式断点跟 responsive.css 对齐（1199 / 768）。 */

.wp-pillar {
  padding: 10px 0 40px;
}

/* 伞页导语：分类自己的 seo_desc。它同时是这一页的 <meta description>，
   所以卡片上的一句话与页面声明的主题永远是同一句。GEO 的 answer-first 段。 */
.wp-pillar-intro {
  font-size: 15px;
  line-height: 30px;
  color: #555;
  margin: 0 0 26px;
  padding: 18px 22px;
  background: #f7fafc;
  border-left: 3px solid #00a0e8;
}

.wp-pillar-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.wp-pillar-card {
  box-sizing: border-box;
  width: 33.3333%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.wp-pillar-card-inner {
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e4e4;
  padding: 22px 22px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wp-pillar-card-inner:hover {
  border-color: #00a0e8;
  box-shadow: 0 4px 16px rgba(0, 160, 232, 0.12);
}

.wp-pillar-card h2 {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 10px;
  font-weight: normal;
}

.wp-pillar-card h2 a {
  color: #333;
}

.wp-pillar-card-inner:hover h2 a {
  color: #00a0e8;
}

/* 主题下的文章条数：给读者与爬虫一个"这个桶有多深"的量级信号。 */
.wp-pillar-count {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

.wp-pillar-desc {
  font-size: 13px;
  line-height: 24px;
  color: #666;
  margin: 0 0 14px;
}

.wp-pillar-links {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border-top: 1px dashed #ebebeb;
  padding-top: 12px;
}

.wp-pillar-links li {
  font-size: 13px;
  line-height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-pillar-links li a {
  color: #666;
}

.wp-pillar-links li a:hover {
  color: #00a0e8;
}

.wp-pillar-links li:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #c9c9c9;
  vertical-align: middle;
  margin-right: 8px;
}

.wp-pillar-more a {
  font-size: 13px;
  color: #00a0e8;
}

/* 最新更新：伞页需要一条"新鲜度"路径，否则整页只有 7 个稳定链接，
   爬虫没有理由回访。 */
.wp-pillar-latest {
  margin-top: 30px;
}

.wp-pillar-latest h2 {
  font-size: 20px;
  line-height: 30px;
  color: #333;
  font-weight: normal;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid #00a0e8;
}

.wp-pillar-latest ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.wp-pillar-latest li {
  box-sizing: border-box;
  width: 50%;
  padding-right: 24px;
  font-size: 14px;
  line-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-pillar-latest li a {
  color: #555;
}

.wp-pillar-latest li a:hover {
  color: #00a0e8;
}

.wp-pillar-latest li time {
  float: right;
  color: #aaa;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .wp-pillar-card {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .wp-pillar {
    padding: 6px 0 24px;
  }
  .wp-pillar-intro {
    font-size: 14px;
    line-height: 26px;
    padding: 14px 16px;
    margin-bottom: 18px;
  }
  .wp-pillar-card {
    width: 100%;
  }
  .wp-pillar-card h2 {
    font-size: 18px;
  }
  .wp-pillar-latest li {
    width: 100%;
    padding-right: 0;
  }
  .wp-pillar-latest li time {
    display: none;
  }
}
