/* ============================================================
   行业动态列表页 — 编辑部索引式布局
   仅由 news.html 引入，叠加在 style.css / theme-light.css 之后。
   ============================================================ */

.news-page {
  --news-radius: 24px;
}

/* ---------- Hero：左标题 + 右最新文章 ---------- */
.news-page .page-hero--news {
  padding: clamp(136px, 12vw, 176px) 0 clamp(64px, 7vw, 88px);
}

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.news-hero-copy {
  text-align: left;
}

.news-hero-copy .page-hero-desc {
  max-width: 31em;
}

.news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 30px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.news-hero-meta strong {
  margin-right: 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.news-hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c3cad6;
}

/* ---------- 最新文章卡片 ---------- */
.news-lead {
  height: 100%;
}

.news-lead-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 404px;
  padding: clamp(26px, 2.6vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--news-radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(37, 99, 235, 0.28) 0%, rgba(16, 19, 26, 0) 55%),
    var(--ink);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 30px 70px -40px rgba(16, 19, 26, 0.65);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-lead-link:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: 0 36px 80px -38px rgba(16, 19, 26, 0.7);
}

.news-lead-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.news-lead-motif {
  position: absolute;
  top: -56px;
  right: -56px;
  width: clamp(220px, 30vw, 330px);
  height: auto;
  color: rgba(96, 165, 250, 0.18);
  pointer-events: none;
  transition: color 0.35s ease;
}

.news-lead-link:hover .news-lead-motif {
  color: rgba(96, 165, 250, 0.26);
}

.news-lead-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-lead-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.news-lead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.news-lead-date {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.news-lead-cat {
  margin-top: 26px;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.news-lead-title {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(24px, 2.35vw, 32px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.news-lead-excerpt {
  max-width: 34em;
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.news-lead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.news-lead-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.news-lead-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.news-lead-link:hover .news-lead-arrow {
  transform: translateX(3px);
  border-color: var(--primary);
  background: var(--primary);
}

.news-lead-time {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- 往期文章 ---------- */
.news-archive-section {
  padding: clamp(64px, 8vw, 96px) 0 clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.news-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.news-archive-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.news-archive-sub {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

.news-archive-count {
  margin: 0 0 4px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-archive {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.news-archive > li {
  margin: 0;
  padding: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 88px 120px minmax(0, 1fr) 92px 44px;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin: 0 -20px;
  padding: 26px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-archive > li:last-child .news-row {
  border-bottom: 0;
}

.news-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: #ffffff;
}

.news-row-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.news-row-day {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.news-row-year {
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.news-row-cat {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.news-row-main {
  min-width: 0;
}

.news-row-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.news-row-excerpt {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-row-time {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}

.news-row-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .news-row:hover {
    position: relative;
    z-index: 1;
    border-bottom-color: transparent;
    background: #ffffff;
    box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.35);
  }

  .news-row:hover .news-row-day,
  .news-row:hover .news-row-title {
    color: var(--primary);
  }

  .news-row:hover .news-row-arrow {
    transform: translateX(3px);
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .news-row {
    grid-template-columns: 84px 110px minmax(0, 1fr) 40px;
  }

  .news-row-time {
    display: none;
  }
}

@media (max-width: 1023px) {
  .news-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-hero-copy {
    max-width: 640px;
  }

  .news-lead {
    max-width: 680px;
  }

  .news-lead-link {
    min-height: 0;
  }

  .news-lead-title {
    font-size: clamp(26px, 4vw, 32px);
  }
}

@media (max-width: 767px) {
  .news-page .page-hero--news {
    padding: 124px 0 56px;
  }

  .news-hero-meta {
    margin-top: 24px;
  }

  .news-lead {
    max-width: none;
  }

  .news-lead-link {
    padding: 24px;
    border-radius: 20px;
  }

  .news-lead-cat {
    margin-top: 22px;
  }

  .news-lead-title {
    font-size: 24px;
  }

  .news-lead-excerpt {
    font-size: 13.5px;
  }

  .news-lead-foot {
    padding-top: 22px;
  }

  .news-archive-head {
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .news-archive-sub {
    display: none;
  }

  .news-row {
    grid-template-columns: auto 1fr 36px;
    grid-template-areas:
      "date cat arrow"
      "main main main";
    gap: 10px 14px;
    margin: 0 -12px;
    padding: 22px 12px;
  }

  .news-row-date {
    grid-area: date;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .news-row-day {
    font-size: 15px;
  }

  .news-row-cat {
    grid-area: cat;
    align-self: center;
  }

  .news-row-main {
    grid-area: main;
    margin-top: 2px;
  }

  .news-row-title {
    font-size: 18px;
  }

  .news-row-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
  }

  .news-row-arrow {
    grid-area: arrow;
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-lead-link,
  .news-lead-arrow,
  .news-lead-motif,
  .news-row,
  .news-row-day,
  .news-row-title,
  .news-row-arrow {
    transition: none;
  }

  .news-lead-link:hover,
  .news-lead-link:hover .news-lead-arrow,
  .news-row:hover .news-row-arrow {
    transform: none;
  }
}
