﻿.news-page {
  background: #fff;
}

.news-banner {
  position: relative;
  height: 330px;
  background: url('../首页.png') center top / cover no-repeat;
}

.news-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .04);
}

.news-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.news-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.news-crumb {
  padding: 42px 0 18px;
}

.news-crumb-inner {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: end;
  gap: 38px;
}

.news-crumb-title {
  position: relative;
  width: 168px;
  height: 70px;
  padding: 18px 0 0 22px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: var(--primary-blue);
  border-radius: 0 0 22px 0;
}

.news-crumb-title::after {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 42px;
  height: 3px;
  content: "";
  background: #fff;
}

.news-crumb-links {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 42px;
  padding-top: 18px;
  border-bottom: 2px solid #2f6db6;
}

.news-crumb-links a {
  height: 30px;
  padding: 4px 14px 0;
  color: #333;
  font-size: 16px;
  line-height: 26px;
}

.news-crumb-links a.active,
.news-crumb-links a:hover {
  color: #fff;
  background: var(--primary-blue);
}

.news-position {
  margin-top: 6px;
  color: #315d93;
  font-size: 12px;
}

.news-list-section {
  padding: 0 0 102px;
}

.news-search-tip {
  margin: 0 0 18px;
  color: #315d93;
  font-size: 14px;
  line-height: 1.6;
}

.news-search-tip strong,
.news-search-tip em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-blue);
}

.news-search-empty {
  margin: 48px 0 24px;
  color: #666;
  font-size: 15px;
  text-align: center;
}

.news-list {
  width: 1500px;
  max-width: 100%;
  margin: 0 auto;
}

.news-list-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  min-height: 116px;
  padding: 21px 28px 21px 24px;
  border-bottom: 1px solid #d8d8d8;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.news-list-item:hover {
  position: relative;
  z-index: 1;
  border-bottom-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.news-list-item time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  line-height: 1;
}

.news-list-item time strong {
  margin-bottom: 8px;
  font-size: 42px;
  font-weight: 700;
}

.news-list-item time span {
  font-size: 14px;
}

.news-list-item h2 {
  margin: 0 0 12px;
  color: #222;
  font-size: 17px;
  line-height: 1.45;
}

.news-list-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.news-list-item:hover h2 {
  color: var(--primary-blue);
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 54px;
}

.news-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination .pagination li {
  display: block;
}

.news-pagination a,
.news-pagination span,
.news-pagination .pagination li a,
.news-pagination .pagination li span {
  display: flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #555;
  font-size: 14px;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.news-pagination span,
.news-pagination .pagination li span {
  border-color: transparent;
}

.news-pagination a.active,
.news-pagination a:hover,
.news-pagination .pagination li.active a,
.news-pagination .pagination li a:hover {
  color: #fff;
  border-color: var(--primary-blue);
  background: var(--primary-blue);
}

.news-pagination .page-prev,
.news-pagination .page-next,
.news-pagination .pagination li:first-child a,
.news-pagination .pagination li:last-child a {
  min-width: 76px;
}

.news-pagination .pagination li.disabled a,
.news-pagination .pagination li.disabled span {
  color: #aaa;
  pointer-events: none;
  background: #f5f5f5;
}

.news-detail-section {
  padding: 8px 0 90px;
}

.news-detail {
  width: 1500px;
  max-width: 100%;
  margin: 0 auto;
}

.news-detail h1 {
  margin: 0 0 42px;
  color: #222;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.news-detail-meta {
  margin-bottom: 64px;
  padding-bottom: 34px;
  color: #555;
  font-size: 15px;
  text-align: center;
  border-bottom: 1px solid #d8d8d8;
}

.news-detail-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.news-detail-content p {
  margin: 0 0 24px;
  color: #222;
  font-size: 16px;
  line-height: 2.25;
  text-indent: 2em;
}

.news-detail-content figure {
  margin: 54px 0 0;
}

.news-detail-photo {
  display: block;
  width: 100%;
  height: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 73, 154, .06)),
    linear-gradient(135deg, #d8eef3 0 28%, #eff8fb 29% 42%, #8fb6c0 43% 44%, #e8f6f8 45% 100%);
  position: relative;
  overflow: hidden;
}

.news-detail-photo::before {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 38%;
  content: "";
  background:
    linear-gradient(90deg, #48a0aa, #b9e3e8 20%, #f5ffff 50%, #9ec9d0 82%, #3a7c87),
    linear-gradient(#fff, #d8eef2);
  border-radius: 14px 14px 32px 32px;
  box-shadow: 0 12px 24px rgba(32, 83, 96, .2);
  transform: perspective(700px) rotateX(18deg);
}

.news-detail-photo::after {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 64%;
  height: 32%;
  content: "";
  background:
    radial-gradient(circle at 18% 35%, #d8eef2 0 34px, transparent 35px),
    radial-gradient(circle at 82% 35%, #d8eef2 0 34px, transparent 35px),
    linear-gradient(90deg, transparent 0 18%, #789aa3 19% 21%, transparent 22% 78%, #789aa3 79% 81%, transparent 82%),
    linear-gradient(#b8d8de, #eef8fb);
  opacity: .95;
}

/* 文章两侧固定：上一篇 / 下一篇 */
.news-detail-side-btn {
  position: fixed;
  top: 40%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  min-height: 120px;
  padding: 18px 8px;
  color: #fff;
  text-align: center;
  background: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(0, 73, 154, .22);
  transform: translateY(-50%);
  transition: background .2s ease, box-shadow .2s ease;
}

.news-detail-side-btn.is-prev {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.news-detail-side-btn.is-next {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.news-detail-side-arrow {
  font-size: 22px;
  line-height: 1;
}

.news-detail-side-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.news-detail-side-btn:hover:not(.is-disabled) {
  background: #003d82;
  box-shadow: 0 10px 28px rgba(0, 73, 154, .28);
}

.news-detail-side-btn.is-disabled {
  color: #fff;
  background: #9bb5d4;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .news-detail-side-btn {
    display: none;
  }
}

.news-detail-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid #d8d8d8;
}

.news-detail-nav a {
  display: block;
  min-height: 88px;
  padding: 18px 22px;
  border: 1px solid #e2e2e2;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-detail-nav a:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 20px rgba(0, 73, 154, .12);
  transform: translateY(-2px);
}

.news-detail-nav span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-blue);
  font-size: 15px;
}

.news-detail-nav strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #333;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.news-detail-nav a:hover strong {
  color: var(--primary-blue);
}
