/* 企业社会责任 页面样式（作用域隔离版）
   整合自旧页实际生效样式：skin.css（CSR 专属，含多条 !important）+ 页面内联后置覆盖块，
   已按「浏览器实际级联净生效值」取值，确保 PC / 手机端与旧页一致。
   父模版与「关于我们」相同（framePage / 面包屑 / #list / footer 由父模版提供）。
   品牌色：标题 #002E6C / 主蓝 #00B9F2 / 浅底 #F9F9FB / 分隔线 #D9D9D9

   【作用域】本文件含 .banxin / .banner / .title / .summery / .readMoreContain 等通用类名，
   为避免外溢父模版公共区（页头 / 面包屑 / 页脚），除下列三项外全部规则加 .csr-page 前缀：
     · .csr-module / .csr-module.module-show —— 模块显隐开关（本模版自有）
     · .div_hidden                            —— 隐藏数据占位（本模版使用）
     · #csrList                               —— 本模版自有 id，本身唯一
   部署：整体覆盖到 /eportal/fileDir/dev/template/detail/corporateSocialResponsibility/cms.css */

/* 模块显隐：默认 display:none，JS 确认有数据后加 .module-show 显示，避免 FOUC */
.csr-module { display: none; }
.csr-module.module-show { display: block; }
.div_hidden { display: none !important; }

/* ===== 富文本归一化（.rich）=====
   focusProject.content / relatedAwardsList[].content 是富文本编辑器产出的 HTML，
   模版整段原样渲染（不解析固定结构），由本段把编辑器标签的视觉映射到旧页。
   需要对抗的父模版默认样式有三处：
     ① huilan-jquery-ui.css（CMS 门户基线，加载最早）：
        body,object,iframe,h1~h6,blockquote,a,code,em,img,q,small,strong,dd,dl,dt,li,ol,ul,
        fieldset,form,label,tbody,tr,th,td,input,textarea
        { color:#666; font-size:12px; font-family:"雅黑","宋体",verdana,sans-serif; margin:0; padding:0 }
        —— 对上述标签是「直接命中」而非继承。
     ② common.css：一长串标签的统一 reset（margin/padding/border 归零、box-sizing: border-box）。
     ③ bootstrap / layui 的 reboot：标题字号字重、a 的颜色下划线、code 颜色、mark 底色等。
   策略：先把 .rich 做成「版面孤岛」——容器自身定死正文基线，所有后代一律继承容器，再按标签映射。 */

/* 1) 版面孤岛：容器定基线 + 后代全量继承
   容器自身必须先定死「正文基线」，后代 inherit 才有正确来源 ——
   否则奖项项 <li class="rich"> 会直接继承父模版 huilan 的 li{font-size:12px;color:#666}，
   富文本里没被标签映射规则覆盖的标签（如 <div>/<span>/<u>）就会显示成 12px 雅黑。
   各区块更具体的选择器（.summery / .frame-awards > ul > li > p 等）特异性更高，照常生效。 */
.csr-page .rich {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #333333;
}
.csr-page .rich * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* 2) 抹平块级默认边距与列表符号（对抗 ②③） */
.csr-page .rich p,
.csr-page .rich h1, .csr-page .rich h2, .csr-page .rich h3,
.csr-page .rich h4, .csr-page .rich h5, .csr-page .rich h6,
.csr-page .rich ul, .csr-page .rich ol,
.csr-page .rich blockquote, .csr-page .rich figure {
  margin: 0;
  padding: 0;
}
.csr-page .rich ul, .csr-page .rich ol { list-style: none; }

/* 3) 加粗 = 切字体族，不是加字重。
   本项目的「加粗」是一个独立字体族：@font-face 把 'Rubik Bolder' 映射到
   NotoSansSC-Bold，且未声明 font-weight（按规范默认 400）。故这里切字体族、
   字重保持 400；若写 font-weight:bold(700)，浏览器会在这个已是 Bold 的 face 上
   再合成一次粗体（faux bold），比旧页更重。
   特异性高于第 1 条，因此容器标签（p/h3…）不会替内容加粗，加粗只由 <strong>/<b> 表达。 */
