/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --news-gutter: clamp(24px, 5vw, 96px);
  --news-brand: var(--rm-color-brand);
  --news-brand-dark: var(--rm-color-brand-dark);
  --news-brand-bright: var(--rm-color-brand-bright);
  --news-brand-muted: var(--rm-color-brand-muted);
  --news-text: var(--rm-color-neutral-800);
  --news-text-muted: var(--rm-color-neutral-500);
}

/* ── Hero Section ───────────────────────────────────────────── */
.news-hero {
  position: relative;
  min-height: clamp(480px, 62vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(0, 133, 111, 0.18), transparent 55%),
              linear-gradient(160deg, #001512 0%, #003a34 45%, #005247 100%);
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 20% 50%, rgba(0, 133, 111, 0.2), transparent 55%),
              linear-gradient(165deg, rgba(0, 18, 15, 0.88) 0%, rgba(0, 50, 42, 0.72) 50%, rgba(0, 90, 74, 0.45) 100%);
  pointer-events: none;
}

.news-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.28;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--news-gutter);
  text-align: center;
}

.news-hero__breadcrumb {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.news-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.news-hero__breadcrumb a:hover {
  color: #fff;
}

.news-hero__eyebrow {
  margin: 0 0 14px;
  font-size: clamp(0.7rem, 0.82vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--news-brand-bright);
}

.news-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.news-hero__tagline {
  /* margin: 0 auto; */
  /* max-width: 680px; */
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Tab Navigation ─────────────────────────────────────────── */
.news-tabs {
  position: relative;
  z-index: 2;
  margin: 1rem 0;
  /* padding-bottom: clamp(40px, 5vw, 60px); */
}

.news-tabs__inner {
  display: flex;
  justify-content: left;
  gap: 4px;
}

.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(0, 133, 111, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--news-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 77, 65, 0.06);
}

.news-tab:hover {
  color: var(--news-brand);
  border-color: var(--news-brand);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 77, 65, 0.1);
}

.news-tab.is-active {
  color: #fff;
  background: var(--news-brand);
  border-color: var(--news-brand);
  box-shadow: 0 8px 24px rgba(0, 133, 111, 0.28);
}

.news-tab.is-active:hover {
  background: var(--news-brand-dark);
  border-color: var(--news-brand-dark);
  transform: translateY(-1px);
}

.news-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── News Section ───────────────────────────────────────────── */
.news-section {
  background: #fff;
  padding-top: clamp(40px, 5vw, 40px);
  /* padding-bottom: clamp(20px, 6vw, 40px); */
}

.news-container {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  padding: 0 1rem;
  /* padding: 0 var(--news-gutter); */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
 
}
#company-news{
  background: radial-gradient(ellipse 85% 55% at 10% 0%, rgba(0, 168, 138, 0.06), transparent 50%), linear-gradient(180deg, #fafdfc 0%, #fff 100%);
}
/* Featured card (first one spans 2 columns) */
.news-card--featured {
  grid-column: span 2;
}

.news-card {
  position: relative;
  border-radius: var(--rm-radius-2xl);
  background: #fff;
  border: 1.25px solid rgba(0, 133, 111, 0.08);
  box-shadow: 0 8px 24px rgba(0, 77, 65, 0.05);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: rgba(0, 133, 111, 0.2);
  box-shadow: 0 20px 48px rgba(0, 77, 65, 0.1);
  transform: translateY(-4px);
}

.news-card__link {
  /* display: flex;
  flex-direction: column; */
  text-decoration: none;
  color: inherit;
}

.news-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--news-brand-muted);
}

.news-card--featured .news-card__image {
  aspect-ratio: 16 / 9;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--news-brand-muted) 0%, rgba(0, 133, 111, 0.15) 100%);
}

.news-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 77, 65, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 28px) clamp(14px, 1.5vw, 20px);
}

.news-card__title {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--news-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card:hover .news-card__title {
  color: var(--news-brand);
}

.news-card__desc {
  flex: 1;
  margin: 0 0 16px;
  font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
  line-height: 1.75;
  color: var(--news-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 133, 111, 0.07);
}

.news-card__date {
  font-size: 12px;
  color: var(--news-text-muted);
  font-weight: 500;
}

.news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--news-brand);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.news-card__read-more:hover {
  background: var(--news-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 133, 111, 0.25);
  color: #fff;
}

.news-card__read-more svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.news-card__read-more:hover svg {
  transform: translateX(3px);
}

/* ── Pagination ─────────────────────────────────────────────── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(20px, 4vw, 30px);
  border-top: 1px solid rgba(0, 133, 111, 0.08);
}

.news-pagination__info {
  font-size: 14px;
  color: var(--news-text-muted);
  margin-right: 8px;
}

.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--news-text-muted);
  background: #fff;
  border: 1.25px solid rgba(0, 133, 111, 0.12);
  transition: all 0.2s ease;
}

.news-pagination__btn:hover:not(.is-disabled):not(.is-active) {
  color: var(--news-brand);
  border-color: var(--news-brand);
  background: var(--news-brand-muted);
}

.news-pagination__btn.is-active {
  color: #fff;
  background: var(--news-brand);
  border-color: var(--news-brand);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 133, 111, 0.2);
}

.news-pagination__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.news-pagination__btn svg {
  width: 14px;
  height: 14px;
}

.news-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  font-size: 14px;
  color: var(--news-text-muted);
}

/* ── CTA Section ─────────────────────────────────────────────── */
.news-cta {
  position: relative;
  padding: 52px 0;
  overflow: hidden;
}

.news-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(0, 168, 138, 0.18), transparent 55%),
    linear-gradient(135deg, var(--news-brand-dark, #003a34) 0%, var(--news-brand, #00856f) 50%, #006b59 100%);
  pointer-events: none;
}

.news-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.news-cta__copy {
  flex: 1;
  min-width: min(100%, 480px);
}

.news-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
}

.news-cta__desc {
  margin: 0;
  max-width: 560px;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.news-cta__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.news-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-cta__btn:focus-visible {
  outline: 2px solid var(--news-brand-bright);
  outline-offset: 2px;
}

.news-cta__btn--primary {
  background: #fff;
  color: var(--news-brand-dark);
  border: 1.25px solid #fff;
}

.news-cta__btn--primary:hover {
  color: var(--news-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.news-cta__btn--outline {
  background: transparent;
  color: #fff;
  border: 1.25px solid rgba(255, 255, 255, 0.45);
}

.news-cta__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Empty State ─────────────────────────────────────────────── */
.news-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--news-text-muted);
}

.news-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.news-empty p {
  font-size: 1rem;
  margin: 0;
}

/* ── Divider hide ────────────────────────────────────────────── */
.news-cta + hr,
.news-section + hr,
main + hr {
  display: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-column: span 1;
  }

  .news-hero {
    min-height: clamp(380px, 60vh, 520px);
    padding-bottom: clamp(40px, 7vw, 72px);
  }

  .news-tabs__inner {
    gap: 2px;
    flex-wrap: wrap;
  }

  .news-tab {
    padding: 12px 20px;
    font-size: 14px;
  }

  .news-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .news-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .news-pagination__info {
    display: none;
  }
}

@media (max-width: 480px) {
  .news-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card__read-more {
    width: 100%;
    justify-content: center;
  }
}



/* 新闻卡片数据添加的css样式 */

.news-card {
  position: relative;
}

/* 拉伸链接:让标题上的链接覆盖整张卡片 */
.news-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 让内部独立链接(badge、阅读全文)浮在拉伸链接之上,保持可单独点击 */
.news-card__badge,
.news-card__read-more {
  position: relative;
  z-index: 2;
}




