/* 资讯动态 */

.news-layout {
  padding: 70px 0 100px;
  background: var(--white);
}

.news-layout-inner {
  display: grid;
  grid-template-columns: calc(1170 * var(--px)) calc(226 * var(--px));
  justify-content: space-between;
  gap: 0;
  align-items: start;
}

.news-list {
  width: calc(1170 * var(--px));
  min-width: 0;
}

.news-item {
  display: grid;
  grid-template-columns: calc(320 * var(--px)) 1fr;
  gap: calc(24 * var(--px));
  padding: calc(28 * var(--px)) 0;
  border-bottom: 1px solid #eceff4;
  align-items: stretch;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item .pic {
  width: calc(320 * var(--px));
  height: calc(200 * var(--px));
  border-radius: calc(6 * var(--px));
  overflow: hidden;
}

.news-item .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item:hover .pic img {
  transform: scale(1.04);
}

.news-item .content {
  display: flex;
  flex-direction: column;
  min-height: calc(200 * var(--px));
  box-sizing: border-box;
}

.news-item .date {
  font-family: var(--font);
  font-size: max(13px, calc(14 * var(--px)));
  font-style: normal;
  color: #1a3a8e;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
  /* margin: 0 0 calc(10 * var(--px)); */
}

.news-item .title {
  font-family: var(--font);
  font-size: max(18px, calc(22 * var(--px)));
  font-weight: 500; /* HarmonyOS Sans SC Medium */
  font-style: normal;
  color: #333333;
  line-height: calc(32 * var(--px));
  text-align: left;
  text-transform: none;
  margin: 0 0 calc(10 * var(--px));
  transition: color 0.25s ease;
}

.news-item .summary {
  font-family: var(--font);
  font-size: max(13px, calc(14 * var(--px)));
  font-style: normal;
  color: #57606e;
  line-height: calc(24 * var(--px));
  text-align: left;
  text-transform: none;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .more {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  margin-top: calc(20 * var(--px));
  font-family: var(--font);
  font-size: max(13px, calc(15 * var(--px)));
  font-style: normal;
  color: #999999;
  /* line-height: calc(36 * var(--px)); */
  text-align: left;
  text-transform: none;
}

.news-item .more img {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
  object-fit: contain;
  display: block;
}

.news-item:hover .title,
.news-item:hover .more {
  color: var(--primary);
}

.news-side {
  width: calc(226 * var(--px));
  box-sizing: border-box;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  position: sticky;
  top: 110px;
}

.news-side h3 {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin: 0;
  padding: calc(20 * var(--px)) 0;
  border-bottom: 1px solid #e8e8e8;
  font-family: var(--font);
  font-size: max(14px, calc(16 * var(--px)));
  font-weight: 400;
  font-style: normal;
  color: #798493;
  text-align: left;
  text-transform: none;
}

.news-side h3 img {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  object-fit: contain;
}

.news-side a {
  display: block;
  padding: calc(20 * var(--px)) 0;
  border-bottom: 1px solid #e8e8e8;
  font-family: var(--font);
  font-size: max(14px, calc(16 * var(--px)));
  font-style: normal;
  color: #111111;
  text-align: left;
  text-transform: none;
  transition: color 0.25s ease;
}

.news-side a:hover,
.news-side a.active {
  color: #1a3a8e;
}

@media (max-width: 1100px) {
  .news-layout-inner {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .news-list,
  .news-side {
    width: 100%;
  }

  .news-side {
    position: static;
    order: -1;
  }

  .news-item {
    grid-template-columns: calc(240 * var(--px)) 1fr;
  }

  .news-item .pic {
    width: calc(240 * var(--px));
    height: auto;
    aspect-ratio: 320 / 200;
  }
}

@media (max-width: 768px) {
  .news-layout {
    padding: 40px 0;
  }

  .news-layout-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-list,
  .news-side {
    width: 100%;
  }

  .news-side {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 8px;
  }

  .news-side h3 {
    width: 100%;
    padding: 0 0 8px;
    font-size: 14px;
    border-bottom: none;
  }

  .news-side h3 img {
    width: 16px;
    height: 16px;
  }

  .news-side a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
  }

  .news-side a.active {
    border-color: #1a3a8e;
    background: rgba(26, 58, 142, 0.06);
    color: #1a3a8e;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .news-item .pic {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 200;
    border-radius: 6px;
  }

  .news-item .content {
    min-height: 0;
  }

  .news-item .date {
    font-size: 13px;
    line-height: 1.4;
  }

  .news-item .title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 8px;
  }

  .news-item .summary {
    font-size: 14px;
    line-height: 1.6;
  }

  .news-item .more {
    margin-top: 12px;
    min-height: 44px;
    font-size: 14px;
  }

  .news-item .more img {
    width: 14px;
    height: 14px;
  }
}
