/* ============================================================
   盈波光电首页 P1.5 — 新闻动态区精修
   作用范围：仅首页 .home-news-section（typeid=2 新闻动态）
   目标：修正此前把新闻卡当“产品卡”处理的问题；
         新闻图采用编辑型裁切，补充日期/摘要，PC 4 列、平板 2 列、手机横向紧凑卡片。
   ============================================================ */

.site-home .home-news-section {
  --p15-blue: #0f66dc;
  --p15-blue-dark: #0859c3;
  --p15-ink: #182235;
  --p15-body: #627086;
  --p15-muted: #8a97aa;
  --p15-line: rgba(148, 163, 184, .22);
  --p15-card: rgba(255, 255, 255, .96);
  --p15-shadow: 0 14px 38px rgba(15, 23, 42, .06);
  --p15-shadow-hover: 0 23px 54px rgba(15, 23, 42, .10);
  position: relative;
  isolation: isolate;
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(40, 121, 232, .075), transparent 27%),
    linear-gradient(180deg, #f2f5f9 0%, #edf2f7 100%);
}

.site-home .home-news-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  left: -230px;
  bottom: -265px;
  border-radius: 50%;
  border: 76px solid rgba(15, 102, 220, .025);
  pointer-events: none;
}

/* 标题与分类：保持既有品牌语言，但更紧凑。 */
.site-home .home-news-section .home-news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
}

.site-home .home-news-section .home-news-heading .eytitle_l {
  float: none;
  min-width: 0;
}

.site-home .home-news-section .home-news-heading .eytitle_t b {
  color: var(--p15-ink);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.site-home .home-news-section .home-news-heading .eytitle_l p {
  margin-top: 7px;
  color: #8c9aaf;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .18em;
}

.site-home .home-news-section .home-news-categories {
  float: none;
  flex: 0 1 auto;
  width: auto;
  max-width: 620px;
  margin: 0;
}

.site-home .home-news-section .home-news-categories .swiper-container4 {
  overflow: visible;
}

.site-home .home-news-section .home-news-categories .idx_profl_static,
.site-home .home-news-section .home-news-categories .idx_proflul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-home .home-news-section .home-news-categories .idx_proflli {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 7px 20px rgba(15, 23, 42, .04);
  transition: background-color .23s ease, border-color .23s ease, box-shadow .23s ease, transform .23s ease;
}

.site-home .home-news-section .home-news-categories .idx_proflli > a {
  display: block;
  min-width: 118px;
  height: 44px;
  padding: 0 22px;
  color: #546276;
  font-size: 14px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
}

.site-home .home-news-section .home-news-categories .idx_proflli.is-current,
.site-home .home-news-section .home-news-categories .idx_proflli.active,
.site-home .home-news-section .home-news-categories .idx_proflli.on {
  border-color: var(--p15-blue);
  background: linear-gradient(135deg, var(--p15-blue-dark), #1977ec);
  box-shadow: 0 12px 27px rgba(15, 102, 220, .18);
}

.site-home .home-news-section .home-news-categories .idx_proflli.is-current > a,
.site-home .home-news-section .home-news-categories .idx_proflli.active > a,
.site-home .home-news-section .home-news-categories .idx_proflli.on > a {
  color: #fff;
}

/* 仅展示首页精选 4 条，避免首页新闻区过长。 */
.site-home .home-news-section .home-news-grid {
  min-height: 0;
  margin-top: 30px;
}

.site-home .home-news-section .home-news-grid > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.site-home .home-news-section .home-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 23px;
  background: var(--p15-card);
  box-shadow: var(--p15-shadow);
  transform: translateZ(0);
  transition:
    transform .3s cubic-bezier(.16, 1, .3, 1),
    border-color .26s ease,
    box-shadow .3s cubic-bezier(.16, 1, .3, 1);
}

/* 新闻图片改为 16:10 裁切，不再像产品图一样 contain 留白。 */
.site-home .home-news-section .home-news-media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #dfe7f1;
}

.site-home .home-news-section .home-news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 25, 48, .11) 100%);
}

.site-home .home-news-section .home-news-media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.site-home .home-news-section .home-news-media img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.015);
  transform: scale(1.001);
  transition: transform .48s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

.site-home .home-news-section .home-news-content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 186px;
  margin: 0;
  padding: 18px 20px 20px;
  overflow: visible;
  border: 0;
}

.site-home .home-news-section .home-news-content::before {
  display: none;
}

.site-home .home-news-section .home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin: 0 0 10px;
}

.site-home .home-news-section .home-news-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid rgba(15, 102, 220, .11);
  border-radius: 999px;
  background: rgba(15, 102, 220, .07);
  color: var(--p15-blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.site-home .home-news-section .home-news-meta time {
  color: #94a0b0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
}

.site-home .home-news-section .eyidxpro_tit {
  display: -webkit-box;
  width: calc(100% - 48px);
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: var(--p15-ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.48;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color .22s ease;
}

.site-home .home-news-section .home-news-content > p {
  display: -webkit-box;
  width: calc(100% - 48px);
  height: auto;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--p15-body);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.7;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-home .home-news-section .eyidxpro_btn {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 50%;
  background: #f7f9fc;
  box-shadow: none;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.site-home .home-news-section .eyidxpro_btn > span {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

.site-home .home-news-section .eyidxpro_btn > span::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 9px;
  height: 1.5px;
  border-radius: 999px;
  background: #718096;
}

.site-home .home-news-section .eyidxpro_btn > span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #718096;
  border-right: 1.5px solid #718096;
  transform: rotate(45deg);
}

/* “查看全部”形成明确但低调的下一步入口。 */
.site-home .home-news-section .home-news-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

.site-home .home-news-section .home-news-footer > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, .23);
  border-radius: 999px;
  background: rgba(255, 255, 255, .70);
  color: #536174;
  font-size: 13px;
  font-weight: 700;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease, transform .22s ease;
}

