/* ===== News Page — 企业级样式 ===== */

.news-featured-css {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.news-featured-css:hover { box-shadow: var(--shadow-md); }

.nfc-visual {
  min-height: 300px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: var(--primary) center / cover no-repeat;
}
.nfc-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,24,40,0.4) 0%, transparent 70%);
}
.nfc-tag-wrap { position: relative; z-index: 1; }
.news-category-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.nfc-title {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin-top: 0;
}

.nfc-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.news-meta .meta-sep { color: var(--border); }
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.news-read-more:hover { color: var(--primary); }

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card-css {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
}
.news-featured-css {
  scroll-margin-top: 100px;
}
.news-card-css:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30,107,140,0.25);
}

.ncc-header {
  padding: 0;
  min-height: auto;
  background: var(--bg-section) !important;
  border-bottom: 1px solid var(--border);
  display: block;
  overflow: hidden;
}
.ncc-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.ncc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-card-css:hover .ncc-thumb img { transform: scale(1.04); }
.ncc-header-top {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ncc-cat-tag {
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
}

.ncc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ncc-date { font-size: 0.74rem; color: var(--text-light); margin-bottom: 8px; }
.ncc-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncc-excerpt {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ncc-author { font-size: 0.74rem; color: var(--text-light); }
.ncc-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.ncc-link:hover { color: var(--primary); }

.news-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.news-tab {
  padding: 12px 20px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-gray);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans SC', sans-serif;
  margin-bottom: -1px;
}
.news-tab:hover { color: var(--primary); }
.news-tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  background: transparent;
}

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

.page-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.page-next {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans SC', sans-serif;
  margin-left: 8px;
}
.page-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

@media (max-width: 1024px) {
  .news-featured-css { grid-template-columns: 1fr; }
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-cards-grid { grid-template-columns: 1fr; }
}

/* 文章展开 */
.news-card-css.is-expanded,
.news-featured-css.is-expanded {
  border-color: rgba(30, 107, 140, 0.45);
  box-shadow: var(--shadow-md);
}
.news-card-css.is-expanded .ncc-excerpt,
.news-featured-css.is-expanded .nfc-body > p {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
