/* ==========================================================================
   天峰律政 业务组件权威样式层 components.css
   建立时间：2026-11-22
   --------------------------------------------------------------------------
   作用
     把散落在各详情模板内联 <style> 里的业务组件样式，收敛到这一个文件。
     以后改这些组件，只改本文件，全站详情页同时生效，不会再漏页面。

   加载方式
     各详情模板在 </head> 之前引用，确保排在内联 <style> 之后，
     同特异性时本文件胜出，不需要 !important。

   前缀对照
     #tf-post      文章模板（article）主容器
     .tf-scoped    文章 / 案例模板的另一套作用域
     .cms-content  问答 / 报告模板
     .cms-text     产品模板

   收录组件
     s-terms / s-term       术语卡
     s-grid2 / s-act        双列卡片
     s-cis / s-ci           打勾卡片
     s-steps / s-step / s-step-n  步骤区
   ========================================================================== */

/* ===== 1. 术语卡：单卡落单时铺满整行，不再居中缩窄 ===== */
#tf-post .s-terms>.s-term:last-child:nth-child(odd),
.tf-scoped .s-terms>.s-term:last-child:nth-child(odd),
.cms-content .s-terms>.s-term:last-child:nth-child(odd),
.cms-text .s-terms>.s-term:last-child:nth-child(odd){grid-column:1/-1;justify-self:stretch;width:auto;max-width:none;}

/* ===== 2. 双列卡片：末张落单时跨满整行 ===== */
#tf-post .s-grid2>.s-act:last-child:nth-child(odd),
.tf-scoped .s-grid2>.s-act:last-child:nth-child(odd),
.cms-content .s-grid2>.s-act:last-child:nth-child(odd),
.cms-text .s-grid2>.s-act:last-child:nth-child(odd){grid-column:1/-1;}

/* ===== 3. 打勾卡片：末张落单时跨满整行 ===== */
#tf-post .s-cis>.s-ci:last-child:nth-child(odd),
.tf-scoped .s-cis>.s-ci:last-child:nth-child(odd),
.cms-content .s-cis>.s-ci:last-child:nth-child(odd),
.cms-text .s-cis>.s-ci:last-child:nth-child(odd){grid-column:1/-1;}

/* ===== 4. 术语卡标题引号：统一中文弯引号（项目引号铁律） ===== */
#tf-post .s-term h3::before,#tf-post .s-term h4::before,
.tf-scoped .s-term h3::before,.tf-scoped .s-term h4::before,
.cms-content .s-term h3::before,.cms-content .s-term h4::before,
.cms-text .s-term h3::before,.cms-text .s-term h4::before{content:'\201C';}
#tf-post .s-term h3::after,#tf-post .s-term h4::after,
.tf-scoped .s-term h3::after,.tf-scoped .s-term h4::after,
.cms-content .s-term h3::after,.cms-content .s-term h4::after,
.cms-text .s-term h3::after,.cms-text .s-term h4::after{content:'\201D';}

/* ===== 5. 步骤区标签：仅文章模板需要（其余模板本就是横排小字，不溢出） =====
   文章模板原来把 s-step-n 做成 position:absolute + 48px 宽 + 28px 字号，
   只适合「01」「02」两位数字；内容写成「黄金6小时内」这类中文短语时，
   48px 宽只能一字一行，竖排堆叠会压住下方区块。改为金底白字横排胶囊。 */
#tf-post .s-steps .s-step,
.tf-scoped .s-steps .s-step{padding:0 0 26px 0;}
#tf-post .s-steps .s-step:last-child,
.tf-scoped .s-steps .s-step:last-child{padding-bottom:0;}
#tf-post .s-steps .s-step .s-step-n,
.tf-scoped .s-steps .s-step .s-step-n{position:static;display:inline-block;width:auto;font-family:inherit;font-size:12px;font-weight:800;color:#fff;background:#B98A35;border:none;border-radius:999px;padding:3px 11px;line-height:1.5;letter-spacing:.5px;margin:0 0 9px;}

/* ===== 6. 案例模板：3 列网格末行落单跨满 ===== */
.tf-scoped .s-steps>.s-step:last-child:nth-child(3n+1){grid-column:1/-1;}

/* ===== 7. 手机端适配 ===== */
@media (max-width:600px){
  #tf-post .s-steps .s-step,
  .tf-scoped .s-steps .s-step{padding:0 0 22px 0;}
  #tf-post .s-steps .s-step .s-step-n,
  .tf-scoped .s-steps .s-step .s-step-n{font-size:12px;padding:2px 9px;margin:0 0 7px;}
}
