/* ============================================================
   peacm.com 行业资讯栏目 css/news-trend.css
   布局概念：头条大卡(左图右文)+右侧列表流 → 本地快讯条
   → 热读榜侧栏+精选图文卡 → 全部文章列表 → 订阅卡 → 相关栏目
   ============================================================ */

/* ---------- 1. 首屏 ---------- */
.trend-hero {
  padding: calc(var(--header-h) + 40px) 0 60px;
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(220, 232, 210, 0.55), transparent 60%),
    radial-gradient(600px 280px at 0% 100%, rgba(243, 231, 195, 0.6), transparent 60%),
    var(--cream);
}

.trend-hero-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.trend-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--green-deep);
  background: var(--green-1);
  padding: 5px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.trend-hero-head h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  margin-bottom: 14px;
}

.trend-hero-head h1 em {
  font-style: normal;
  color: var(--amber);
}

.trend-hero-sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 640px;
}

.trend-hero-sub a {
  color: var(--amber-deep);
  font-weight: 700;
}

.trend-crumb {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
}

.trend-crumb a {
  color: var(--ink-3);
}

.trend-crumb a:hover {
  color: var(--amber-deep);
}

/* 首屏两栏：头条大卡 + 列表流 */
.trend-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

.trend-headcard {
  display: block;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.trend-headcard-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.trend-headcard-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trend-headcard:hover .trend-headcard-img img {
  transform: scale(1.05);
}

.trend-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 18px rgba(192, 138, 46, 0.4);
}

.trend-headcard-body {
  display: block;
  padding: 26px 28px 28px;
}

.trend-headcard-body h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.trend-headcard:hover .trend-headcard-body h2 {
  color: var(--amber-deep);
}

.trend-headcard-body p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

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

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

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

/* 右侧列表流 */
.trend-stream {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.trend-stream-title {
  font-size: 16px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px dashed var(--yellow-3);
}

.trend-stream-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  transition: all 0.25s ease;
}

.trend-stream-item:hover {
  transform: translateX(5px);
}

.trend-stream-item:hover .trend-stream-txt {
  color: var(--amber-deep);
}

.trend-stream-date {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--yellow-1);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

.trend-stream-txt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.trend-hero-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 2. 本地快讯条 ---------- */
.trend-flash {
  padding: 22px 0;
  background: var(--green-1);
}

.trend-flash-in {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.trend-flash-label {
  flex-shrink: 0;
  background: var(--green-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: var(--r-pill);
}

.trend-flash-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  flex: 1;
}

.trend-flash-list li {
  font-size: 13.5px;
  color: var(--ink);
  flex: 1 1 260px;
}

.trend-flash-list strong {
  color: var(--green-deeper);
}

/* ---------- 3. 热读榜 + 精选 ---------- */
.trend-picks-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 26px;
  align-items: start;
}

.trend-rank {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.trend-rank-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--yellow-3);
}

.trend-rank-list {
  counter-reset: rank;
}

.trend-rank-list li {
  counter-increment: rank;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 10px 38px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.trend-rank-list li:last-child {
  border-bottom: none;
}

.trend-rank-list li::before {
  content: counter(rank);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--cream-3);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trend-rank-list li:nth-child(-n+3)::before {
  background: var(--amber);
  color: #fff;
}

.trend-rank-list a {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}

.trend-rank-list a:hover {
  color: var(--amber-deep);
}

.trend-rank-list span {
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* 精选图文卡 */
.trend-feeds {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.trend-feed-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.trend-feed-img {
  display: block;
  overflow: hidden;
}

.trend-feed-img img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trend-feed-card:hover .trend-feed-img img {
  transform: scale(1.06);
}

.trend-feed-body {
  display: block;
  padding: 22px 24px;
}

.trend-feed-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.trend-feed-card:hover .trend-feed-body h3 {
  color: var(--amber-deep);
}

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

.trend-feed-body time {
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 4. 全部文章列表 ---------- */
.trend-all {
  background: var(--cream-2);
}

.trend-all-list {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px 28px;
}

.trend-all-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--line);
}

.trend-all-list li:last-child .trend-all-item {
  border-bottom: none;
}

.trend-all-item time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.trend-all-txt {
  flex: 1;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.25s ease;
}

.trend-all-item:hover .trend-all-txt {
  color: var(--amber-deep);
}

.trend-all-tag {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--green-deeper);
  background: var(--green-1);
  padding: 3px 12px;
  border-radius: var(--r-pill);
}

/* ---------- 5. 订阅卡 ---------- */
.trend-subscribe {
  padding: 20px 0 80px;
}

.trend-subscribe-card {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(243, 231, 195, 0.7), transparent 70%),
    var(--green-1);
  border-radius: var(--r-xl);
  padding: 38px 42px;
  box-shadow: var(--shadow-soft);
}

.trend-subscribe-txt {
  flex: 1 1 320px;
}

.trend-subscribe-txt h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.trend-subscribe-txt p {
  font-size: 14px;
  color: var(--ink-2);
}

.trend-subscribe-txt a {
  color: var(--amber-deep);
  font-weight: 700;
}

.trend-subscribe-form {
  flex: 1 1 320px;
  display: flex;
  gap: 12px;
}

.trend-subscribe-form .form-input {
  flex: 1;
}

/* ---------- 6. 相关栏目 ---------- */
.trend-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.trend-related-card {
  display: block;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: all 0.3s ease;
}

.trend-related-card:hover {
  border-color: var(--green-2);
}

.trend-related-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--green-deep);
}

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

.trend-related-more {
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.trend-related-more a {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---------- 7. CTA ---------- */
.trend-cta {
  background: linear-gradient(120deg, var(--amber), #D39A3E);
  padding: 60px 0;
}

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

.trend-cta-in h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}

.trend-cta-in p {
  color: #FFF6E3;
  font-size: 15px;
  margin-bottom: 26px;
}

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

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

  .trend-picks-grid {
    grid-template-columns: 1fr;
  }

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

  .trend-headcard-img img {
    height: 280px;
  }
}

@media (max-width: 900px) {
  .trend-feed-card {
    grid-template-columns: 1fr;
  }

  .trend-subscribe-card {
    padding: 30px 26px;
  }

  .trend-subscribe-form {
    flex-direction: column;
  }

  .trend-all-item {
    flex-wrap: wrap;
    gap: 8px;
  }
}

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

  .trend-headcard-body {
    padding: 20px;
  }

  .trend-headcard-body h2 {
    font-size: 18px;
  }

  .trend-flash-in {
    flex-direction: column;
    gap: 12px;
  }
}
