﻿/* ========================================
   法律资讯 - 列表（布局同胜诉案例）
   ======================================== */

.page-banner--news {
  background-image: url("../images/page-banner-news.png");
}

.news-page {
  padding: 0 0 20px;
}

.news-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.news-main {
  flex: 1;
  min-width: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #ececec;
}

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

.news-item.is-hidden {
  display: none;
}

.news-item__date {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  border: 1px solid #dddddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-item__day {
  display: block;
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 35px;
  color: #999999;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.news-item__ym {
  display: block;
  margin-top: 6px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: #999999;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.news-item__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.news-item__title {
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  color: #333333;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.news-item__title a {
  color: inherit;
}

.news-item:hover .news-item__title {
  color: #a42127;
}

.news-item__excerpt {
  width: 640px;
  max-width: 100%;
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #999999;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-item__more {
  display: inline-block;
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #666666;
  line-height: 35px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  transition: color var(--transition);
}

.news-item:hover .news-item__more {
  color: #a42127;
}

.news-item__go {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 18px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.news-item__go img {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

.news-item:hover .news-item__go {
  border-color: #a42127;
  background: #a42127;
}

.news-item:hover .news-item__go img {
  filter: brightness(0) invert(1);
  transform: rotate(45deg);
}

.news-main .pagination {
  padding: 48px 0 91px;
}

/* ========== 全站搜索页 ========== */
.search-page .news-main {
  width: 100%;
}

.search-summary {
  margin-bottom: 8px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #666666;
  line-height: 28px;
}

.search-summary strong {
  color: #a42127;
  font-weight: 600;
}

.search-item__type {
  margin-bottom: 6px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #a42127;
  line-height: 18px;
}

.search-page__form-wrap {
  max-width: 640px;
  margin: 0 auto 80px;
}

.search-page__form {
  display: flex;
  gap: 12px;
}

.search-page__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #333333;
}

.search-page__input:focus {
  outline: none;
  border-color: #a42127;
}

.search-page__submit {
  flex-shrink: 0;
  min-width: 96px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  background: #a42127;
  color: #ffffff;
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-page__submit:hover {
  background: #8b1b20;
}

/* ========== 右侧资讯检索 ========== */
.news-side {
  flex-shrink: 0;
  width: 255px;
  position: sticky;
  top: 120px;
}

.news-retrieval {
  width: 255px;
  height: 508px;
  box-sizing: border-box;
  background: #fff5ed;
  border-radius: 8px;
  padding: 30px 20px 40px;
}

.news-retrieval__en {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #000000;
  line-height: 1.3;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.news-retrieval__cn {
  margin-top: 6px;
  margin-bottom: 14px;
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #a42127;
  line-height: 1.4;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.news-retrieval__search {
  position: relative;
  width: 214px;
  height: 40px;
  margin-bottom: 28px;
}

.news-retrieval__search input {
  width: 214px;
  height: 40px;
  padding: 0 36px 0 14px;
  box-sizing: border-box;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #333333;
}

.news-retrieval__search input::placeholder {
  color: #bbbbbb;
}

.news-retrieval__search input:focus {
  outline: none;
}

.news-retrieval__search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.news-retrieval__search button img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 1;
}

.news-retrieval__label {
  margin-bottom: 4px;
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #999999;
  line-height: 20px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.news-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #000000;
  line-height: 31px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}

.news-cats__item span:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.news-cats__count {
  flex-shrink: 0;
  min-width: 28px;
  height: 20px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #f0ebe6;
  color: #666666;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.news-cats__item.is-active {
  color: #a42127;
}

.news-cats__item.is-active .news-cats__count {
  background: #a42127;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .news-layout {
    flex-direction: column;
    gap: 32px;
  }

  .news-side {
    width: 100%;
    position: static;
  }

  .news-retrieval {
    width: 100%;
    height: auto;
  }

  .news-retrieval__search,
  .news-retrieval__search input {
    width: 100%;
  }

  .news-item__excerpt {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-item {
    flex-wrap: wrap;
    gap: 16px;
  }

  .news-item__title {
    font-size: 17px;
    line-height: 26px;
  }

  .news-item__excerpt {
    font-size: 15px;
    line-height: 26px;
  }

  .news-item__more {
    font-size: 15px;
  }

  .search-summary {
    font-size: 15px;
    line-height: 26px;
  }

  .news-item__go {
    margin-top: 0;
  }

  .news-main .pagination {
    padding: 32px 0 48px;
  }
}



/* [mobile bump] base 10-13px +2px on phone */
@media (max-width: 768px) {
  .news-item__ym { font-size: 15px; }
  .search-item__type { font-size: 14px; }
  .news-retrieval__search input { font-size: 15px; }
  .news-retrieval__label { font-size: 14px; }
  .news-cats__item { font-size: 15px; }
  .news-cats__count { font-size: 15px; }
}
