/* 新闻资讯 — 主色对齐全站 #00378b */
.news-page,
.news-main {
  --news-primary: var(--theme-default-color, #00378b);
  --news-primary-dark: var(--home-color-primary-dark, #002a6b);
  --news-primary-soft: color-mix(in srgb, var(--news-primary) 10%, transparent);
  --news-dark: #101828;
  --news-text: #4a5565;
  --news-muted: #6a7282;
  --news-border: #e5e7eb;
}

.news-main {
  background: #fff;
}

/* Hero Banner */
.news-hero {
  position: relative;
  min-height: var(--site-page-hero-min-height, 72vh);
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, color-mix(in srgb, var(--news-primary) 42%, #0a1628) 100%);
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--news-primary) 55%, transparent) 0%,
    color-mix(in srgb, var(--news-primary) 18%, transparent) 42%,
    rgba(10, 22, 40, 0.62) 100%
  );
  pointer-events: none;
}

.news-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-hero-container {
  position: relative;
  z-index: 1;
  min-height: var(--site-page-hero-min-height, 72vh);
}

/* Content area */
.news-content {
  position: relative;
}

/* List area — 与客户案例 cs-list-wrap 一致 */
.news-list-wrap {
  background: #f3f4f6;
  padding: 36px 0 80px;
}

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

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

.news-category-tabs a {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--news-text);
  background: #fff;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.news-category-tabs a:hover:not(.is-active) {
  color: var(--news-primary, #00378b);
}

.news-category-tabs a.is-active,
.news-category-tabs a.is-active:hover,
.news-category-tabs a.is-active:focus-visible {
  background: var(--news-primary, #00378b);
  color: #fff;
  border-color: var(--news-primary, #00378b);
  font-weight: 500;
}

/* Featured card */
.news-featured-card {
  position: relative;
  margin-bottom: 48px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--news-primary) 12%, var(--news-border));
  box-shadow: 0 10px 36px rgba(0, 146, 216, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.news-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--news-primary) 0%, #00a8e8 100%);
  z-index: 1;
}

.news-featured-card:hover {
  border-color: color-mix(in srgb, var(--news-primary) 28%, transparent);
  box-shadow: 0 16px 44px rgba(0, 146, 216, 0.14);
  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: color-mix(in srgb, var(--news-primary) 6%, #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;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--news-primary);
  border-radius: 999px;
  background: color-mix(in srgb, var(--news-primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--news-primary) 20%, transparent);
}

.news-badge--card {
  margin-bottom: 10px;
}

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

.news-badge--link:hover {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #fff;
}

.news-badge--link:hover .news-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--news-primary);
  box-shadow: 0 0 0 3px var(--news-primary-soft);
}

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

.news-meta {
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--news-muted);
  background: color-mix(in srgb, var(--news-primary) 6%, transparent);
}

.news-meta img {
  width: 16px;
  height: 16px;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1200%) hue-rotate(170deg) brightness(95%) contrast(101%);
}

.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);
  transition: color 0.2s ease;
}

.news-featured-card:hover .news-featured-title {
  color: var(--news-primary);
}

.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 */
.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 {
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--news-border);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--news-primary) 0%, #00a8e8 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-card:hover {
  border-color: color-mix(in srgb, var(--news-primary) 28%, transparent);
  box-shadow: 0 12px 32px rgba(0, 146, 216, 0.12);
  transform: translateY(-3px);
}

.news-card:hover::before {
  opacity: 1;
}

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

.news-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: color-mix(in srgb, var(--news-primary) 5%, #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;
  transition: color 0.2s ease;
}

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

.news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    color-mix(in srgb, var(--news-primary) 42%, transparent) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-card:hover .news-card-media::after {
  opacity: 1;
}

.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;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  margin-top: auto;
  padding: 8px 14px 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--news-primary);
  background: color-mix(in srgb, var(--news-primary) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--news-primary) 24%, transparent);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    gap 0.2s ease,
    transform 0.2s ease;
}

.news-readmore__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--news-primary) 14%, #fff);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.news-readmore-featured {
  padding: 10px 18px 10px 20px;
  font-size: 15px;
}

.news-readmore-featured .news-readmore__icon {
  width: 26px;
  height: 26px;
}

.news-card:hover .news-readmore,
.news-featured-card:hover .news-readmore {
  color: #fff;
  background: var(--news-primary);
  border-color: var(--news-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--news-primary) 30%, transparent);
  gap: 12px;
}

.news-card:hover .news-readmore__icon,
.news-featured-card:hover .news-readmore__icon {
  background: rgba(255, 255, 255, 0.22);
  transform: translate(2px, -2px);
}

.news-empty {
  text-align: center;
  padding: 64px 24px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--news-primary) 28%, transparent);
  background: color-mix(in srgb, var(--news-primary) 4%, #fff);
  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;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.news-pagination-item:hover {
  border-color: var(--news-primary);
  color: var(--news-primary);
  background: color-mix(in srgb, var(--news-primary) 10%, #fff);
}

.news-pagination-item--nav {
  font-weight: 600;
  color: var(--news-primary);
  border-color: color-mix(in srgb, var(--news-primary) 28%, var(--news-border));
  background: color-mix(in srgb, var(--news-primary) 6%, #fff);
}

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

.news-pagination-item.is-active {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--news-primary) 24%, transparent);
}

.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: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--news-primary) 8%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--news-primary) 4%, #fff) 0%, #fff 180px);
}

.newsdetail-article .newsdetail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--news-muted);
  background: color-mix(in srgb, var(--news-primary) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--news-primary) 12%, var(--news-border));
}

.newsdetail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--news-muted);
  background: color-mix(in srgb, var(--news-primary) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--news-primary) 12%, var(--news-border));
}

.newsdetail-breadcrumb a {
  color: var(--news-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.newsdetail-breadcrumb > span:not([aria-current]) {
  color: color-mix(in srgb, var(--news-primary) 35%, var(--news-muted));
}

.news-meta-detail {
  margin-top: 12px;
  margin-bottom: 20px;
  border-left: 3px solid var(--news-primary);
  padding-left: 14px;
}

.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-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--news-primary) 0%, #00a8e8 100%);
}

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

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

.newsdetail-content a {
  color: var(--news-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--news-primary) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.newsdetail-content a:hover {
  color: var(--news-primary-dark);
  text-decoration-color: var(--news-primary-dark);
}

.newsdetail-content h2,
.newsdetail-content h3,
.newsdetail-content h4 {
  color: var(--news-dark);
}

.newsdetail-content h2::before,
.newsdetail-content h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-right: 10px;
  border-radius: 2px;
  vertical-align: -0.08em;
  background: var(--news-primary-dark);
}

.newsdetail-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--news-primary);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--news-primary) 7%, #fff);
  color: var(--news-text);
}

.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: 56px 0 96px;
  background: radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--news-primary) 8%, transparent), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--news-primary) 5%, #f9fafb) 0%, #f9fafb 100%);
}

.newsdetail-related-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--news-dark);
}

.newsdetail-related-title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--news-primary) 0%, var(--news-primary-dark) 100%);
}

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

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