/* 新闻页内容区：头部/页脚已复用官网 Next 组件样式 */
.news-page-main {
  background: #fff;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 56rem;
  padding: 0 1rem;
}

.news-filters a {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-filters a:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}

.news-filters a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

@media (min-width: 640px) {
  .news-grid { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .news-grid { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.news-cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(99, 102, 241, 0.12)),
    #e2e8f0;
  background-size: cover;
  background-position: center;
}

.news-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

.news-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-weight: 600;
}

.news-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 700;
}

.news-summary {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-more {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

.news-empty {
  display: none;
  max-width: 40rem;
  margin: 0 auto 5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
}

.news-empty strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: #0f172a;
}

.news-empty p {
  margin: 0;
  color: #64748b;
}

.news-detail-wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

.news-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.news-detail-cover {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  background-size: cover;
  background-position: center;
}

.news-detail-inner {
  padding: 1.75rem 1.75rem 2.25rem;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: #64748b;
  font-size: 0.85rem;
}

.news-detail-inner h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-weight: 800;
}

.news-detail-body {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.news-detail-body p { margin: 0 0 1em; }
.news-detail-body img { border-radius: 0.75rem; margin: 1em 0; max-width: 100%; }
.news-detail-body h2,
.news-detail-body h3 { margin: 1.4em 0 0.6em; color: #0f172a; }
