/* 深入学习贯彻习近平党建思想 — 按 PSD 1920×2992 还原（IE10+） */

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", SimHei, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  background-color: #fffaf9;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  border: 0;
  vertical-align: middle;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

/* ========== 骨架 ========== */

.dj-page {
  min-width: 1202px;
  overflow: hidden;
  background-color: #fffaf9;
}

.dj-container {
  width: 1202px;
  margin: 0 auto;
  position: relative;
}

/* ========== 红色头图区（标题 + 轮播叠在上面） ========== */

.dj-banner {
  position: relative;
  background-color: #fffaf9;
  padding-top: 438px;
  padding-bottom: 62px;
}

/* 背景图层：旧浏览器正常铺图；新浏览器用 mask 把底部硬切柔化进页面底色 */
.dj-banner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 1209px;
  margin-left: -960px;
  background: url("../assets/banner-full.png") no-repeat center top;
  background-size: 1920px auto;
  z-index: 0;
  pointer-events: none;
}

/* 底部再叠一层极淡渐变，衔接下方内容区（IE10+ 可用） */
.dj-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='140'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23fffaf9' stop-opacity='0'/%3E%3Cstop offset='100%25' stop-color='%23fffaf9' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='140' fill='url(%23g)'/%3E%3C/svg%3E")
    repeat-x bottom;
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 249, 0) 0%,
    rgba(255, 250, 249, 0.55) 55%,
    #fffaf9 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* 新浏览器：对背景图做更长、更自然的透明衰减（多色阶，避免脏灰中间带） */
@supports ((-webkit-mask-image: linear-gradient(#000, transparent)) or
  (mask-image: linear-gradient(#000, transparent))) {
  .dj-banner::before {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.92) 52%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.18) 84%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.92) 52%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.18) 84%,
      transparent 100%
    );
  }

  .dj-banner::after {
    height: 200px;
    background: linear-gradient(
      to bottom,
      rgba(255, 250, 249, 0) 0%,
      rgba(255, 250, 249, 0.25) 35%,
      rgba(255, 250, 249, 0.7) 70%,
      #fffaf9 100%
    );
  }
}

.dj-banner__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 133px;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 80px;
  font-weight: bold;
  font-style: italic;
  line-height: 94px;
  letter-spacing: 4px;
  /* 低版本回退：纯白 + 阴影，保证可读 */
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(120, 0, 0, 0.35);
  -ms-transform: skewX(-6deg);
  -webkit-transform: skewX(-6deg);
  transform: skewX(-6deg);
}

/* 高版本：白 → 暖金 纵向渐变（贴近设计稿标题层次） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dj-banner__title {
    background-image: linear-gradient(
      to bottom,
      #ffffff 0%,
      #fff8ec 42%,
      #ffe7b8 78%,
      #ffd48a 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 8px rgba(120, 0, 0, 0.42));
  }
}

.dj-banner > .dj-container {
  z-index: 1;
}

/* ========== 焦点图轮播：1202×771 ========== */

.dj-slider {
  position: relative;
  width: 1202px;
  height: 771px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(140, 30, 20, 0.18);
}

.dj-slider__base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 146px;
  background-color: #ffffff;
  z-index: 0;
}

.dj-slider__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dj-slider__track {
  height: 100%;
  zoom: 1;
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
  -webkit-transition: -webkit-transform 0.45s ease;
  -ms-transition: -ms-transform 0.45s ease;
  transition: transform 0.45s ease;
}

.dj-slider__track:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
}

.dj-slider__slide {
  float: left;
  display: block;
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
}

.dj-slider__pic {
  width: 1200px;
  height: 624px;
  margin: 1px auto 0;
  overflow: hidden;
  background-color: #f8ece6;
}

.dj-slider__pic img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 白底栏 146px：取消「大盒子垂直居中 + bottom 绝对」的脱节排版
   设计节奏（对齐稿）：上边距 ≈ 下边距，标题与指示器之间略松
   30(上) + 36(标题行) + 44(中缝) + 6(点) + 30(下) ≈ 146 */
.dj-slider__foot {
  height: 146px;
  padding-top: 30px;
  text-align: center;
  background-color: #ffffff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.dj-slider__caption {
  height: 36px;
  line-height: 36px;
  margin: 0;
  padding: 0 40px;
  font-size: 26px;
  font-weight: bold;
  color: #c41a20;
  white-space: nowrap;
  overflow: hidden;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

.dj-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  /* 与 foot 的 padding-top 对称，形成上下均衡 */
  bottom: 30px;
  z-index: 2;
  height: 6px;
  text-align: center;
  font-size: 0;
  line-height: 0;
}

