/* ==========================================================================
   静态首页补丁样式 (home-static.css)
   本文件在 index.html 中位于所有外链 CSS 之后加载, 同特异性下优先级最高。
   作用:
     1) 彻底解除桌面端 1100px 固定栅格 (原站 .main/.row0/.row1/.nav-panel-container)
     2) 把图片新闻轮播从 SuperSlide 的写死像素宽改为纯响应式 flex 滑动
     3) 保证二级导航面板 / tab 面板的 active 切换在静态化后依然生效
   ========================================================================== */

/* ---------- 1. 解除桌面固定宽 ---------- */
html body .main,
html body .header,
html body .header-container,
html body .nav,
html body .nav > ul,
html body .nav-panel-container,
html body .footer,
html body .footer > div,
html body .content,
html body .content.index,
html body .row0,
html body .row1,
html body .index-lunbo,
html body .index-lunbo > div,
html body .list.mh,
html body .slideBox,
html body .slideBox .bd,
html body .slideBox .hd {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .main,
html body .content,
html body .content.index {
  width: 100% !important;
}

/* 原站 .header-left > a {width:720px} —— 机构名称链接 */
html body .header-left > a {
  width: auto !important;
  max-width: 100% !important;
}

/* 首页统计图表原为 600px / 540px 固定宽 */
html body #np-tongjishuju .chart,
html body #np-tongjishuju .chart img,
html body #np-tongjishuju .chart svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* 轮播 / 公告滚动区原为 1064px / 950px / 960px 固定宽 */
html body .scroll_picDiv,
html body #scroll_picDiv,
html body .change_picDiv,
html body .scroll_div,
html body #scroll_div,
html body .marquee,
html body .marquee > .txtMarquee-left,
html body .marquee > .txtMarquee-right,
html body .txtMarquee-left,
html body .txtMarquee-right {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* ---------- 2. 静态轮播: flex 响应式 ---------- */
html body .slideBox .bd .tempWrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
}

html body .slideBox .bd .tempWrap > ul {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  left: 0 !important;
  top: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  transition: transform 0.5s ease;
  -webkit-transition: transform 0.5s ease;
}

html body .slideBox .bd .tempWrap > ul > li {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

html body .slideBox .bd .tempWrap > ul > li > a {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

html body .slideBox .bd .tempWrap img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

/* 灰度 SVG 版本与 img 二选一, 静态版统一用 img */
html body .slideBox .bd .tempWrap .ng-hide {
  display: none !important;
}

/* 轮播标题与圆点 */
html body .slideBox .hd .slide-title {
  display: none;
}
html body .slideBox .hd .slide-title:first-child {
  display: block;
}
html body .slideBox .hd ul li {
  cursor: pointer;
}

/* ---------- 3. 面板切换 (静态化后由 home-static.js 控制 active) ---------- */
html body .nav-panel-container {
  display: none;
}
html body .nav-panel-container > .active {
  display: block !important;
}
html body .nav-panel {
  display: none;
}
html body .nav-panel-container > .active.nav-panel {
  display: block !important;
}

html body .list > .panels > .panel {
  display: none;
}
html body .list > .panels > .active {
  display: block !important;
}

/* Angular 遗留类: ng-hide 仍需保留 display:none */
.ng-hide {
  display: none !important;
}

/* ---------- 4. 浮窗 ---------- */
html body .telephone_box,
html body .jinrongImg {
  z-index: 1200;
}

/* ---------- 5. 静态页无障碍提示条不参与布局 ---------- */
html body .esd-tools,
html body #esdTipLink1 {
  max-width: 100% !important;
}

/* ---------- 6. 移动端专属调整 ---------- */
@media (max-width: 768px) {
  /* 轮播容器原为固定 380px 高, 窄屏下图片按比例缩放后会留大片空白 */
  html body .slideBox .bd .tempWrap {
    height: auto !important;
    min-height: 0 !important;
  }
  html body .slideBox .hd {
    height: auto !important;
    min-height: 0 !important;
  }
  html body .slideBox .hd .slide-title {
    padding-right: 0 !important;
  }

  /* 桌面端广告飘窗按 1100px 版心定位, 窄屏会溢出屏幕, 移动端隐藏 */
  html body .piao-fudong,
  html body .piao-left1,
  html body .piao-left2,
  html body .piao-left3,
  html body .piao-right1,
  html body .piao-right2,
  html body .piao-right3,
  html body .piao-fudong-close,
  html body .piao-left1-close,
  html body .piao-left2-close,
  html body .piao-left3-close,
  html body .piao-right1-close,
  html body .piao-right2-close,
  html body .piao-right3-close {
    display: none !important;
  }
}
