/* 首页 Footer 定制：黑色底、横向二维码、紧凑高度 */
/*
 * 使用独立别名加载首页真实字体文件，避开新闻页内同名但路径失效的
 * @font-face 规则。两页因此始终落到同一份实际字形，而不是字体回退。
 */
@font-face {
  font-family: "YJSCM-PlusJakartaSans-Medium";
  src: url("./assets/84e22249c1-PlusJakartaSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "YJSCM-SourceHanSans-Medium";
  src: url("./assets/791dbfb758-477e0d18-b577-4d5c-abda-39b986c3e16d.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Footer 视觉基准使用 Regular 字形；Medium 文件即使 weight=400 仍会偏粗。 */
@font-face {
  font-family: "YJSCM-PlusJakartaSans-Regular";
  src: url("../donglian-news-middle/assets/9f39abe4d3-PlusJakartaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "YJSCM-SourceHanSans-Regular";
  src: url("../donglian-news-middle/assets/04ff013ef7-SourceHanSansCN-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 头部 Logo 与首页主体内容左边缘对齐 */
@media (min-width: 751px) {
  #header #logo {
    position: relative;
    left: clamp(32px, 3.8vw, 78px);
  }
}

#tjQQQExF {
  --footer-bg: #21536c;
  background: var(--footer-bg) !important;
  color: #fff;
  font-family: PlusJakartaSans-Medium, "思源黑体-Medium", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 58px 58px 0 0;
  overflow: hidden;
}

/*
 * 电话、邮箱、地址和社交标题严格复用首页字形与正常字重。
 * 新闻页原有字体规则中存在同名字体的失效相对路径，若不隔离会回退
 * 到中文字体，使英文和数字看起来明显更粗。
 */
#tjQQQExF #VzipDFVb,
#tjQQQExF #bGrZltOh,
#tjQQQExF #mdbpCcas,
#tjQQQExF #VzipDFVb p,
#tjQQQExF #VzipDFVb span,
#tjQQQExF #VzipDFVb a,
#tjQQQExF #bGrZltOh p,
#tjQQQExF #bGrZltOh span,
#tjQQQExF #mdbpCcas p,
#tjQQQExF #mdbpCcas span {
  font-family: "YJSCM-PlusJakartaSans-Regular", "YJSCM-SourceHanSans-Regular", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 底部导航、版权等其余可见文字也必须使用首页同一字体栈。 */
#tjQQQExF p,
#tjQQQExF p span,
#tjQQQExF a,
#tjQQQExF a span,
#tjQQQExF .btn-text-d97c4 {
  font-family: "YJSCM-PlusJakartaSans-Regular", "YJSCM-SourceHanSans-Regular", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 版权行不能沿用源站 0.4 透明度；在新闻中心和详情页必须清晰可见。 */
#tjQQQExF #OrMlLrDB,
#tjQQQExF #OrMlLrDB p,
#tjQQQExF #OrMlLrDB span {
  color: rgba(255, 255, 255, 0.68) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 首页空段落会保留一整行；新闻页的 reset 会把它压成 0 高度。 */
#tjQQQExF #VzipDFVb p:empty,
#tjQQQExF #bGrZltOh p:empty {
  display: block !important;
  height: 22.4px !important;
  min-height: 22.4px !important;
  line-height: 22.4px !important;
  margin: 0 !important;
}

/* 首页邮箱链接的文字本身带下划线。 */
#tjQQQExF #VzipDFVb a span {
  text-decoration: underline !important;
}

#tjQQQExF,
#tjQQQExF .layout-group-inner-wrapper-d86bc,
#tjQQQExF .layout-container-d811a,
#tjQQQExF .layout-body-f0b12 {
  background: var(--footer-bg) !important;
}

#tjQQQExF .layout-group-inner-wrapper-d86bc,
#tjQQQExF-layer-bg-group,
#tjQQQExF-layer-bg {
  border-radius: 58px 58px 0 0;
  overflow: hidden;
}

/* 隐藏原绿色装饰层，避免覆盖纯黑背景 */
#tjQQQExF-layer-bg-flrsb,
#tjQQQExF-layer-bg-flrsb .bg-layer--inner-cad90 {
  display: none !important;
}

#tjQQQExF-layer-bg-apvly {
  background: #21536c !important;
}

/* 压缩 Footer 上下留白，整体高度约缩短三分之一 */
#tjQQQExF .layout-body-f0b12 {
  padding: 30px 0 24px !important;
}

/* 顶部信息组向下微移，为圆角下方留出更自然的呼吸空间。 */
#SyzGVOAJ {
  transform: translateY(18px);
}

#tjQQQExF .layout_row-margin_top-e2d5e,
#tjQQQExF .layout_row-margin_bottom-b3e51 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#tjQQQExF .page-layout-row-feee0 {
  padding-top: 0 !important;
  padding-bottom: 12px !important;
}

/* 左侧 Logo */
#EEJUfHtE .svg-viewer-box-b6f38 {
  display: inline-flex !important;
  width: 150px !important;
  max-width: 150px !important;
  --width: 150px !important;
}

