/* ===== 品牌专栏 /column/ ===== */
.page-news {
  --nv-version: var(--cyan);
  --nv-squad: var(--orange);
  --nv-update: var(--silver);
  --nv-diary: var(--sage);
  --nv-feature: #d0485f;

  background: var(--ink);
  color: var(--text);
}

.page-news .news-wrap {
  width: var(--shell);
  margin-inline: auto;
}

.page-news a:focus-visible,
.page-news .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */
.page-news .news-mast {
  position: relative;
}

.page-news .mast-band {
  position: relative;
  margin: 0;
  height: clamp(250px, 36vw, 400px);
  overflow: hidden;
}

.page-news .mast-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.68) brightness(0.58);
}

.page-news .mast-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 26, 47, 0.34) 0%, rgba(11, 43, 38, 0.7) 55%, var(--ink) 100%),
    linear-gradient(104deg, rgba(42, 35, 80, 0.58) 0%, rgba(11, 43, 38, 0) 62%);
}

.page-news .mast-band::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 58%, rgba(255, 138, 61, 0) 100%);
  transform: rotate(-0.7deg);
}

.page-news .mast-inner {
  position: relative;
  z-index: 4;
  margin-top: clamp(-108px, -8vw, -40px);
  padding-bottom: clamp(10px, 2vw, 22px);
}

.page-news .breadcrumb,
.page-news .breadcrumb a {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.page-news .breadcrumb a:hover {
  color: var(--cyan);
}

.page-news .breadcrumb [aria-current="page"] {
  color: var(--silver);
}

.page-news .mast-title {
  margin: 10px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-news .mast-lead {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  color: var(--silver);
}

.page-news .mast-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.page-news .mast-stats li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-news .stat-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.page-news .stat-v {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: 0.02em;
  color: var(--cyan);
}

/* ---------- 置顶专题 ---------- */
.page-news .news-feature-wrap {
  padding-top: clamp(24px, 4vw, 44px);
}

.page-news .feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(146deg, var(--indigo) 0%, var(--night) 68%);
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
  overflow: hidden;
}

.page-news .feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 3.4vw, 46px);
}

.page-news .feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-news .feature-text {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

.page-news .feature-body .btn {
  margin-top: 6px;
}

.page-news .feature-media {
  position: relative;
  margin: 0;
  min-height: 200px;
  overflow: hidden;
}

.page-news .feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
}

@media (min-width: 900px) {
  .page-news .feature {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: stretch;
  }

  .page-news .feature-media {
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-news .feature-media img {
    transform: scale(1.14) translate(5%, 0);
  }
}

/* ---------- 分类索引 ---------- */
.page-news .news-topics {
  padding-top: clamp(44px, 6vw, 84px);
}

.page-news .topics-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

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

.page-news .topic-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 3px 14px 3px 14px;
  background: rgba(18, 23, 26, 0.42);
  font-size: 13px;
  color: var(--silver);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.page-news .topic-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
}

.page-news .topic-chip.is-on {
  color: var(--cream);
  border-color: rgba(72, 240, 208, 0.55);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.page-news .topic-chip.is-on .chip-count {
  color: var(--cyan);
}

/* ---------- 条目列表 ---------- */
.page-news .news-list {
  padding-top: clamp(40px, 5vw, 72px);
}

.page-news .list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-news .list-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-news .list-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sage);
}

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

.page-news .entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 28px;
  padding: 24px 0 24px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 220ms var(--ease);
}

.page-news .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 2px;
  background: var(--nv-squad);
}

.page-news .entry--version::before { background: var(--nv-version); }
.page-news .entry--squad::before { background: var(--nv-squad); }
.page-news .entry--update::before { background: var(--nv-update); }
.page-news .entry--diary::before { background: var(--nv-diary); }
.page-news .entry--feature::before { background: var(--nv-feature); }

.page-news .entry:hover,
.page-news .entry:focus-within {
  transform: translateX(6px);
}

