/* ============================================================
   peacm.com 资讯列表页专属样式 css/news.css
   布局概念：报纸头版式报头 → 左文章流+右边栏（分类/热榜/联系）
   → 八宫格栏目速览 → 联系横幅
   ============================================================ */

/* ---------- 1. 报头区 ---------- */
.news-hero {
  padding: calc(var(--header-h) + 46px) 0 54px;
  background:
    radial-gradient(760px 300px at 12% 0%, rgba(243, 231, 195, 0.6), transparent 62%),
    radial-gradient(560px 260px at 92% 100%, rgba(220, 232, 210, 0.6), transparent 60%),
    var(--cream);
  border-bottom: 3px double var(--yellow-3);
}

.news-masthead {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.masthead-date {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--green-deep);
  margin-bottom: 18px;
}

.news-masthead h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-bottom: 16px;
}

.news-masthead h1 em {
  font-style: normal;
  color: var(--amber);
}

.masthead-sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 24px;
}

.masthead-sub a {
  color: var(--amber-deep);
  font-weight: 600;
}

.masthead-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 26px;
}

.rule-line {
  height: 2px;
  width: 110px;
  background: linear-gradient(90deg, transparent, var(--yellow-3));
}

.rule-line:last-child {
  background: linear-gradient(90deg, var(--yellow-3), transparent);
}

.rule-star {
  color: var(--amber);
  font-size: 14px;
}

.masthead-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.masthead-cats a {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  transition: all 0.28s ease;
}

.masthead-cats a:hover {
  background: var(--green-1);
  border-color: var(--green-2);
  color: var(--green-deeper);
  transform: translateY(-2px);
}

/* ---------- 2. 主体两栏 ---------- */
.news-body {
  background: var(--cream);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* 左：文章列表（无分页） */
.nl-item {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
  transition: all 0.32s ease;
}

.nl-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.nl-link {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: stretch;
}

.nl-thumb {
  display: block;
  overflow: hidden;
  min-height: 160px;
}

.nl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nl-item:hover .nl-thumb img {
  transform: scale(1.06);
}

.nl-main {
  display: block;
  padding: 22px 24px;
}

.nl-main h2 {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.nl-item:hover .nl-main h2 {
  color: var(--amber-deep);
}

.nl-main p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nl-meta time {
  font-size: 12px;
  color: var(--ink-3);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-2);
}

.nl-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
}

/* 右：边栏 */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.side-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.side-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--yellow-3);
  position: relative;
}

.side-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 34px;
  height: 2px;
  background: var(--amber);
}

.side-cats ul li {
  border-bottom: 1px dashed var(--line);
}

.side-cats ul li:last-child {
  border-bottom: none;
}

.side-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  color: var(--ink);
  font-size: 14px;
  transition: all 0.25s ease;
}

.side-cats a:hover {
  color: var(--amber-deep);
  transform: translateX(6px);
}

.side-cats i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1px;
}

.side-hot ol {
  counter-reset: hot;
}

.side-hot ol li {
  counter-increment: hot;
  padding: 9px 0 9px 30px;
  position: relative;
}

.side-hot ol li::before {
  content: counter(hot, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}

.side-hot a {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

.side-hot a:hover {
  color: var(--amber-deep);
}

.side-contact {
  background:
    radial-gradient(220px 130px at 100% 0%, rgba(243, 231, 195, 0.55), transparent 70%),
    #fff;
}

.side-contact p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.side-phone,
.side-mail {
  display: block;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  background: var(--green-1);
  color: var(--green-deeper);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  text-align: center;
  transition: all 0.28s ease;
}

.side-phone:hover,
.side-mail:hover {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-2px);
}

.side-wechat {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px;
  border: 1.5px dashed var(--yellow-3);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.side-contact .btn {
  width: 100%;
}

/* ---------- 3. 八宫格栏目 ---------- */
.news-cols {
  background: var(--cream-2);
}

.cols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.col-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.32s ease;
  display: block;
}

.col-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--yellow-2);
  transition: all 0.3s ease;
}

.col-card:nth-child(even)::before {
  background: var(--green-2);
}

.col-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}

.col-card:hover::before {
  width: 10px;
}

.col-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--yellow-3);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.col-card:nth-child(even) .col-num {
  color: var(--green-3);
}

.col-card:hover .col-num {
  color: var(--amber);
}

.col-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.col-card p {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 4. 联系横幅 ---------- */
.news-cta {
  background: linear-gradient(120deg, var(--green-deep), #55794F);
  padding: 66px 0;
}

.news-cta-in {
  text-align: center;
  color: #fff;
}

.news-cta-in h2 {
  color: #fff;
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

.news-cta-in p {
  color: var(--green-1);
  font-size: 15px;
  margin-bottom: 26px;
}

.news-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 5. 响应式 ---------- */
@media (max-width: 1080px) {
  .news-layout {
    grid-template-columns: 1fr 300px;
  }

  .nl-link {
    grid-template-columns: 200px 1fr;
  }

  .cols-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .news-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-card {
    flex: 1 1 260px;
  }

  .nl-link {
    grid-template-columns: 1fr;
  }

  .nl-thumb {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .cols-grid {
    grid-template-columns: 1fr;
  }

  .masthead-cats {
    gap: 8px;
  }

  .nl-main h2 {
    font-size: 16px;
  }
}
