/* ========== 新闻页面 - News 板块 ========== */

.News-page,
.News-detail,
.News-page *,
.News-detail * {
  box-sizing: border-box;
}

.News-page a,
.News-detail a {
  color: inherit;
  text-decoration: none;
}

.News-page img,
.News-detail img {
  display: block;
  max-width: 100%;
}

/* ---------- 页面框架 ---------- */
.News-page {
  width: 100%;
  min-height: 100vh;
  background-color: #fafbfc;
  padding-top: 80px;
}

.News-page__inner {
  width: 88%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ---------- Hero ---------- */
.News-hero {
  width: 100%;
  background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 50%, #0d3b5e 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.News-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 360px;
  height: 360px;
  border: 30px solid rgba(23, 131, 236, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.News-hero__inner {
  width: 88%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 0 70px;
  position: relative;
  z-index: 1;
}

.News-hero__tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #1783ec;
  background: rgba(23, 131, 236, 0.12);
  padding: 6px 20px;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.News-hero__title {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.News-hero__subtitle {
  display: block;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 600px;
}

/* ---------- 新闻列表（横向） ---------- */
.News-list {
  display: flex;
  flex-direction: column;
  padding: 0px;
}

/* 每一条新闻行 */
.News-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.News-item + .News-item {
  margin-top: 12px;
}

.News-item:hover {
  border-color: #1783ec;
  box-shadow: 0 4px 20px rgba(23, 131, 236, 0.1);
  transform: translateX(4px);
}

/* 缩略图 */
.News-item__thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0f8, #d0e0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.News-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.News-item:hover .News-item__thumb img {
  transform: scale(1.04);
}

.News-item__thumb svg {
  width: 50px;
  height: 50px;
  opacity: 0.3;
}

/* 缩略图上的标签 */
.News-item__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: #1783ec;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.News-item__badge--hot {
  background: #f37c00;
}

/* 中间文字区 */
.News-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
}

.News-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.News-item:hover .News-item__title {
  color: #1783ec;
}

.News-item__desc {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 右侧信息 */
.News-item__side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.News-item__date {
  font-size: 14px;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
}

.News-item__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  padding: 6px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.News-item:hover .News-item__more {
  color: #ffffff;
  background: #1783ec;
  border-color: #1783ec;
}

/* 分页 */
.News-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  padding: 0 20px;
}

.News-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.News-pagination__btn:hover {
  border-color: #1783ec;
  color: #1783ec;
}

.News-pagination__btn--active {
  background: #1783ec;
  color: #ffffff;
  border-color: #1783ec;
}

.News-pagination__btn--disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.News-pagination .pager {
  margin: 0;
}

.News-pagination .pagination {
  display: flex;
  gap: 8px;
  margin: 0;
}

.News-pagination .pagination > li > a,
.News-pagination .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #555;
  background: #fff;
}

.News-pagination .pagination > .active > a,
.News-pagination .pagination > .active > span {
  border-color: #1783ec;
  color: #fff;
  background: #1783ec;
}

