/* ============================================================
   湖南钢铁集团 · 可持续发展专栏样式（绿色低碳 / 超低排放 / 绿色工厂名录）
   依赖：greenSteel.css（公共布局 .cont/.w1440/.common-tit/.mt_100 等）
   本文件包含三个页面的专属样式：
     - 卡片列表（绿色低碳交流/技术/认证）   plist/prow/pimg/ptag/ptxt/pdate/psum
     - 超低排放实景图集                     gal/gcard/gimg/gmeta
     - 绿色工厂名录表格 + 横向滚动图集       tbl/lvl + hscroll/hcard
   上传位置：/static/cn/css/sustainable.css
============================================================ */

/* ============================================================
   绿色低碳交流（.exchange）与 技术应用与突破（.tech）两个卡片列表——
   标题（.common-tit）与新闻列表（.plist.list）间距统一锁定为 40px。
   重要：技术板块外层曾用 .path，会命中 greenSteel.css 的全局
        ".path .list{padding:36px 42px}"，导致列表内缩靠右、间距变大。
        现已把外层类改为 .tech 规避冲突，并显式锁定两板块 40px，
        确保两者完全对齐、各端一致（不受 reset 窄屏覆盖 mt_40 影响）。
============================================================ */
.exchange .plist.list,
.tech .plist.list { margin-top: 40px; }

