/* ===== 专题中心 page-news ===== */
.page-news {
  --news-pad: 22px;
  --news-radius: 4px;
}

/* --- Hero --- */
.page-news .news-hero {
  padding-top: 24px;
}

.page-news .news-hero__grid {
  row-gap: 28px;
  align-items: end;
}

.page-news .news-hero__text h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 6.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
  color: var(--ink);
  max-width: 18em;
}

.page-news .news-hero__text .prose {
  font-size: 16px;
  color: rgba(22, 48, 42, 0.86);
}

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

.page-news .news-ledger {
  border-left: 3px solid var(--orange);
  background: var(--white);
}

.page-news .news-ledger .meta {
  display: block;
  margin-bottom: 10px;
  color: var(--mute);
}

.page-news .news-ledger .index-item {
  border-bottom: 1px dashed var(--line);
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.page-news .news-ledger .index-item:last-child {
  border-bottom: 0;
}

.page-news .news-ledger .index-item__val {
  font-family: var(--mono);
  color: var(--ink);
}

.page-news .news-ledger__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* --- 通用小标题 --- */
.page-news .news-head {
  margin-bottom: 26px;
}

.page-news .news-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 12px;
}

.page-news .news-head--on-dark h2 {
  color: var(--paper);
}

.page-news .news-head--on-dark .prose {
  color: var(--on-dark);
}

.page-news .eyebrow--on-dark {
  color: var(--orange);
}

/* --- 最新上架 --- */
.page-news .news-latest {
  border-top: 1px solid var(--line);
}

.page-news .news-latest__grid {
  row-gap: 24px;
  align-items: stretch;
}

.page-news .news-update {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--news-radius);
  padding: var(--news-pad);
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.page-news .news-update:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.page-news .news-update--lead {
  background: var(--white);
}

.page-news .news-update--lead .figure__media {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 2px;
}

.page-news .news-update--lead .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-update__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-news .news-pixel {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--seal);
  box-shadow: 0 0 0 2px rgba(178, 58, 46, 0.18);
  flex: none;
}

.page-news .news-update__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}

.page-news .news-update__sum {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(22, 48, 42, 0.84);
  margin: 0 0 14px;
  flex: 1;
}

.page-news .news-update__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* --- 栏目导航 --- */
.page-news .news-shelf {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-news .news-shelf__grid {
  row-gap: 26px;
  align-items: start;
}

.page-news .news-shelf__art .figure__media {
  overflow: hidden;
  border-radius: 2px;
  background: var(--white);
}

.page-news .news-shelf__art .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-shelf__cap {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin: 10px 0 0;
  line-height: 1.7;
}

.page-news .news-shelf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.page-news .news-shelf__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas:
    "code name"
    "code desc";
  column-gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.page-news .news-shelf__item:first-child {
  border-top: 1px solid var(--line);
}

.page-news .news-shelf__code {
  grid-area: code;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.page-news .news-shelf__name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.page-news .news-shelf__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(22, 48, 42, 0.78);
  margin-top: 3px;
}

/* --- 专题列表 --- */
.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.page-news .news-filter .chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.page-news .news-filter .chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--ink);
}

.page-news .news-filter .chip:hover {
  border-color: var(--ink);
}

.page-news .news-filter .chip:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.page-news .news-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-news .news-entry {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--news-radius);
  padding: 18px 20px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.page-news .news-entry:hover {
  border-color: var(--ink);
  border-left-color: var(--orange);
  box-shadow: var(--shadow);
}

.page-news .news-entry__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}

.page-news .news-entry__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-news .news-entry__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.page-news .news-entry__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.page-news .news-entry__sum {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(22, 48, 42, 0.82);
  margin: 0 0 12px;
  max-width: 60em;
}

.page-news .news-entry__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* --- 往期回顾 --- */
.page-news .news-archive .news-archive__art {
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 2px;
  margin-bottom: 30px;
}

.page-news .news-archive .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}

.page-news .news-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-news .news-timeline__item {
  flex: 1 0 180px;
  position: relative;
  padding: 30px 18px 0 0;
  border-top: 2px solid var(--dark-line);
}

.page-news .news-timeline__item::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border: 3px solid var(--night);
}

.page-news .news-timeline__when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--on-dark-dim);
  margin: 0 0 6px;
}

.page-news .news-timeline__what {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 6px;
}

.page-news .news-timeline__where {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 0;
  max-width: 22em;
}

.page-news .news-archive__link {
  margin: 26px 0 0;
}

.page-news .news-archive__link .btn {
  color: var(--paper);
  border-color: var(--dark-line);
}

/* --- 投稿与共建 --- */
.page-news .news-contribute {
  border-top: 1px solid var(--line);
}

.page-news .news-contribute__grid {
  row-gap: 30px;
  align-items: start;
}

.page-news .news-contribute__text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 14px;
}

.page-news .news-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: none;
}

.page-news .news-steps__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}

.page-news .news-steps__item:last-child {
  border-bottom: 1px dashed var(--line);
}

.page-news .news-steps__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.page-news .news-steps__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(22, 48, 42, 0.86);
}

.page-news .news-steps__body strong {
  color: var(--ink);
  font-weight: 600;
}

.page-news .news-contribute__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.page-news .news-contribute__art .figure__media {
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.page-news .news-contribute__art .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-contribute__art .figure__caption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
  margin: 10px 0 0;
}

/* ===== 响应式：移动端优先，单列不溢出 ===== */
.page-news .grid > .col-3,
.page-news .grid > .col-4,
.page-news .grid > .col-5,
.page-news .grid > .col-6,
.page-news .grid > .col-7 {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .page-news {
    --news-pad: 24px;
  }

  .page-news .grid > .col-3 {
    grid-column: span 3;
  }

  .page-news .grid > .col-4 {
    grid-column: span 4;
  }

  .page-news .grid > .col-5 {
    grid-column: span 5;
  }

  .page-news .grid > .col-6 {
    grid-column: span 6;
  }

  .page-news .grid > .col-7 {
    grid-column: span 7;
  }

  .page-news .news-latest__grid {
    row-gap: 24px;
  }

  /* 上密下疏：越往下卡片间距越松 */
  .page-news .news-entries {
    gap: 18px;
  }

  .page-news .news-entry:nth-child(n + 5) {
    padding: 22px 24px;
  }

  .page-news .news-entry:nth-child(n + 9) {
    padding: 26px 28px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero {
    padding-top: 34px;
  }

  .page-news .news-hero__text .prose {
    font-size: 17px;
  }

  .page-news .news-shelf__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }

  .page-news .news-shelf__item:first-child {
    border-top: 1px solid var(--line);
  }

  .page-news .news-shelf__item:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .page-news .news-timeline__item {
    flex: 1 1 0;
  }

  .page-news .news-entries {
    gap: 22px;
  }

  .page-news .news-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "head head"
      "title title"
      "sum meta";
    align-items: end;
    column-gap: 26px;
  }

  .page-news .news-entry__head {
    grid-area: head;
  }

  .page-news .news-entry__title {
    grid-area: title;
  }

  .page-news .news-entry__sum {
    grid-area: sum;
    margin-bottom: 0;
  }

  .page-news .news-entry__meta {
    grid-area: meta;
    border-top: 0;
    padding-top: 0;
    text-align: right;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-update,
  .page-news .news-entry,
  .page-news .news-filter .chip {
    transition: none;
  }
}