.csr-page .rich strong, .csr-page .rich b {
  font-family: 'Rubik Bolder';
  font-weight: 400;
}

/* 4) 其余内联标签的语义还原 */
.csr-page .rich em, .csr-page .rich i { font-style: inherit; }
.csr-page .rich a { color: inherit; text-decoration: inherit; }
.csr-page .rich img { max-width: 100%; height: auto; }
/* 手机端正文基线：与各区块手机端字号一致，供未被映射的标签继承 */
@media (max-width: 953px) {
  .csr-page .rich { font-size: 13px; line-height: 20px; }
}

/* ===== banner ===== */
.csr-page .banner {
  position: relative;
  height: 210px;
}
.csr-page .bgImgBox {
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  z-index: -1;
}
.csr-page .bgImgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.csr-page .bgImgBox .pcBgImg { display: block; }
.csr-page .bgImgBox .mobileBgImg { display: none; }
.csr-page .bannerTitle {
  position: relative;
  top: calc(50% - 25px) !important;
}
.csr-page .bannerTitle.banxin { margin: 0 auto; }
.csr-page .bannerTitle .title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -2%;
  vertical-align: middle;
  color: #002E6C;
  margin: 0;
}
@media (max-width: 953px) {
  .csr-page .banner {
    aspect-ratio: 25 / 12;
    width: 100%;
    height: auto;
  }
  .csr-page .bannerTitle {
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .csr-page .bannerTitle.banxin { margin: 0 !important; }
  .csr-page .bannerTitle .title {
    font-size: 30px;
    line-height: 36px;
  }
}

/* ===== 焦点项目（frame-pillars）===== */
.csr-page .frame-pillars .title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 40px;
  line-height: 60px;
  color: #002E6C;
  vertical-align: middle;
  margin: 0;
}
/* 二级标题：focusProject.title（可选字段，无值时由 JS 隐藏，不占空间） */
.csr-page .frame-pillars .focus-title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #002E6C;
  vertical-align: middle;
  margin: 0;
  padding: 16px 0 8px 0;
}
.csr-page .frame-pillars .summery {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  color: #333333;
  vertical-align: middle;
  margin: 0;
  padding: 12px 0 50px 0;
}
.csr-page .frame-pillars { margin-top: 40px; }
.csr-page .frame-pillars .summery { padding-top: 10px !important; }
@media (max-width: 953px) {
  .csr-page .frame-pillars { margin-top: 20px !important; }
  .csr-page .frame-pillars .title {
    text-align: center;
    font-size: 20px;
    line-height: 32px;
  }
  .csr-page .frame-pillars .focus-title {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    padding: 10px 0 6px 0;
  }
  .csr-page .frame-pillars .summery {
    font-size: 13px;
    line-height: 20px;
    padding: 10px 0 17px 0 !important;
  }
}

/* ===== 焦点项目 分类 tab（frame-csp-type）===== */
.csr-page .frame-csp-type {
  scrollbar-width: none;      /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none;   /* IE / Edge */
}
.csr-page .frame-csp-type::-webkit-scrollbar { display: none; }
.csr-page .frame-csp-type ul,
.csr-page .frame-csr-list ul { list-style: none; margin: 0; padding: 0; }
/* 奖项文字列表是 bootstrap <ul class="row">：margin 必须交给 .row 的 -12px 负边距，
   此处不可写 margin:0，否则会把栅格沟槽抵消掉（旧页 li 宽 287，写 0 后会变 281）。 */
.csr-page .frame-awards ul { list-style: none; padding: 0; }
.csr-page .frame-csp-type ul {
  display: flex;
  gap: 0 24px;
  flex-direction: row;
}
/* 桌面端取净生效值：后置 !important 覆盖后为 padding 15 / display block / width 1000px，
   由 flex 收缩为三等分（≈358px）。
   高度用 min-height 而非 height：卡片要随正文行数增长（旧页线上即如此，见 .summery 注释）。
   短文本仍以 380px 兜底，与原取值一致；同一行三张卡靠 flex 默认 align-items:stretch 自动等高。 */