.dj-slider__dot {
  display: inline-block;
  width: 90px;
  height: 6px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: #e5ddd8;
  vertical-align: top;
}

.dj-slider__dot.is-active {
  background-color: #c41a20;
}

.dj-slider__arrow {
  position: absolute;
  top: 353px;
  width: 52px;
  height: 92px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.45);
  z-index: 3;
  text-align: center;
  line-height: 92px;
  font-size: 0;
}

.dj-slider__arrow:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.dj-slider__arrow--prev {
  left: 0;
  /* 面向内容：右侧两角圆角 */
  border-radius: 0 12px 12px 0;
}

.dj-slider__arrow--next {
  right: 0;
  /* 面向内容：左侧两角圆角 */
  border-radius: 12px 0 0 12px;
}

.dj-slider__arrow svg {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 34px;
}

/* ========== 下方内容区 ========== */

.dj-main {
  padding-bottom: 80px;
  background-color: #fffaf9;
}

.dj-block {
  margin-bottom: 63px;
}

/* 要闻 / 工作动态：整图标题栏 + 透明「更多」热区 */
.dj-block__head {
  position: relative;
  width: 1202px;
  height: 118px;
}

.dj-block__head-bg {
  display: block;
  width: 1202px;
  height: 118px;
}

.dj-block__more {
  position: absolute;
  right: 41px;
  top: 58px;
  width: 84px;
  height: 34px;
  overflow: hidden;
  text-indent: -9999px;
  background: transparent;
  border: 0;
  border-radius: 17px;
}

.dj-block__more img {
  display: none;
}

.dj-block__body--list {
  padding: 48px 52px 50px;
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(140, 40, 30, 0.08);
}

/* 列表项：行距约 72px（含自身） */
.dj-news-item {
  display: block;
  position: relative;
  height: 27px;
  margin-bottom: 45px;
  padding-left: 30px;
  line-height: 27px;
  overflow: hidden;
}

.dj-news-item:last-child {
  margin-bottom: 0;
}

.dj-news-item__dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 18px;
  background-color: #ff002a;
  border-radius: 2px;
}

.dj-news-item__text {
  display: block;
  font-size: 18px;
  line-height: 27px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

.dj-news-item:hover .dj-news-item__text {
  color: #c41a20;
}

/* ========== 评论 + 解读 双栏 ========== */

.dj-columns {
  zoom: 1;
}

.dj-columns:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
}

.dj-columns__col {
  float: left;
  width: 590px;
}

.dj-columns__gap {
  float: left;
  width: 22px;
  height: 1px;
}

.dj-block--card {
  margin-bottom: 0;
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(140, 40, 30, 0.08);
}

.dj-block__head--card {
  position: relative;
  width: auto;
  height: 100px;
  padding: 40px 30px 0;
  border-bottom: 0;
  zoom: 1;
  overflow: visible;
}

.dj-block__head--card:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
}

.dj-block__icon {
  float: left;
  width: 42px;
  height: 34px;
  margin: 8px 14px 0 6px;
}

.dj-block__label {
  float: left;
  width: auto;
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 40px;
  color: #c41a20;
}

.dj-more-pill {
  float: right;
  position: static;
  z-index: auto;
  display: block;
  width: 85px;
  height: 34px;
  margin-top: 6px;
  line-height: 32px;
  text-align: center;
  font-size: 14px;
  color: #666666;
  background-color: #ffffff;
  border: 1px solid #d8cfc9;
  border-radius: 17px;
}

.dj-more-pill .dj-more-arrows {
  display: inline-block;
  margin-left: 2px;
  font-size: 12px;
  letter-spacing: -2px;
  color: #999999;
}

.dj-block__body--card {
  padding: 0 30px 36px;
  clear: both;
}

.dj-card-item {
  display: block;
  position: relative;
  height: 73px;
  margin-bottom: 21px;
  padding: 0 24px 0 42px;
  line-height: 73px;
  background-color: #ffffff;
  border: 1px solid #ebe3df;
  border-radius: 2px;
  overflow: hidden;
}

.dj-card-item:last-child {
  margin-bottom: 0;
}

.dj-card-item__dot {
  position: absolute;
  left: 17px;
  top: 29px;
  width: 14px;
  height: 15px;
  background-color: #ff002a;
  border-radius: 2px;
}

