.news-page {
  background: #fff;
  min-height: 100vh;
}

.hero {
  width: 100%;
  height: 220px;
  background: url("../images/hero_cy.jpg") center center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-bottom: 20px;
}

.hero .hero-content {
  width: 1200px;
  max-width: 100%;
  text-align: left;
  padding: 0 20px;
  margin: 0 auto;
}

.hero .hero-content h1,
.hero .hero-content .page-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #4273fa;
  letter-spacing: 1px;
  margin-top: 0;
}

.hero .hero-content h1 span,
.hero .hero-content .page-title span {
  color: #4273fa;
}

.hero .hero-content p {
  font-size: 18px;
  color: #333;
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
  font-weight: bold;
}

.list {
  padding: 24px 0 60px;
}

.list .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
}

/* List Item Styles - Aligned with Vue news.vue */
.ntitle {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.ntitle h2,
.ntitle h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ntitle h2 a,
.ntitle h1 a {
    color: #333;
    text-decoration: none;
}

.ntitle span {
    display: block;
    color: #999;
    font-size: 12px;
}

.ntitle span a {
    color: #999;
}

.ntitle span a:hover {
    color: #1e6cff;
}

.list .news-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 18px 0 24px;
  margin-bottom: 6px;
  align-items: flex-start;
  border-bottom: 1px solid #e6e8ee;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.list .news-item:hover {
  background-color: #f9fafc;
}

.list .news-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.list .cover img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.list .content .title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f1623;
  font-weight: 700;
  line-height: 1.4;
}

.list .content .desc {
  margin: 0 0 14px;
  color: #4a4f5c;
  font-size: 14px;
  line-height: 1.7;
}

.list .content .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8c97ad;
  font-size: 12px;
}

/* 模拟 el-tag */
.list .content .meta .tag {
  display: inline-block;
  height: 24px;
  padding: 0 9px;
  line-height: 22px;
  font-size: 12px;
  color: #409eff;
  background-color: #ecf5ff;
  border: 1px solid #d9ecff;
  border-radius: 4px;
  box-sizing: border-box;
  white-space: nowrap;
}

.list .pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

/* 适配 DtCms 分页结构 - 仿 Element UI 风格 */
.list .pagination a, 
.list .pagination span {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 0;
  background: #fff;
  color: #303133;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 400;
}

.list .pagination a:hover {
  color: #409eff;
}

.list .pagination span.current {
  color: #409eff;
  font-weight: 700;
  cursor: default;
}

.list .pagination span.disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .list .news-item {
    grid-template-columns: 1fr !important;
  }

  .list .cover img {
    height: auto;
    max-height: 200px;
  }
  
  .hero {
    height: auto;
    padding: 60px 0 40px;
  }
}

/* Detail Styles */
.news-detail {
  padding: 60px 0;
  min-height: 80vh;
}

.news-detail .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-detail .detail-header {
  margin-bottom: 20px;
}

.news-detail .detail-title {
  font-size: 28px;
  font-weight: bold;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.4;
}

.news-detail .detail-meta {
  font-size: 14px;
  color: #999;
  display: flex;
  gap: 20px;
}

.news-detail .detail-divider {
  height: 1px;
  background: #e6e8ee;
  margin-bottom: 30px;
}

.news-detail .detail-content {
  margin-bottom: 40px;
}

.news-detail .detail-content .text-content {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 40px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.news-detail .detail-content .text-content p,
.news-detail .detail-content .text-content span {
  white-space: normal !important;
  text-wrap: wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100%;
}

/* Rich Text Styles */
.news-detail .detail-content .text-content img {
  max-width: 100%;
  height: auto;
}
.news-detail .detail-content .text-content p {
  margin-bottom: 1em;
}

.news-detail .article-nav {
  margin-bottom: 60px;
  border-top: 1px solid #e6e8ee;
  padding-top: 20px;
}

.news-detail .article-nav .nav-item {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
  display: block;
  text-decoration: none;
}

.news-detail .article-nav .nav-item:hover,
.news-detail .article-nav .nav-item a:hover {
  color: #1e6cff;
}

.news-detail .back-link {
  margin-bottom: 40px;
  font-size: 14px;
  color: #1e6cff;
  cursor: pointer;
  font-weight: 500;
}

.news-detail .back-link:hover {
  text-decoration: underline;
}

.news-detail .recent-highlights {
  margin-top: 60px;
}

.news-detail .recent-highlights .section-title {
  font-size: 20px;
  font-weight: bold;
  color: #111;
  margin-bottom: 20px;
}

.news-detail .recent-highlights .highlight-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-detail .recent-highlights .highlight-item {
  display: flex;
  gap: 20px;
  cursor: pointer;
  padding: 20px;
  background: #f9fbff;
  border-radius: 8px;
  align-items: center;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.news-detail .recent-highlights .highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-detail .recent-highlights .highlight-item .h-cover {
  width: 240px;
  height: 135px;
  flex-shrink: 0;
}

.news-detail .recent-highlights .highlight-item .h-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.news-detail .recent-highlights .highlight-item .h-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-detail .recent-highlights .highlight-item .h-content .h-title {
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-bottom: 12px;
}

.news-detail .recent-highlights .highlight-item .h-content .h-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-detail .recent-highlights .highlight-item .h-content .h-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 768px) {
  .news-detail .highlight-item {
    flex-direction: column;
  }
  
  .news-detail .highlight-item .h-cover {
    width: 100%;
    height: auto;
  }
}
