/* ========================================
   Newsroom 页面专用样式
   全局导航 / 页脚 / 新闻卡片基础样式见 css/styles.css
   ======================================== */

.newsroom-page,
.news-article-page {
  padding-top: var(--header-height);
  background: var(--color-white);
}

.newsroom-banner {
  width: 100%;
  height: 550px;
  background-image: url('../assets/images/newsroom/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsroom-banner-title {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.newsroom-page .section-spaced {
  padding-top: 100px;
}

.newsroom-page .section-spaced > .container:first-of-type {
  padding-bottom: 100px;
}

.newsroom-list-intro {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.75;
}

.newsroom-disclaimer {
  max-width: 760px;
  margin: 0 0 56px;
  padding: 16px 18px;
  border-left: 3px solid #015fcb;
  background: #f5f7fb;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.newsroom-grid--page {
  width: 100%;
}

.newsroom-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsroom-card-link:hover {
  color: inherit;
  transform: translateY(-4px);
}

.newsroom-card-link:hover .newsroom-card-image img {
  transform: scale(1.03);
}

.newsroom-card-image img {
  transition: transform 0.25s ease;
}

.newsroom-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.newsroom-card-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(9, 130, 229, 0.1);
  font-size: 13px;
  font-weight: 400;
  color: #015fcb;
  line-height: 1.4;
}

.newsroom-card-title {
  margin: 0;
  line-height: 1.45;
}

.newsroom-card-source {
  margin: 0;
  font-size: 13px;
  color: #015fcb;
}

.newsroom-card-excerpt {
  margin: 0;
}

/* ========== Pagination ========== */
.newsroom-pagination {
  margin-top: 56px;
}

.newsroom-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

.newsroom-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid #015fcb;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #015fcb;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.newsroom-pagination-btn:hover:not(:disabled) {
  background: #015fcb;
  color: #fff;
}

.newsroom-pagination-btn:disabled {
  border-color: #c5d4ea;
  color: #9bb3d9;
  cursor: not-allowed;
}

.newsroom-pagination-btn--go {
  min-width: 72px;
  background: #015fcb;
  color: #fff;
}

.newsroom-pagination-btn--go:hover:not(:disabled) {
  background: #014aa3;
  border-color: #014aa3;
}

.newsroom-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsroom-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d0d4dc;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #444;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.newsroom-pagination-page:hover {
  border-color: #015fcb;
  color: #015fcb;
}

.newsroom-pagination-page.is-active {
  border-color: #015fcb;
  background: #015fcb;
  color: #fff;
  cursor: default;
}

.newsroom-pagination-goto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.newsroom-pagination-goto-label {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.newsroom-pagination-goto-input {
  box-sizing: border-box;
  width: 72px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsroom-pagination-goto-input:focus {
  border-color: #015fcb;
}

.newsroom-pagination-goto-input.is-invalid {
  border-color: #d93025;
}

/* ========== Article detail ========== */
.news-article-section {
  padding: 100px 0;
}

.news-article-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 400;
  color: #015fcb;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-article-back:hover {
  opacity: 0.75;
}

.news-article {
  max-width: 1100px;
  margin: 0 auto;
}

.news-article-header {
  margin-bottom: 32px;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.news-article-title {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  color: #222;
  line-height: 1.3;
}

.news-article-hero {
  margin: 0 0 40px;
}

.news-article-hero img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.news-article-image-credit {
  margin: 10px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  text-align: right;
}

.news-article-source {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.news-article-source a {
  color: #015fcb;
  text-decoration: none;
}

.news-article-source a:hover {
  text-decoration: underline;
}

.news-article-source--header {
  margin-top: 12px;
}

.news-article-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #d0d4dc;
}

.news-article-disclaimer {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.news-article-source-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 400;
  color: #015fcb;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-article-source-link:hover {
  opacity: 0.75;
}

.news-article-body p {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.85;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-article-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.news-article-lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: #444;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .newsroom-banner {
    height: 360px;
  }

  .newsroom-banner-title {
    font-size: 32px;
  }

  .newsroom-page .section-spaced,
  .news-article-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .newsroom-page .section-spaced > .container:first-of-type {
    padding-bottom: 72px;
  }

  .newsroom-list-intro {
    margin-bottom: 20px;
  }

  .newsroom-disclaimer {
    margin-bottom: 40px;
  }

  .newsroom-pagination {
    margin-top: 40px;
  }

  .newsroom-pagination-inner {
    gap: 14px;
  }

  .newsroom-pagination-goto {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .news-article-title {
    font-size: 30px;
  }

  .news-article-hero img {
    height: auto;
    aspect-ratio: 1100 / 520;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .newsroom-grid--page {
    grid-template-columns: repeat(2, minmax(0, 440px));
    justify-content: center;
  }
}
