/* ============================================
   news.css - 新闻列表 + 新闻详情 独立样式
   布局：左侧1270px + 间距20px + 右侧370px = 1660px ≤ 1680px
   ============================================ */

/* ========== Banner ========== */
.news-banner {
  position: relative;
  width: 100%;
  height: 3.6rem;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-banner-mask {
  position: absolute;
  inset: 0;
/*  background: linear-gradient(135deg, rgba(6, 63, 135, 0.75) 0%, rgba(10, 40, 80, 0.55) 50%, rgba(0, 0, 0, 0.4) 100%);*/
}

.news-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.news-banner-content h1 {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.04rem;
  margin-bottom: 0.1rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-banner-content p {
  font-size: 0.16rem;
  opacity: 0.9;
  letter-spacing: 0.02rem;
}

/* ========== 主体容器 ========== */
.news-main-section {
  padding: 0.4rem 0 0.6rem;
}

.news-main-container {
  max-width: 16.8rem;
  margin: 0 auto;
  padding: 0 0.2rem;
  display: flex;
  gap: 0.2rem;
  align-items: flex-start;
}

/* ========== 左侧 1270px ========== */
.news-left-col {
  width: 12.7rem;
  flex-shrink: 0;
}

/* ---------- 头条大卡片 ---------- */
.news-headline-card {
  display: flex;
  background: #fff;
  border-radius: 0.06rem;
  overflow: hidden;
  margin-bottom: 0.2rem;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
}

.news-headline-card:hover {
  background: #063f87;
  box-shadow: 0 8px 30px rgba(6, 63, 135, 0.35);
  transform: translateY(-3px);
}

.news-headline-card:hover h2,
.news-headline-card:hover .news-headline-desc,
.news-headline-card:hover .news-headline-meta span {
  color: #fff;
}

.news-headline-img {
  position: relative;
  width: 4rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.news-headline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-headline-tag {
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  background: #f5b400;
  color: #1a1a1a;
  font-size: 0.12rem;
  font-weight: 700;
  padding: 0.02rem 0.08rem;
  border-radius: 0.02rem;
}

.news-headline-body {
  flex: 1;
  padding: 0.25rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-headline-body h2 {
  font-size: 0.22rem;
  color: #1a3a5c;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.1rem;
  transition: color 0.35s;
}

.news-headline-desc {
  font-size: 0.14rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.12rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.35s;
}

.news-headline-meta {
  display: flex;
  gap: 0.16rem;
  font-size: 0.12rem;
  color: #999;
  transition: color 0.35s;
}

.news-headline-meta span {
  display: flex;
  align-items: center;
  gap: 0.03rem;
}

/* ---------- 新闻列表项 ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.3rem;
}

.news-list-item {
  display: flex;
  background: #fff;
  border-radius: 0.06rem;
  overflow: hidden;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
}

/* 默认白色背景 → 悬停蓝色背景 */
.news-list-item:hover {
  background: #063f87;
  box-shadow: 0 8px 30px rgba(6, 63, 135, 0.35);
  transform: translateY(-3px);
  border-color: #063f87;
}

/* 悬停时所有文字变白 */
.news-list-item:hover h3,
.news-list-item:hover p,
.news-list-item:hover .news-list-meta span,
.news-list-item:hover .news-cat-tag {
  color: #fff;
}

.news-list-item:hover .news-cat-tag {
  background: #f5b400;
  color: #063f87;
}

/* 图片区域 400x300 */
.news-list-img {
  width: 4rem;
  height: 3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.news-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-list-item:hover .news-list-img img {
  transform: scale(1.05);
}

/* 文字区域 */
.news-list-body {
  flex: 1;
  padding: 0.25rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-body h3 {
  font-size: 0.18rem;
  color: #222;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.08rem;
  transition: color 0.35s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-body p {
  font-size: 0.14rem;
  color: #777;
  line-height: 1.8;
  margin-bottom: 0.1rem;
  transition: color 0.35s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.12rem;
  color: #999;
  flex-wrap: wrap;
}

.news-list-meta span {
  display: flex;
  align-items: center;
  gap: 0.03rem;
  transition: color 0.35s;
}

.news-cat-tag {
  display: inline-block;
  background: #fef8e7;
  color: #e6a800;
  font-size: 0.11rem;
  font-weight: 600;
  padding: 0.02rem 0.08rem;
  border-radius: 0.02rem;
  transition: all 0.35s;
}

/* ---------- 分页 ---------- */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  margin-top: 0.2rem;
  padding: 0.1rem 0;
}

.pagination-wrap a,
.pagination-wrap .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.36rem;
  height: 0.36rem;
  padding: 0 0.1rem;
  font-size: 0.14rem;
  color: #555;
  border: 1px solid #e0e0e0;
  border-radius: 0.03rem;
  text-decoration: none;
  transition: all 0.3s;
  background: #fff;
}

.pagination-wrap a:hover,
.pagination-wrap .page-num:hover {
  background: #063f87;
  color: #fff;
  border-color: #063f87;
}

.pagination-wrap .page-num.current {
  background: #063f87;
  color: #fff;
  border-color: #063f87;
  font-weight: 700;
}

.pagination-wrap .page-prev.disabled,
.pagination-wrap .page-next.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-wrap .page-ellipsis {
  font-size: 0.14rem;
  color: #999;
  padding: 0 0.04rem;
}

/* ========== 右侧 370px ========== */
.news-right-col {
  width: 3.7rem;
  flex-shrink: 0;
}

.news-side-widget {
  background: #fff;
  border-radius: 0.06rem;
  padding: 0.2rem;
  margin-bottom: 0.16rem;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.news-side-widget:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.side-widget-title {
  display: flex;
  align-items: center;
  gap: 0.06rem;
  margin-bottom: 0.12rem;
  padding-bottom: 0.08rem;
  border-bottom: 2px solid #f5b400;
}

.side-widget-title i {
  color: #f5b400;
  font-size: 0.18rem;
}

.side-widget-title h3 {
  font-size: 0.16rem;
  color: #1a3a5c;
  font-weight: 700;
}

.side-widget-desc {
  font-size: 0.13rem;
  color: #888;
  margin-bottom: 0.1rem;
  line-height: 1.6;
}

/* 媒体需求列表 */
.side-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.08rem 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.13rem;
}

.side-contact-list li:last-child {
  border-bottom: none;
}

.side-contact-list .side-label {
  display: flex;
  align-items: center;
  gap: 0.04rem;
  color: #666;
}

.side-contact-list .side-label i {
  color: #063f87;
  font-size: 0.14rem;
}

.side-contact-list .side-value {
  color: #333;
  font-weight: 500;
}

/* 订阅 */
.side-subscribe {
  display: flex;
  gap: 0.06rem;
}

.side-subscribe input {
  flex: 1;
  padding: 0.08rem 0.1rem;
  border: 1px solid #ddd;
  border-radius: 0.03rem;
  font-size: 0.13rem;
  outline: none;
  transition: border-color 0.3s;
}

.side-subscribe input:focus {
  border-color: #063f87;
}

.side-subscribe button {
  background: #f5b400;
  color: #1a1a1a;
  border: none;
  padding: 0 0.14rem;
  border-radius: 0.03rem;
  font-size: 0.13rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.side-subscribe button:hover {
  background: #e6a800;
}

/* 热门标签 */
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.06rem;
}

.side-tag {
  display: inline-block;
  padding: 0.04rem 0.1rem;
  background: #f5f6f8;
  color: #555;
  font-size: 0.12rem;
  border-radius: 0.02rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.side-tag:hover {
  background: #063f87;
  color: #fff;
  border-color: #063f87;
}

/* 热门阅读排行 */
.side-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-hot-list li {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  padding: 0.07rem 0;
  border-bottom: 1px dashed #eee;
}

.side-hot-list li:last-child {
  border-bottom: none;
}

.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  font-size: 0.11rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: #ccc;
}

.hot-rank.rank-1 { background: #e53935; }
.hot-rank.rank-2 { background: #f4511e; }
.hot-rank.rank-3 { background: #f5b400; color: #1a1a1a; }
.hot-rank.rank-4 { background: #78909c; }
.hot-rank.rank-5 { background: #90a4ae; }

.hot-title {
  font-size: 0.13rem;
  color: #444;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.hot-title:hover {
  color: #063f87;
}

/* ========== 新闻详情页（保留） ========== */
.news-detail-section {
  padding: 0.4rem 0 0.6rem;
}

.news-detail-header {
  text-align: center;
  margin-bottom: 0.3rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eee;
}

.news-detail-header .news-cat {
  display: inline-block;
  background: #fef8e7;
  color: #e6a800;
  font-size: 0.13rem;
  padding: 0.03rem 0.12rem;
  border-radius: 0.02rem;
  margin-bottom: 0.12rem;
  font-weight: 600;
}

.news-detail-header h1 {
  font-size: 0.32rem;
  color: #1a3a5c;
  font-weight: 800;
  margin-bottom: 0.12rem;
  line-height: 1.3;
}

.news-detail-header .news-meta-row {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.14rem;
  color: #999;
  flex-wrap: wrap;
}

.news-detail-header .news-meta-row span {
  display: flex;
  align-items: center;
  gap: 0.04rem;
}

.news-detail-body {
  font-size: 0.16rem;
  color: #333;
  line-height: 1.9;
  max-width: 12rem;
  margin: 0 auto;
}

.news-detail-body p {
  margin-bottom: 0.15rem;
  text-indent: 2em;
}

.news-detail-body h2 {
  font-size: 0.22rem;
  color: #1a3a5c;
  margin: 0.3rem 0 0.12rem;
  padding-left: 0.1rem;
  border-left: 3px solid #f5b400;
}

.news-detail-body h3 {
  font-size: 0.18rem;
  color: #2a2a2a;
  margin: 0.2rem 0 0.08rem;
}

.news-detail-body img {
  max-width: 100%;
  border-radius: 0.06rem;
  margin: 0.15rem auto;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.news-detail-body ul {
  padding-left: 0.2rem;
  margin-bottom: 0.15rem;
}

.news-detail-body ul li {
  list-style: disc;
  margin-bottom: 0.06rem;
}

/* 分享栏 */
.news-share {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0.3rem 0;
  padding: 0.12rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 0.14rem;
  color: #666;
}

.news-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #666;
  transition: all 0.3s;
  text-decoration: none;
}

.news-share a:hover {
  background: #f5b400;
  color: #1a1a1a;
  border-color: #f5b400;
}

/* 上下篇 */
.news-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  margin-top: 0.3rem;
}

.news-prev-next a {
  display: block;
  padding: 0.12rem 0.16rem;
  background: #f8f9fb;
  border-radius: 0.04rem;
  font-size: 0.14rem;
  color: #444;
  transition: all 0.3s;
  border: 1px solid #eee;
  text-decoration: none;
}

.news-prev-next a:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

.news-prev-next .prev { text-align: left; }
.news-prev-next .next { text-align: right; }

.news-prev-next .pn-label {
  font-size: 0.12rem;
  color: #999;
  display: block;
  margin-bottom: 0.02rem;
}

/* ========== 响应式断点 ========== */

/* ≤1280px */
@media (max-width: 1280px) {
  html { font-size: 90px; }
  .news-headline-body h2 { font-size: 0.2rem; }
  .news-list-body h3 { font-size: 0.16rem; }
}

/* ≤1024px - 右侧栏移到下方 */
@media (max-width: 1024px) {
  html { font-size: 80px; }
  .news-main-container {
    flex-direction: column;
  }
  .news-left-col {
    width: 100%;
  }
  .news-right-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.16rem;
  }
  .news-right-col .news-side-widget {
    margin-bottom: 0;
  }
  .news-headline-img { width: 3.4rem; height: 2.4rem; }
  .news-list-img { width: 3.4rem; height: 2.4rem; }
}

/* ≤768px - 手机端重写 */
@media (max-width: 768px) {
  html { font-size: 60px; }
  .news-banner { height: 2.4rem; min-height: 180px; }
  .news-banner-content h1 { font-size: 0.36rem; }
  .news-banner-content p { font-size: 0.14rem; }
  .news-main-container { padding: 0 0.12rem; }
  /* 头条卡片竖排 */
  .news-headline-card { flex-direction: column; }
  .news-headline-img { width: 100%; height: 2rem; }
  .news-headline-body { padding: 0.15rem 0.16rem; }
  .news-headline-body h2 { font-size: 0.18rem; }
  .news-headline-desc { font-size: 0.13rem; }
  /* 列表项竖排 */
  .news-list-item { flex-direction: column; }
  .news-list-img { width: 100%; height: 4rem; }
  .news-list-body { padding: 0.15rem 0.16rem; }
  .news-list-body h3 { font-size: 0.16rem; }
  .news-list-body p { font-size: 0.13rem; }
  /* 右侧栏单列 */
  .news-right-col { grid-template-columns: 1fr; }
  .pagination-wrap { gap: 0.04rem; }
  .pagination-wrap a, .pagination-wrap .page-num {
    min-width: 0.32rem; height: 0.32rem; font-size: 0.12rem;
  }
  /* 详情页 */
  .news-detail-header h1 { font-size: 0.22rem; }
  .news-detail-body { font-size: 0.15rem; }
  .news-detail-body p { text-indent: 1.5em; }
  .news-prev-next { grid-template-columns: 1fr; }
}

/* ≤480px */
@media (max-width: 480px) {
  html { font-size: 50px; }
  .news-banner-content h1 { font-size: 0.3rem; }
  .news-headline-meta { gap: 0.1rem; flex-wrap: wrap; }
  .news-list-meta { gap: 0.08rem; }
}
