/* 标签页样式 - tags.css */
/* index_tags.htm（标签总览）/ lists_tags.htm（标签文章列表）两页共用。
   顶部导航 header / CTA / 页脚 footer 为全站公共样式，统一放在 style.css；
   文章列表沿用 xwzxlf.css 的 .news 系列、分页沿用 style.css 的 .pager，本文件不重复实现。 */

/* ==================== 首屏 ====================
   结构与尺寸沿用 style.css 的 :where(.hero) 系列（560 高、文字块 @top188、标题 48px、
   副标题 24px、两颗 145×48 按钮 @top356），本文件只换背景图。
   背景取站内已有的 1920×480 浅蓝光斑图（首页同款资源），不引入新素材。 */
.hero {
  background: #eef3fb url('../img/index/61779750.jpg') 50% 50%/cover no-repeat;
}

/* 首屏副标题里高亮的当前标签名（只在 lists_tags 出现） */
.hero-sub em {
  font-style: normal;
  color: #317af7;
}

/* ==================== 标签条（lists_tags） ====================
   位于首屏与列表之间，替代资讯页的 .catbar：左侧当前标签、右侧回标签总览的入口。
   视觉沿用 .pager 那套（白底、#e3e9f2 描边、#636e80 文字），保持全站一致。 */
.tagbar {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid #f4f4f4;
}

.tagbar .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.tagbar-cur {
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  color: #1d2129;
}

.tagbar-cur i {
  font-style: normal;
  color: #a5a5a5;
}

.tagbar-all {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #e3e9f2;
  border-radius: 6px;
  background: #fff;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 14px;
  color: #636e80;
  transition: border-color .2s, color .2s, background-color .2s;
}

.tagbar-all:hover {
  border-color: #317af7;
  background: #f2f7ff;
  color: #317af7;
}

/* ==================== 文章列表（lists_tags） ====================
   .news / .news-item 系列来自 xwzxlf.css（资讯列表页），这里只补两处本页差异：
   1) 标签下的文章可能来自任意栏目（服务案例的 litpic 可能为空），封面统一走「背景图铺满」，
      有图出图、无图留一块浅底，不会出现破图图标；
   2) 列表页顶部没有 catbar，收一点上边距。 */
.news {
  padding-top: 40px;
}

.news-cover {
  background: #f1f5fb center/cover no-repeat;
}

/* 空列表提示（该标签下暂无内容时由 {eyou:list} 的 empty 属性输出） */
.news-empty {
  padding: 60px 0 20px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  color: #a5a5a5;
  text-align: center;
}

/* ==================== 标签总览（index_tags） ==================== */
.tags-index {
  padding: 56px 0 72px;
  background: #fff;
}

.tags-group + .tags-group {
  margin-top: 46px;
}

.tags-group-title {
  position: relative;
  padding-left: 14px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #1d2129;
}

/* 小标题前的品牌蓝竖条（与首页各区块小标题同源） */
.tags-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 20px;
  margin-top: -10px;
  border-radius: 2px;
  background: #317af7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #f7f9fc;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  color: #636e80;
  transition: border-color .2s, color .2s, background-color .2s;
}

/* 标签后的条数：弱化处理，不抢标签名 */
.tag-cloud a em {
  margin-left: 8px;
  font-style: normal;
  font-size: 13px;
  color: #a5a5a5;
  transition: color .2s;
}

.tag-cloud a:hover {
  border-color: #317af7;
  background: #317af7;
  color: #fff;
}

.tag-cloud a:hover em {
  color: #dce8ff;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1399px) {
  .hero {
    background-position: 62% 50%;
  }
}

@media (max-width: 991px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 40%, rgba(255, 255, 255, .6)),
      url('../img/index/61779750.jpg');
    background-position: 50% 50%, 68% 50%;
    background-size: cover, cover;
  }

  /* 窄屏标签条改为两行自适应，不锁高 */
  .tagbar {
    height: auto;
    padding: 14px 0;
  }

  .tagbar .section-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tags-index {
    padding: 44px 0 56px;
  }

  .tags-group + .tags-group {
    margin-top: 36px;
  }

  .tags-group-title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .news {
    padding-top: 28px;
  }

  .tagbar-cur {
    font-size: 15px;
  }

  .tags-index {
    padding: 36px 0 46px;
  }

  .tags-group + .tags-group {
    margin-top: 30px;
  }

  .tags-group-title {
    font-size: 18px;
  }

  .tags-group-title::before {
    height: 17px;
    margin-top: -8.5px;
  }

  .tag-cloud {
    gap: 10px;
    margin-top: 16px;
  }

  .tag-cloud a {
    height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

  .tag-cloud a em {
    margin-left: 6px;
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .tag-cloud {
    gap: 8px;
  }

  .tag-cloud a {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }
}
