/* ============================================
   新闻页（模块大字 + 头条大卡 + 等高双卡）
   ============================================ */

/* ============ 开场 ============ */
.news-open {
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
}

/* 新闻页头部与列表统一居中 */
.news-open .bigword-head {
  text-align: center;
  justify-content: center;
}

.news-open .kicker {
  justify-content: center;
}

/* ============ 时间线列表卡片（整体居中） ============ */
.news-list {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding-left: 34px;
}

/* 时间线主轴 */
.news-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--violet) 55%, rgba(255, 138, 92, 0.6));
  opacity: 0.35;
}

.nl-item {
  position: relative;
  padding-bottom: 1.3rem;
}

.nl-item:last-child {
  padding-bottom: 0;
}

/* 时间线节点 */
.nl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  transition: all 0.35s var(--ease-out);
  z-index: 1;
}

.nl-item:hover::before {
  border-color: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(255, 138, 92, 0.14);
}

/* 列表卡片（横排：日期栏 + 封面 + 内容） */
.nl-card {
  display: grid;
  grid-template-columns: 96px 210px 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.4s;
}

.nl-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-strong);
}

/* 日期栏（竖排） */
.nl-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
  align-self: stretch;
}

.nl-date .d {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.nl-date .m {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* 封面 */
.nl-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.nl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}

.nl-card:hover .nl-media img {
  transform: scale(1.06);
  opacity: 0.78;
}

/* 内容 */
.nl-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nl-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.tl-tag {
  padding: 0.18rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.72rem;
  background: var(--bg-mist);
  color: var(--primary);
}

.tl-tag.warm {
  background: rgba(255, 138, 92, 0.12);
  color: var(--accent);
}

.nl-body h2 {
  font-size: 1.12rem;
  line-height: 1.5;
  transition: color 0.3s;
}

.nl-card:hover h2 {
  color: var(--primary);
}

.nl-body p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nl-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}

.nl-read .arr {
  transition: transform 0.3s var(--ease-out);
}

.nl-card:hover .nl-read .arr {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .news-list {
    padding-left: 24px;
  }
  .news-list::before {
    left: 6px;
  }
  .nl-item::before {
    left: -22px;
    width: 10px;
    height: 10px;
    border-width: 2.5px;
  }
  .nl-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .nl-date {
    flex-direction: row;
    gap: 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 0.6rem;
    align-items: baseline;
    align-self: auto;
  }
  .nl-date .d {
    font-size: 1.3rem;
  }
  .nl-media {
    aspect-ratio: 16 / 9;
  }
}

/* ============ 文章详情页 ============ */
.article-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
  overflow: hidden;
}

.article-hero .img-box {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.article-hero .img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 26, 0.2) 0%, rgba(6, 8, 26, 0.95) 90%);
}

.article-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
}

.article-hero .tl-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffb08a;
}

.article-hero h1 {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  max-width: 22ch;
}

.article-hero .a-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.63);
}

.article-wrap {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.article-wrap .md-body {
  max-width: 720px;
  margin-inline: auto;
}

.article-wrap .md-body > :first-child {
  margin-top: 0;
}

.article-end-wrap {
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

/* ============ 响应式 ============ */
@media (max-width: 820px) {
  .headline-card {
    grid-template-columns: 1fr;
  }
  .headline-card .hc-media {
    min-height: 220px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}
