/* 新闻头部：高度由父容器统一控制，轮播画框和舞台占满父容器。 */
.news_header_container {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    background-color: #EEEFF1;
}

/* 裁切仅放在外层画框，避免破坏舞台的 3D 排布。 */
.news_header_container > .news_header_carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.news_header_container .news_header_carousel_root {
    position: relative;
    width: 100%;
    height: 100%;
}

.news_header_container .cg-root {
  position: relative;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.news_header_container .cg-root:focus { outline: none; }
html[data-site-focus="keyboard"] .news_header_container .cg-root:focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px; }
.news_header_container .cg-root[data-cg-drag="1"] { cursor: grab; }
.news_header_container .cg-root[data-cg-dragging="1"] { cursor: grabbing; }

.news_header_container .cg-stage {
  position: absolute;
  inset: var(--news-carousel-offset, 0px) 0 auto;
  height: 100%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.news_header_container .cg-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cards take the pointer so one can be tapped to bring it to the centre. The
     stage around them does not, so a press on empty space still starts a drag
     on the root. */
  pointer-events: auto;
}
.news_header_container .cg-root[data-cg-tap="1"] .cg-card { cursor: pointer; }

/* Set by the controller while the loop is running and removed the moment it
   settles. A standing will-change is a promoted GPU layer per card for a
   carousel that is not moving. */
.news_header_container .cg-root[data-cg-moving="1"] .cg-item { will-change: transform; }

.news_header_container .cg-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0b0d;
  backface-visibility: hidden;
}
.news_header_container .cg-card { text-decoration: none; color: inherit; }
.news_header_container .cg-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.news_header_container .cg-root--reduced .cg-card { transition: opacity 180ms linear; }


.news_header_container .cg-card { text-decoration: none; color: inherit; }
/* A card's own words and button.
   Everything below here is meant to be edited by whoever pastes this — it is
   deliberately plain, because it has to sit on somebody else's design.
   The zoom is on the picture, never on the card: growing the card swings its
   edges out of its own plane and cards on a ring sit close enough to their
   neighbours to cut into them.

   The panel is sized from the one font-size below and everything in it is a
   fraction of that, so there is a single number to change if you want the whole
   thing bigger. The script sets --cg-fit from the card's own size: 1 at the card
   these numbers were tuned on, less below it, never more. That is what stops a
   small card cropping its own words — the panel shrinks with it instead of
   standing 15px tall on a card too short to hold it. The two --cg-*-scale dials
   ride on top, for taste. */
