.news-section {
  padding: 54px 0 76px;
  background: #fbfdff;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.news-main {
  min-width: 0;
}

.news-page-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.news-page-head h1 {
  margin: 6px 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.news-page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.news-card {
  display: block;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 68, 102, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 114, 179, 0.45);
  box-shadow: 0 16px 36px rgba(33, 68, 102, 0.1);
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.news-card-category {
  color: var(--blue);
  font-weight: 700;
}

.news-card-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.news-card-title a:hover {
  color: var(--blue);
}

.news-card-excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.news-card-link {
  padding: 10px 20px;
  font-size: 14px;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.news-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.news-pagination--prevnext {
  justify-content: space-between;
}

.news-pagination--prevnext .page-numbers {
  min-width: 110px;
}

.news-pagination .page-numbers.disabled,
.news-pagination .page-numbers.disabled:hover {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
  opacity: 0.55;
  cursor: not-allowed;
}

.news-empty {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.news-empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.news-empty p {
  margin: 0;
  color: var(--muted);
}

.news-sidebar {
  min-width: 0;
}

.sidebar-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 68, 102, 0.06);
}

.sidebar-panel h2 {
  margin: 4px 0 18px;
  font-size: 22px;
}

.recommend-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommend-item a {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.recommend-item:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.recommend-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.recommend-item a:hover .recommend-title {
  color: var(--blue);
}

.recommend-date {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-empty {
  margin: 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.article-panel {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 68, 102, 0.06);
}

.article-title {
  margin: 8px 0 20px;
  font-size: 32px;
  line-height: 1.3;
}

.article-content {
  color: var(--text);
  line-height: 1.85;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 28px 0 12px;
  line-height: 1.4;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-back {
  margin-top: 22px;
  padding: 10px 20px;
  font-size: 14px;
}

.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.article-prevnext-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(205, 217, 229, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 10px 26px rgba(33, 68, 102, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.article-prevnext-link:hover {
  transform: translateY(-2px);
  border-color: #bfd2e2;
  box-shadow: 0 14px 30px rgba(38, 78, 118, 0.09);
}

.article-prevnext-link span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.article-prevnext-link strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.article-prevnext-link.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.article-prevnext-link.disabled:hover {
  transform: none;
  border-color: rgba(205, 217, 229, 0.9);
  box-shadow: 0 10px 26px rgba(33, 68, 102, 0.04);
}

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

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

  .sidebar-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .article-prevnext {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .news-section {
    padding: 34px 0 54px;
  }

  .news-page-head h1 {
    font-size: 28px;
  }

  .news-card {
    padding: 18px;
  }

  .news-card-title {
    font-size: 19px;
  }

  .article-panel {
    padding: 18px;
  }

  .article-title {
    font-size: 26px;
  }
}
