* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif,'PingFang SC';
  background-color: #f5f7fa;
}

.container {
  max-width: 1440px;
  margin: 30px auto;
  padding: 0 24px;
}

.new-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.new-nav-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
  
}
.new-nav-btn a{
  color: #333;
}

.new-nav-btn.active {
  background-color: #2563eb;
  color: white;
}
.new-nav-btn.active a{
  color: white;
}

.new-nav-btn:hover {
  background-color: #e0e7ff;
}

.new-nav-btn.active:hover {
  background-color: #1d4ed8;
}


.main-content {
  display: flex;
  gap: 30px;
}

.news-list {
  flex: 1;
}

.news-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  gap: 20px;
  align-items: center;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-card .news-image {
  flex-shrink: 0;
  width: 220px;
  height: auto;
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-card .news-content-bolck {
  flex: 1;
  min-width: 0;
}

.news-card.featured .news-image {
  width: 350px;
}

.sticky-badge {
  display: inline-block;
  background-color: #f97316;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.category-tag {
  display: inline-block;
  background-color: #e0e7ff;
  color: #4338ca;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.news-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #1f2937;
}

.news-card.featured h2 {
  font-size: 24px;
}

.news-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #9ca3af;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.title-line {
  width: 4px;
  height: 16px;
  background-color: #2563eb;
  border-radius: 2px;
}

.sidebar-widget h3 {
  font-size: 16px;
  margin: 0;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.search-box button {
  padding: 10px 20px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.search-box button:hover {
  background-color: #1d4ed8;
}

.hot-articles {
  list-style: none;
}

.hot-articles li {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hot-articles li:last-child {
  border-bottom: none;
}

.hot-articles li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #374151;
}

.hot-articles li a:hover {
  color: #2563eb;
}

.hot-articles .rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
}

.hot-articles .rank.ranktop,
.hot-articles .rank.ranksecond,
.hot-articles .rank.rankthird,
.hot-articles .rank.rankother {
  color: white;
}

.hot-articles .rank.ranktop {
  background-color: #ef4444;
}

.hot-articles .rank.ranksecond {
  background-color: #f97316;
}

.hot-articles .rank.rankthird {
  background-color: #eab308;
}

.hot-articles .rank.rankother {
  background-color: #9ca3af;
}

.hot-articles .article-info {
  flex: 1;
  min-width: 0;
}

.hot-articles .article-info h4 {
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-articles .article-info span {
  font-size: 12px;
  color: #9ca3af;
}

.category-list {
  list-style: none;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
}

.category-list li a:hover {
  color: #2563eb;
}

.category-list li span {
  color: #9ca3af;
  font-size: 13px;
  background-color: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}

.detail-content {
  flex: 1;
}

.detail-header {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-header h1 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-body {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-body p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  font-size: 14px;
}

.detail-body h2 {
  font-size: 20px;
  margin: 20px 0;
  color: #333;
  font-weight: 700;
  /* padding-left: 10px; */
  /* border-left: 4px solid #2563eb; */
}
.detail-body h3{
  font-size: 16px;
  margin: 20px 0;
  font-weight: 700;
}

.detail-body strong {
   color: #333;
}

.article-nav {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.nav-item {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-label {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.nav-title {
  display: block;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
}

.nav-item.disabled .nav-title {
  color: #9ca3af;
}

.nav-item:not(.disabled):hover {
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qrcode-section {
  text-align: center;
}

.qrcode {
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e5e7eb;
}

.qrcode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qrcode-section p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.hotline {
  border-top: 1px solid #f3f4f6;
  padding-top: 15px;
}

.hotline-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 5px;
}

.hotline-number {
  font-size: 20px;
  font-weight: 600;
  color: #2563eb;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0px!important;
  padding-bottom: 20px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(.active) {
  border-color: #2563eb;
  color: #2563eb;
}

.page-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}

.page-btn.next {
  padding: 0 16px;
}

.page-dots {
  color: #9ca3af;
  padding: 0 8px;
}

footer {
  background-color: #1f2937;
  color: #9ca3af;
  text-align: center;
  padding: 30px 0;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .news-card .news-image {
    width: 200px;
    height: 140px;
  }
  
  .news-card.featured .news-image {
    width: 280px;
    height: 196px;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .news-card {
    flex-direction: column;
  }
  
  .news-card .news-image {
    width: 100%;
    height: 220px;
  }

  .news-card.featured .news-image {
    width: 100%;
    height: 220px;
  }

  header h1 {
    font-size: 24px;
  }

  .news-card h2 {
    font-size: 18px;
  }

  .news-card.featured h2 {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  header {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  header h1 {
    font-size: 22px;
  }
  
  .news-card {
    padding: 15px;
    gap: 15px;
  }
  
  .news-card .news-image {
    height: 180px;
  }
  
  .news-card.featured .news-image {
    height: 180px;
  }
  
  .news-card h2 {
    font-size: 17px;
  }
  
  .news-card.featured h2 {
    font-size: 18px;
  }
  
  .news-card p {
    font-size: 14px;
  }
  
  .sidebar {
    margin-top: 10px;
  }
  
  .sidebar-widget {
    padding: 15px;
  }
}
