@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("https://cdn.jsdelivr.net/npm/@lobehub/webfont-harmony-sans-sc@1.0.0/fonts/HarmonyOS_Sans_SC_Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   News Center Carousel - Scoped Styles
   Replicating reference design with silky-smooth responsive layout
   ========================================================================== */

:root {
  /* Desktop Base Parameters */
  --news-card-gap: 8px;
  --news-card-radius: 8px;

  /* Fluid Track Width: at large screens 1400px; at 1366px scales down proportionately */
  --news-fluid-w: min(1400px, calc(100vw - 240px));
  /* Fit one active card, two previews and three narrow cards in the viewport. */
  --news-card-w-active: calc(var(--news-fluid-w) - var(--news-card-w-2) - var(--news-card-w-3) - var(--news-card-w-rest) * 3 - var(--news-card-gap) * 5);
  --news-card-w-2: calc(var(--news-fluid-w) * (300 / 1400));
  --news-card-w-3: calc(var(--news-fluid-w) * (200 / 1400));
  --news-card-w-rest: calc(var(--news-fluid-w) * (20 / 1400));
  --news-card-h: calc(var(--news-fluid-w) * (462 / 1400));
  --news-track-w: var(--news-fluid-w);

  /* Silky smooth ease for active card entrance */
  --news-ease-silky: cubic-bezier(0.22, 1, 0.36, 1);
  --news-transition-duration: 0.45s;
}

/* Page Reset & Base Shell */
*,
*::before,
*::after {
  box-sizing: border-box;
}




body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #111827;
  font-family: var(--font-family-base, "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* ==========================================================================
   Banner Section Landmark
   ========================================================================== */

.news-title {
  position: relative;
  z-index: 2;
  width: var(--news-track-w);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  margin-bottom: 80px;
  text-align: center;
}

.title-desc {
  font-size: 18px;
  line-height: 150%;
  margin: 8px 0 0;
  font-weight: 500;
}

.h1-title {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 120%;
  color: #111827;
  letter-spacing: 0;
}

.news-banner {
  position: relative;
  width: 100%;
  padding-top: 136px;
  padding-bottom: 116px;
  overflow: hidden;
  background-color: #ffffff;
}

/* Ambient Wavy Top Background */
.news-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.news-banner__bg-img {
  width: 100%;
  height: 100%;
  object-position: top center;
}

/* Centered Container */
.news-banner__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 116px;
}

/* ==========================================================================
   Carousel Wrapper & Arrow Controls
   ========================================================================== */
.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

/* Circular Arrow Navigation Buttons */
.news-carousel__arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #000;
  background: #ffffff;
  color: #1f2328;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.28s var(--news-ease-silky);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.news-carousel__arrow:active,
.news-carousel__arrow.is-pressed {
  transform: scale(0.9) translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition-duration: 0.1s;
}

.news-carousel__arrow:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: 3px;
}

.news-carousel__arrow svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.25s var(--news-ease-silky);
}

.news-carousel__arrow--prev:hover svg {
  transform: translateX(-3px);
}

.news-carousel__arrow--next:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Carousel Viewport & Track
   ========================================================================== */