.site-home .home-news-section .home-news-footer > a span {
  color: var(--p15-blue);
  font-size: 16px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .site-home .home-news-section .home-news-categories .idx_proflli:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 102, 220, .22);
    background: #f5f9ff;
  }

  .site-home .home-news-section .home-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 102, 220, .13);
    box-shadow: var(--p15-shadow-hover);
  }

  .site-home .home-news-section .home-news-card:hover .home-news-media img {
    transform: scale(1.045);
    filter: saturate(1.01) contrast(1.02);
  }

  .site-home .home-news-section .home-news-card:hover .eyidxpro_tit {
    color: var(--p15-blue-dark);
  }

  .site-home .home-news-section .home-news-card:hover .eyidxpro_btn {
    transform: translateX(2px);
    border-color: var(--p15-blue);
    background: var(--p15-blue);
    box-shadow: 0 9px 22px rgba(15, 102, 220, .17);
  }

  .site-home .home-news-section .home-news-card:hover .eyidxpro_btn > span::before {
    background: #fff;
  }

  .site-home .home-news-section .home-news-card:hover .eyidxpro_btn > span::after {
    border-color: #fff;
  }

  .site-home .home-news-section .home-news-footer > a:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 102, 220, .18);
    background: #fff;
    color: var(--p15-blue-dark);
  }
}

/* 平板：2 列。 */
@media screen and (max-width: 1199px) {
  .site-home .home-news-section {
    padding: 56px 0 62px;
  }

  .site-home .home-news-section .home-news-grid > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-home .home-news-section .home-news-heading {
    align-items: flex-start;
  }

  .site-home .home-news-section .home-news-content {
    min-height: 174px;
  }
}

/* 手机：横向媒体卡，减少纵向长度；分类保留横向按钮。 */
@media screen and (max-width: 767px) {
  .site-home .home-news-section {
    padding: 39px 0 46px;
  }

  .site-home .home-news-section .home-news-heading {
    display: block;
  }

  .site-home .home-news-section .home-news-heading .eytitle_t b {
    font-size: 34px;
  }

  .site-home .home-news-section .home-news-heading .eytitle_l p {
    font-size: 12px;
    letter-spacing: .15em;
  }

  .site-home .home-news-section .home-news-categories {
    width: 100%;
    max-width: none;
    margin-top: 18px;
  }

  .site-home .home-news-section .home-news-categories .idx_profl_static,
  .site-home .home-news-section .home-news-categories .idx_proflul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .site-home .home-news-section .home-news-categories .idx_proflli,
  .site-home .home-news-section .home-news-categories .idx_proflli > a {
    width: 100%;
    min-width: 0;
  }

  .site-home .home-news-section .home-news-categories .idx_proflli {
    border-radius: 14px;
  }

  .site-home .home-news-section .home-news-categories .idx_proflli > a {
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 44px;
  }

  .site-home .home-news-section .home-news-grid {
    margin-top: 20px;
  }

  .site-home .home-news-section .home-news-grid > ul {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .site-home .home-news-section .home-news-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: 138px;
    border-radius: 19px;
    box-shadow: 0 9px 27px rgba(15, 23, 42, .05);
  }

  .site-home .home-news-section .home-news-media {
    height: 100%;
    min-height: 138px;
    aspect-ratio: auto;
  }

  .site-home .home-news-section .home-news-content {
    min-height: 0;
    padding: 13px 14px 13px 15px;
  }

  .site-home .home-news-section .home-news-meta {
    min-height: 18px;
    margin-bottom: 7px;
  }

  .site-home .home-news-section .home-news-meta > span {
    min-height: 19px;
    padding: 0 7px;
    font-size: 8px;
  }

  .site-home .home-news-section .home-news-meta time {
    font-size: 9.5px;
  }

  .site-home .home-news-section .eyidxpro_tit {
    width: 100%;
    min-height: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .site-home .home-news-section .home-news-content > p {
    width: 100%;
    margin-top: 7px;
    color: #7c8999;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .site-home .home-news-section .eyidxpro_btn {
    display: none;
  }

  .site-home .home-news-section .home-news-footer {
    justify-content: center;
    margin-top: 18px;
  }

  .site-home .home-news-section .home-news-footer > a {
    min-height: 42px;
    padding: 0 17px;
    font-size: 12px;
  }
}

@media screen and (max-width: 374px) {
  .site-home .home-news-section .home-news-card {
    grid-template-columns: 122px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home .home-news-section .home-news-card,
  .site-home .home-news-section .home-news-media img,
  .site-home .home-news-section .eyidxpro_tit,
  .site-home .home-news-section .eyidxpro_btn,
  .site-home .home-news-section .home-news-footer > a,
  .site-home .home-news-section .home-news-categories .idx_proflli {
    transition: none;
  }
}