.News-empty {
  padding: 80px 20px;
  color: #999;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}


/* ================================================================
   新闻内页样式
   ================================================================ */

.News-detail {
  width: 100%;
  min-height: 100vh;
  background-color: #fafbfc;
}

/* 面包屑 */
.News-detail__breadcrumb {
  width: 88%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
}

.News-detail__breadcrumb-link {
  color: #666;
  text-decoration: none;
}

.News-detail__breadcrumb-link:hover { color: #1783ec; }

.News-detail__breadcrumb-sep { color: #ccc; }

.News-detail__breadcrumb-current { color: #333; font-weight: 500; }

/* 文章主体 */
.News-detail__main {
  width: 88%;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* 文章头部 */
.News-detail__header {
  margin-bottom: 36px;
}

.News-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.News-detail__back:hover { color: #1783ec; }

.News-detail__title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 16px;
}

.News-detail__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #aaa;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.News-detail__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 文章封面图 */
.News-detail__cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(135deg, #e8f0f8, #d0e0f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.News-detail__cover svg {
  width: 80px;
  height: 80px;
  opacity: 0.25;
}

.News-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.News-detail__content img {
  height: auto !important;
  margin: 24px auto;
}

.News-detail__content table {
  width: 100% !important;
  border-collapse: collapse;
}

.News-detail__content td,
.News-detail__content th {
  padding: 12px;
  border: 1px solid #e8e8e8;
}

/* 文章正文 */
.News-detail__content {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  font-size: 16px;
  color: #444;
  line-height: 2;
}

.News-detail__content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid #1783ec;
}

.News-detail__content h3:first-child {
  margin-top: 0;
}

.News-detail__content p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.News-detail__content strong {
  color: #111;
}

/* 文章底部 */
.News-detail__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 12px;
}

.News-detail__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.News-detail__tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  color: #1783ec;
  background: rgba(23, 131, 236, 0.06);
  border-radius: 20px;
}

.News-detail__share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #999;
}

.News-detail__share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.News-detail__share-btn:hover {
  background: #1783ec;
  color: #fff;
}

/* 上一篇/下一篇 */
.News-detail__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.News-detail__nav-item {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  max-width: 48%;
}

.News-detail__nav-item:hover { color: #1783ec; }

.News-detail__nav-item span {
  display: block;
  color: #aaa;
  font-size: 12px;
  margin-bottom: 4px;
}


/* ================================================================
   响应式
   ================================================================ */

@media screen and (max-width: 1280px) {
  .News-hero__title, .News-detail__title { font-size: 44px; }
}

@media screen and (max-width: 1024px) {
  .News-hero__inner { padding: 60px 0 50px; }
  .News-hero__title { font-size: 36px; }
  .News-hero__subtitle { font-size: 17px; }
  .News-item__thumb { width: 160px; }
  .News-item__title { font-size: 16px; }
  .News-item__desc { font-size: 13px; -webkit-line-clamp: 2; }
  .News-detail__title { font-size: 30px; }
  .News-detail__content { padding: 32px 30px; font-size: 15px; }
}

@media screen and (max-width: 768px) {
  .News-hero__inner { padding: 48px 0 40px; }
  .News-hero__title { font-size: 30px; }
  .News-hero__subtitle { font-size: 15px; }
  .News-hero__tag { font-size: 12px; padding: 4px 14px; }
  .News-list { padding: 0 10px; }
  .News-item { padding: 18px 16px; gap: 16px; }
  .News-item__thumb { width: 130px; }
  .News-item__title { font-size: 15px; margin-bottom: 6px; }
  .News-item__desc { font-size: 12.5px; -webkit-line-clamp: 2; }
  .News-item__side { gap: 6px; }
  .News-item__more { display: none; }
  .News-pagination__btn { min-width: 36px; height: 36px; font-size: 13px; }
  .News-detail__title { font-size: 22px; }
  .News-detail__content { padding: 24px 20px; font-size: 14px; line-height: 1.85; }
  .News-detail__content h3 { font-size: 17px; }
  .News-detail__content p { text-indent: 1.5em; }
}

@media screen and (max-width: 480px) {
  .News-page__inner { width: 92%; }
  .News-hero__inner { width: 92%; padding: 36px 0 30px; }
  .News-hero__title { font-size: 24px; }
  .News-list { padding: 0; }
  .News-item { padding: 14px 12px; gap: 12px; }
  .News-item__thumb { width: 100px; }
  .News-item__title { font-size: 14px; }
  .News-item__desc { display: none; }
  .News-item__date { font-size: 12px; }
  .News-detail__main { width: 92%; padding: 0; }
  .News-detail__title { font-size: 20px; }
  .News-detail__content { padding: 20px 16px; font-size: 14px; }
  .News-detail__content p { text-indent: 1em; }
  .News-detail__nav { flex-direction: column; gap: 12px; }
  .News-detail__nav-item { max-width: 100%; }
}
