/* 新闻中心 — 对齐 Figma newsList 设计稿 */

.page-news {
  padding-bottom: 0;
  overflow-x: hidden;
}

/* —— Banner —— */
.news-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.news-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(0, 31, 130, 0.00) 0%, rgba(8, 43, 155, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.news-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: var(--container-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-hero-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.news-hero-desc {
  margin: 0;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

/* —— 分类 + 搜索 —— */
.news-toolbar-section {
  padding: 40px 0 8px;
}

.news-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(197, 202, 211, 0.22);
  flex: 1 1 auto;
  min-width: 0;
}

.news-tab {
  border: none;
  margin: 0;
  padding: 10px 22px;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.4;
  color: #272b34;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.news-tab:hover {
  color: #101d3b;
}

.news-tab.active {
  color: #fff;
  background: #21232a;
  font-weight: 500;
}

.news-search {
  display: flex;
  align-items: center;
  flex: 0 0 320px;
  width: 320px;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 4px 0 16px;
  background: #fff;
  border: 1px solid #e5e6eb;
  box-shadow: var(--shadow-sm);
}

.news-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text-primary);
  background: transparent;
}

.news-search-input::placeholder {
  color: #86909c;
}

.news-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #4e5969;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.news-search-submit:hover {
  color: #155dd1;
  background: rgba(21, 93, 209, 0.06);
}

.news-search-icon {
  display: block;
}

/* —— 列表 —— */
.news-list-section {
  padding: 24px 0 80px;
}

.news-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* border: 1px solid #e8e9ed; */
}

.news-article-list > li {
  margin: 0;
  padding: 0;
}
.news-article-list > li:hover .news-row {
  background: #eef5ff;
}

.news-article-list > li:hover .news-row-title a {
  color: #0052D6;
}

/* .news-article-list > li + li {
  border-top: 1px solid #e8e9ed;
} */

.news-article-list > li.news-empty-item + li.news-empty-item,
.news-article-list > li.news-empty-item {
  border-top: none;
}

.news-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.news-empty-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #2b313d;
}

.news-empty-desc {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: #86909c;
}

.news-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 32px;
  background: #fff;
  /* cursor: pointer; */
}

 .news-row {
  background: #f5f6f7;
  margin-bottom: 10px;
}

.news-row-main {
  flex: 1;
  min-width: 0;
}

.news-row-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.news-row-title a {
  /* color: #155dd1; */
  color: rgba(0, 0, 0, 0.92);
  text-decoration: none;
  transition: color 0.2s;
}

.news-row-title a:hover {
  color: #0d4bb5;
  text-decoration: underline;
}

.news-row-summary {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #86909c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #155dd1;
  text-decoration: none;
  transition: color 0.2s;
}

.news-row-more:hover {
  color: #0d4bb5;
  text-decoration: underline;
}

.news-row-meta {
  flex-shrink: 0;
  text-align: right;
  padding-top: 4px;
}

.news-row-meta time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.news-row-day {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: #155dd1;
  letter-spacing: -0.02em;
}

.news-row-ym {
  font-size: 14px;
  font-weight: 400;
  color: #86909c;
  line-height: 1.2;
}

.news-article-list > li.is-hidden {
  display: none;
}

/* —— 分页 —— */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 48px;
}

.news-page-nav {
  padding: 8px 14px;
  font-size: 14px;
  color: #272b34;
  text-decoration: none;
  border: 1px solid #e5e6eb;
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}

.news-page-nav:hover:not(.is-disabled) {
  border-color: #155dd1;
  color: #155dd1;
}

.news-page-nav.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.news-page-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.news-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  font-size: 14px;
  color: #272b34;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-page-num:hover:not(.is-active) {
  border-color: #e5e6eb;
  background: #f7f8fa;
}

.news-page-num.is-active {
  color: #fff;
  background: #155dd1;
  border-color: #155dd1;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.news-page-ellipsis {
  padding: 0 4px;
  font-size: 14px;
  color: #86909c;
  user-select: none;
}

@media (max-width: 900px) {
  .news-hero {
    min-height: 320px;
  }

  .news-hero-title {
    font-size: 36px;
  }

  .news-hero-desc {
    font-size: 16px;
  }

  .news-toolbar {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }

  .news-search {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .news-toolbar-section .container,
  .news-list-section .container {
    min-width: 0;
  }

  .news-row {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .news-row-meta {
    align-self: flex-end;
    padding-top: 0;
  }

  .news-row-meta time {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .news-row-day {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .news-toolbar-section {
    padding: 24px 0 6px;
  }

  .news-tablist {
    width: 100%;
    padding: 10px;
    gap: 8px;
  }

  .news-row {
    padding: 18px 14px;
  }

  .news-row-title {
    font-size: 18px;
    line-height: 1.45;
  }

  .news-row-summary {
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
  }

  .news-row-day {
    font-size: 28px;
  }

  .news-pagination {
    gap: 10px 12px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .news-hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .news-tablist {
    width: 100%;
    justify-content: flex-start;
  }

  .news-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* .news-pagination {
    flex-direction: column;
  } */
}
