/* ===== 趋势观察 / page-news ===== */
.page-news {
  --news-rail-w: 168px;
  --news-gap: 44px;
  --news-rule: rgba(36, 26, 22, 0.12);
  --news-sand-rule: rgba(228, 178, 92, 0.5);
  position: relative;
  background: var(--by-cream);
  color: var(--by-ink);
  overflow-wrap: break-word;
}

.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news .num {
  background: none;
  padding: 0;
  font-family: var(--font-mono);
}

.page-news .shell {
  box-sizing: border-box;
}

/* ---------- 刊头 ---------- */
.page-news .news-masthead {
  position: relative;
  padding: 76px 0 46px;
  isolation: isolate;
}

.page-news .news-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 35, 63, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 35, 63, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
}

.page-news .news-masthead > .shell {
  position: relative;
  z-index: 1;
}

.page-news .breadcrumb {
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-news .news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--by-slate);
}

.page-news .news-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--by-orange), var(--by-red-deep));
}

.page-news .news-title {
  margin: 0 0 22px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--by-navy);
}

.page-news .news-lede {
  margin: 0 0 26px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(36, 26, 22, 0.76);
}

.page-news .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 通用标题与章节标记 ---------- */
.page-news .news-section {
  padding: 52px 0;
}

.page-news .section-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--by-slate);
}

.page-news .section-marker .num {
  font-weight: 700;
  color: var(--by-red);
  letter-spacing: 0.08em;
}

.page-news .news-h2 {
  margin: 0 0 12px;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 5vw, 37px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--by-navy);
}

.page-news .news-h2--light {
  color: var(--by-paper);
}

.page-news .news-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(36, 26, 22, 0.72);
}

.page-news .news-sub--light {
  color: rgba(247, 241, 230, 0.72);
}

/* ---------- 图片容器 ---------- */
.page-news .news-figure {
  margin: 28px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-news .news-figure--lead {
  aspect-ratio: 16 / 9;
}

/* ---------- 本期看点 ---------- */
.page-news .featured-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--by-navy);
}

.page-news .featured-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--news-sand-rule);
}

.page-news .featured-idx {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(228, 178, 92, 0.95);
}

.page-news .featured-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--by-navy);
}

.page-news .featured-desc {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(36, 26, 22, 0.72);
}

.page-news .featured-when {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--by-slate);
}

/* ---------- 笔记簿 ---------- */
.page-news .news-ledger {
  position: relative;
  padding: 52px 0;
  background: linear-gradient(180deg, rgba(220, 228, 239, 0.5) 0%, rgba(247, 241, 230, 0) 340px);
}

.page-news .news-ledger-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.page-news .news-rail {
  position: static;
  min-width: 0;
}

.page-news .news-rail-head {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--by-slate);
}

.page-news .rail-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-news .rail-list::-webkit-scrollbar {
  display: none;
}

.page-news .rail-link {
  display: block;
  padding: 7px 14px;
  border: 1px solid rgba(36, 26, 22, 0.1);
  border-radius: var(--r-pill);
  background: var(--by-paper);
  font-size: 13.5px;
  white-space: nowrap;
  color: rgba(36, 26, 22, 0.68);
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.page-news .rail-link:hover,
.page-news .rail-link:focus-visible {
  color: var(--by-navy);
  border-color: rgba(226, 58, 46, 0.4);
}

.page-news .rail-link.is-active {
  color: var(--by-navy);
  border-color: rgba(226, 58, 46, 0.5);
  background: #fff;
}

.page-news .news-rail-meta {
  display: none;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--by-slate);
}

.page-news .news-entries {
  min-width: 0;
}

.page-news .note-group + .note-group {
  margin-top: 42px;
}

.page-news .note-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--by-navy);
}

.page-news .note-group-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--by-navy);
}

.page-news .note-group-title::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--by-orange), var(--by-red-deep));
}

.page-news .note-group-count {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--by-slate);
}

.page-news .note {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--news-sand-rule);
}

.page-news .note-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(228, 178, 92, 0.9);
  transition: color 0.25s var(--ease);
}

.page-news .note:hover .note-num,
.page-news .note:focus-within .note-num {
  color: var(--by-red);
}

.page-news .note-main {
  min-width: 0;
}

.page-news .note-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--by-navy);
}

.page-news .note-abstract {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: rgba(36, 26, 22, 0.74);
}

.page-news .note-extra {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--by-slate);
  max-height: 8em;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease);
}

.page-news .note-group-figure {
  margin-top: 22px;
  aspect-ratio: 4 / 3;
}

/* ---------- 版本与更新记录 ---------- */
.page-news .news-log {
  position: relative;
  padding: 56px 0 68px;
  background: linear-gradient(160deg, var(--by-night) 0%, var(--by-navy) 78%);
  color: var(--by-cream);
}

.page-news .news-log::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--by-orange), var(--by-red-deep));
}

.page-news .news-log::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 241, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 230, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-news .news-log > .shell {
  position: relative;
  z-index: 1;
}

.page-news .section-marker--dark {
  color: rgba(247, 241, 230, 0.6);
}

.page-news .news-log .news-sub {
  margin-bottom: 4px;
}

.page-news .news-log-figure {
  margin: 30px 0 0;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(228, 178, 92, 0.28);
}

.page-news .log-list {
  position: relative;
  margin: 36px 0 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.page-news .log-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--by-sand), var(--by-red) 85%);
}

.page-news .log-node {
  position: relative;
  padding-bottom: 20px;
}

