/* 服务支持页补丁（service 列表页 / service/[slug] 详情页共用，排在 about.css 之后注入）。
   只补显隐、布局和内容缺口；详情内容区块使用 .lsr-svc-detail 专属类隔离作用域。 */

/* ---------- 详情页 · 左导航 ----------
   不做 sticky 吸顶：基础 styles.css 的 html,body{overflow-x:hidden} 会把 overflow-y
   强制为 auto，使 body 成为滚动容器而失效；且两栏内容几乎等高（c-main≈1051px /
   导航≈963px），吸顶收益极小，保持基础原样即可。 */

/* ---------- 详情页 · 页头 ---------- */
.lsr-svc-detail { padding-top: 1.42857em; }
.lsr-svc-head { margin-bottom: .5em; }
.lsr-svc-head .item-ico { margin-bottom: .71428em; }
.lsr-svc-head .item-ico .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2em;
  height: 3.2em;
  border-radius: .71428em;
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  color: var(--lsr-primary);
  font-size: 1em;
}
.lsr-svc-head .title { font-size: 1.6em; color: #333; margin: 0 0 .4em; }
.lsr-svc-head .desc { color: #999; margin: 0 0 1em; }

/* 计价条 */
.lsr-svc-pricebar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4em .6em;
  padding: .85714em 1em;
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  border-radius: .14285em;
}
.lsr-svc-pricebar .p { font-size: 1.2857em; color: var(--lsr-primary); font-weight: 700; }
.lsr-svc-pricebar .pn { font-size: .85714em; color: #999; }

/* ---------- 详情页 · 分节标题（① ② …，参考 /members 铁粉页） ---------- */
.lsr-svc-sec { margin-top: 2.4em; }
.lsr-svc-sec-title {
  display: flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1em;
}
.lsr-svc-sec-title .no {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: linear-gradient(to right, var(--lsr-primary-deep), var(--lsr-primary-warm));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 1em;
  flex: none;
  font-weight: 700;
}
.lsr-svc-sec-title .txt {
  font-style: normal;
  font-size: 1.15em;
  color: #333;
  font-weight: 700;
  position: relative;
  padding-bottom: .18em;
}
.lsr-svc-sec-title .txt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .12em;
  background: linear-gradient(to right, var(--lsr-primary-deep), var(--lsr-primary-warm));
  border-radius: .1em;
}

/* 简介 */
.lsr-svc-intro { margin: 0; color: #555; line-height: 1.75em; }

/* 服务内容清单：两列卡片 */
.lsr-svc-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lsr-svc-features .feat {
  width: calc(50% - .3em);
  box-sizing: border-box;
  display: flex;
  gap: .5em;
  padding: .71428em;
  background: #fafafa;
  border-radius: .14285em;
  align-items: flex-start;
}
.lsr-svc-features .feat .ico { color: #4caf50; margin-top: .1em; flex: none; }
.lsr-svc-features .ft strong { display: block; color: #333; font-size: .92857em; }
.lsr-svc-features .ft span { display: block; color: #999; font-size: .85714em; margin-top: .2em; line-height: 1.5em; }

/* 交付流程：胶囊时间线 */
.lsr-svc-process {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lsr-svc-process .step {
  display: flex;
  align-items: center;
  gap: .4em;
  padding: .42857em .85em;
  background: #f4f7fb;
  border-radius: 999px;
  font-size: .85714em;
  color: #555;
}
.lsr-svc-process .step .dot {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: linear-gradient(to right, var(--lsr-primary-deep), var(--lsr-primary-warm));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85714em;
  flex: none;
}

/* 交付与售后 */
.lsr-svc-deliver, .lsr-svc-support { color: #666; line-height: 1.7em; margin: 0; }
.lsr-svc-support { color: var(--lsr-primary); }

/* CTA：两个按钮统一内边距，与基础「了解详情」按钮（.btn.btn-orange-border.item-btn：
   padding 0 14px / line-height 33.6px / font-size 14px）一致，避免文字贴边、尺寸参差。 */
.lsr-svc-cta { margin-top: 2.4em; display: flex; gap: .8em; flex-wrap: wrap; }
.lsr-svc-cta .btn {
  padding: 0 14px;
  line-height: 33.6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ---------- 列表页 · 一行四列服务卡片的左右外边距 ----------
 *
 * 基础 .about-service .s-items 用负 margin（0 -0.85714286em -2.28571429em）
 * 让卡片行左右各顶出容器 0.857em（即 .service 自身的 padding 0 .85714286em
 * 被负 margin 抵消），结果第一列卡片左边缘与容器左边缘齐平、
 * 最后一列卡片右边缘与容器右边缘齐平，整行视觉上「顶满」容器，
 * 两侧没有留白（用户截图红框标注处）。
 *
 * 这里给 .services 网格单独加左右内边距，把负 margin 抵消掉并额外留白，
 * 使一行四列的卡片与容器之间有稳定间距（.about-stats 数字行保持原样，
 * 它是纯文字居中，不需要同样的留白）。
 */
.about-service .s-items {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1.71428571em;
  padding-right: 1.71428571em;
}

/* 基础 .service 自身的左右 padding 保留（卡片之间的间距）。
   上一版用 :first-child / :last-child 收外侧内边距，但 .s-items 是 flex 换行布局，
   :last-child 只命中整个网格的最后一个元素（第 7 个），
   而每行第 4 张卡片（第 4、8 个…）并没有被收掉，左右留白不对称。
   现在外侧留白统一由 .s-items 的 padding 提供，
   卡片自身 padding 保持基础原样，行首/行尾一样宽。 */

/* ---------- R23 · 列表页 H5：左右外边距与两列列间距对齐 ----------
 * 上一版给 .about-service .s-items 加了 1.714em 的左右 padding（PC 四列留白用），
 * H5 下叠加 container margin(10.4px) + f-item padding(4.29px) 后外边距约 35px，
 * 而两列卡片之间的间距只有 8.57px（f-item 左右 padding 4.29×2），明显不一致。
 * H5 收掉 s-items 的 padding 并用负 margin 抵消 container margin 的富余，
 * 使「屏幕边到卡片」≈「列间」≈ 8.5px。 */
@media (max-width: 767.5px) {
  .about-service .s-items {
    padding-left: 0;
    padding-right: 0;
    margin-left: -6px;
    margin-right: -6px;
  }
}

/* ---------- R23 · 详情页 H5：服务导航改横向滚动 ----------
 * 基础 ≤1329 网格是 flex + width:25%，7 项服务在 H5 下被 nowrap 挤成一行：
 * 总宽 456px > 可视 378px，overflow-x:visible 导致右侧条目（ERP/CRM/售后）
 * 直接被屏幕裁掉、又无法滚动。H5 改为固定条目宽度 + overflow-x:auto 横向滚动，
 * 图标与文字上下堆排、文字不折行，尺寸收紧。 */
@media (max-width: 767.5px) {
  .tougao-widget-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    /* active 项下方 .s-box::before 倒三角（top:100%，高约 .714em）是绝对定位、
       不计入布局高度；overflow-x:auto 会把 overflow-y 隐式设成 auto，导致倒三角
       被裁。padding-bottom 给足（> 倒三角高 + 视觉间隙）让它落入容器 padding 盒
       （overflow 只在 padding 盒外裁剪），完整显示。 */
    padding-bottom: 1.5em;
    scrollbar-width: none;
  }
  .tougao-widget-switch::-webkit-scrollbar { display: none; }
  .tougao-widget-switch .s-item {
    width: auto;
    flex: none;
    padding: 0 .35714286em;
  }
  .tougao-widget-switch .s-item:first-child { padding-left: 0; }
  .tougao-widget-switch .s-item:last-child { padding-right: 0; }
  .tougao-widget-switch .s-box {
    padding: .85714286em .9em;
    min-width: 86px;
    text-align: center;
  }
  .tougao-widget-switch .title {
    line-height: 1.6em;
    margin-bottom: .35em;
  }
  /* 图标块由「左图右文」改为「上图下文」居中堆排 */
  .tougao-widget-switch .title .item-thumb {
    display: block;
    margin: 0 auto .3em;
    width: 2.2em;
    height: 2.2em;
  }
  .tougao-widget-switch .title .txt {
    display: block;
    font-size: 100%;
    white-space: nowrap;
  }
  .tougao-widget-switch .desc { white-space: nowrap; }
}
