/* =========================================================
   VIPZAI 手机端列表页专用样式
   文件路径：/m/skin/css/eyou-list-page.css
   依赖文件：/m/skin/css/vipzai-design-system.css

   作用范围：
   1. body.m-list-template
   2. body.m-news-list-template（新闻/资讯/行业动态/常见问题列表）
   3. body.m-case-list-template（合作案例列表）

   维护原则：
   - 保留现有页面布局与视觉尺寸；
   - 只修复列表图片裁切、比例、溢出和文字区域稳定性；
   - 不使用全局 img 规则；
   - 不使用 !important；
   - 不影响首页、文章详情、产品列表、产品详情和 PC 页面。
   ========================================================= */

/* ---------- 基础作用域 ---------- */
body.m-list-template,
body.m-list-template * {
  box-sizing: border-box;
}

body.m-list-template {
  padding-bottom: 1.05rem;
}

/* ---------- 栏目导航标题 ---------- */
.m-list-template .cateList h2 {
  position: relative;
  margin: 0;
  font-size: .3rem;
  font-weight: normal;
}

.m-list-template .cateList h2 s {
  position: absolute;
  top: .34rem;
  right: .4rem;
  display: none;
  width: .22rem;
  height: .18rem;
  margin-left: .1rem;
  background-position: -1.06rem -2.2rem;
}

/* ---------- 列表页标题与栏目简介 ---------- */
.m-list-template .m-list-page-head {
  margin: 0 3%;
  padding: .3rem 0 .22rem;
  border-bottom: 1px solid var(--vip-border);
}

.m-list-template .m-list-page-head h1 {
  margin: 0;
  color: var(--vip-heading);
  font-size: .36rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.m-list-template .m-list-page-head p {
  margin: .12rem 0 0;
  color: var(--vip-muted);
  font-size: .23rem;
  line-height: 1.65;
  text-align: justify;
  overflow-wrap: anywhere;
}

/* =========================================================
   手机端文章列表
   保留现有“左图右文”布局，只统一图片显示规则。
   ========================================================= */
.m-news-list-template .newsPage {
  padding-top: 0;
}

.m-news-list-template .newsPage .list-loop {
  width: 100%;
}

.m-news-list-template .newsPage .item {
  min-height: 2.1rem;
}

.m-news-list-template .newsPage .item > a {
  display: block;
  min-height: 1.5rem;
  color: inherit;
}

/*
 * 固定 4:3 显示区域：
 * - width/height 保留旧版现有尺寸，页面布局不会变化；
 * - aspect-ratio 用于明确比例并减少加载前后的尺寸变化；
 * - object-fit: cover 只裁切列表缩略图，不影响正文图片。
 */
.m-news-list-template .newsPage .item img.img {
  float: left;
  display: block;
  width: 2rem;
  height: 1.5rem;
  aspect-ratio: 4 / 3;
  margin: 0 .22rem 0 0;
  border: 0;
  background: var(--vip-bg-soft);
  object-fit: cover;
  object-position: center center;
}

/* 文字内容保持在图片右侧，避免长文本绕到图片下方。 */
.m-news-list-template .newsPage .item .tit,
.m-news-list-template .newsPage .item p,
.m-news-list-template .newsPage .item .time {
  overflow: hidden;
  overflow-wrap: anywhere;
}

.m-news-list-template .newsPage .item .tit {
  margin: 0 0 .1rem;
  color: var(--vip-heading);
  font-size: .3rem;
  line-height: .48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-news-list-template .newsPage .item p {
  color: var(--vip-muted);
}

.m-news-list-template .newsPage .item .time {
  display: block;
  color: var(--vip-muted);
}

/* =========================================================
   手机端合作案例列表
   保留原有两列布局，只确保图片按 4:3 居中裁切。
   ========================================================= */
.m-case-list-template .caselist {
  padding-top: 0;
}

.m-case-list-template .caselist li figure {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-top: 75%;
  overflow: hidden;
  background: var(--vip-bg-soft);
}

.m-case-list-template .caselist li figure img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

.m-case-list-template .caselist li h2 {
  height: .68rem;
  margin: 0;
  overflow: hidden;
  color: var(--vip-heading);
  font-size: .26rem;
  font-weight: normal;
  line-height: .68rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 分页 ---------- */
.m-list-template .pglist {
  clear: both;
}

/* VIPZAI_CASE_PAGINATION_V2_BEGIN */
/* 合作案例手机分页：紧凑横向排列，小屏自动换行。 */
.m-case-list-template .pglist {
  clear: both !important;
  float: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 18px 6px 26px !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

.m-case-list-template .pglist > li {
  float: none !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

.m-case-list-template .pglist > li > a,
.m-case-list-template .pglist > li > span,
.m-case-list-template .pglist > li > strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  width: auto !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  box-sizing: border-box !important;
  border: 1px solid #dce3e9 !important;
  border-radius: 4px !important;
  color: #344250 !important;
  background: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.m-case-list-template .pglist > li.active > a,
.m-case-list-template .pglist > li > .current,
.m-case-list-template .pglist > li > strong {
  color: #fff !important;
  border-color: var(--vip-primary, #116bc4) !important;
  background: var(--vip-primary, #116bc4) !important;
  font-weight: 600 !important;
}

.m-case-list-template .pglist > li > .disabled,
.m-case-list-template .pglist > li > a:not([href]) {
  color: #9aa4ae !important;
  border-color: #e4e8ec !important;
  background: #f5f7f9 !important;
  pointer-events: none !important;
}

.m-case-list-template .pglist > li > a[href]:hover,
.m-case-list-template .pglist > li > a[href]:focus-visible {
  color: #fff !important;
  border-color: var(--vip-primary, #116bc4) !important;
  background: var(--vip-primary, #116bc4) !important;
  outline: 2px solid rgba(17, 107, 196, .24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 359px) {
  .m-case-list-template .pglist {
    gap: 5px !important;
    margin-right: 3px !important;
    margin-left: 3px !important;
  }

  .m-case-list-template .pglist > li > a,
  .m-case-list-template .pglist > li > span,
  .m-case-list-template .pglist > li > strong {
    min-width: 34px !important;
    height: 36px !important;
    padding-right: 7px !important;
    padding-left: 7px !important;
    font-size: 13px !important;
  }
}
/* VIPZAI_CASE_PAGINATION_V2_END */

/* VIPZAI_MOBILE_SEARCH_H1_STYLE_BEGIN
 * 手机搜索结果页唯一 H1。
 * 仅作用于 .m-search-template，复用原 cateList 标题尺寸与图标定位。
 */
.m-search-template .cateList h1.m-search-title {
  position: relative;
  margin: 0;
  font: inherit;
  font-size: .3rem;
  line-height: inherit;
  color: inherit;
}

.m-search-template .cateList h1.m-search-title s {
  position: absolute;
  top: .34rem;
  right: .4rem;
  display: none;
  width: .22rem;
  height: .18rem;
  margin-left: .1rem;
  background-position: -1.06rem -2.2rem;
}
/* VIPZAI_MOBILE_SEARCH_H1_STYLE_END */

