/* ==========================================================================
   新闻中心与新闻内页专属样式 (news.css)
   ========================================================================== */

/* 新闻筛选与搜索栏 */
.news-filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.news-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.news-cat-btn:hover, .news-cat-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0, 91, 172, 0.25);
}

.news-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  width: 280px;
  max-width: 100%;
}

.news-search-input {
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  color: var(--text-dark);
}

/* 新闻列表大网格 */
.news-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-item-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
}

.news-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 51, 102, 0.12);
  border-color: var(--brand-blue-light);
}

.news-item-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item-card:hover .news-item-thumb img {
  transform: scale(1.06);
}

.news-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 91, 172, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.news-item-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.news-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-item-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-item-card:hover .news-item-title {
  color: var(--brand-blue);
}

.news-item-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ==========================================================================
   新闻详情内页 (Article Detail View)
   ========================================================================== */
.article-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--brand-blue);
}

.breadcrumb-nav .sep {
  color: #cbd5e1;
}

.breadcrumb-nav .current {
  color: var(--brand-blue);
  font-weight: 700;
}

/* 文章主卡片 */
.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-cat-tag {
  background: rgba(0, 91, 172, 0.1);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.article-title-main {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-info-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
}

/* 导语摘要盒 */
.article-lead-box {
  background: #f8fafc;
  border-left: 4px solid var(--brand-red);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* 正文排版 */
.article-rich-content {
  font-size: 1.02rem;
  line-height: 2;
  color: #334155;
}

.article-rich-content p {
  margin-bottom: 22px;
  text-indent: 2em;
}

.article-rich-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 32px 0 16px 0;
  padding-left: 12px;
  border-left: 4px solid var(--brand-blue);
  text-indent: 0;
}

.article-rich-content ul, .article-rich-content ol {
  margin: 16px 0 24px 28px;
  line-height: 1.9;
}

.article-rich-content li {
  margin-bottom: 8px;
}

.article-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 底部工具栏与上一篇/下一篇 */
.article-footer-tools {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-pagination {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-nav-box {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.page-nav-box:hover {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 91, 172, 0.1);
}

.page-nav-label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.page-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.sidebar-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-blue);
}

.side-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-news-item {
  display: block;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

.side-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-news-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.side-news-item:hover .side-news-item-title {
  color: var(--brand-blue);
}

.side-news-item-date {
  font-size: 0.78rem;
  color: #94a3b8;
}

.sidebar-cta-box {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #002244 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .news-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-detail-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .news-main-grid {
    grid-template-columns: 1fr;
  }
  .news-filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  .news-search-box {
    width: 100%;
  }
  .article-main-card {
    padding: 24px 18px;
  }
  .article-title-main {
    font-size: 1.4rem;
  }
  .article-pagination {
    grid-template-columns: 1fr;
  }
}