.page-news .log-node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--by-sand);
  box-shadow: 0 0 0 4px rgba(12, 26, 46, 0.94);
  transition: background-color 0.3s var(--ease);
}

.page-news .log-node:hover::before {
  background: var(--by-red);
}

.page-news .log-item {
  border-radius: var(--r-md);
}

.page-news .log-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
}

.page-news .log-summary::-webkit-details-marker {
  display: none;
}

.page-news .log-summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--by-sand);
  transition: color 0.25s var(--ease);
}

.page-news .log-item[open] .log-summary::after {
  content: "−";
  color: var(--by-red);
}

.page-news .log-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(228, 178, 92, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--by-sand);
}

.page-news .log-item[open] .log-tag {
  border-color: rgba(226, 58, 46, 0.7);
  color: #F6A79E;
}

.page-news .log-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--by-paper);
}

.page-news .log-when {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 230, 0.52);
}

.page-news .log-changes {
  margin: 4px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(228, 178, 92, 0.22);
}

.page-news .log-changes li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.76;
  color: rgba(247, 241, 230, 0.78);
}

.page-news .log-changes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--by-sand);
}

.page-news .log-why {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--by-red);
  font-size: 14px;
  line-height: 1.72;
  color: rgba(247, 241, 230, 0.66);
}

/* ---------- 专题系列 ---------- */
.page-news .series-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: 26px;
}

.page-news .series-intro {
  min-width: 0;
}

.page-news .series-figure {
  margin: 24px 0 0;
  aspect-ratio: 10 / 7;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.page-news .series-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--by-slate);
}

.page-news .series-note a {
  color: var(--by-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 58, 46, 0.4);
}

.page-news .series-note a:hover {
  border-bottom-color: var(--by-red);
}

.page-news .series-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .series-item {
  position: relative;
  padding: 18px 0 18px 20px;
  border-left: 3px solid var(--by-sand);
  transition: border-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.page-news .series-item + .series-item {
  margin-top: 6px;
}

.page-news .series-item:hover {
  border-left-color: var(--by-red);
  padding-left: 26px;
}

.page-news .series-idx {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--by-slate);
}

.page-news .series-name {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--by-navy);
}

.page-news .series-q {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(36, 26, 22, 0.72);
}

.page-news .series-progress {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--by-slate);
}

.page-news .series-progress .num {
  font-weight: 700;
  color: var(--by-red);
}

/* ---------- 继续往下走 ---------- */
.page-news .news-next {
  padding: 52px 0 76px;
  border-top: 1px solid var(--news-rule);
}

.page-news .next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.page-news .next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(36, 26, 22, 0.09);
  border-radius: var(--r-lg);
  background: var(--by-paper);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-news .next-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--by-orange), var(--by-red-deep));
  transform: scaleX(0.26);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.page-news .next-card:hover,
.page-news .next-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(226, 58, 46, 0.28);
  box-shadow: var(--shadow-soft);
}

.page-news .next-card:hover::before,
.page-news .next-card:focus-visible::before {
  transform: scaleX(1);
}

.page-news .next-idx {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--by-red);
}

.page-news .next-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--by-navy);
}

.page-news .next-card p {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(36, 26, 22, 0.7);
}

.page-news .next-go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--by-red);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 760px) {
  .page-news .featured-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .page-news .featured-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .page-news .featured-idx {
    font-size: 26px;
  }

  .page-news .featured-title {
    font-size: 17.5px;
  }

  .page-news .next-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .page-news .news-masthead {
    padding: 92px 0 56px;
  }

  .page-news .news-section {
    padding: 72px 0;
  }

  .page-news .news-ledger {
    padding: 72px 0;
  }

  .page-news .news-ledger-inner {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
    gap: var(--news-gap);
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--hdr-h-stuck) + 28px);
  }

  .page-news .rail-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    overflow: visible;
    border-left: 1px solid var(--news-rule);
  }

  .page-news .rail-link {
    position: relative;
    padding: 8px 0 8px 16px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
  }

  .page-news .rail-link::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--by-sand);
    transform: translateY(-50%) scaleY(0);
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
  }

  .page-news .rail-link:hover {
    color: var(--by-navy);
    background: none;
    border: 0;
  }

  .page-news .rail-link:hover::before,
  .page-news .rail-link.is-active::before {
    transform: translateY(-50%) scaleY(1);
  }

  .page-news .rail-link.is-active {
    color: var(--by-navy);
    background: none;
    border: 0;
  }

  .page-news .rail-link.is-active::before {
    background: var(--by-red);
  }

  .page-news .news-rail-meta {
    display: block;
  }

  .page-news .note {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 20px;
    padding: 26px 0;
  }

  .page-news .note-num {
    font-size: 70px;
    letter-spacing: -0.04em;
  }

  .page-news .note-title {
    font-size: 20px;
  }

  .page-news .note-abstract {
    font-size: 15px;
  }

  .page-news .note-extra {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .page-news .note:hover .note-extra,
  .page-news .note:focus-within .note-extra {
    max-height: 8em;
    opacity: 1;
    margin-top: 8px;
  }

  .page-news .series-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: start;
  }

  .page-news .news-log {
    padding: 76px 0 88px;
  }

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

  .page-news .news-next {
    padding: 72px 0 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .note-extra,
  .page-news .note-num,
  .page-news .next-card,
  .page-news .next-card::before,
  .page-news .rail-link,
  .page-news .rail-link::before,
  .page-news .series-item {
    transition: none;
  }

  .page-news .next-card:hover {
    transform: none;
  }
}