.news_header_container .cg-content {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: calc(16px * var(--cg-fit, 1));
  gap: 0.375em;
  padding: 0.875em 1em 1em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  color: #fff;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.news_header_container .cg-title { margin: 0; font-size: calc(0.94em * var(--cg-text-scale, 1)); font-weight: 600; line-height: 1.25; }
.news_header_container .cg-caption { margin: 0; font-size: calc(0.78em * var(--cg-text-scale, 1)); line-height: 1.4; opacity: 0.8; }
/* The pill's padding is in its own em, so it stays a pill at any button size. */
.news_header_container .cg-cta {
  margin-top: 0.125em;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: calc(0.75em * var(--cg-cta-scale, 1));
  line-height: 1;
}

/* The other layout: nothing but the button, centred on the card over a soft
   veil. The title and caption stay in the markup and move off screen rather
   than display:none — they are a screen reader's only route into the card,
   and the layout only decides what sighted eyes get. */
.news_header_container .cg-root[data-cg-content="button"] .cg-content {
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
}
.news_header_container .cg-root[data-cg-content="button"] .cg-title,
.news_header_container .cg-root[data-cg-content="button"] .cg-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.news_header_container .cg-root[data-cg-reveal="focus"] .cg-item[data-cg-focused] .cg-content,
.news_header_container .cg-root[data-cg-reveal="both"] .cg-item[data-cg-focused] .cg-content,
.news_header_container .cg-root[data-cg-reveal="hover"] .cg-card:hover .cg-content,
.news_header_container .cg-root[data-cg-reveal="both"] .cg-card:hover .cg-content {
  opacity: 1;
  transform: none;
}
.news_header_container .cg-root[data-cg-reveal="focus"] .cg-item[data-cg-focused] .cg-card img,
.news_header_container .cg-root[data-cg-reveal="both"] .cg-item[data-cg-focused] .cg-card img,
.news_header_container .cg-root[data-cg-reveal="hover"] .cg-card:hover img,
.news_header_container .cg-root[data-cg-reveal="both"] .cg-card:hover img {
  transform: scale(var(--cg-reveal-zoom, 1.06));
}

@media (prefers-reduced-motion: reduce) {
  .news_header_container .cg-card img,
  .news_header_container .cg-content { transition-duration: 1ms; }
}

/* 只对背景副本做模糊，不在 3D 舞台上使用 filter 或 overflow 裁切。 */
.news_header_container .news_header_background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #26344a;
}
.news_header_container .news_header_bg_layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.16);
    filter: blur(clamp(26px, 3.5vw, 64px));
    opacity: 0;
    transition: opacity 800ms ease;
}
.news_header_container .news_header_bg_layer.is_active { opacity: 1; }
/* 文案和滚动提示作为独立的头部底栏，不随轮播卡片尺寸或切换位置移动。 */
.news_header_container .news_header_footer {
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vh, 36px);
    width: calc(100% - 48px);
    max-width: 1000px;
    transform: translateX(-50%);
    pointer-events: none;
}
.news_header_container .news_header_copy {
    width: 100%;
    margin: 0;
    color: #fff;
    text-align: center;
    pointer-events: none;
}
.news_header_container .news_header_copy h1 {
    margin: 0;
    font-size: clamp(24px, 1.9vw, 36px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .025em;
}
.news_header_container .news_header_copy p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(14px, 1.05vw, 20px);
    line-height: 1.6;
}
.news_header_container .news_header_background::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 24, 44, .48), rgba(14, 22, 35, .1) 55%, rgba(18, 21, 28, .42));
    content: "";
}
.news_header_container .news_header_scroll {
    position: relative;
    flex: 0 0 44px;
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.78);
    cursor: pointer;
    transition: opacity 180ms ease, color 180ms ease;
}
.news_header_container .news_header_scroll span {
    position: relative;
    width: 20px;
    height: 36px;
    border: 1px solid currentColor;
    border-radius: 20px;
    animation: news_scroll_float 2.8s ease-in-out infinite;
}
.news_header_container .news_header_scroll span::after {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    animation: news_scroll_wheel 2s ease-in-out infinite;
}
html[data-site-focus="keyboard"] .news_header_container .news_header_scroll:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
@media (max-width: 767px) {
    .news_header_container { height: 100vh; height: 100svh; min-height: 440px; }
    .news_header_container .news_header_bg_layer { filter: blur(28px); }
    .news_header_container .news_header_footer { width: calc(100% - 40px); bottom: max(16px, env(safe-area-inset-bottom)); gap: 20px; }
    .news_header_container .news_header_copy h1 { font-size: clamp(20px, 5.5vw, 26px); line-height: 1.45; letter-spacing: 0; }
    .news_header_container .news_header_copy p { margin-top: 12px; font-size: 14px; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
    .news_header_container .news_header_bg_layer { transition: none; }
}

@keyframes news_scroll_float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@keyframes news_scroll_wheel {
    0%, 100% { opacity: 0; transform: translateY(-2px); }
    25% { opacity: 1; }
    70% { opacity: 0; transform: translateY(9px); }
}
.news_header_container .news_header_scroll.is_scrolling { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
    .news_header_container .news_header_scroll:hover { color: #fff; }
    .news_header_container .news_header_scroll:hover span { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .news_header_container .news_header_scroll,
    .news_header_container .news_header_scroll span,
    .news_header_container .news_header_scroll span::after { animation: none; transition: none; }
}
