/* 咨询动态页面样式（背景横幅 + 三列卡片网格） */

.news-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--color-primary-dark) url("../images/pages/contact/hero.png") center center / cover no-repeat;
}

.news-hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(var(--color-primary-rgb), .3), transparent 55%),
    linear-gradient(90deg, rgba(var(--color-primary-rgb), .88) 0%, rgba(var(--color-primary-rgb), .55) 60%, rgba(var(--color-primary-rgb), .3) 100%);
}

.news-hero__layout {
  padding-top: 158px;
  padding-bottom: 84px;
}

.news-hero__main {
  max-width: 650px;
}

.news-hero__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .6);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: .16em;
}

.news-hero__meta span + span {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}

.news-hero h1 {
  margin: 0;
  color: #fff;
  font-size: var(--font-size-3xl);
  line-height: 1.3;
  letter-spacing: .02em;
}

.news-hero__description {
  margin: 22px 0 0;
  max-width: 460px;
  color: rgba(255, 255, 255, .7);
  font-size: var(--font-size-md);
  line-height: 1.95;
}

.news-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--color-accent);
  font-size: var(--font-size-base);
  font-weight: 700;
}

.news-hero__link .icon {
  transition: transform var(--transition);
}

.news-hero__link:hover .icon {
  transform: translateX(4px);
}

/* 卡片网格（第一排嵌入 hero 区域） */

.news-list-section {
  margin-top: -50px;
  padding-top: 0;
  background: transparent;
}

.news-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.news-item:hover {
  border-color: rgba(var(--color-primary-rgb), .22);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.news-item[hidden] {
  display: none;
}

.news-item__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-item__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-item:hover .news-item__cover img {
  transform: scale(1.05);
}

.news-item__cover::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .32));
  content: "";
  pointer-events: none;
}

.news-item__cover--1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.news-item__cover--2 {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-primary) 100%);
}

.news-item__cover--3 {
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
}

.news-item__cover span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 12px;
  color: rgba(255, 255, 255, .85);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.news-item__cover em {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .24);
  font-size: var(--font-size-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  backdrop-filter: blur(6px);
}

.news-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 28px;
}

.news-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: .08em;
}

.news-item__body h2 {
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--color-text);
  font-size: var(--font-size-md);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-item__body > p {
  display: -webkit-box;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--color-secondary-dark);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.news-item__link:hover {
  color: var(--color-primary);
}

.news-item__link .icon {
  transition: transform var(--transition);
}

.news-item__link:hover .icon {
  transform: translateX(4px);
}

/* 分页 */

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}

.news-pagination__pages {
  display: flex;
  gap: 10px;
}

.news-pagination__arrow,
.news-pagination__page {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.news-pagination__page {
  padding: 0;
}

.news-pagination__arrow:hover:not(:disabled),
.news-pagination__page:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

.news-pagination__page[aria-current="page"] {
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.news-pagination__arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* 响应式 */

@media (max-width: 1023px) {
  .news-hero__layout {
    padding-top: 142px;
  }

  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .news-hero__layout {
    padding-top: 122px;
    padding-bottom: 56px;
  }

  .news-hero h1 {
    font-size: var(--font-size-2xl);
  }

  .news-hero__description {
    font-size: var(--font-size-base);
  }

  .news-list-section {
    margin-top: -50px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-pagination__arrow {
    padding: 0 12px;
  }
}
