/* 新闻资讯列表 / 详情 · Figma 103:613 / 103:1676 */
body.page-news,
body.page-news-detail {
  padding-top: var(--header-h);
  background: #fff;
}

body.page-news .header,
body.page-news-detail .header {
  position: fixed;
}

.page-news .page-hero-media img,
.page-news-detail .page-hero-media img {
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 78% 42%;
}

.nlist-empty {
  padding: 48px 0 80px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.page-news .page-hero-mask,
.page-news-detail .page-hero-mask {
  background: linear-gradient(90deg, var(--c-primary) 0%, rgba(255, 255, 255, 0) 71.693%);
}

/* ========== 新闻列表 ========== */
.nlist {
  padding: 56px 0 108px;
}

.nlist-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 308px;
  padding: 29px;
  background: #fff;
  border: 1px solid rgba(243, 244, 246, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.nlist-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.nlist-thumb,
.nlist-more,
.nlist-body h2 a {
  position: relative;
  z-index: 2;
}

.nlist-body h2 a {
  color: inherit;
}

.nlist-body h2 a:hover {
  color: var(--c-primary);
}

.nlist-card + .nlist-card {
  margin-top: 28px;
}

.nlist-thumb {
  width: 410px;
  height: 250px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.nlist-thumb img {
  width: 100%;
  height: 106.39%;
  margin-top: -3.19%;
  object-fit: cover;
}

.nlist-body {
  flex: 1;
  min-width: 0;
  height: 167px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.nlist-body h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #111827;
}

.nlist-body p {
  margin-top: 14px;
  height: 49px;
  overflow: hidden;
  font-size: 16px;
  line-height: 24.38px;
  color: #6b7280;
}

.nlist-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.nlist-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 24px;
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  border-radius: 12px;
}

.nlist-date {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.35px;
  color: #9ca3af;
}

.npage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 52px;
  padding-top: 8px;
}

.npage a,
.npage span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #eceef2;
  color: #4b5563;
  font-size: 16px;
  line-height: 20px;
  border-radius: 9999px;
}

.npage a.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.npage .npage-ellipsis {
  min-width: 0;
  height: auto;
  padding: 0 4px 0 4px;
  background: none;
  color: #9ca3af;
  font-size: 14px;
}

.npage .npage-next,
.npage .npage-prev {
  padding: 0 20px;
}

/* ========== 新闻详情 ========== */
.ndetail {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 53px 0 108px;
}

.ndetail-main {
  flex: 1;
  width: auto;
  min-width: 0;
}

.ndetail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-primary);
}

.ndetail-back img {
  width: 16px;
  height: 16px;
}

.ndetail-main h1 {
  margin-top: 25px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: #111827;
}

.ndetail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
}

.ndetail-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
}

.ndetail-date img {
  width: 14px;
  height: 14px;
}

.ndetail-share {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ndetail-share span {
  font-size: 14px;
  line-height: 16px;
  color: #9ca3af;
}

.ndetail-share a,
.ndetail-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #0ea5e9;
}

.ndetail-share a img,
.ndetail-share-btn img {
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
  object-fit: contain;
}

.ndetail-share-pop {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 30;
  width: 188px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.ndetail-share-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  transform: rotate(45deg);
}

.ndetail-share-pop p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}

.ndetail-share-qr {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  background: #fff;
}

.ndetail-share-qr img,
.ndetail-share-qr canvas,
.ndetail-share-qr svg {
  display: block;
  width: 148px;
  height: 148px;
}

.ndetail-body > p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 22.75px;
  color: #4b5563;
}

.ndetail-body > p:first-child {
  margin-top: 25px;
}

.ncase-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-primary);
}

.ncase-head i {
  display: block;
  width: 10px;
  height: 20px;
  background: var(--c-primary);
}

.ncase-head h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--c-primary);
}

.ncase {
  padding: 32px 0;
  border-bottom: 1px solid #f3f4f6;
}

.ncase--tight {
  padding-top: 32px;
}

.ncase--last {
  border-bottom: 0;
  padding-bottom: 32px;
}

.ncase-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: #111827;
}

.ncase-title img {
  width: 14px;
  height: 14px;
}

