/* ============================================================
   Well-T in Action（markets-detail.html + about-esg.html 共享）
   Figma Frame 476:19495
   - 标题 "Well-T in Action" 76px ExtraBold var(--color-primary) + 右侧 "Learn More >" 平行四边形按钮
   - 4 行新闻：日期（左）+ 标题（右），行间 1px 分隔线
   - 第 2 行蓝色高亮（全幅 var(--color-primary) 白字 + 右侧绿色箭头）
   - 特色图片 436x259 圆角 8px + 20% 遮罩，浮动于前两行之间的空隙列
   - 底部两组 WELL-T 文字水印（opacity 0.1）
   ============================================================ */

.mkd-news {
  position: relative;
  background: var(--color-white);
  padding: 120px 0 180px;   /* 底部留白：内容与水印(120px)间距 60px */
  overflow: hidden;
}

.mkd-news__inner {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- 标题行 --- */
.mkd-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}

.mkd-news__title {
  font-family: var(--font-primary);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}

/* --- "Learn More >" 平行四边形按钮（复用 products 按钮模式） --- */
.mkd-news__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 186px;
  height: 58px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--duration-micro) var(--ease-emphasized);
}

.mkd-news__more-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mkd-news__more-shape path {
  transition: fill var(--duration-base) var(--ease-standard);
}

.mkd-news__more:hover .mkd-news__more-shape path {
  fill: var(--color-primary);
}

.mkd-news__more:hover .mkd-news__more-text {
  color: var(--color-white);
}

.mkd-news__more:active {
  transform: scale(0.96);
}

.mkd-news__more-text {
  position: relative;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 0.08vw + 0.98rem, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  transition: color var(--duration-base) var(--ease-standard);
  white-space: nowrap;
}

/* --- 新闻列表 --- */
.mkd-news__list {
  position: relative;
}

.mkd-news__item {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr minmax(300px, 774px);
  align-items: center;
  padding: 48px 0 52px;
  text-decoration: none;
  color: inherit;
}

.mkd-news__item:first-child {
  border-top: none;
}

.mkd-news__date {
  grid-column: 1;
  /* relative + z-index 抬到蓝底（::before z-index:2）之上：hover 蓝底白字时文字不被盖住。
     relative 无偏移不影响 grid 布局；PC/移动通用（曾仅移动端配置，PC hover 文字被蓝底盖住） */
  position: relative;
  z-index: 3;
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 0.4vw + 1.03rem, 1.75rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.56px;
  color: var(--color-text-secondary);
}

.mkd-news__item-title {
  grid-column: 3;
  /* 同 .mkd-news__date：hover 时文字在蓝底之上 */
  position: relative;
  z-index: 3;
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 0.4vw + 1.03rem, 1.75rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.56px;
  color: var(--color-text-secondary);
  margin: 0;
  padding-right: 60px;
}

/* --- hover 蓝色高亮（默认全为普通行；hover 时全幅蓝底快速淡入）：
   全幅蓝底由 ::before 绘制（width:100vw 居中），上缘分隔线由 ::after 补齐 */
.mkd-news__item {
  z-index: 0;
}

.mkd-news__item:hover {
  color: var(--color-white);
  z-index: 3;
}

.mkd-news__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--color-primary);
  opacity: 0;
  z-index: 2;                 /* 盖住行间灰线 */
  transition: opacity var(--duration-base) var(--ease-standard);
}

.mkd-news__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--color-placeholder);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0s;     /* 立即隐藏，无过渡 */
}

.mkd-news__item:hover::before {
  opacity: 1;
}

/* hover 时行间灰线立即消失 */
.mkd-news__item:hover::after {
  opacity: 0;
}

.mkd-news__item:hover .mkd-news__date,
.mkd-news__item:hover .mkd-news__item-title {
  color: var(--color-white);
}

.mkd-news__arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.mkd-news__item:hover .mkd-news__arrow {
  opacity: 1;
  transition-delay: 180ms;
}

/* --- hover 新闻图片（相对蓝色块定位：位于日期列与标题列之间的空隙列） --- */
.mkd-news__item-img,
.mkd-news__item-overlay {
  position: absolute;
  left: clamp(280px, 18.75vw, 360px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 20.83vw, 400px);
  aspect-ratio: 436 / 259;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  z-index: 3;                 /* 高于蓝底 ::before (z-index:2) */
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.mkd-news__item-img {
  object-fit: cover;
}

.mkd-news__item-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.mkd-news__item:hover .mkd-news__item-img,
.mkd-news__item:hover .mkd-news__item-overlay {
  opacity: 1;
  transform: translate(clamp(-40px, -3.646vw, -70px), -50%);
  transition-delay: 100ms;
}

/* --- 底部水印（两组 WELL-T 文字，opacity 0.1） --- */
.mkd-news__watermarks {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.mkd-news__watermark {
  display: block;
  height: 120px;
  width: auto;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1240px) {
  .mkd-news {
    padding: 88px 0 90px;
  }

  /* 窄桌面隐藏 hover 图片，避免覆盖右侧标题 */
  .mkd-news__item-img,
  .mkd-news__item-overlay {
    display: none;
  }

  /* 标题/按钮排放对齐 product-detail Well-T in Action（pd2-news）：上下堆叠、整体左右居中 */
  .mkd-news__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 auto 56px;
    text-align: center;
  }

  .mkd-news__title {
    font-size: clamp(1.5rem, 0.65vw + 1.35rem, 2.5rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  /* 按钮尺寸/文字对齐 product-detail（pd2-news：固定 120x44，文字 clamp） */
  .mkd-news__more {
    width: 120px;
    height: 44px;
  }

  .mkd-news__more-text {
    font-size: clamp(0.8125rem, 0.9375vw, 1.125rem);
  }

  /* 移动端纯列表：隐藏 hover 图片/箭头 */
  .mkd-news__item-img,
  .mkd-news__item-overlay,
  .mkd-news__arrow {
    display: none;
  }

  .mkd-news__item {
    grid-template-columns: 240px 1fr;
  }

  .mkd-news__item-title {
    grid-column: 2;
    font-size: clamp(0.9375rem, 0.28vw + 0.87rem, 1.375rem);
    line-height: 1.5;
  }

  .mkd-news__date {
    font-size: clamp(0.9375rem, 0.28vw + 0.87rem, 1.375rem);
    line-height: 1.5;
  }


}

@media (max-width: 768px) {
  .mkd-news {
    padding: 72px 0 60px;
  }

  /* 标题字号对齐 product-detail（pd2-news ≤768：40px/50px） */
  .mkd-news__title {
    font-size: clamp(1.5rem, 0.81vw + 1.31rem, 2.75rem);
    line-height: 1.18;
  }

  /* 日期和标题同行：日期在左加粗，标题在右 */
  .mkd-news__item {
    grid-template-columns: 120px auto 1fr;
    gap: 0;
    padding: 16px 0;
    align-items: baseline;
  }

  .mkd-news__date {
    grid-column: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    text-align: right;
    padding-right: 8px;
  }

  /* 分隔符作为独立列 */
  .mkd-news__date::after {
    content: "|";
    font-weight: 300;
    padding-left: 8px;
  }

  .mkd-news__item-title {
    grid-column: 3;
    font-size: 1rem;
    line-height: 1.5;
    padding-right: 24px;
  }

  .mkd-news__arrow {
    right: 12px;
    width: 20px;
    height: 16px;
  }

  .mkd-news__watermarks {
    display: none;
  }

  .mkd-news__title {
    font-size: clamp(1.625rem, 8vw, 2.25rem);
    line-height: 1.18;
  }
}

/* ==================== 无障碍降级 ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
