/* ============================================
   page-news —— 最新动态
   专题策划 · 热点分类 · 动态列表
   ============================================ */

.page-news {
  --feature-pad: 28px;
  --index-width: 220px;
}

/* ---------- 面包屑 ---------- */
.page-news .breadcrumb {
  padding-top: 32px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
}

.page-news .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .breadcrumb a {
  color: var(--moss);
  text-decoration: none;
  transition: color .25s;
}

.page-news .breadcrumb a:hover {
  color: var(--terra);
}

.page-news .breadcrumb li + li::before {
  content: "·";
  color: var(--silver);
  margin-right: 6px;
}

.page-news .breadcrumb li[aria-current="page"] {
  color: var(--ink);
}

/* ---------- 专题策划 ---------- */
.page-news .feature-section {
  padding-top: 40px;
}

.page-news .feature-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 255, 136, .14), transparent 42%),
    radial-gradient(circle at 12% 110%, rgba(46, 107, 62, .35), transparent 55%),
    linear-gradient(138deg, var(--deep-blue) 0%, #0E2238 70%, var(--deep-blue) 100%);
  color: var(--rice);
}

.page-news .feature-frame::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, .22);
  box-shadow:
    0 0 0 30px rgba(0, 255, 136, .04),
    0 0 0 60px rgba(0, 255, 136, .025);
  pointer-events: none;
}

.page-news .feature-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(248, 245, 239, .16);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.page-news .feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: var(--feature-pad);
}

.page-news .feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 20px;
}

.page-news .feature-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--neon);
  opacity: .8;
}

.page-news .feature-frame h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  color: var(--rice);
  font-weight: 700;
  max-width: 14em;
}

.page-news .feature-highlight {
  color: var(--neon);
}

.page-news .feature-desc {
  margin: 0 0 24px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(248, 245, 239, .76);
  font-weight: 300;
}

.page-news .feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-news .feature-actions .btn--ghost {
  border-color: rgba(248, 245, 239, .55);
  color: var(--rice);
}

.page-news .feature-actions .btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.page-news .feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(248, 245, 239, .18);
}

.page-news .feature-stats .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  min-width: 90px;
}

.page-news .feature-stats .stat dt,
.page-news .feature-stats .stat dd {
  margin: 0;
}

.page-news .feature-stats .stat-value {
  font-family: var(--font-data);
  font-size: 25px;
  line-height: 1.2;
  color: var(--neon);
  letter-spacing: .02em;
}

.page-news .feature-stats .stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(248, 245, 239, .6);
}

.page-news .feature-media {
  align-self: stretch;
  min-height: 200px;
}

.page-news .feature-media .img-frame {
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: rotate(1deg);
  transition: transform .45s var(--ease-out);
}

.page-news .feature-frame:hover .feature-media .img-frame {
  transform: rotate(0deg);
}

/* ---------- 热点分类 ---------- */
.page-news .news-topic-section {
  padding-top: 64px;
}

.page-news .topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.page-news .topic-tabs .chip {
  border: 1px solid var(--silver);
  background: transparent;
  color: var(--rock);
  cursor: pointer;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  transition:
    background-color .25s,
    border-color .25s,
    color .25s,
    box-shadow .25s;
}

.page-news .topic-tabs .chip:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.page-news .topic-tabs .chip.is-active {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--rice);
  box-shadow: 0 8px 20px rgba(46, 107, 62, .18);
}

/* ---------- 动态列表 ---------- */
.page-news .news-feed-section {
  position: relative;
  padding-top: 72px;
  padding-bottom: 96px;
}

.page-news .news-feed-section::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 140px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(46, 107, 62, .1);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 22px rgba(46, 107, 62, .03),
    0 0 0 44px rgba(46, 107, 62, .02);
  pointer-events: none;
  z-index: 0;
  opacity: .8;
}

.page-news .feed-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: start;
}

/* 左侧索引（移动端为横向滚动） */
.page-news .feed-index {
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--silver);
  padding-bottom: 4px;
}

.page-news .feed-index::-webkit-scrollbar {
  display: none;
}

.page-news .feed-index .eyebrow {
  display: none;
}

.page-news .feed-index ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 2px;
}

.page-news .feed-index li {
  flex: 0 0 auto;
}

.page-news .feed-index a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--silver);
  border-radius: var(--radius-pill);
  color: var(--rock);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .25s, color .25s;
}

