.page-news {
  --news-line: rgba(26, 34, 48, 0.14);
  --news-line-soft: rgba(26, 34, 48, 0.08);
  --news-line-dark: rgba(201, 209, 217, 0.18);
  background: var(--paper-100);
  color: var(--text-ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-news .news-crumb {
  padding-top: clamp(14px, 2.2vw, 24px);
  padding-bottom: clamp(4px, 1vw, 10px);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  padding: clamp(10px, 2vw, 20px) 0 clamp(26px, 4vw, 52px);
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: end;
}

.page-news .news-hero__copy h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.page-news .news-hero__lead {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.78;
  color: rgba(26, 34, 48, 0.88);
}

.page-news .news-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--news-line);
}

.page-news .news-hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--metal-600);
}

.page-news .news-hero__meta dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

.page-news .news-hero__figure {
  margin: 0;
  position: relative;
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-news .news-hero__figure img {
  display: block;
  width: 100%;
  height: clamp(190px, 27vw, 300px);
  object-fit: cover;
  max-width: 100%;
}

/* ---------- 置顶公告条 ---------- */
.page-news .pinned-bar {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(201, 209, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 217, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--paper-100);
  padding: clamp(26px, 4vw, 46px) 0 clamp(38px, 5.4vw, 62px);
  clip-path: polygon(0 0, 100% 0, 100% 58%, calc(100% - 52px) 100%, 0 100%);
}

.page-news .pinned-bar__inner {
  max-width: 60em;
}

.page-news .pinned-bar__flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-news .pinned-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43, 224, 200, 0.18);
}

.page-news .pinned-bar h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--paper-100);
}

.page-news .pinned-bar__desc {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(243, 239, 230, 0.82);
}

.page-news .pinned-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 26px);
}

/* ---------- 主体双栏 ---------- */
.page-news .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(30px, 4.4vw, 56px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.page-news .feed-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.page-news .feed-head__note {
  margin: 12px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(26, 34, 48, 0.8);
}

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

.page-news .feed-chips a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-900);
  text-decoration: none;
  background: var(--paper-200);
  border: 1px solid var(--news-line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-news .feed-chips a:hover,
.page-news .feed-chips a:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan-text);
  color: var(--ink-900);
}

/* 分组 */
.page-news .feed-group {
  margin-top: clamp(26px, 3.4vw, 40px);
}

.page-news .feed-group__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--ink-900);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .feed-group__label span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--metal-600);
}

.page-news .feed-group:target .feed-group__label {
  color: var(--cyan-text);
  border-bottom-color: var(--cyan-text);
}

/* 公告条目 */
.page-news .feed-item {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(18px, 2.4vw, 24px) 0;
  border-bottom: 1px solid var(--news-line);
  transition: background-color 0.2s ease;
}

.page-news .feed-item:hover {
  background: rgba(226, 220, 207, 0.45);
}

.page-news .feed-item__bar {
  border-radius: 2px;
  background: var(--metal-600);
}

.page-news .feed-item--ver .feed-item__bar { background: var(--cyan-text); }
.page-news .feed-item--cat .feed-item__bar { background: var(--ink-700); }
.page-news .feed-item--acc .feed-item__bar { background: var(--orange); }
.page-news .feed-item--pat .feed-item__bar { background: var(--metal-600); }

.page-news .feed-item__body { min-width: 0; }

.page-news .feed-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.page-news .f-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-900);
  background: var(--paper-200);
  border: 1px solid var(--news-line);
}

.page-news .f-tag--ver {
  color: var(--cyan-text);
  background: rgba(43, 224, 200, 0.14);
  border-color: rgba(43, 224, 200, 0.5);
}

.page-news .f-tag--cat {
  color: var(--ink-700);
  background: rgba(27, 51, 88, 0.09);
  border-color: rgba(27, 51, 88, 0.26);
}

.page-news .f-tag--acc {
  color: var(--orange-text);
  background: rgba(255, 106, 43, 0.11);
  border-color: rgba(255, 106, 43, 0.4);
}

.page-news .f-tag--pat {
  color: var(--metal-600);
  background: rgba(111, 124, 138, 0.12);
  border-color: rgba(111, 124, 138, 0.36);
}

.page-news .feed-item h4 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.page-news .feed-item__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.76;
  color: rgba(26, 34, 48, 0.84);
}

.page-news .feed-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--metal-600);
}

.page-news .feed-item__link {
  color: var(--cyan-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-news .feed-item__link:hover {
  color: var(--orange-text);
}

.page-news .feed-item__thumb {
  margin: 14px 0 0;
  grid-column: 2;
}

.page-news .feed-item__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--news-line);
}

