/* Year-switched inline detail (企业荣誉 / 大事记类) */

.yd-section {
  --yd-ink: #152b26;
  --yd-body: #455752;
  --yd-teal: #078f85;
  --yd-line: #dce6e2;
  --yd-content: min(1180px, 86%);
  color: var(--yd-ink);
}

.yd-section .nl-main {
  width: var(--yd-content);
  margin: 0 auto;
  padding: 58px 0 76px;
}

/* 按年详情不展示条数 */
.yd-section .nl-count,
.yd-section #ydCount {
  display: none;
}

.yd-panel.is-hidden {
  display: none;
}

.yd-body {
  padding: 8px 0 24px;
  font: var(--weight-regular, 400) var(--text-18, 18px / 34px) var(--font-page, sans-serif);
  color: var(--yd-body);
  letter-spacing: 0;
}

/*
 * 与详情页 .na-body 对齐：后台富文本常写死 14px Arial / 微软雅黑，
 * 内联样式会盖掉 --text-18。正文统一继承详情页字体规范。
 */
.yd-body span,
.yd-body font,
.yd-body a,
.yd-body p,
.yd-body div,
.yd-body li,
.yd-body td,
.yd-body th {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.yd-body a {
  font: inherit !important;
  color: #0084bb !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yd-body a:hover {
  color: #006d9a !important;
}

.yd-body h1 a,
.yd-body h2 a,
.yd-body h3 a,
.yd-body h4 a,
.yd-body h5 a,
.yd-body h6 a {
  font: inherit !important;
  color: inherit !important;
  text-decoration: none;
}

.yd-body h1,
.yd-body h2,
.yd-body h3,
.yd-body h4,
.yd-body h5,
.yd-body h6 {
  font-family: var(--font-page, sans-serif) !important;
  font-weight: var(--weight-bold, 700) !important;
  letter-spacing: 0;
  text-align: left;
}

.yd-body h1 {
  font-size: 32px !important;
  line-height: 44px !important;
  color: var(--yd-ink) !important;
  margin: 40px 0 16px;
}

.yd-body h2 {
  font: var(--weight-bold, 700) var(--text-24, 24px / 34px) var(--font-page, sans-serif) !important;
  color: var(--yd-ink) !important;
  margin: 40px 0 16px;
}

.yd-body h3 {
  font: var(--weight-bold, 700) var(--text-24, 24px / 34px) var(--font-page, sans-serif) !important;
  color: #0084bb !important;
  margin: 36px 0 16px;
}

.yd-body h4 {
  font: var(--weight-bold, 700) var(--text-18, 18px / 34px) var(--font-page, sans-serif) !important;
  color: var(--yd-ink) !important;
  margin: 28px 0 12px;
}

.yd-body h5,
.yd-body h6 {
  font: var(--weight-medium, 500) var(--text-17, 17px / 28px) var(--font-page, sans-serif) !important;
  color: var(--yd-ink) !important;
  margin: 24px 0 10px;
}

.yd-body > *:first-child {
  margin-top: 0;
}

.yd-body p {
  margin: 0 0 24px;
  text-align: justify;
}

.yd-body strong,
.yd-body b {
  font-weight: var(--weight-bold, 700);
}

.yd-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.yd-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font: var(--weight-regular, 400) var(--text-18, 18px / 34px) var(--font-page, sans-serif);
  color: var(--yd-body);
}

.yd-body table td,
.yd-body table th {
  border: 1px solid var(--yd-line);
  padding: 10px 12px;
  vertical-align: top;
  font: inherit !important;
  color: inherit !important;
}

.yd-empty {
  padding: 48px 0;
  text-align: center;
  color: #7b8b86;
  font: var(--weight-regular) var(--text-16) var(--font-page);
}

/* 面包屑下：核心荣誉图片横滑 */
.yd-honor-strip {
  background: #fff;
  border-bottom: 1px solid #edf1ef;
}