.page-news .feed-index a:hover {
  border-color: var(--moss);
  color: var(--moss);
}

/* 右侧文章流 */
.page-news .feed-stream {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.page-news .feed-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(192, 192, 192, .5);
  box-shadow: none;
  transition:
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out),
    border-color .3s var(--ease-out);
}

.page-news .feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(46, 107, 62, .4);
}

/* 媒体卡片 */
.page-news .feed-card--media .img-frame {
  border-radius: 0;
  height: 100%;
  overflow: hidden;
}

.page-news .feed-card--media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease-out);
}

.page-news .feed-card--media:hover img {
  transform: scale(1.04);
}

.page-news .feed-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  min-width: 0;
}

.page-news .feed-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.page-news .feed-card-meta .chip {
  background: rgba(184, 93, 62, .1);
  color: var(--terra);
  border: 1px solid rgba(184, 93, 62, .25);
  font-size: 12px;
  padding: 5px 12px;
}

.page-news .feed-card-time {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--rock);
  letter-spacing: .04em;
}

.page-news .feed-card-time::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--silver);
}

.page-news .feed-card-time.is-fresh::before {
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 136, .55);
}

.page-news .feed-card-body h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  transition: color .25s;
}

.page-news .feed-card:hover .feed-card-body h3 {
  color: var(--moss);
}

.page-news .feed-card-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--rock);
  font-weight: 300;
}

.page-news .feed-card-hover {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--terra);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height .35s var(--ease-out),
    opacity .35s var(--ease-out),
    visibility .35s,
    margin-top .35s var(--ease-out);
}

.page-news .feed-card:hover .feed-card-hover {
  max-height: 180px;
  opacity: 1;
  visibility: visible;
  margin-top: 4px;
}

.page-news .feed-card-hover a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 107, 62, .3);
  transition: border-color .25s, color .25s;
}

.page-news .feed-card-hover a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* 纯文字卡片 */
.page-news .feed-card--plain .feed-card-body {
  flex-direction: row;
  gap: 14px;
  padding: 26px 24px;
  align-items: flex-start;
}

.page-news .feed-card-index {
  flex: 0 0 44px;
  width: 44px;
  font-family: var(--font-data);
  font-size: 36px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--silver);
  transition: -webkit-text-stroke-color .3s, transform .3s;
}

.page-news .feed-card--plain:hover .feed-card-index {
  -webkit-text-stroke-color: var(--terra);
  transform: translateX(6px);
}

.page-news .feed-card-content {
  min-width: 0;
  flex: 1;
}

/* ---------- 图片基础 ---------- */
.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 响应式：平板 ---------- */
@media (min-width: 640px) {
  .page-news .feed-card--media {
    grid-template-columns: 240px 1fr;
  }

  .page-news .feed-card--plain .feed-card-body {
    gap: 18px;
  }

  .page-news .feed-card-index {
    flex-basis: 56px;
    width: 56px;
    font-size: 48px;
  }
}

/* ---------- 响应式：桌面 ---------- */
@media (min-width: 992px) {
  .page-news .feature-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding: var(--feature-pad) 40px;
  }

  .page-news .feature-media {
    min-height: 260px;
  }

  .page-news .news-topic-section {
    padding-top: 80px;
  }

  .page-news .news-feed-section {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .page-news .feed-layout {
    grid-template-columns: var(--index-width) 1fr;
    gap: 48px;
  }

  .page-news .feed-index {
    position: sticky;
    top: 96px;
    overflow: visible;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-news .feed-index .eyebrow {
    display: inline-flex;
    margin-bottom: 20px;
  }

  .page-news .feed-index ul {
    display: block;
    padding: 0;
    border-left: 1px solid var(--silver);
  }

  .page-news .feed-index li + li {
    margin-top: 2px;
  }

  .page-news .feed-index a {
    position: relative;
    display: block;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding: 10px 0 10px 20px;
    background: transparent;
    white-space: normal;
    font-size: 14px;
  }

  .page-news .feed-index a:hover {
    border-left-color: var(--moss);
    color: var(--moss);
    background: transparent;
  }

  .page-news .feed-index a::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 10px rgba(0, 255, 136, .7);
    opacity: 0;
    transition: opacity .25s;
  }

  .page-news .feed-index a:hover::before {
    opacity: 1;
  }

  .page-news .feed-stream {
    gap: 28px;
  }
}