/* ---------- 侧栏 ---------- */
.page-news .news-aside {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  align-content: start;
}

.page-news .aside-block {
  background: var(--paper-200);
  border: 1px solid var(--news-line);
  padding: clamp(18px, 2.4vw, 24px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-news .aside-block__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--ink-900);
}

.page-news .version-rail {
  position: relative;
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.page-news .version-rail::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  border-left: 1px dashed rgba(27, 51, 88, 0.36);
}

.page-news .version-rail__item {
  position: relative;
  padding-bottom: 16px;
  transition: transform 0.2s ease;
}

.page-news .version-rail__item:last-child { padding-bottom: 0; }

.page-news .version-rail__item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-200);
  border: 1px solid var(--ink-700);
}

.page-news .version-rail__item.is-current::before {
  background: var(--cyan);
  border-color: var(--cyan-text);
  box-shadow: 0 0 0 4px rgba(43, 224, 200, 0.22);
}

.page-news .version-rail__item:hover {
  transform: translateX(3px);
}

.page-news .v-no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-900);
}

.page-news .v-sum {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(26, 34, 48, 0.82);
}

.page-news .v-date {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--metal-600);
}

.page-news .version-rail__item--tail .v-no {
  color: var(--metal-600);
}

.page-news .topic-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .topic-list li {
  border-top: 1px dashed rgba(27, 51, 88, 0.3);
}

.page-news .topic-list li:first-child {
  border-top: 0;
}

.page-news .topic-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-900);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .topic-list a:hover,
.page-news .topic-list a:focus-visible {
  color: var(--cyan-text);
}

.page-news .topic-list span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--metal-600);
}

.page-news .aside-block--dark {
  background: var(--ink-800);
  border-color: var(--ink-700);
  color: var(--paper-100);
}

.page-news .aside-block--dark .aside-block__title {
  color: var(--paper-100);
}

.page-news .aside-block__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(243, 239, 230, 0.82);
}

.page-news .aside-block__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-news .aside-block__link:hover {
  color: var(--paper-100);
}

/* ---------- 专题系列 ---------- */
.page-news .series-band {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(201, 209, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 217, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--paper-100);
  padding: clamp(42px, 6vw, 72px) 0 clamp(44px, 6vw, 76px);
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

.page-news .series-band h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper-100);
}

.page-news .series-band__lead {
  margin: 12px 0 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.76;
  color: rgba(243, 239, 230, 0.8);
}

.page-news .series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(22px, 3vw, 34px);
}

.page-news .series-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.2vw, 22px);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-news .series-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-news .series-card__figure {
  margin: 0 0 4px;
}

.page-news .series-card__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--ink-700);
}

.page-news .series-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.44;
  letter-spacing: -0.01em;
  color: var(--paper-100);
}

.page-news .series-card__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.74;
  color: rgba(243, 239, 230, 0.78);
}

.page-news .series-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-news .series-card__link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-100);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--signal);
}

.page-news .series-card__link:hover {
  color: var(--cyan);
}

/* ---------- 订阅与回看 ---------- */
.page-news .sub-band {
  background: var(--paper-200);
  padding: clamp(36px, 5.2vw, 64px) 0 clamp(40px, 5.6vw, 70px);
  clip-path: polygon(0 0, 100% 26px, 100% 100%, 0 100%);
}

.page-news .sub-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

.page-news .sub-band h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.page-news .sub-band__text {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(26, 34, 48, 0.86);
}

.page-news .sub-band__note {
  margin: 10px 0 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.74;
  color: var(--metal-600);
}

.page-news .sub-band .btn {
  margin-top: clamp(18px, 2.4vw, 24px);
}

.page-news .sub-band__figure {
  margin: 0;
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-news .sub-band__figure img {
  display: block;
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  max-width: 100%;
  object-fit: cover;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-news .feed-item--thumb {
    grid-template-columns: 3px minmax(0, 1fr) 150px;
  }

  .page-news .feed-item--thumb .feed-item__thumb {
    grid-column: auto;
    margin: 0;
    align-self: start;
  }
}

@media (min-width: 880px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-news .sub-band__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

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

@media (min-width: 1024px) {
  .page-news .news-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-news .news-aside {
    position: sticky;
    top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .feed-item,
  .page-news .feed-chips a,
  .page-news .version-rail__item,
  .page-news .series-card,
  .page-news .topic-list a {
    transition: none;
  }

  .page-news .series-card:hover,
  .page-news .version-rail__item:hover {
    transform: none;
  }
}