/* ============================================================
   绿色钢铁内页 —— 标题配色（深绿体系）
   板块标题（.common-tit h2）由黑色改为深绿 #1B4D3E；
   标题装饰线、悬停色统一为 #2E7D6B（与绿色工厂表头同色）。
   说明：本规则放在文件顶部，后续同名规则（如 .ov-txt h2）按需覆盖。
============================================================ */
.common-tit h2 { color: #1B4D3E; }

/* ---- 卡片列表（绿色低碳交流 / 技术 / 认证）---- */
.plist { border-top: 1px solid #e5e5e5; }

/* 一条记录：左图 440px + 右侧文字，上下留白、下分隔线 */
.prow {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 52px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
}
.prow:hover { color: #333; text-decoration: none; }

/* 卡片列表最后一条去掉底部横线，避免与下一板块之间出现多余灰色分隔线 */
.exchange .plist .prow:last-child,
.tech .plist .prow:last-child { border-bottom: none; }

/* 左侧图：16/10 比例，左上角标签 */
.pimg {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef0f4;
  display: block;
}
.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.prow:hover .pimg img { transform: scale(1.04); }
.pimg .ptag {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(27, 55, 155, .94);
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 6px 13px;
  line-height: 1.4;
}

/* 右侧文字 */
.ptxt { min-width: 0; }
.ptxt .pdate {
  display: block;
  color: #999;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.ptxt h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .01em;
  transition: color .25s;
  color: #666666;          /* 新闻列表（绿色低碳交流 / 技术应用与突破）标题：灰色 */
}
.prow:hover .ptxt h3 { color: #2E7D6B; }
.ptxt .psum {
  color: #777;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ptxt .more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1B4D3E;
  margin-top: 14px;
  transition: color .25s;
}
.prow:hover .ptxt .more { color: #2E7D6B; }
.ptxt .more::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid #1B4D3E;
  border-top: 1px solid #1B4D3E;
  transform: rotate(45deg);
  margin-left: -4px;
}

/* 移动端：缩成单列 */
@media (max-width: 768px) {
  .prow { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   绿色低碳页 —— 板块标题右侧「查看更多」
============================================================ */
.common-tit .more-link {
  margin-left: auto;
  color: #1B4D3E;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color .25s;
}
.common-tit .more-link:hover { color: #2E7D6B; }
.common-tit .more-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ============================================================
   绿色低碳页 —— 绿色产品认证实绩 图集
   （参考老 greenSteel.css 中 .factory .img 的固定尺寸思路：
     统一图片高度 + object-fit，使不同尺寸的图也等高，
     配合下方标题/文字对齐；slide 改为纵向 flex 从顶部对齐）
============================================================ */
.emission .swiper-slide {
  display: flex;
  flex-direction: column;   /* 图片在上、标题/文字在下，统一从顶部排列 */
}
.emission .img {
  width: 280px;             /* 固定图片宽度 */
  max-width: 100%;          /* 窄屏不溢出 */
  height: 190px;            /* 固定图片高度，大小图统一尺寸 */
  margin: 0 auto;           /* 在轮播列内居中（桌面端严格 280×190） */
  overflow: hidden;
  border-radius: 8px;
  background: #f5f6f8;      /* 比例不同时的留白底色 */
}
.emission .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 统一裁切填满，保证每张矩形尺寸一致 */
  display: block;
  transition: transform .6s ease;
}
.emission .swiper-slide:hover .img img {
  transform: scale(1.04);
}
.emission .tit {
  text-align: center;
  margin-top: 12px;
  font-weight: bold;
  min-height: 24px;         /* 标题单行/双行均占同高，与相邻卡片对齐 */
}

/* ============================================================
   绿色低碳页 —— 绿色产品认证实绩 图集描述
   （图集结构复用 greenSteel.css 的 .emission/.swiper/.tit，
     这里只补 .des 描述文字的样式）
============================================================ */
.emission .swiper-slide .des {
  margin-top: 8px;
  text-align: center;
  color: #777;
  line-height: 1.8;
  /* 最多两行，超出省略，保证每张卡片高度一致 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   超低排放页 / 绿色工厂名录页 —— 页首说明段落
   （greenSteel.css 里只定义了 .emission .summary 和 .factory .summary，
     超低排放/工厂名录页的说明在 .intro 里，需要单独补一条）
============================================================ */
.intro .summary {
  line-height: 2;
  margin-top: 10px;
  color: #666;
}

/* ============================================================
   绿色工厂名录页 —— 工作动态
   结构完全复用 greenSteel.css 的 .news .list / .item / .time / .tit
   （两列网格、虚线底边、右侧箭头都已有），这里只做移动端单列处理。
============================================================ */
@media (max-width: 768px) {
  .news .list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news .item {
    padding-right: 24px;
  }
  .news .time {
    width: 90px;
    flex: none;
  }
}

/* ============================================================
   超低排放页 —— 改造实景图集（gal/gcard/gimg/gmeta）
============================================================ */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.gcard {
  border: 1px solid #eceeef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: box-shadow .35s, transform .35s;
}
.gcard:hover {
  box-shadow: 0 10px 28px rgba(11, 36, 105, .10);
  transform: translateY(-4px);
}
.gimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f4; display: block; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.gcard:hover .gimg img { transform: scale(1.05); }
.gimg .zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(27, 55, 155, .9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gcard:hover .gimg .zoom { opacity: 1; }
.gmeta { padding: 16px 18px 18px; }
.gmeta h3 { font-size: 17px; font-weight: 700; color: #222; margin: 0 0 8px; line-height: 1.4; }
.gmeta p { font-size: 14px; color: #777; line-height: 1.9; margin: 0; }

@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }

/* ============================================================
   绿色工厂名录页 —— 表格 + 横向滚动图集
   注意：表格样式直接用 greenSteel.css 里的全局 table/th/td
        （深蓝表头、居中、斑马纹），这里不再重复定义；只做移动端横向滚动兜底。
============================================================ */
#factoryTable { width: 100%; }

@media (max-width: 768px) {
  /* 窄屏下表格 5 列会挤，允许横向滚动 */
  .factory .w1440 { overflow-x: auto; }
  #factoryTable { min-width: 640px; }
  #factoryTable th, #factoryTable td { padding: 10px 8px; font-size: 14px; }
}

/* 横向滚动图集 */
.hscroll { position: relative; }
.hs-viewport { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hs-viewport::-webkit-scrollbar { display: none; }
.hs-track { display: flex; gap: 22px; }
.hcard.pic {
  flex: 0 0 auto; width: 320px; border: 1px solid #eceeef; border-radius: 10px;
  overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: left;
  transition: box-shadow .35s, transform .35s;
}
.hcard.pic:hover { box-shadow: 0 10px 28px rgba(11,36,105,.10); transform: translateY(-4px); }
.hcard.pic .pimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f4; }
.hcard.pic .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.hcard.pic:hover .pimg img { transform: scale(1.05); }
.hcard.pic .pimg .zoom {
  position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(27,55,155,.9); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.hcard.pic:hover .pimg .zoom { opacity: 1; }
.hcard.pic .pcap { padding: 14px 16px; }
.hcard.pic .pcap h3 { font-size: 16px; font-weight: 700; color: #222; margin: 0; }
.hs-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 18px; }
.hs-count { color: #999; font-size: 14px; }
.hs-count b { color: #1B379B; font-size: 20px; }
.hs-btns { display: flex; gap: 10px; }
.hs-btn {
  width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%;
  background: #fff; cursor: pointer; color: #1B379B; position: relative;
}
.hs-btn i {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  border-left: 2px solid #1B379B; border-bottom: 2px solid #1B379B;
}
.hs-btn.prev i { transform: translate(-30%, -50%) rotate(45deg); }
.hs-btn.next i { transform: translate(-70%, -50%) rotate(225deg); }
.hs-btn:hover { background: #1B379B; border-color: #1B379B; }
.hs-btn:hover i { border-color: #fff; }

/* ============================================================
   概览页（新增二级栏目）—— 图文左右交替 + 左右进入动效
   样式复制自原型 baowugroup 概览页（金色下划线 + 滚动联动揭幕动效）
============================================================ */
.sec-ov { padding: 28px 0 32px; overflow: hidden; }
.ov-list { display: flex; flex-direction: column; gap: 52px; }
.ov-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ov-row.rev .ov-media { order: 2; }
.ov-media { margin: 0; overflow: hidden; background: #eef0f4; aspect-ratio: 2 / 1; }
.ov-media img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.ov-row:hover .ov-media img { transform: scale(1.035); }
.ov-txt { min-width: 0; }
.ov-txt h2 { font-size: 28px; line-height: 1.42; font-weight: 700; letter-spacing: .01em;
  margin: 10px 0 14px; padding-bottom: 14px; position: relative; color: #1B4D3E; }
.ov-txt h2::after { content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 2px; background: #2E7D6B; }
.ov-txt p { font-size: 16px; line-height: 1.9; color: #777; text-align: justify; }

/* 进入动效（对齐线上宝武页：滚动进度绑定 scrub）
   各段均为方向滑入 + 淡入（不再使用揭幕幕布，避免图片被幕布遮挡）
   first 段：标题+文字从左边、图片从右边；seq 段：图片→标题→文字，均从左到右
   默认（无 JS / 减弱动效）全部正常显示；脚本初始化后给 .sec-ov 加 .anim-ready 才进入动画态 */
.ov-media { position: relative; }
.sec-ov.anim-ready .ov-txt { will-change: transform, opacity; }
/* 逐帧变换的元素 */
.sec-ov.anim-ready [data-anim="first"] .ov-media,
.sec-ov.anim-ready [data-anim="seq"] .ov-media,
.sec-ov.anim-ready [data-anim="seq"] .ov-head,
.sec-ov.anim-ready [data-anim="seq"] .ov-txt p { will-change: transform, opacity; }
/* 尊重系统“减弱动效”偏好：脚本不加 .anim-ready，内容直接显示 */
@media (prefers-reduced-motion: reduce) {
  .ov-media img, .ov-row:hover .ov-media img { transition: none; }
}

@media (max-width: 1400px) { .ov-row { gap: 44px; } .ov-list { gap: 44px; } }
@media (max-width: 1024px) {
  .ov-row { grid-template-columns: 1fr; gap: 22px; }
  .ov-row.rev .ov-media { order: 0; }
  .ov-list { gap: 44px; }
  .ov-txt h2 { padding-bottom: 12px; margin-bottom: 12px; }
}
@media (max-width: 768px) {
  .sec-ov { padding: 20px 0 24px; }
  .ov-txt p { text-align: left; }
}

/* ============================================================
   绿色工厂页 —— 绿色表头(#2E7D6B 白字) + 浅绿斑马纹 + 行悬停加深
   覆盖 greenSteel.css 全局 table/th/td（深蓝表头、浅蓝斑马纹）
   级别徽章（国家级 / 省级）调整为绿色系
============================================================ */
#factoryTable thead th {
  background: #2E7D6B;
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;   /* 表头文字不换行，避免窄列（如序号）被挤成两行撑高表头 */
}
#factoryTable tbody td { border: 1px solid rgba(46,125,107,.16); color: #4a5b56; }
#factoryTable tbody tr:nth-child(even) td { background: #f1f7f4; }
#factoryTable tbody tr:hover td { background: #e6f1ec; }
/* 级别徽章：国家级 / 省级 均走绿色系 */
.lvl { display: inline-block; font-size: 14px; padding: 2px 10px;
  letter-spacing: .02em; border: 1px solid transparent; }
.lvl.gj { color: #1f6b57; border-color: rgba(31,107,87,.40); background: #e3f1ea; }
.lvl.sj { color: #2E7D6B; border-color: rgba(46,125,107,.32); background: rgba(46,125,107,.07); }

/* 顶部留白再减半：绿色钢铁 4 个页面 .cont 由 pt_50(50px) 进一步减为 25px（tab 到首个标题整体缩小一倍） */
.pt_50 { padding-top: 25px; }
/* 紧贴 tab 下方的首个内容模块上间距减半：mt_100 -> 50，避免 tab 到首个标题留白过大（不影响模块间间距） */
.cont > .mt_100:first-child { margin-top: 50px; }

/* 认证图集放大弹层：图片下方带出 标题(.txt) + 描述文字(.des) */
.pop-up .desc { margin-top: 6px; color: #cfd3dc; font-size: 14px; line-height: 1.8; text-align: center; }

/* 弹层加高：greenSteel.css 里 .pop-up .box 是 max-height:70vh + overflow:hidden，
   图片区又按宽度 38% 撑高，加上标题+描述后总高超出被裁掉（描述被遮住）。
   这里把框体加高、图片区改为按视口高度自适应，并让图片等比完整显示不裁切。 */
.pop-up .box { max-height: 88vh; }
.pop-up .box .img { height: 58vh; padding-bottom: 0; }
.pop-up .box .img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;   /* 等比完整显示，长图/宽图都不裁切 */
}
.pop-up .box .txt { padding: 16px 24px 0; }
.pop-up .box .desc { padding: 0 24px 18px; margin-top: 6px; }

@media (max-width: 768px) {
  .pop-up .box { max-height: 90vh; }
  .pop-up .box .img { height: 46vh; }
  .pop-up .box .txt { padding: 12px 16px 0; }
  .pop-up .box .desc { padding: 0 16px 14px; }
}

/* ============================================================
   绿色钢铁 4 页 —— Tab 标签放大 / 标签间距加大
   基线（base.css + reset.css）：
     .nav-tab .item { margin-left: 2vw }；a.fnt_16 { font-size: 16px }
   本次：字号 16px → 20px（+4px）；相邻标签间距 2vw → calc(2vw + 30px)
   仅作用于 .nv_top .w1440 .nav-tab，不影响其他栏目页
============================================================ */
@media (min-width: 769px) {
  .nv_top .w1440 .nav-tab .item { margin-left: calc(2vw + 30px); }
  .nv_top .w1440 .nav-tab .item:nth-child(1) { margin-left: 0; }
  .nv_top .w1440 .nav-tab .item a { font-size: 20px; }
}

/* 小屏：字号同步 +4（14 → 18），间距不加，避免标签横向溢出 */
@media (max-width: 768px) {
  .nv_top .w1440 .nav-tab .item a { font-size: 18px; }
}