.csr-page .frame-csp-type ul li {
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid transparent;
  box-shadow: 0px 20px 40px 0px rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  min-height: 380px;
  width: 1000px;
  display: block;
  position: relative;
}
.csr-page .frame-csp-type ul li img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}
.csr-page .frame-csp-type ul li.active { border-color: #00B9F2; }
.csr-page .frame-csp-type ul li .title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 24px;
  line-height: 35px;
  color: #333333;
  margin: 0;
  padding-top: 21px;
  padding-bottom: 11px;
}
/* 正文完整展示，不设行数上限。
   旧页快照里的 max-height:78px + overflow:hidden 会把第 4 行起裁掉（78px ≈ 3 行 × 26px），
   而线上旧页与用户截图为完整展示、卡片外框随文字增长；去掉裁切后卡片高度与旧页实测一致。 */
.csr-page .frame-csp-type ul li .summery {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  vertical-align: middle;
  color: #333333;
}
.csr-page .triangle-simple {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #D9D9D9;
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
}
.csr-page .parent-res { padding-bottom: 20px; }
/* 宽屏档位同样只保底不锁高：与桌面一致，卡片随正文增长，避免文字溢出卡片外框。 */
@media screen and (min-width: 1917px) and (max-width: 1970px) { .csr-page .frame-csp-type ul li { min-height: 400px !important; } }
@media screen and (min-width: 1970px) and (max-width: 2700px) { .csr-page .frame-csp-type ul li { min-height: 500px !important; } }
@media screen and (min-width: 2710px) and (max-width: 5300px) { .csr-page .frame-csp-type ul li { min-height: 700px !important; } }
@media (max-width: 953px) {
  .csr-page .frame-csp-type {
    overflow: auto;
    padding-bottom: 38px !important;
  }
  .csr-page .frame-csp-type ul { margin-bottom: 3px !important; }
  .csr-page .frame-csp-type ul li {
    width: 1000px;
    height: auto;
    /* 手机端取消桌面 380px 保底高：旧页手机端是 height:auto（桌面定高由 height 承担，
       height:auto 天然抵消）；本模版改成了 min-height，必须显式归零才等效。 */
    min-height: 0;
  }
  .csr-page .frame-csp-type ul li img {
    width: 280px;
    height: 158px;
  }
  .csr-page .frame-csp-type ul li .title {
    font-size: 16px;
    line-height: 24px;
    padding-top: 21px;
    padding-bottom: 8px;
  }
  .csr-page .frame-csp-type ul li .summery {
    font-size: 14px;
    line-height: 18px;
  }
  .csr-page .triangle-simple {
    left: 52% !important;
    bottom: -40px !important;
  }
  .csr-page .parent-res { padding-bottom: 0 !important; }
}

/* ===== 项目列表（frame-csr-list）===== */
/* 旧页面「浅底色带」属于区域容器 .easysite-section-three（不是 .frame-csr-list 自身）：
   bg #F9F9FB + 上边框 + 上下 padding + 左右 24px。新模版映射到列表模块根 #csrList。 */
#csrList {
  background-color: #F9F9FB;
  border-top: 1px solid #D9D9D9;
  padding: 40px 24px 50px;
}
.csr-page .frame-csr-list .module-title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  vertical-align: middle;
  color: #002E6C;
  margin: 0;
  padding: 0 0 31px 0;
}
.csr-page .frame-csr-list ul li {
  border-bottom: 1px solid #D9D9D9;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.csr-page .frame-csr-list ul li .title {
  font-family: 'Rubik Bolder';
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  margin: 0;
  padding-bottom: 0;
}
.csr-page .frame-csr-list ul li .summery {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  margin: 0;
}
.csr-page .readMoreContain { display: none; }
.csr-page .readMoreContain .readMore { padding-top: 18px; }
.csr-page .readMoreContain .readMore a {
  font-family: 'Rubik Bolder';
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #00B9F2;
  display: flex;
  align-items: center;
}
/* 注意：勿给「了解更多」图标设 width —— 旧页面没有这条规则，
   该 SVG 按原始尺寸 20×21 渲染；强行设 14px 会让链接矮 1px，进而使整个列表少 2px。 */
