/* =========================================================
   新闻资讯 - news.css
   设计稿基准宽度：1920px（1:1 复刻字体、间距、色值）
   占位符规范：
   - .ph-img  图片占位（后期替换）：虚线边框 + 居中文字
   - .ph-bg   背景占位（后期替换 background-image）：色块 + 右下角标签
   ========================================================= */

.nw-page {
  --nw-dark: #333333;
  --nw-text: #666666;
  --nw-line-gray: #B8C4CF;
  --nw-bg-block: #DFE5EA;
  --nw-bg-block-2: #D2DAE2;
  --nw-card-gray: #F2F6F9;
}

/* ---------- 通用占位符：图片 ---------- */
.nw-page .ph-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8EDF2 0%, #D3DBE3 100%);
  /* border: 2px dashed var(--nw-line-gray); */
  border-radius: 4px;
  overflow: hidden;
  min-height: 300px;
}
.nw-page .ph-img::before {
 
  display: block;
  padding: 0 12px;
  text-align: center;
  color: #7A8A99;
  font-size: var(--fs-caption);
  line-height: 1.6;
  letter-spacing: 0.5px;
  word-break: break-all;
  z-index: 1;
}
.nw-page .ph-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- 通用占位符：背景 ---------- */
.nw-page .ph-bg {
  position: relative;
  background: linear-gradient(135deg, var(--nw-bg-block) 0%, var(--nw-bg-block-2) 100%);
}
.nw-page .ph-bg::after {

  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 2px 8px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: #8A97A3;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #C9D3DC;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 3;
}

/* =========================================================
   1. HERO（设计稿：高 930px / 1920，白字文案居左，右侧建筑插画）
   ========================================================= */
.nw-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
/* 背景图层：浅蓝白科技渐变 + 右侧透明 3D 城市建筑群/波纹光点 */
.nw-hero .nw-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #EAF6FE 0%, #C9E6FA 50%, #9ECFF2 100%);
}
.nw-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(160px, 18vw, 345px) clamp(24px, 4.8vw, 92px) 0 0;
   padding-left: 5%;
}
.nw-hero-title {
  margin: 0 0 clamp(18px, 1.6vw, 30px);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #000;
  text-shadow: 0 2px 12px rgba(30, 90, 160, 0.18);
}
.nw-hero-desc {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(000, 000, 000, 0.95);
}

/* =========================================================
   2. 新闻卡片（3列 × 2行）
   ========================================================= */
.nw-cards {
  background: #fff;
  padding: clamp(50px, 5.2vw, 100px) 0 clamp(70px, 7.3vw, 140px);
}
.nw-cards-grid {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.1vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4.2vw, 80px);
}
.nw-card {
  display: block;
  min-width: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 60, 120, 0.12);
}
.nw-card:hover .nw-card-title {
  color: #0092d8;
}
/* 卡片图片：设计稿图高约 192px / 卡宽约 520px */
.nw-card-img {
  aspect-ratio: 520 / 192;
  min-height: 0;
}
/* 覆盖 .ph-img 的 height:100%（需前缀提升特异性，否则 aspect-ratio 被 height:100% 压过） */
.nw-page .nw-card-img {
  height: auto;
}
/* 卡片文字区：浅灰底 #F2F6F9 */
.nw-card-body {
  background: var(--nw-card-gray);
  padding: clamp(26px, 2.1vw, 40px) clamp(20px, 1.6vw, 30px) clamp(24px, 1.9vw, 36px);
}
.nw-card-title {
  margin: 0 0 clamp(12px, 1vw, 20px);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: #202020;
  transition: color 0.25s ease;
}
.nw-card-date {
  display: block;
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: #9AA4AE;
}

/* 查看更多按钮（设计稿：浅灰底 + 中灰字，圆角） */
.nw-more {
  margin-top: clamp(46px, 4.6vw, 88px);
  text-align: center;
}
.nw-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(46px, 2.6vw, 50px);
  min-width: clamp(260px, 20vw, 380px);
  padding: 0 clamp(30px, 2.5vw, 48px);
  border-radius: var(--btn-radius);
  background: #F5F5F5;
  color: #808996;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.nw-more-btn:hover {
  background: #ECF0F4;
  color: #00AFFF;
  transform: translateY(-2px);
}

/* =========================================================
   分页样式
   ========================================================= */
.nw-more .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-more .pager .pagination,
.nw-more .pager.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-more .pager li {
  display: inline-block;
  margin: 0;
}
.nw-more .pager li > a,
.nw-more .pager li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #D8E2EC;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease;
}
.nw-more .pager li > a:hover {
  border-color: #0092d8;
  color: #0092d8;
  background: #F0F8FE;
}
.nw-more .pager li.active > span {
  border-color: #0092d8;
  background: #0092d8;
  color: #fff;
}
.nw-more .pager li.disabled > span {
  border-color: #E6ECF2;
  background: #F7F9FB;
  color: #B0BAC4;
  cursor: not-allowed;
}

/* =========================================================
   响应式
   ========================================================= */

/* ---------- 平板（≤991px） ---------- */
@media (max-width: 991.98px) {
  .nw-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ---------- 手机（≤767px） ---------- */
@media (max-width: 767.98px) {
  .nw-hero {
    height: 100vh;
    min-height: 100vh;
    /* 手机端固定导航较高，顶部留白加大，避免标题压住菜单 */
    padding: 170px 0 80px;
  }
  .nw-hero-content {
    padding: 0 24px;
  }
  .nw-cards {
    padding: 40px 0 80px;
  }
  .nw-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nw-card-img {
    aspect-ratio: 16 / 7;
  }
  .nw-more {
    margin-top: 40px;
  }
  .nw-more-btn {
    width: 100%;
    min-width: 0;
  }
  .nw-more .pager li > a,
  .nw-more .pager li > span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }
}

/* =========================================================
   nw-hero 动态效果：仅保留文字入场动画；点阵/波纹装饰静态化（用户要求去掉除文字外的动态）
   ========================================================= */
 
.nw-hero-title {
  animation: nw-title-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.nw-hero-desc {
  animation: nw-title-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s both;
}
@keyframes nw-dots {
  from { background-position: 0 0; }
  to   { background-position: 36px 36px; }
}
@keyframes nw-wave {
  from { background-position: 0 0; }
  to   { background-position: -208px 0; }
}
@keyframes nw-title-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 系统开启「减弱动态效果」时关闭入场动画，文字直接完整显示，避免停在透明帧 */
@media (prefers-reduced-motion: reduce) {
  .nw-hero-title,
  .nw-hero-desc {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 覆盖公共 AOS 对 hero 文字容器的初始隐藏态：文字入场由上方 CSS 动画接管，不依赖 AOS 滚动触发 */
.nw-hero-content {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- 特异性修复（上方原单类规则保留，此处双轨覆盖） ----------
   components.css 通用 :has() / 兄弟选择器特异性高于页面单类规则：
   1) :has(> img.hero-bg) 误命中背景容器本身，把 position:absolute 压回 relative，
      背景层占满一屏留在文档流，把文字容器挤出首屏视口；
   2) 背景层兄弟选择器把文字层 z-index 压到 1。
   下面用三段类 + !important 恢复设计层叠：背景绝对定位铺满、文字层在上。 */
.nw-page .nw-hero .nw-hero-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
}
.nw-page .nw-hero .nw-hero-content {
  position: relative;
  z-index: 2;
}