.ncase-pair {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.ncase-shot {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 512 / 279;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.ncase-shot.is-after {
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}

.ncase-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.ncase-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  border-radius: 4px;
}

.ncase-shot.is-after .ncase-tag {
  background: var(--c-primary);
}

.ncase-copy {
  margin-top: 16px;
  font-size: 14px;
  line-height: 22.75px;
  color: #4b5563;
}

.ncase-photo {
  margin-top: 16px;
  padding: 13px 9px 9px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.ncase-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 279;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
}

.ncase-photo p {
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-primary);
}

.ncase-result {
  margin-top: 16px;
  padding: 21px 17px 17px;
  background: rgba(239, 246, 255, 0.5);
  border: 1px solid #dbeafe;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #374151;
}

.ncase-result b {
  font-weight: 400;
  color: var(--c-primary);
}

.ncase-result em {
  font-style: normal;
  color: #dc2626;
}

.ndetail-nav {
  margin-top: 0;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
}

.ndetail-nav p {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
}

.ndetail-nav p + p {
  margin-top: 32px;
}

.ndetail-nav span {
  width: 64px;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.ndetail-nav a {
  color: #374151;
  transition: color 0.2s ease;
}

.ndetail-nav p:hover span,
.ndetail-nav p:hover a {
  color: var(--c-primary);
}

.ndetail-side {
  flex: 0 1 32%;
  width: auto;
  min-width: 280px;
  max-width: 535px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ndetail-side h3 {
  padding: 20px 20px 17px;
  background: var(--c-primary);
  border-top: 4px solid #9bdafb;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.nside-item {
  display: block;
  padding: 21px 20px 17px;
  border-bottom: 1px solid var(--c-primary);
}

.nside-item:last-child {
  border-bottom: 1px solid #fff;
}

.nside-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 279;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.nside-item p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 19.25px;
  color: #1f2937;
  transition: color 0.2s ease;
}

.nside-item:hover p {
  color: var(--c-primary);
}

@media (max-width: 1019px) {
  .nlist-card {
    min-height: 0;
    height: auto;
  }

  .ndetail {
    flex-direction: column;
  }

  .ndetail-main,
  .ndetail-side {
    width: 100%;
  }
}

@media (max-width: 1019px) {
  .nlist-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .nlist-thumb {
    width: 100%;
    height: 200px;
  }

  .nlist-body {
    height: auto;
  }

  .nlist-foot {
    padding-top: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nlist-date {
    margin-left: auto;
    flex-shrink: 0;
  }

  .npage {
    flex-wrap: wrap;
  }

  .ncase-pair {
    flex-direction: column;
  }

  .ncase-shot {
    aspect-ratio: 512 / 279;
  }
}

@media (max-width: 768px) {
  .nlist {
    padding: 24px 0 56px;
  }

  .nlist-card {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .nlist-card + .nlist-card {
    margin-top: 16px;
  }

  .nlist-thumb {
    height: 168px;
    border-radius: 8px;
  }

  .nlist-body h2 {
    font-size: 16px;
    line-height: 24px;
  }

  .nlist-body p {
    margin-top: 8px;
    height: auto;
    font-size: 13px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .nlist-more {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }

  .nlist-foot {
    width: 100%;
  }

  .nlist-date {
    font-size: 13px;
    white-space: nowrap;
  }

  .npage {
    gap: 6px;
    margin-top: 28px;
  }

  .npage a,
  .npage span {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .npage .npage-next,
  .npage .npage-prev {
    padding: 0 12px;
  }

  .ndetail {
    padding: 24px 0 56px;
    gap: 24px;
  }

  .ndetail-main h1 {
    margin-top: 16px;
    font-size: 20px;
    line-height: 28px;
    word-break: break-word;
  }

  .ndetail-meta {
    margin-top: 16px;
    padding-bottom: 16px;
  }

  .ncase {
    padding: 20px 0;
  }

  .ncase-copy,
  .ncase-result {
    font-size: 13px;
    line-height: 22px;
  }

  .ndetail-nav p {
    font-size: 14px;
    align-items: flex-start;
  }

  .ndetail-nav span {
    width: 52px;
  }

  .nside-item {
    padding: 16px;
  }
}