.dj-card-item__text {
  display: block;
  font-size: 16px;
  line-height: 73px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

.dj-card-item:hover {
  border-color: #e0c8c0;
}

.dj-card-item:hover .dj-card-item__text {
  color: #c41a20;
}

/* ========== 空数据提示 ========== */

.dj-empty {
  margin: 0;
  padding: 36px 16px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #999999;
}

.dj-slider > .dj-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding-top: 280px;
  background-color: #ffffff;
}

/* ========== H5 适配 ========== */

@media screen and (max-width: 768px) {
  .dj-page {
    min-width: 0;
  }

  .dj-container {
    width: auto;
    padding: 0 12px;
  }

  .dj-banner {
    padding-top: 56px;
    padding-bottom: 20px;
  }

  .dj-banner::before {
    left: 0;
    width: 100%;
    height: 420px;
    margin-left: 0;
    background-size: cover;
    background-position: center top;
  }

  .dj-banner::after {
    height: 80px;
  }

  @supports ((-webkit-mask-image: linear-gradient(#000, transparent)) or
    (mask-image: linear-gradient(#000, transparent))) {
    .dj-banner::before {
      -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 35%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.2) 82%,
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 35%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.2) 82%,
        transparent 100%
      );
    }

    .dj-banner::after {
      height: 100px;
    }
  }

  .dj-banner__title {
    position: static;
    padding: 0 12px 20px;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 1px;
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
  }

  .dj-slider {
    width: 100%;
    height: auto;
  }

  .dj-slider__base {
    display: none;
  }

  .dj-slider__viewport {
    height: auto;
  }

  .dj-slider__track {
    height: auto;
  }

  .dj-slider__slide {
    float: left;
    height: auto;
  }

  .dj-slider__pic {
    width: 100%;
    height: 0;
    padding-bottom: 52%;
    margin: 0;
    position: relative;
  }

  .dj-slider__pic img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .dj-slider__foot {
    height: auto;
    padding: 14px 0 16px;
  }

  .dj-slider__caption {
    height: auto;
    line-height: 1.45;
    padding: 0 12px;
    font-size: 16px;
    white-space: normal;
  }

  .dj-slider__dots {
    position: static;
    bottom: auto;
    height: auto;
    margin-top: 12px;
    padding: 0 8px;
  }

  .dj-slider__dot {
    width: 22px;
    height: 3px;
    margin: 0 3px;
  }

  .dj-slider__arrow {
    top: 28%;
    width: 28px;
    height: 48px;
    line-height: 48px;
  }

  .dj-slider__arrow--prev {
    border-radius: 0 8px 8px 0;
  }

  .dj-slider__arrow--next {
    border-radius: 8px 0 0 8px;
  }

  .dj-slider__arrow svg {
    width: 10px;
    height: 18px;
  }

  .dj-main {
    padding-bottom: 32px;
  }

  .dj-block {
    margin-bottom: 24px;
  }

  .dj-block__head {
    width: 100%;
    height: auto;
  }

  .dj-block__head-bg {
    width: 100%;
    height: auto;
  }

  .dj-block__more {
    right: 10px;
    top: 50%;
    margin-top: -14px;
    width: 56px;
    height: 28px;
  }

  .dj-block__body--list {
    padding: 16px 14px 18px;
  }

  .dj-news-item {
    height: auto;
    min-height: 22px;
    margin-bottom: 16px;
    padding-left: 20px;
    line-height: 22px;
  }

  .dj-news-item__dot {
    top: 4px;
    width: 10px;
    height: 12px;
  }

  .dj-news-item__text {
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }

  .dj-columns__col {
    float: none;
    width: 100%;
    margin-bottom: 24px;
  }

  .dj-columns__gap {
    display: none;
  }

  .dj-block__head--card {
    height: auto;
    padding: 16px 14px 12px;
  }

  .dj-block__icon {
    width: 28px;
    height: 22px;
    margin: 4px 10px 0 0;
  }

  .dj-block__label {
    font-size: 20px;
    line-height: 28px;
  }

  .dj-more-pill {
    width: 64px;
    height: 28px;
    margin-top: 2px;
    line-height: 26px;
    font-size: 12px;
  }

  .dj-block__body--card {
    padding: 0 14px 16px;
  }

  .dj-card-item {
    height: auto;
    min-height: 44px;
    margin-bottom: 10px;
    padding: 12px 12px 12px 32px;
    line-height: 22px;
  }

  .dj-card-item__dot {
    top: 16px;
    left: 12px;
    width: 10px;
    height: 11px;
  }

  .dj-card-item__text {
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }

  .dj-empty {
    padding: 24px 12px;
    font-size: 14px;
  }

  .dj-slider > .dj-empty {
    padding-top: 120px;
  }
}

