/* 新闻资讯 — 对齐参考站，主色 #00A85A */
.news-page {
  --news-primary: #00a85a;
  --news-primary-dark: #008a4a;
  --news-dark: #101828;
  --news-text: #4b5563;
  --news-text-soft: #4a5565;
  --news-muted: #6b7280;
  --news-border: #e5e7eb;
  --news-surface: #f3f4f6;
  --news-shell: var(--site-page-shell);
}

.news-page main.site-main {
  padding-top: 0;
}

.news-main {
  background: #fff;
}

/* Hero Banner — 明亮原图（见 components/page-banner） */
.news-hero.page-banner {
  background: #eef2f6;
}

/* Content area */
.news-content {
  position: relative;
  padding: 56px 0 96px;
}

.news-content-bg {
  position: absolute;
  inset: 0;
  background: var(--news-surface);
  pointer-events: none;
}

.news-shell {
  position: relative;
  z-index: 1;
  width: var(--news-shell);
  margin: 0 auto;
}

/* Category tabs — 与客户案例页 cs-filters 一致 */
.news-category-tabs {
  position: sticky;
  top: 80px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 8px;
  padding: 16px 0 24px;
  background: var(--news-surface);
  scrollbar-width: none;
}

.news-category-tabs::-webkit-scrollbar {
  display: none;
}

.news-category-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--news-text-soft);
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

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

.news-category-tab.is-active {
  background: var(--news-primary);
  color: #fff;
  font-weight: 500;
}

/* Featured card */
.news-featured-card {
  margin-bottom: 48px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-featured-card:hover {
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
}

.news-featured-card .news-block-link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  color: inherit;
  text-decoration: none;
}

.news-featured-media {
  min-height: 280px;
  background: #eef0f2;
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.news-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--news-primary);
}

.news-badge--link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-badge--link:hover {
  opacity: 0.85;
}

.news-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--news-primary);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--news-muted);
}

.news-meta img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.news-meta-featured {
  margin-bottom: 16px;
}

.news-featured-title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--news-dark);
}

.news-featured-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--news-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid cards：主推下方，每行 3 个 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.news-featured-card + .news-grid {
  margin-top: 48px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.news-card .news-block-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card-media {
  aspect-ratio: 3 / 2;
  background: #eef0f2;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}

.news-card-title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--news-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  margin: 0 0 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more */
.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--news-primary);
}

.news-readmore-icon {
  width: 10px;
  height: 10px;
}

.news-card:hover .news-readmore,
.news-featured-card:hover .news-readmore {
  color: var(--news-primary-dark);
}

.news-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--news-muted);
  font-size: 16px;
}

.news-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.news-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--news-text);
  border: 1px solid var(--news-border);
  background: #fff;
}

a.news-pagination-item:hover {
  border-color: var(--news-primary);
  color: var(--news-primary);
}

.news-pagination-item.is-active {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #fff;
  font-weight: 500;
}

.news-pagination-item.is-disabled,
.news-pagination-item.is-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--news-muted);
  cursor: default;
}

/* Detail */
.newsdetail-banner {
  margin-top: 0;
}

.newsdetail-banner-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.newsdetail-article {
  padding: 40px 0 72px;
  background: #fff;
}

.newsdetail-article .newsdetail-breadcrumb {
  margin-bottom: 24px;
}

.newsdetail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--news-muted);
}

.newsdetail-breadcrumb a {
  color: var(--news-primary);
  text-decoration: none;
}

.newsdetail-breadcrumb a:hover {
  text-decoration: underline;
}

.newsdetail-title {
  margin: 0 0 32px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--news-dark);
}

.newsdetail-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--news-text);
}

.newsdetail-content p {
  margin: 0 0 1.25em;
}

.newsdetail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.newsdetail-author {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--news-border);
}

.newsdetail-related {
  padding: 0 0 96px;
  background: #f9fafb;
}

.newsdetail-related-title {
  margin: 0 0 32px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--news-dark);
}

.news-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 响应式见 public/css/site-responsive.css */