.news-carousel__viewport {
  width: var(--news-track-w);
  border-radius: var(--news-card-radius);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.news-carousel__track {
  display: flex;
  gap: var(--news-card-gap);
  align-items: stretch;
  width: max-content;
  height: var(--news-card-h);
  will-change: transform;
}

.news-carousel__group {
  display: flex;
  gap: var(--news-card-gap);
  width: var(--news-track-w);
  height: var(--news-card-h);
  flex-shrink: 0;
}

/* ==========================================================================
   Card Block
   ========================================================================== */
.news-card {
  position: relative;
  min-width: 0;
  height: var(--news-card-h);
  border-radius: var(--news-card-radius);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f2f4f7;
  cursor: pointer;
  user-select: none;
  box-shadow: 2px 5px 6px rgba(0, 0, 0, 0.3);
}

/* Desktop resting sizes; JavaScript interpolates widths during a squeeze. */
@media (min-width: 993px) {
  .news-carousel__viewport {
    /* Keep offscreen nodes clipped horizontally while exposing card shadows below. */
    overflow: visible;
    clip-path: inset(0 0 -16px 0);
  }

  .news-card {
    transition: box-shadow 0.3s ease;
  }

  .news-carousel .news-card__media {
    position: absolute;
    left: 50%;
    width: var(--news-card-w-active);
    min-width: var(--news-card-w-active);
    transform: translateX(-50%);
  }

  .news-card--slot-0 {
    width: var(--news-card-w-active);
    min-width: var(--news-card-w-active);
    max-width: var(--news-card-w-active);
    cursor: default;
  }

  .news-card--slot-0 .news-card__img {
    transform: none;
  }

  /* Subtle elegant ambient light sheen on active card */
  .news-card--slot-0::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--news-card-radius);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0) 45%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
  }

  .news-card--slot-1 {
    width: var(--news-card-w-2);
    min-width: var(--news-card-w-2);
    max-width: var(--news-card-w-2);
  }

  .news-card--slot-2 {
    width: var(--news-card-w-3);
    min-width: var(--news-card-w-3);
    max-width: var(--news-card-w-3);
  }

  .news-card--slot-3,
  .news-card--slot-4,
  .news-card--slot-5,
  .news-card--slot-6,
  .news-card--slot-7 {
    width: var(--news-card-w-rest);
    min-width: var(--news-card-w-rest);
    max-width: var(--news-card-w-rest);
  }

  /* Inactive cards: strictly no scale */
  .news-card:not(.news-card--slot-0) .news-card__img {
    transform: none;
  }
}

/* Hover feedback on inactive cards */
.news-card:not(.news-card--slot-0) {
  transition: opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.news-card:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: -3px;
}

/* Inside the Card: Image */
.news-card__media {
  width: 100%;
  height: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  transform: none;
}

/* ==========================================================================
   Active Information Bar (Date, Counter, Title, and Action Button)
   Aligned with the carousel track width
   ========================================================================== */
.news-banner__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  width: var(--news-track-w);
  padding-inline: 0;
}

.news-banner__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

/* Date Pill Tag */
.news-banner__date {
  display: inline-block;
  padding: 3px 7px;
  background-color: #e5e5e5;
  color: #454545;
  font-size: 18px;
  font-weight: 400;
  border-radius: 4px;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Slide Counter Tag */
.news-banner__counter {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background-color: #f2f4f7;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bold Headline */
.news-banner__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 150%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

/* "开始阅读" Action Button */
.news-banner__read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 56px;
  padding: 12px 20px;
  line-height: 24px;
  border: 1px solid #000;
  border-radius: 8px;
  background-color: #ffffff;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 24px;
  transition: all 0.2s var(--news-ease-silky);
}

.news-banner__read-btn:hover,
.news-banner__read-btn:focus-visible {
  border-color: #000;
  color: #fff;
  background-color: #000;
  box-shadow: none;
}

.news-banner__read-btn:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) and (min-width: 993px) {
  .news-carousel__arrow {
    width: 42px;
    height: 42px;
  }

  .news-banner__title {
    font-size: 16px;
  }
}

/* ==========================================================================
   Mobile & Tablet Mode (<= 992px)
   "992以下一共展示三个卡片中间卡片完整展示，前后各展示百分之十五"
   Total 3 cards shown:
   - Middle (active) card: fully displayed (70vw width)
   - Previous card: 15vw visible on the left
   - Next card: 15vw visible on the right
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --news-card-gap: 8px;
    --news-card-h: clamp(220px, 42vw, 380px);
  }

  .news-banner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .news-title {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    margin-bottom: 24px;
  }

  .h1-title {
    font-size: 36px;
  }

  .news-banner__container {
    padding-inline: 0;
    max-width: 100%;
    margin-bottom: 64px;
  }

  .news-carousel {
    display: block;
    position: relative;
    overflow: hidden;
    padding-inline: 0;
    gap: 0;
  }

  .news-carousel__viewport {
    width: 100%;
    touch-action: pan-y pinch-zoom;
  }

  .news-carousel__track {
    display: flex;
    gap: var(--news-card-gap);
    height: var(--news-card-h);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    width: max-content;
  }

  /* In mobile view, each card has width = 70vw minus gap */
  .news-card {
    width: calc(70vw - var(--news-card-gap)) !important;
    min-width: calc(70vw - var(--news-card-gap)) !important;
    max-width: calc(70vw - var(--news-card-gap)) !important;
    height: var(--news-card-h) !important;
    opacity: 0.65;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  }

  .news-card--mobile-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
    animation: newsActiveMobileEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .news-card--mobile-active .news-card__img {
    animation: newsActiveImgEnter 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  }

  @keyframes newsActiveMobileEnter {
    0% {
      opacity: 0.8;
      transform: scale(0.96);
    }

    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Circular Arrows on Mobile: floating elegantly on the 15% peek strips */
  .news-carousel__arrow {
    position: absolute;
    width: 36px;
    height: 36px;
    top: calc(var(--news-card-h) / 2);
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }

  .news-carousel__arrow--prev {
    left: 8px;
  }

  .news-carousel__arrow--next {
    right: 8px;
  }

  .news-carousel__arrow svg {
    width: 38px;
    height: 38px;
  }

  /* Info Bar on Mobile */
  .news-banner__info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-inline: 16px;
    margin-top: 18px;
  }

  .news-banner__meta {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .news-banner__title {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
  }

  .news-banner__read-btn {
    align-self: flex-start;
    margin-left: 0;
    width: auto;
    padding: 7px 18px;
    font-size: 13px;
  }
}