#EEJUfHtE .svg-viewer-inner-d38c5,
#EEJUfHtE .svg-viewer-inner-d38c5 img.home-footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

#EEJUfHtE .svg-viewer-inner-d38c5 img.home-footer-logo {
  object-fit: contain;
}

/* 二维码横向并排 */
#mdbpCcas .home-footer-qrs {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 232px;
}

#mdbpCcas .home-footer-qrs > section {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}

#mdbpCcas .home-footer-qrs .grid-layer--inner-ef909 {
  display: block !important;
}

#mdbpCcas .home-footer-qrs .grid-item-af6e7 {
  width: 100% !important;
  grid-area: auto !important;
}

#mdbpCcas .home-footer-qrs .grid-item-af6e7:nth-child(2) {
  display: none !important;
}

#mdbpCcas .home-footer-qrs .image_item-ff7d7 {
  width: 100% !important;
  --width: 100% !important;
  --md-width: 100% !important;
}

#mdbpCcas .home-footer-qrs .image_box-c5e00,
#mdbpCcas .home-footer-qrs .image_box-c5e00 img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

#mdbpCcas .home-footer-qrs .image_box-c5e00 {
  background-size: cover !important;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

#mdbpCcas .home-footer-qr-item {
  flex: 1 1 0;
  min-width: 0;
}

#mdbpCcas .home-footer-qr-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

#mdbpCcas .home-footer-qr-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

#mdbpCcas .home-footer-qr-label {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mdbpCcas .home-footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  max-width: 232px;
}

#mdbpCcas .home-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

#mdbpCcas a.home-footer-social-link:hover {
  color: #fff;
}

#mdbpCcas .home-footer-social-link img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

/* 去掉原导航前的空白分隔块 */
#xgHOSRDW #XRjZWlQG {
  display: none !important;
}

/* 底部导航稍微加高，保留更舒展的上下留白。 */
#xgHOSRDW .page-layout-row-feee0 {
  padding-top: 8px !important;
  padding-bottom: 14px !important;
}

#xgHOSRDW .btn-ece02 {
  display: flex !important;
  padding: 10px 30px !important;
  --padding: 10px 30px !important;
  --color: #fff !important;
  --hover-color: #fff !important;
  background-color: transparent !important;
}

#xgHOSRDW .btn-ece02.home-footer-nav-hidden {
  display: none !important;
}

#xgHOSRDW .btn-list-a1de5 {
  display: inline-flex !important;
  flex-flow: row wrap !important;
  width: auto !important;
  max-width: 100%;
  gap: 0 !important;
}

@media (min-width: 751px) {
  #SyzGVOAJ .page-layout-row-inner-ab83f {
    min-height: 225px;
  }
}

@media (max-width: 750px) {
  #header #logo,
  #mobile_header #mobile_logo {
    left: 0;
  }

  #tjQQQExF .layout-body-f0b12 {
    padding: 22px 30px 18px !important;
  }

  #SyzGVOAJ {
    transform: translateY(12px);
  }

  #tjQQQExF,
  #tjQQQExF .layout-group-inner-wrapper-d86bc,
  #tjQQQExF-layer-bg-group,
  #tjQQQExF-layer-bg {
    border-radius: 26px 26px 0 0;
  }

  #tjQQQExF .page-layout-row-feee0 {
    padding-bottom: 10px !important;
  }

  #EEJUfHtE .svg-viewer-box-b6f38 {
    width: 104px !important;
    max-width: 104px !important;
    --width: 104px !important;
  }

  #mdbpCcas .home-footer-qrs {
    width: min(100%, 190px);
    gap: 8px;
  }

  #mdbpCcas .home-footer-social-links {
    max-width: 190px;
  }

  /* 移动端将顶部四项改成 2×2，避免单列造成 Footer 过高。 */
  #SyzGVOAJ .page-layout-row-inner-ab83f {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    gap: 22px 16px !important;
  }

  #SyzGVOAJ #rFNReqSO {
    grid-area: 1 / 1 / 2 / 2 !important;
  }

  #SyzGVOAJ #VzipDFVb {
    grid-area: 1 / 2 / 2 / 3 !important;
  }

  #SyzGVOAJ #bGrZltOh {
    grid-area: 2 / 1 / 3 / 2 !important;
  }

  #SyzGVOAJ #mdbpCcas {
    grid-area: 2 / 2 / 3 / 3 !important;
  }

  #SyzGVOAJ .layout-col-inner-e7875 {
    gap: 8px !important;
  }

  #SyzGVOAJ p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #mdbpCcas .home-footer-qrs {
    gap: 6px;
  }

  #xgHOSRDW .btn-list-a1de5 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    column-gap: 0 !important;
    row-gap: 2px !important;
  }

  #xgHOSRDW .page-layout-row-feee0 {
    padding-top: 10px !important;
    padding-bottom: 16px !important;
  }

  #xgHOSRDW .btn-ece02 {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 0 !important;
    --padding: 10px 0 !important;
    --color: #fff !important;
    --hover-color: #fff !important;
    background-color: transparent !important;
  }

  #xgHOSRDW .btn-text-d97c4 {
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}
