/* ============================================================
   赛思云官网 · 新闻动态页
   规则：common.css → news.css → mobile.css（必须最后引入）
   首屏参考 DuDuTalk 资源中心「品牌动态」页；列表参考原型长条形卡片
   ============================================================ */

/* ---------- 1. 首屏：资源中心 / 新闻动态 ---------- */

.n-hero {
  position: relative;
  width: 100%;
  height: 660px;
  overflow: hidden;
  background: #030912;
}

.n-hero__bg {
  position: absolute;
  inset: 0;
}

.n-hero__bg img {
  object-fit: cover;
  object-position: center;
}

/* 遮罩：保证白字可读 */
.n-hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 18, 0.72);
}

.n-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 200px;
}

.n-hero__eyebrow {
  font-size: var(--desc-size);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.n-hero__title {
  font-size: var(--display-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
}

.n-hero__sub {
  max-width: 620px;
  font-size: var(--desc-size);
  font-weight: 400;
  line-height: 32px;
  color: var(--color-white-60);
}

/* ---------- 2. 新闻列表（长条形） ---------- */

.n-list-section {
  background: var(--color-module);
  padding: var(--section-y) 0;
}

.n-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.n-item {
  display: flex;
  align-items: stretch;
  gap: 32px;
  min-width: 0;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--color-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* 翻页时隐藏非当前页的条目（display:flex 会覆盖 hidden 属性，需显式声明） */
.n-item[hidden] {
  display: none;
}

.n-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 15.85px rgba(29, 32, 136, 0.1);
  transform: translateY(-2px);
}

/* 缩略图：设计宽 320px，可收缩；用 aspect-ratio 控高，不写死像素宽高 */
.n-item__cover {
  flex: 0 1 320px;
  min-width: 0;
  height: auto;
  aspect-ratio: 373 / 204;
  align-self: flex-start;
  border-radius: 12px;
  overflow: hidden;
}

.n-item__body {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.n-item__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.n-item:hover .n-item__title {
  color: var(--color-primary);
}

.n-item__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-sub);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.n-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

.n-item__tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(29, 32, 136, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  line-height: 18px;
}

.n-item__meta time {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-sub);
}

/* ---------- 3. 翻页器 ---------- */

.n-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
}

.n-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.n-pager__btn:hover:not([disabled]):not(.is-active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.n-pager__btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.n-pager__btn--num.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.n-pager__ellipsis {
  width: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-sub);
}

/* ---------- 4. CTA（与关于我们页一致） ---------- */

.n-cta {
  background: var(--color-dark);
  padding: 80px 0;
}

.n-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.n-cta__title {
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: var(--color-white);
}

.n-cta__desc {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  color: var(--color-white);
}

.n-cta__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.n-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 148px;
  height: 54px;
  padding: 0 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.n-cta__btn--solid {
  background: var(--color-white);
  color: var(--color-primary);
}

.n-cta__btn--solid:hover {
  background: #eceef7;
}

.n-cta__btn--ghost {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.n-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.n-cta__arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ---------- 笔记本区间：保持桌面结构，只缩间距 / 字号 ---------- */

@media (min-width: 1024px) and (max-width: 1679px) {
  .n-hero {
    height: 560px;
  }

  .n-hero__content {
    padding-top: 170px;
  }

  .n-item {
    gap: 24px;
    padding: 20px;
  }

  .n-item__cover {
    flex: 0 1 280px;
  }

  .n-item__title {
    font-size: 18px;
    line-height: 28px;
  }

  .n-pager {
    margin-top: 44px;
  }

  .n-cta {
    padding: 64px 0;
  }
}
