/* ================= 更新记录页 ================= */
.page-news {
  --news-track: 22px;
  --news-aside: 214px;
  --paper-ink: #3A3222;
  --paper-dim: #8B7B57;
}

/* ---------- 顶部 ---------- */
.page-news .news-top {
  position: relative;
  padding: 22px 0 32px;
  background:
    radial-gradient(130% 82% at 86% -18%, rgba(233, 166, 60, 0.11), rgba(10, 15, 30, 0) 62%),
    radial-gradient(90% 70% at 2% 108%, rgba(47, 182, 161, 0.08), rgba(10, 15, 30, 0) 60%),
    var(--ink-900);
  border-bottom: 1px solid var(--line);
}

.page-news .news-top .crumb {
  margin-bottom: 22px;
}

.page-news .news-top__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--teal);
}

.page-news .news-top__eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--teal);
}

.page-news .news-top__title {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 8.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-news .news-top__lead {
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--muted);
}

.page-news .news-top__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 0 0 18px;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .news-top__stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-news .news-top__stats .num {
  font-family: var(--font-num);
  font-size: 27px;
  line-height: 1.1;
  color: var(--amber);
}

.page-news .news-top__stats em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-news .news-top__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .news-top__note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 通栏氛围图 ---------- */
.page-news .news-band {
  position: relative;
  margin: 0;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}

.page-news .news-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 38vw, 420px);
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.78;
}

.page-news .news-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 20px 12px;
  font-size: 12.5px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0), rgba(10, 15, 30, 0.92));
}

/* ---------- 章节通用 ---------- */
.page-news .sec {
  padding: 42px 0 6px;
}

.page-news .sec .sec-head {
  margin-bottom: 14px;
}

/* ---------- 置顶条目 ---------- */
.page-news .news-entry--pinned {
  position: relative;
  margin-top: 6px;
  padding-top: 34px;
}

.page-news .news-entry__flag {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 2;
  margin: 0;
}

/* ---------- 条目 ---------- */
.page-news .news-timeline {
  position: relative;
  margin: 22px 0 0;
  padding: 0 0 0 var(--news-track);
  list-style: none;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}

.page-news .news-timeline > li {
  position: relative;
}

.page-news .news-timeline > li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--amber);
}

.page-news .news-entry {
  position: relative;
  display: grid;
  row-gap: 7px;
  margin: 0 0 18px;
  padding: 18px 16px 16px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 8px 0 -5px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-news .news-entry:hover {
  transform: translateY(-4px);
  border-color: #35405e;
  box-shadow: 0 12px 0 -6px rgba(0, 0, 0, 0.45), 0 18px 30px -24px rgba(0, 0, 0, 0.9);
}

.page-news .news-entry--pinned {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(233, 166, 60, 0.08), rgba(19, 26, 44, 0) 46%),
    var(--ink-800);
  box-shadow: 0 0 0 1px rgba(233, 166, 60, 0.18), 0 12px 34px -22px rgba(233, 166, 60, 0.85);
}

.page-news .news-entry--pinned:hover {
  border-color: var(--amber-soft);
}

.page-news .news-entry__time {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-news .news-entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.page-news .news-entry__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .news-entry__body a,
.page-news .news-entry__aside a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-news .news-entry__aside {
  margin-top: 6px;
  padding: 11px 13px;
  background: var(--paper);
  border-radius: var(--r-sm);
  color: var(--paper-ink);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 4px 0 -2px rgba(0, 0, 0, 0.3), 0 12px 18px -14px rgba(0, 0, 0, 0.9);
}

.page-news .news-entry__aside p {
  margin: 0 0 6px;
}

.page-news .news-entry__aside p:last-child {
  margin-bottom: 0;
}

.page-news .news-entry__label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
}

/* ---------- 标签区 ---------- */
.page-news .news-tagboard {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.page-news .news-tagboard__intro .sec-lead {
  margin-top: 0;
}

.page-news .news-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .news-tag {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 152px;
  padding: 14px 18px 14px 16px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-news .news-tag:hover {
  transform: translateY(-3px);
  background: #172034;
}

.page-news .news-tag--benefit {
  border-left-color: var(--paper);
}

.page-news .news-tag--nav {
  border-left-color: var(--teal);
}

.page-news .news-tag__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.page-news .news-tag__meta {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-news .news-tagboard__media {
  margin: 0;
}

.page-news .news-tagboard__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  object-fit: cover;
  opacity: 0.88;
}

/* ---------- 深夜翻阅笔记 ---------- */
.page-news .notes {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.page-news .notes__media {
  margin: 0;
}

.page-news .notes__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  object-fit: cover;
  opacity: 0.86;
}

.page-news .notes__media figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-news .notes__body .sec-lead {
  margin-top: 0;
}

.page-news .notes__list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .note {
  position: relative;
  padding: 16px 18px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .note:hover {
  transform: translateY(-3px);
  border-color: #35405e;
}

.page-news .note__meta {
  margin: 0 0 7px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.page-news .note__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.page-news .note__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 收束 ---------- */
.page-news .news-outro {
  position: relative;
  margin-top: 48px;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.page-news .news-outro > img {
  display: block;
  width: 100%;
  height: clamp(180px, 30vw, 320px);
  object-fit: cover;
  opacity: 0.66;
}

.page-news .news-outro__body {
  position: relative;
  margin-top: -44px;
  padding-bottom: 34px;
}

.page-news .news-outro__lead {
  margin: 0 0 20px;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
}

.page-news .news-outro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.page-news .news-outro__top {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-outro__top:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 760px) {
  .page-news .news-top {
    padding: 30px 0 40px;
  }

  .page-news .news-band figcaption {
    padding-left: 34px;
    padding-right: 34px;
  }

  .page-news .sec {
    padding: 56px 0 8px;
  }

  .page-news .news-entry {
    grid-template-columns: minmax(0, 1fr) var(--news-aside);
    column-gap: 26px;
    row-gap: 8px;
    padding: 20px 22px 20px;
  }

  .page-news .news-entry__time {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .news-entry__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 18px;
  }

  .page-news .news-entry__body {
    grid-column: 1;
    grid-row: 3;
  }

  .page-news .news-entry__aside {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 0;
  }

  .page-news .news-entry--pinned {
    padding-top: 36px;
  }

  .page-news .news-entry__flag {
    left: 22px;
  }
}

@media (min-width: 900px) {
  .page-news .news-tagboard {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 34px;
  }

  .page-news .notes {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    gap: 38px;
  }

  .page-news .news-outro__body {
    margin-top: -56px;
  }
}

/* ---------- 动效尊重偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-news .news-entry,
  .page-news .note,
  .page-news .news-tag,
  .page-news .news-outro__top {
    transition: none;
  }

  .page-news .news-entry:hover,
  .page-news .note:hover,
  .page-news .news-tag:hover {
    transform: none;
  }
}
