/* 资讯中心 */
.news-page {
  background: #f5f7fa;
}

.news-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.news-sidebar {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 20px;
}

.news-sidebar .sidebar-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a3a5c;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.news-type-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.news-type-list li a {
  display: block;
  padding: 12px 20px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.news-type-list li.active a,
.news-type-list li a:hover {
  color: #0066cc;
  background: #f0f7ff;
  font-weight: 600;
}

.news-main {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.news-main-head {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.news-main-head h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin: 0;
}

.news-empty {
  padding: 80px 24px;
  text-align: center;
  color: #999;
}

.news-list-page {
  padding: 8px 0;
}

.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-list-page .news-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.news-list-page .news-item:hover {
  background: #fafbfd;
}

.news-list-page .date-box {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: #f0f7ff;
  border-radius: 6px;
  padding: 10px 0;
}

.news-list-page .date-box .day {
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
  line-height: 1.2;
}

.news-list-page .date-box .month {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.news-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f4f8;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-page .news-content {
  flex: 1;
  min-width: 0;
}

.news-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: #0066cc;
  background: #eef4fb;
  border-radius: 4px;
  margin-bottom: 8px;
}

.news-list-page .news-content h4 {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-list-page .news-content p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-pagination {
  padding: 20px 24px 28px;
  text-align: center;
}

/* 资讯详情 */
.news-detail-page {
  background: #f5f7fa;
}

.news-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 36px 40px 32px;
}

.news-article-head h1 {
  font-size: 28px;
  color: #1a3a5c;
  line-height: 1.4;
  margin: 12px 0 16px;
}

.news-article-meta {
  font-size: 14px;
  color: #999;
}

.news-article-meta i {
  margin-right: 4px;
}

.news-article-cover {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

.news-article-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.news-article-body {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
}

.news-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
}

.news-article-body h1,
.news-article-body h2,
.news-article-body h3 {
  color: #1a3a5c;
  margin: 24px 0 12px;
}

.news-article-body a {
  color: #0066cc;
}

.news-article-body table,
.news-article-body .ql-table,
.news-article-body .ql-table-better {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  table-layout: fixed;
}

.news-article-body td,
.news-article-body th,
.news-article-body .ql-table-cell {
  border: 1px solid #d9d9d9;
  padding: 8px 12px;
  vertical-align: top;
  word-break: break-word;
}

.news-article-body .ql-font-microsoft-yahei {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.news-article-body .ql-font-simsun {
  font-family: SimSun, 'Songti SC', serif;
}

.news-article-body .ql-font-kaiti {
  font-family: KaiTi, 'Kaiti SC', serif;
}

.news-article-body .ql-size-small {
  font-size: 0.75em;
}

.news-article-body .ql-size-large {
  font-size: 1.5em;
}

.news-article-body .ql-size-huge {
  font-size: 2.5em;
}

.news-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.news-article-nav a {
  display: block;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.news-article-nav a:hover {
  background: #eef4fb;
}

.news-article-nav .nav-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.news-article-nav .nav-title {
  display: block;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.news-article-nav .nav-next {
  text-align: right;
}

.news-back-bar {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }

  .news-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .news-type-list li a {
    padding: 8px 14px;
    background: #f5f7fa;
    border-radius: 20px;
  }

  .news-list-page .news-item {
    flex-wrap: wrap;
  }

  .news-thumb {
    width: 100%;
    height: 160px;
  }

  .news-article {
    padding: 24px 20px;
  }

  .news-article-head h1 {
    font-size: 22px;
  }

  .news-article-nav {
    grid-template-columns: 1fr;
  }
}