/* Small mobile devices (<= 480px) */
@media (max-width: 480px) {
  :root {
    --news-card-h: 220px;
  }

  .news-banner__date {
    font-size: 12px;
    padding: 3px 8px;
  }

  .news-banner__title {
    font-size: 15px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   News List Section (Tabs, 450x408 Cards Grid, Pagination & More Action)
   Pixel-accurate replication of reference design
   ========================================================================== */

.news-list-section {
  position: relative;
  width: 100%;
  padding-top: 176px;
  padding-bottom: 96px;
  background-color: #ffffff;
  background-image: url("https://www.afirstsoft.cn/images/images-2026/news/sec-bg-map.webp");
  background-repeat: no-repeat;
  background-position: center 20px;
  background-size: 1360px auto;
}

.news-list-container {
  width: 100%;
  max-width: 1448px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Tabs Header
   -------------------------------------------------------------------------- */
.news-tabs-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.news-tabs {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.news-tab-item {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 6px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: color 0.2s ease;
  outline: none;
  user-select: none;
  line-height: 28px;
}

.news-tab-item:hover {
  color: #111827;
}

.news-tab-item.active {
  color: #000;
  font-weight: 900;
}

/* Solid Black Underline matching reference */
.news-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1px;
  width: calc(100% - 1px);
  height: 2px;
  background-color: #111827;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Grid Panels
   -------------------------------------------------------------------------- */
.news-grid-panel {
  width: 100%;
  display: none;
  animation: newsFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-grid-panel.active {
  display: block;
}

@keyframes newsFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   3x3 News Cards Grid
   Exact dimensions: card 450*408, radius 8px, img 450*260, gap 24px
   -------------------------------------------------------------------------- */
.news-card-grid {
  display: grid;
  gap: 64px 24px;
  width: 100%;
  justify-content: center;
}

/* Desktop default (> 1400px): exact 450px columns */
@media (min-width: 1448px) {
  .news-card-grid {
    grid-template-columns: repeat(3, 450px);
  }

  .news-grid-card {
    width: 450px;
    height: 408px;
  }

  .news-grid-card__cover {
    width: 450px;
    height: 260px;
  }

  .news-grid-card__body {
    height: 148px;
  }
}

/* Card Styling */
.news-grid-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  animation: newsCardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

@keyframes newsCardFadeIn {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 8px -2px rgba(16, 24, 40, 0.03);
  border-color: #d0d5dd;
}

.news-grid-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.news-grid-card__link:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Image Cover */
.news-grid-card__cover {
  width: 100%;
  aspect-ratio: 450 / 260;
  overflow: hidden;
  position: relative;
  background-color: #f8fafc;
  flex-shrink: 0;
  border-radius: 8px 8px 0 0;
}

.news-grid-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-grid-card:hover .news-grid-card__cover img {
  transform: scale(1.025);
}

/* Body Content */
.news-grid-card__body {
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 1;
}

.news-grid-card__title {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 175%;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.news-grid-card:hover .news-grid-card__title {
  color: #0284c7;
}

.news-grid-card__date {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  line-height: 175%;
  margin: 0;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Pagination matching reference (< 1 2 3 .. 9 10 >)
   -------------------------------------------------------------------------- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
  min-height: 38px;
}

.news-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #475467;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  outline: none;
}

.news-page-btn:hover:not(.active):not(:disabled) {
  background-color: #f2f4f7;
  color: #111827;
}

.news-page-btn.active {
  background-color: #000000;
  color: #ffffff;
  font-weight: 600;
}

.news-page-arrow {
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  min-width: 24px;
  width: 24px;
  padding: 0;
}

.news-page-arrow:disabled {
  color: #d0d5dd;
  cursor: not-allowed;
}

.news-page-arrow:disabled:hover {
  background: transparent;
}

.news-page-btn[data-page="10"] { min-width: 43px; }

.news-page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 38px;
  color: #000;
  font-size: 22px;
  padding: 0 2px;
  user-select: none;
}

/* --------------------------------------------------------------------------
   More News Button
   -------------------------------------------------------------------------- */
.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 56px;
  padding: 12px 20px;
  line-height: 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  background-color: #ffffff;
  border: 1px solid #000;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.news-more-btn:visited {
  color: #344054;
}

.news-more-btn:hover,
.news-more-btn:focus-visible {
  border-color: #000;
  color: #fff;
  background-color: #000;
  box-shadow: none;
  transform: none;
}

.news-more-btn:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: 2px;
}

.news-more-btn:active {
  transform: translateY(0);
  background-color: #000;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive Layouts for Other Breakpoints
   "其余分辨率你看着来调整一下,992以下就你就用最常见的模板去排版"
   -------------------------------------------------------------------------- */

/* Fluid scaling on intermediate desktop (993px - 1399px) */
@media (min-width: 993px) and (max-width: 1447px) {
  .news-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1398px;
    margin-inline: auto;
  }

  .news-grid-card__body {
    padding: 16px 17px 18px;
    min-height: 148px;
  }
}

/* Tablet & Smaller Screens (768px - 992px): Standard 2-Column Template */
@media (max-width: 992px) {
  .news-list-section {
    padding-top: 52px;
    padding-bottom: 64px;
    background-size: 1000px auto;
  }

  .news-tabs-wrap {
    margin-bottom: 36px;
  }

  .news-tabs {
    gap: 32px;
  }

  .news-tab-item {
    font-size: 20px;
  }

  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 840px;
    margin-inline: auto;
  }

  .news-grid-card__body {
    padding: 18px 18px 16px;
  }

  .news-grid-card__title {
    font-size: 15px;
  }
}

/* Mobile Screens (<= 767px): Standard 1-Column Template */
@media (max-width: 767px) {
  .news-list-section {
    padding-top: 40px;
    padding-bottom: 48px;
    background-image: url("https://www.afirstsoft.cn/images/images-2026/news/news-map-mobile.webp");
    background-size: calc(100% - 32px) auto;
    background-position: center 10px;
  }

  .news-list-container {
    padding-inline: 16px;
  }

  .news-tabs-wrap {
    margin-bottom: 28px;
  }

  .news-tabs {
    gap: 24px;
  }

  .news-tab-item {
    font-size: 18px;
    padding-bottom: 10px;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
    margin-inline: auto;
  }

  .news-grid-card__body {
    padding: 16px;
  }

  .news-grid-card__title {
    font-size: 15px;
  }

  .news-pagination {
    margin-top: 36px;
    margin-bottom: 20px;
    gap: 6px;
  }

  .news-page-btn {
    min-width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .news-more-btn {
    padding: 8px 28px;
    font-size: 13px;
  }
}
/* Figma 712:943 — 390px news content, without the shared header/footer. */
.news-carousel__dots { display: none; }
@media (max-width: 767px) {
  .news-banner { padding-top: 160px; padding-bottom: 0; }
  .news-banner__bg { height: auto; aspect-ratio: 390 / 450; }
  .news-banner__bg picture, .news-banner__bg-img { display: block; width: 100%; height: auto; }
  .news-title { width: 100%; padding: 0 20px; margin-bottom: 38px; }
  .h1-title { font-size: 32px; line-height: 40px; color: #000; }
  .title-desc { margin: 4px 0 0; font-size: 16px; line-height: 26px; font-weight: 500; color: #000; }
  .news-banner__container { width: calc(100% - 40px); padding: 0; margin-bottom: 60px; }
  .news-carousel, .news-carousel__viewport { width: 100%; overflow: hidden; border-radius: 6px; }
  .news-carousel__track { height: auto; gap: 8px; }
  .news-card {
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    height: auto !important;
    aspect-ratio: 350 / 202.374;
    opacity: 1; transform: none; border-radius: 6px; box-shadow: none;
  }
  .news-card--mobile-active, .news-card--mobile-active .news-card__img { animation: none; box-shadow: none !important; }
  .news-card__media { position: absolute; inset: 0; }
  /* Preserve the design's zoom and slight rotation inside the responsive crop. */
  .news-card[data-id="0"] .news-card__img {
    position: absolute;
    left: -13.5573%;
    top: -15.432%;
    width: 133.448%;
    height: 153.89%;
    max-width: none;
    transform: rotate(-0.48deg);
    transform-origin: top left;
  }
  .news-carousel__arrow { display: none; }
  .news-carousel__dots:not([hidden]) { display: flex; width: 100%; height: 20px; align-items: center; justify-content: center; margin-top: 14px; }
  .news-carousel__dot { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .news-carousel__dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d9d9d9; }
  .news-carousel__dot[aria-current="true"]::before { background: #013ef8; }
  .news-carousel__dot:focus-visible { outline: 2px solid #0052cc; outline-offset: -6px; }
  .news-banner__info { margin-top: 14px; padding: 0; width: 100%; min-height: 89px; gap: 0; }
  .news-banner__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .news-banner__date { min-width: 68.52px; padding: 1.612px 3.76px; border-radius: 6px; font-size: 12px; line-height: 18px; }
  .news-banner__title { font-size: 16px; line-height: 26px; color: #0f172e; width: 100%; }
  .news-banner__read-btn { display: none; }
  .news-list-section { padding-top: 0; padding-bottom: 60px; background-position: center -58px; background-size: calc(100% - 40px) auto; }
  .news-list-container { padding-inline: 20px; }
  .news-tabs-wrap { margin-bottom: 20px; }
  .news-tabs { gap: 30px; }
  .news-tab-item { padding: 0 0 8px; font-size: 18px; line-height: 26px; }
  .news-tab-item.active::after { width: 95px; border-radius: 0; }
  .news-card-grid { max-width: none; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-grid-card { border: 0; border-radius: 6px; box-shadow: none; }
  .news-grid-card:hover { transform: none; box-shadow: none; }
  .news-grid-card:hover .news-grid-card__cover img { transform: none; }
  .news-grid-card:hover .news-grid-card__title { color: #000; }
  /* Figma's inside stroke does not reduce the 350px image / 326px text area. */
  .news-grid-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #dfdfdf;
    border-radius: inherit;
    pointer-events: none;
  }
  .news-grid-card__cover { aspect-ratio: 350 / 207; border-radius: 6px; }
  .news-grid-card__body { padding: 16px 12px 20px; }
  .news-grid-card__title { font-size: 16px; line-height: 26px; }
  .news-grid-card__date { margin-top: 8px; font-size: 12px; line-height: 18px; }
  .news-pagination { gap: 8px; margin: 24px 0; }
  .news-page-btn { min-width: 34px; height: 42px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 400; color: #000; }
  .news-page-btn.active { font-weight: 400; }
  .news-page-arrow { min-width: 24px; height: 24px; }
  .news-page-ellipsis { width: 45px; height: 42px; font-size: 16px; line-height: 24px; }
  .news-more-wrap { margin: 0; }
  .news-more-btn { width: 140px; height: 48px; padding: 12px 30px; border-radius: 6px; font-size: 14px; line-height: 24px; }
}
@media (max-width: 369px) {
  .news-pagination { gap: 4px; }
  .news-page-btn { min-width: 28px; }
  .news-page-btn[data-page="10"] { min-width: 34px; }
  .news-page-ellipsis { width: 36px; }
}

.news-card__media picture { display: block; width: 100%; height: 100%; }

@media (max-width: 767px) {
  .news-list-section { background-image: none; }
  .news-list-section::before {
    content: '';
    position: absolute;
    top: -59.374px;
    left: 20px;
    width: calc(100% - 40px);
    aspect-ratio: 700 / 398;
    background: url("https://www.afirstsoft.cn/images/images-2026/news/news-map-mobile.webp") center top / 100% auto no-repeat;
    pointer-events: none;
  }
  .news-list-container { position: relative; }
}