.yd-honor-strip .na-honors {
  --na-teal: #078f85;
  width: var(--nl-content, min(1180px, 86%));
  height: 132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.yd-honor-strip .na-honor-title {
  width: auto;
  min-width: 168px;
  max-width: 220px;
  text-align: left;
  padding: 0 18px 0 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.yd-honor-strip .na-honor-title:before {
  content: "光大环境核心荣誉";
  color: #24483f;
  display: block;
  font: var(--weight-bold, 700) 18px / 26px var(--font-page, sans-serif);
}

.yd-honor-strip .na-honor-title:after {
  content: none !important;
  display: none !important;
}

.yd-honor-strip .na-honor-carousel {
  overflow: hidden;
  flex: 1;
  position: relative;
  min-width: 0;
}

.yd-honor-strip .na-honor-carousel:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55px;
  background: linear-gradient(-90deg, #fff, transparent);
  pointer-events: none;
}

.yd-honor-strip .na-honor-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 24px;
  animation: yd-honor-scroll 34s linear infinite;
}

.yd-honor-strip .na-honors:hover .na-honor-track {
  animation-play-state: paused;
}

@keyframes yd-honor-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.yd-honor-strip .na-honor-cert {
  height: 84px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.yd-honor-strip .na-honor-zoom {
  cursor: zoom-in;
}

.yd-honor-strip .na-honor-cert img {
  display: block;
  max-height: 84px;
  max-width: 128px;
  width: auto;
  filter: drop-shadow(0 5px 7px rgba(20, 50, 42, 0.12));
}

html[lang="zh-HK"] .yd-honor-strip .na-honor-title:before,
html[lang="zh-TW"] .yd-honor-strip .na-honor-title:before {
  content: "光大環境核心榮譽";
}

html[lang="en"] .yd-honor-strip .na-honor-title {
  min-width: 148px;
  max-width: 200px;
}

html[lang="en"] .yd-honor-strip .na-honor-title:before {
  content: "Everbright Environment Core Honours";
  font: var(--weight-bold, 700) 16px / 22px var(--font-page, sans-serif);
}

.yd-empty.is-hidden {
  display: none;
}

@media (max-width: 850px) {
  .yd-body {
    font: var(--weight-regular, 400) 17px / 31px var(--font-page, sans-serif);
  }
}

@media (max-width: 767px) {
  .yd-section .nl-main {
    width: min(1180px, 92%);
    padding: 36px 0 56px;
  }

  .yd-body {
    font: var(--weight-regular, 400) var(--text-18, 17px / 31px) var(--font-page, sans-serif);
  }

  .yd-body h1 {
    font-size: 26px !important;
    line-height: 38px !important;
    margin: 28px 0 12px;
  }

  .yd-body h2,
  .yd-body h3 {
    font: var(--weight-bold, 700) var(--text-24, 22px / 32px) var(--font-page, sans-serif) !important;
    margin: 28px 0 12px;
  }

  .yd-body h3 {
    color: #0084bb !important;
  }

  .yd-body h4 {
    font: var(--weight-bold, 700) var(--text-18, 17px / 31px) var(--font-page, sans-serif) !important;
    margin: 22px 0 10px;
  }

  .yd-body p {
    margin: 0 0 16px;
  }

  .yd-body img {
    margin: 16px auto;
  }

  .yd-honor-strip .na-honors {
    height: auto;
    padding: 16px 0 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .yd-honor-strip .na-honor-title,
  html[lang="en"] .yd-honor-strip .na-honor-title {
    width: 100%;
    max-width: none;
    padding: 0 0 12px;
    text-align: center;
    letter-spacing: 0;
    font-size: 0;
    line-height: 0;
  }

  .yd-honor-strip .na-honor-title:before {
    text-align: center;
    font: var(--weight-bold, 700) 18px / 26px var(--font-page, sans-serif);
  }

  .yd-honor-strip .na-honor-carousel:after {
    display: none;
  }

  .yd-honor-strip .na-honor-track {
    gap: 16px;
    animation-duration: 28s;
  }

  .yd-honor-strip .na-honors:hover .na-honor-track {
    animation-play-state: running;
  }

  .yd-honor-strip .na-honor-cert {
    height: 72px;
  }

  .yd-honor-strip .na-honor-cert img {
    max-height: 72px;
    max-width: 112px;
  }
}
