/* Newsroom — Figma node 288:6195. */
body:has(.newsroom-page) .redirect-bar {
  display: none !important;
  height: 0 !important;
}

body:has(.newsroom-page) {
  /* `overflow-x: hidden` makes body a scrolling ancestor on narrow screens,
     so the site header's position: sticky is resolved against the wrong box. */
  overflow-x: clip;
}

body:has(.newsroom-page) .header-menu,
body:has(.newsroom-page) .header-menu nav {
  height: 84px;
}

/* 导航条改为全宽（与 index.css 站点默认一致）：只保留高度撑满，让内容在加高后的
   nav 里垂直居中；不再把菜单限制在 1200 居中，避免宽屏下菜单挤在中间两侧留大片空白。 */
body:has(.newsroom-page) .header-menu nav > .container {
  height: 100%;
}

body:has(.newsroom-page) .header-menu nav > .container > .row {
  height: 100%;
}

.newsroom-hero.guide {
  box-sizing: border-box;
  width: 100%;
  height: 370px;
  min-height: 0;
  margin-top: -84px;
  padding: 160px 20px 80px;
  background: linear-gradient(180deg, #f7f6ff 0%, #fff 127.28%);
}

.newsroom-hero .container,
.newsroom-hero .container .row,
.newsroom-hero .text {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

.newsroom-hero .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  color: #181818;
  text-align: center;
}

.newsroom-hero .text h1 {
  margin: 0;
  color: #181818;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 68px;
}

.newsroom-hero .text p {
  margin: 0;
  color: #666;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.newsroom-page.isp {
  position: relative;
  box-sizing: border-box;
  min-height: 962px;
  padding: 40px 0 !important;
  overflow: hidden;
  background: #fff !important;
}

.newsroom-page .title,
.newsroom-page .page {
  display: none !important;
}

.newsroom-page .filters,
.newsroom-page .articles {
  width: calc(100% - 80px);
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

.newsroom-page .filters {
  margin-bottom: 40px;
}

.newsroom-page .filters .container {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

.newsroom-page .filters .btn-group {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.newsroom-page .filters .myBtn-radio {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 10px 28px !important;
  border: 1px solid #ccc !important;
  border-radius: 999px !important;
  color: #666;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
}

.newsroom-page .filters .myBtn-radio:hover {
  color: #666;
}

.newsroom-page .filters .btn-check:checked + .myBtn-radio {
  color: #7a62f0;
  border-color: transparent !important;
  background: #f8f7fe;
}

.newsroom-page .filters label[for="btnradio1"] {
  min-width: 0;
}

.newsroom-page .filters label[for="btnradio2"] {
  min-width: 0;
}

.newsroom-page .articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.newsroom-page .articles .article-card {
  box-sizing: border-box;
  width: 100%;
  height: 250px;
  min-height: 250px;
  margin: 0;
  padding: 20px 28px !important;
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.newsroom-page .article-card-inner {
  display: flex;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.newsroom-page .article-first-img {
  flex: 0 0 280px;
  width: 280px;
  height: 210px;
  max-height: none;
  overflow: hidden;
  background: #f6f6f8;
  border-radius: 5px;
}

.newsroom-page .article-first-img .img-link,
.newsroom-page .article-first-img img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}

.newsroom-page .article-first-img img {
  object-fit: cover;
}

.newsroom-page .article-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.newsroom-page .article-text-link {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #000;
  text-decoration: none;
}

.newsroom-page .article-text-link .title-two-line {
  margin: 0 0 10px;
  overflow: hidden;
  color: #000;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.newsroom-page .article-text-link .content-three-line {
  margin: 0;
  overflow: hidden;
  color: #666;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.newsroom-page .article-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
}

.newsroom-page .meta-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9581f3;
  font-weight: 600;
}

.newsroom-page .meta-author::before {
  display: inline-block;
  width: 18px;
  height: 18px;
  content: "";
  background: url("../images/newsroom/author.svg") center / contain no-repeat;
}

.newsroom-page .meta-date {
  color: #999;
  font-weight: 300;
}

/* Newsroom 把全局悬浮条加高了（全局 120px → 这里 170px），所以它需要比
   common.css 的通用 140px 更大的预留空档。footer.php 的停靠逻辑会把条带定位到
   footerTop - 条带高度，若 footer 上方没有等高的空白，条带就会压住最后一张文章
   卡片。用同一个变量同时驱动条带高度和 footer 上外边距，两者天然同步，各断点只
   需改这一个值。
   （原先这里写的是 margin-top:0 !important，意在让条带压在文章区上；实测会遮挡
   正文，按工单改回预留空档。） */
.newsroom-cta {
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  height: 170px;
  margin-top: -170px;
  padding: 40px 0;
  background: linear-gradient(180deg, #f7f6ff 0%, #fff 127.28%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.newsroom-cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: calc(100% - 80px);
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
}

.newsroom-cta-inner > img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.newsroom-cta-inner > div {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.newsroom-cta strong,
.newsroom-cta-inner > div > span {
  color: #181818;
  font-family: "Segoe UI", Arial, sans-serif;
}

.newsroom-cta strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
}

.newsroom-cta-inner > div > span {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.newsroom-cta a {
  display: inline-flex;
  flex: 0 0 260px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 260px;
  height: 60px;
  padding: 0;
  border-radius: 50px;
  color: #fff;
  background: linear-gradient(90deg, #79a9f0 0%, #a22bf6 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
}

.newsroom-cta a:hover {
  color: #fff;
}

.newsroom-cta a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.newsroom-cta a span {
  color: #fff;
  font-size: inherit;
}

/* 页脚不再做 Newsroom 专属覆写。此前按设计稿帧高（458/468/778/1182.9px）写死了
   footer/.about/.copyright 的固定高度，反而导致底部版权栏行错位、平板/移动端各栏被拉开
   又互相重叠。移除后 Newsroom 页脚回归全局页脚样式（index.css），与设计稿一致：桌面
   版权栏单行对齐、768–1024 双列、≤768 单列。全局页脚已含这些响应式规则，无需在此重复。 */

@media (max-width: 1199.98px) {
  body:has(.newsroom-page) .header-menu,
  body:has(.newsroom-page) .header-menu nav {
    height: 74px;
  }

  .newsroom-hero.guide {
    height: 274px;
    margin-top: -74px;
    padding: 114px 40px 50px;
  }

  .newsroom-hero .text {
    gap: 20px;
  }

  .newsroom-hero .text h1 {
    font-size: 34px;
    line-height: 48px;
  }

  .newsroom-hero .text p {
    font-size: 20px;
    line-height: 32px;
  }

  .newsroom-page.isp {
    min-height: 1748px;
  }

  .newsroom-page .filters,
  .newsroom-page .articles,
  .newsroom-cta-inner {
    width: min(864px, calc(100% - 160px));
    max-width: 864px;
    margin-right: auto;
    margin-left: auto;
  }

  .newsroom-page .filters {
    margin-bottom: 20px;
  }

  .newsroom-page .filters .myBtn-radio {
    height: 48px;
    min-height: 48px;
    padding: 8px 24px !important;
    font-size: 22px;
    line-height: 32px;
  }

  .newsroom-page .filters label[for="btnradio1"] {
    min-width: 0;
  }

  .newsroom-page .filters label[for="btnradio2"] {
    min-width: 0;
  }

  .newsroom-page .articles {
    grid-template-columns: 1fr;
  }

  .newsroom-cta {
    height: 164px;
    margin-top: -164px;
    padding: 40px 0;
  }

  .newsroom-cta-inner {
    gap: 20px;
  }

  .newsroom-cta-inner > img {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .newsroom-cta-inner > div {
    gap: 14px;
  }

  .newsroom-cta-inner > div > span {
    font-size: 20px;
  }

  .newsroom-cta a {
    flex-basis: 220px;
    width: 220px;
    height: 50px;
    font-size: 18px;
    line-height: 26px;
  }

  .newsroom-cta a img {
    width: 18px;
    height: 18px;
  }

}

@media (max-width: 768px) {
  body:has(.newsroom-page) .header-menu,
  body:has(.newsroom-page) .header-menu nav {
    height: 56px;
  }

  /* hero 用 margin-top 把自己拉到 sticky 头部之下，让渐变背景延伸到头部后面，
     所以顶部内边距必须写成「头部高度 + 标题上方留白」。这里 56px 抵消负外边距，
     余下 44px 才是标题上方真正的留白，与 Send Files、首页等常规页的移动端间距
     一致。高度改由内容撑开（min-height 兜底渐变带的最小高度），避免加大内边距
     后标题溢出固定高度。 */
  .newsroom-hero.guide {
    height: auto;
    min-height: 202px;
    margin-top: -56px;
    padding: 100px 40px 40px;
  }

  .newsroom-hero .text {
    gap: 12px;
  }

  .newsroom-hero .text h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .newsroom-hero .text p {
    font-size: 14px;
    line-height: 20px;
  }

  .newsroom-page.isp {
    min-height: 720px;
    padding: 40px 0 !important;
  }

  .newsroom-page .filters,
  .newsroom-page .articles,
  .newsroom-cta-inner {
    width: calc(100% - 80px);
    max-width: 688px;
    margin-right: auto;
    margin-left: auto;
  }

  .newsroom-page .filters .myBtn-radio {
    height: 40px;
    min-height: 40px;
    padding: 6px 18px !important;
    font-size: 20px;
    line-height: 28px;
  }

  .newsroom-page .filters label[for="btnradio1"] {
    min-width: 0;
  }

  .newsroom-page .filters label[for="btnradio2"] {
    min-width: 0;
  }

  .newsroom-page .articles .article-card {
    height: 180px;
    min-height: 180px;
  }

  .newsroom-page .article-first-img,
  .newsroom-page .content-three-line {
    display: none !important;
  }

  .newsroom-page .article-card-inner {
    gap: 0;
  }

  .newsroom-page .article-meta-line {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }

  .newsroom-cta {
    height: 190.27px;
    margin-top: -190.27px;
    padding: 40px;
  }

  .newsroom-cta-inner {
    display: grid;
    grid-template-columns: 50px auto;
    grid-template-rows: 50px 40.27px;
    justify-content: center;
    align-content: center;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .newsroom-cta-inner > div {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .newsroom-cta-inner > div > span {
    display: none;
  }

  .newsroom-cta a {
    grid-column: 1 / -1;
    justify-self: center;
    flex-basis: 40.27px;
    width: 151px;
    height: 40.27px;
    font-size: 16px;
    line-height: 22px;
  }

  .newsroom-cta a img {
    width: 16px;
    height: 16px;
  }

}

@media (min-width: 1440px) {
  .newsroom-page .filters,
  .newsroom-page .articles,
  .newsroom-cta-inner {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  /* 同上：60px 只比 56px 的头部高出 4px，标题几乎贴着头部；改成 56 + 44。 */
  .newsroom-hero.guide {
    height: auto;
    min-height: 150px;
    padding: 100px 40px 20px;
  }

  .newsroom-page.isp {
    min-height: 680px;
    padding: 20px 0 !important;
  }

  .newsroom-page .filters,
  .newsroom-page .articles {
    width: calc(100% - 40px);
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .newsroom-page .filters .btn-group {
    justify-content: flex-start;
    width: 100%;
  }

  .newsroom-page .articles .article-card {
    padding: 20px 28px !important;
  }

  .newsroom-cta {
    height: 158.27px;
    margin-top: -158.27px;
    padding: 20px;
  }

  .newsroom-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .newsroom-cta-inner > div {
    flex-direction: column;
    gap: 8px;
  }

  .newsroom-cta-inner > img {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .newsroom-cta strong {
    font-size: 14px;
    line-height: 20px;
  }

}