.page-news .entry-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.page-news .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 9px;
}

.page-news .entry-tag {
  padding: 3px 10px;
  border-radius: 2px 10px 2px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--night);
  background: var(--silver);
}

.page-news .entry--version .entry-tag { background: var(--cyan); color: var(--night); }
.page-news .entry--squad .entry-tag { background: var(--orange); color: var(--charcoal); }
.page-news .entry--update .entry-tag { background: var(--silver); color: var(--night); }
.page-news .entry--diary .entry-tag { background: var(--sage); color: var(--ink); }
.page-news .entry--feature .entry-tag { background: var(--nv-feature); color: var(--cream); }

.page-news .entry-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.page-news .entry-title {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.page-news .entry-summary {
  margin: 9px 0 0;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  transition: color 200ms var(--ease);
}

.page-news .entry:hover .entry-summary,
.page-news .entry:focus-within .entry-summary {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--silver);
}

.page-news .entry-more {
  margin: 10px 0 0;
  font-size: 13px;
}

.page-news .entry-more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 240, 208, 0.35);
}

.page-news .entry-more a:hover,
.page-news .entry-more a:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-news .entry-thumb {
  grid-column: 1;
  grid-row: 2;
  margin: 14px 0 0;
  width: 88px;
  height: 88px;
  border-radius: 3px 14px 3px 14px;
  overflow: hidden;
}

.page-news .entry-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 820px) {
  .page-news .entry--has-thumb {
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: start;
  }

  .page-news .entry-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 96px;
    height: 96px;
    margin: 4px 0 0;
  }
}

/* ---------- 更新节奏 ---------- */
.page-news .news-rhythm {
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 82px) 0;
  background: linear-gradient(168deg, var(--night) 0%, #071220 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-news .rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 940px) {
  .page-news .rhythm-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.page-news .rhythm-copy h2 {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-news .rhythm-lead {
  margin: 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

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

.page-news .rhythm-list li {
  display: grid;
  gap: 5px 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 560px) {
  .page-news .rhythm-list li {
    grid-template-columns: 178px minmax(0, 1fr);
    align-items: baseline;
  }
}

.page-news .rhythm-key {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-news .rhythm-key::before {
  content: "— ";
}

.page-news .rhythm-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-news .rhythm-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px 20px 4px 20px;
  overflow: hidden;
  background: var(--charcoal);
}

.page-news .rhythm-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
}

.page-news .rhythm-media .media-caption {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: rgba(18, 23, 26, 0.6);
}

/* ---------- 订阅与回访 ---------- */
.page-news .news-sub {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.page-news .sub-panel {
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255, 138, 61, 0.26);
  border-radius: 4px 24px 4px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 138, 61, 0.16) 0%, rgba(255, 138, 61, 0) 58%),
    linear-gradient(150deg, rgba(42, 35, 80, 0.5) 0%, rgba(11, 43, 38, 0.42) 100%);
}

.page-news .sub-panel h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.16;
  color: var(--cream);
}

.page-news .sub-text {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

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

.page-news .sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.page-news .sub-links a {
  font-size: 13.5px;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-news .sub-links a:hover,
.page-news .sub-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 章节索引轨道 ---------- */
.page-news .toc-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  transform: translateY(-50%);
  background: rgba(10, 26, 47, 0.74);
  border: 1px solid var(--line);
  border-radius: 4px 16px 4px 16px;
}

@media (min-width: 1280px) {
  .page-news .toc-rail {
    display: flex;
  }
}

.page-news .toc-rail a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 2px 8px 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sage);
  text-decoration: none;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.page-news .toc-rail a span {
  font-size: 10px;
  color: var(--silver);
}

.page-news .toc-rail a:hover,
.page-news .toc-rail a:focus-visible,
.page-news .toc-rail a.is-active,
.page-news .toc-rail a[aria-current="true"] {
  color: var(--cyan);
  background: rgba(72, 240, 208, 0.08);
}
