/* 复刻站补丁 CSS：采用参考站方案
   视频：aspect-ratio 16:9 纯CSS（高度自动跟随宽度）
   集团产业：radio + :checked 纯CSS tab 切换
*/

/* ============ 1. 视频：aspect-ratio 16/9，铺满容器 ============ */
#w_carouselbox-1583220394173 {
  min-height: 0 !important;
  overflow: hidden !important;
}
#w_carouselbox-1583220394173 > .w_carouselbox {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  background: #071d34;
}
#w_carouselbox-1583220394173 .p_carouselbox,
#w_carouselbox-1583220394173 .p_carouselChild,
#w_fvideo-1583220410027,
#w_fvideo-1583220410027 > .w_fvideo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
#w_fvideo-1583220410027 video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* 视频上的文字层容器（w_grid）也需要铺满 */
#w_carouselbox-1583220394173 .p_carouselChild .w_grid-000,
#w_carouselbox-1583220394173 .p_carouselChild .p_gridbox,
#w_carouselbox-1583220394173 .p_carouselChild .p_gridCell {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ============ 2. 集团产业：radio + :checked 纯CSS切换 ============ */
.industryIbox {
  position: relative;
  overflow: hidden;
  /* 不加蓝色蒙版（原网站图直接铺满 panel，无需蒙版）*/
  background: transparent;
}
.industry-switch {
  /* display:none 让 input 完全不可 focus，避免点击 label 时浏览器 scrollIntoView 到 input 导致页面跳转 */
  display: none;
}
.industryIDemo > .item {
  display: none !important;
  position: relative;
}
/* 第一个 radio checked 时显示第一个面板，第二个同理 */
#industry-panel-0:checked ~ .industryIDemo > .item:nth-child(1),
#industry-panel-1:checked ~ .industryIDemo > .item:nth-child(2) {
  display: block !important;
}
#industry-panel-0:checked ~ .industryIDemo > .item:nth-child(2),
#industry-panel-1:checked ~ .industryIDemo > .item:nth-child(1) {
  display: none !important;
}
/* 文字入场：默认隐藏+右移，checked 时滑入淡入 */
.industryIDemo > .item .con {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(88px) !important;
  transition: opacity 0.5s ease, transform 0.65s ease;
}
#industry-panel-0:checked ~ .industryIDemo > .item:nth-child(1) .con,
#industry-panel-1:checked ~ .industryIDemo > .item:nth-child(2) .con {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(0, 0) !important;
  transition: opacity 0.5s ease 0.15s, transform 0.65s ease 0.15s;
}
/* tab 导航（label）可点击 */
.industryINav {
  z-index: 10;
  position: relative;
}
.industryINav > .item {
  cursor: pointer;
  user-select: none;
}
/* tab 选中态（itemC::before 是背景渐变条） */
#industry-panel-0:checked ~ .industryINav > .item:nth-child(1) .itemC::before,
#industry-panel-1:checked ~ .industryINav > .item:nth-child(2) .itemC::before {
  transform: scaleX(1) !important;
  -webkit-transform: scaleX(1) !important;
  visibility: visible !important;
}
#industry-panel-0:checked ~ .industryINav > .item:nth-child(2) .itemC::before,
#industry-panel-1:checked ~ .industryINav > .item:nth-child(1) .itemC::before {
  transform: scaleX(0) !important;
  -webkit-transform: scaleX(0) !important;
  visibility: hidden !important;
}
#industry-panel-0:checked ~ .industryINav > .item:nth-child(2) .addico,
#industry-panel-1:checked ~ .industryINav > .item:nth-child(1) .addico {
  opacity: 0;
  visibility: hidden;
  transform: rotate(90deg);
}
.industryINav .itemC {
  transition: background-color 0.3s ease;
}
.industryINav .itemC:hover {
  background: rgba(24, 24, 120, 0.45);
}

/* ============ 3. 新闻中心响应式 ============ */
@media (max-width: 768px) {
  #w_carouselbox-1583220394173 > .w_carouselbox {
    aspect-ratio: 16 / 9;
  }
  .industryINav > .item {
    width: 50% !important;
  }
  #c_portalResNews_list-16049981518299980 .leftBox,
  #c_portalResNews_list-16049981518299980 .rightBox {
    width: 100% !important;
    padding-left: 0 !important;
  }
  #c_portalResNews_list-16049981518299980 .container {
    max-width: 100% !important;
    height: auto !important;
  }
  #c_portalResNews_list-16049981518299980 .newList {
    width: 100% !important;
  }
  .industryIDemo .con {
    left: 5% !important;
    top: 10% !important;
    width: 90% !important;
  }
}

/* ============ 4. 新闻中心图片 ============ */
/* 小图完整显示（不裁剪）*/
/* 大新闻图（左大图）：容器 800/321 比例（文章0.jpg 800×321），无上左右边框贴边 */
#c_portalResNews_list-16049981518299980 .leftBox .newDetailLink {
  padding: 0 !important;
}
#c_portalResNews_list-16049981518299980 .leftBox .newPicBox {
  aspect-ratio: 800 / 321 !important;
  height: auto !important;
  width: 100% !important;
  overflow: hidden;
  margin: 0 !important;
}
#c_portalResNews_list-16049981518299980 .leftBox .newPicBox .newPic,
#c_portalResNews_list-16049981518299980 .leftBox .newPicBox img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
/* 文字层：保留下方 padding 让文字和下面板块有间距 */
#c_portalResNews_list-16049981518299980 .leftBox .content {
  padding: 20px !important;
  height: auto !important;
}

/* 小图：容器 140×81（官网 141×81 比例），图 cover 填满 */
#c_portalResNews_list-16049981518299980 .rightBox .newDetailLink {
  padding: 8px 16px !important;  /* 上下 8px（让 link 紧凑），左右 16px */
  align-items: center !important;
}
#c_portalResNews_list-16049981518299980 .rightBox .newDetailLink .contentR {
  height: 70px !important;  /* 固定高度 70（你希望的大小） */
  display: flex !important;
  align-items: center !important;
  padding-left: 22px !important;  /* 标题左边距小图 22px */
  flex: 1;
}
#c_portalResNews_list-16049981518299980 .rightBox .newPicBox {
  width: 140px !important;
  height: 81px !important;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
}
#c_portalResNews_list-16049981518299980 .rightBox .newPicBox .newPic,
#c_portalResNews_list-16049981518299980 .rightBox .newPicBox img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
}
/* 大新闻图保持 cover 填满 */
.newLeftBox .newPic img,
.c_portalResNews_list-16049981518299980 .leftBox .newPic img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.newPic:hover {
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* ============ 5. Lightbox ============ */
.fix-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fixLightboxFade 0.25s ease-out;
}
@keyframes fixLightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fix-lightbox-inner {
  max-width: 92vw;
  max-height: 92vh;
  position: relative;
}
.fix-lightbox-inner img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.fix-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border: none;
  color: #333;
  z-index: 1000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.fix-lightbox-close:hover {
  background: #fff;
  color: #000;
}
