/* News Center page */

.news-hero {
  position: relative;
  margin-top: 88px;
  min-height: 520px;
  overflow: hidden;
  background: #0c1438;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/新闻中心/banner2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 20, 56, 0.82) 0%,
    rgba(12, 20, 56, 0.55) 45%,
    rgba(12, 20, 56, 0.25) 100%
  );
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 96px 24px;
}

.news-hero-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d0f0;
  margin: 0 0 16px;
}

.news-hero-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  max-width: 720px;
  margin: 0;
}

.news-main {
  padding: 40px 0 80px;
  background: #ffffff;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.news-tab {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.news-tab:hover:not(.is-active) {
  color: #313695;
  border-color: #c5cce0;
}

.news-tab.is-active {
  color: #ffffff;
  background: #313695;
  border-color: #313695;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid #f0f2f6;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.news-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ecf2;
}

.news-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card-body h3 a:hover {
  color: #313695;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.news-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  font-size: 12px;
  color: #94a3b8;
  margin-top: auto;
}

.news-card[hidden] {
  display: none;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.news-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.news-page-btn:hover:not(:disabled) {
  color: #313695;
}

.news-page-btn.is-active {
  color: #ffffff;
  background: #313695;
}

.news-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.news-page-btn--arrow {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-hero {
    margin-top: 72px;
    min-height: 440px;
  }
}

@media (max-width: 560px) {
  .news-tab {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 10px 12px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