@media (max-width: 953px) {
  #csrList {
    background-color: #FFFFFF !important;
    padding: 0 !important;
  }
  .csr-page .frame-csr-list .module-title {
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin-top: 13px !important;
  }
  .csr-page .frame-csr-list ul li .title {
    font-size: 14px;
    line-height: 20px;
  }
  .csr-page .frame-csr-list ul li .summery {
    font-size: 13px;
    line-height: 20px;
  }
}

/* ===== 相关奖项 图片（frame-Awards）===== */
.csr-page .frame-Awards ul {
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.csr-page .frame-Awards ul li {
  width: 25%;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 20px 40px 0px rgba(16, 24, 40, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}
.csr-page .frame-Awards ul li img { width: 100%; }
/* 末行占位 li（由 JS 补足到 3 的倍数）：桌面端末行不足 3 张时，
   space-between 会把末行两项拉散（第 5 张错位到最右、对不上第 2 张）；
   补占位后末行按满行列位对齐。visibility:hidden 保留布局占位但不绘制；
   手机端两列布局不受影响，直接不参与。 */
.csr-page .frame-Awards ul li.awards-placeholder { visibility: hidden; }
.csr-page .frame-Awards .frame-Awards-title {
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 40px;
  line-height: 60px;
  color: #002E6C;
  vertical-align: middle;
  margin: 0;
  padding: 50px 0 50px 0;
}
@media (max-width: 953px) {
  .csr-page .frame-Awards ul li {
    width: 48%;
    padding: 0px 0 0 0 !important;
  }
  .csr-page .frame-Awards ul {
    gap: 10px;
    justify-content: space-between;
  }
  .csr-page .frame-Awards ul li.awards-placeholder { display: none; }
  .csr-page .frame-Awards .frame-Awards-title {
    padding: 0px 0 16px 0 !important;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }
}

/* ===== 相关奖项 文字（frame-awards）=====
   relatedAwardsList[].content 是富文本，模版整段原样渲染进 <li class="rich">，
   不做结构解析；下面按「标签」把它映射成旧页 .title / .summery / .year 的视觉：
     <h1>~<h6>  -> 旧页 .year（年份；桌面隐藏、手机显示）
     <p>        -> 旧页 .title（机构名）
     <ul><li>   -> 旧页 .summery（说明，带圆点）
   注意：外层 ul 与富文本内层 ul 都会命中 `ul li`，必须用 > 子选择器区分，
   否则内层 li 会被误套 25% 宽度和分隔线。 */
.csr-page .frame-awards { padding: 50px 0; }
/* 年份 = 富文本里的标题标签。只定字号行高颜色，不加粗——
   旧页 .year 的加粗来自内容里的 <strong>（见 .rich strong 切到 'Rubik Bolder'）。 */
.csr-page .frame-awards > ul > li > h1,
.csr-page .frame-awards > ul > li > h2,
.csr-page .frame-awards > ul > li > h3,
.csr-page .frame-awards > ul > li > h4,
.csr-page .frame-awards > ul > li > h5,
.csr-page .frame-awards > ul > li > h6 {
  font-family: 'Rubik Regular';
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  margin: 0;
}
/* 桌面端与图片区一致「一行 3 个」：li 宽 25%，加 column-gap 让第 4 个必然换行
   （4×25% + 3×20px > 100%）。满行 3 个时 space-between 的自然间距（≈143px）
   远大于 20px，gap 被完全吸收，满行外观与旧页逐像素一致。
   注意只加 column-gap 不加 row-gap：row-gap 会改变换行后的纵向间距。 */
.csr-page .frame-awards > ul {
  display: flex;
  justify-content: space-between;
  column-gap: 20px;
}
.csr-page .frame-awards > ul > li {
  width: 25%;
  padding: 0 8px;
  margin-top: 16px;
  box-sizing: border-box;
}
/* 末行占位 li（由 JS 补足到 3 的倍数）：桌面端末行不足 3 个时按列位对齐，
   visibility:hidden 保留布局占位但不绘制；手机端为纵向列表，直接不参与（display:none）。 */
.csr-page .frame-awards ul li.awards-placeholder { visibility: hidden; }
/* 机构名 = 旧页 .title。只定字号行高颜色，不加粗——
   旧页 .title 的加粗来自内容里的 <strong>（见 .rich strong 切到 'Rubik Bolder'）。 */
.csr-page .frame-awards > ul > li > p {
  font-family: 'Rubik Regular';
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  margin: 0;
  padding-bottom: 8px;
}
/* 说明 = 旧页 .summery（编辑器可能写成 <ul><li>，也可能写成多段 <p>）
   旧页此处是 <div>（display:block）；富文本里是 <li>，补 display:block 消除 list-item 差异 */
.csr-page .frame-awards > ul > li > ul > li,
.csr-page .frame-awards > ul > li > p ~ p {
  display: block;
  font-family: 'Rubik Regular';
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  margin: 0;
}
/* 小圆点：仅奖项文字项可见（项目列表 summery 为空，不显示） */
.csr-page .frame-awards > ul > li > ul > li::before,
.csr-page .frame-awards > ul > li > p ~ p::before,
.csr-page .frame-csr-list ul li .summery::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background-color: black;
  border-radius: 50%;
  vertical-align: middle;
  margin-bottom: 3px;
}
/* 桌面端隐藏「年份」（旧页面行为：年份仅手机端显示） */
@media (min-width: 953px) {
  .csr-page .frame-awards > ul > li > h1,
  .csr-page .frame-awards > ul > li > h2,
  .csr-page .frame-awards > ul > li > h3,
  .csr-page .frame-awards > ul > li > h4,
  .csr-page .frame-awards > ul > li > h5,
  .csr-page .frame-awards > ul > li > h6 { display: none; }
}
@media (max-width: 953px) {
  .csr-page .frame-awards { padding: 12px 30px !important; }
  /* column-direction 下 column-gap 会变成纵向间距，必须归零，
     否则桌面端的 20px 会泄漏成手机端文字项之间多出的 20px 空隙 */
  .csr-page .frame-awards > ul { flex-direction: column; column-gap: 0; }
  .csr-page .frame-awards ul li.awards-placeholder { display: none; }
  .csr-page .portlet .frame-awards > ul > li {
    width: 100% !important;
    border-bottom: 0.5px solid #D9D9D9;
    padding-bottom: 8px;
    margin-top: 24px;
  }
  .csr-page .frame-awards > ul > li > p {
    font-size: 14px;
    line-height: 20px;
  }
  /* 年份落在第一个奖项内部：把旧页「year → 首个奖项」的 24px 间距，
     移到「年份 → 机构名」之间，使版面与旧页逐行对齐。 */
  .csr-page .frame-awards > ul > li > h1,
  .csr-page .frame-awards > ul > li > h2,
  .csr-page .frame-awards > ul > li > h3,
  .csr-page .frame-awards > ul > li > h4,
  .csr-page .frame-awards > ul > li > h5,
  .csr-page .frame-awards > ul > li > h6 {
    /* 年份在首个奖项的 <li> 内，而旧页 .year 在列表之外：
       左右各补 4px（= ul.row 的 -12px 负边距 − li 的 8px 内边距），
       使年份左缘与宽度和旧页 .year 完全对齐；
       下边距 24px = 旧页「year → 首个奖项」的间距，移到年份与机构名之间。 */
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 24px;
  }
  .csr-page .frame-awards > ul > li:first-child:has(> h1, > h2, > h3, > h4, > h5, > h6) {
    margin-top: 0 !important;
  }
  .csr-page .frame-awards > ul > li > ul > li,
  .csr-page .frame-awards > ul > li > p ~ p {
    font-size: 13px;
    line-height: 20px;
  }
}

/* ===== 移动端 .banxin 全宽 + 24px 内边距
   （旧页面内联，原本作用于 CSR 页所有 banxin；此处收窄到模版内，避免影响父模版面包屑等）===== */
@media (max-width: 953px) {
  .csr-page .banxin {
    width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
  }
}