.page-news {
  background: var(--ink);
  color: var(--white);
}

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

.page-news .breadcrumb {
  padding-block: 18px 4px;
}

.page-news .breadcrumb-link {
  color: var(--mist);
}

.page-news .section {
  padding-block: 46px;
}

.page-news .section--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-block: 1px solid rgba(28, 21, 18, 0.14);
}

.page-news .section--paper .lede,
.page-news .section--paper .eyebrow {
  color: rgba(28, 21, 18, 0.72);
}

.page-news .section--paper .coord-dot {
  background: var(--rust);
}

.page-news .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4vw, 2.3rem);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.page-news .section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  display: grid;
  gap: 26px;
  padding-block: 22px 54px;
  isolation: isolate;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30px;
  right: -12%;
  width: 74%;
  height: 76%;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.42), rgba(53, 242, 208, 0.14) 58%, rgba(53, 242, 208, 0) 82%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-news .hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 300;
  margin: 10px 0 16px;
}

.page-news .hero-lede {
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 34em;
  margin: 0 0 22px;
}

.page-news .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-news .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(53, 242, 208, 0.55);
}

.page-news .hero-stat-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-news .hero-stat-key {
  font-size: 0.76rem;
  color: var(--mist);
}

.page-news .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: var(--shadow-panel);
}

.page-news .hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-news .hero-figure-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.72);
}

/* ---------- 索引区 ---------- */
.page-news .index-section {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.page-news .index-shell {
  display: grid;
  gap: 26px;
}

.page-news .rail-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--white);
}

.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-news .filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mist);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-news .filter-btn:hover,
.page-news .filter-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--white);
}

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

.page-news .rail-track {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: rgba(139, 92, 246, 0.07);
}

.page-news .rail-track-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.page-news .rail-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 1px solid var(--line-strong);
}

.page-news .rail-track-item {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mist);
}

.page-news .rail-track-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.page-news .rail-track-item.is-active {
  color: var(--white);
}

.page-news .rail-track-item.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 242, 208, 0.18);
}

.page-news .rail-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-news .index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.page-news .entry {
  border: 1px solid var(--line);
  border-left: 3px solid rgba(53, 242, 208, 0.35);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-news .entry[open] {
  border-left-color: var(--coral);
  border-color: rgba(53, 242, 208, 0.42);
  background: rgba(53, 242, 208, 0.07);
}

.page-news .entry-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "code tag more"
    "title title title";
  gap: 8px 12px;
  align-items: center;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .entry-code {
  grid-area: code;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-news .entry-tag {
  grid-area: tag;
  justify-self: start;
  font-size: 0.68rem;
}

.page-news .entry-title {
  grid-area: title;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
}

.page-news .entry-more {
  grid-area: more;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-news .entry-more::before {
  content: "展开 +";
}

.page-news .entry[open] .entry-more::before {
  content: "收起 −";
}

.page-news .entry-body {
  padding: 0 15px 16px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
  padding-top: 12px;
}

.page-news .entry-body p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-news .entry-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(53, 242, 208, 0.78);
  margin: 0;
}

/* ---------- 3 月推荐 ---------- */
.page-news .month-grid {
  display: grid;
  gap: 14px;
}

.page-news .month-card {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid rgba(28, 21, 18, 0.18);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.page-news .month-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--coral);
}

.page-news .month-card--time::before {
  background: var(--violet);
}

.page-news .month-card--path::before {
  background: var(--rust);
}

.page-news .month-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin: 0 0 8px;
}

.page-news .month-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--paper-ink);
}

.page-news .month-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(28, 21, 18, 0.8);
  margin: 0 0 14px;
}

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

.page-news .month-tags .tag {
  font-size: 0.68rem;
  color: var(--paper-ink);
  background: rgba(28, 21, 18, 0.08);
  border: 1px solid rgba(28, 21, 18, 0.16);
}

.page-news .month-figure {
  margin: 24px 0 0;
  border: 1px solid rgba(28, 21, 18, 0.18);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}

.page-news .month-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 12 / 7;
}

.page-news .month-figure-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--mist);
  background: var(--panel);
  padding: 10px 14px;
}

/* ---------- 评测栏目 ---------- */
.page-news .section-head--split {
  max-width: none;
  display: grid;
  gap: 12px;
}

.page-news .eval-grid {
  display: grid;
  gap: 12px;
}

.page-news .eval-card {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(7, 11, 24, 0.4) 62%);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.page-news .eval-card:hover {
  border-color: rgba(53, 242, 208, 0.55);
  transform: translateY(-3px);
}

.page-news .eval-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin: 0 0 8px;
}

.page-news .eval-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--white);
}

.page-news .eval-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist);
  margin: 0 0 14px;
}

.page-news .eval-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 74, 0.5);
  padding-bottom: 2px;
}

.page-news .eval-link:hover,
.page-news .eval-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

.page-news .eval-figure {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}

.page-news .eval-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  opacity: 0.9;
}

.page-news .eval-figure-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--mist);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 规则库 ---------- */
.page-news .rules-shell {
  display: grid;
  gap: 26px;
}

.page-news .rules-types {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.page-news .type-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 11px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(28, 21, 18, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.page-news .type-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--paper-ink);
}

.page-news .type-note {
  font-size: 0.78rem;
  color: rgba(28, 21, 18, 0.7);
}

.page-news .type-pill--task {
  border-left: 4px solid var(--coral);
}

.page-news .type-pill--time {
  border-left: 4px solid var(--violet);
}

.page-news .type-pill--point {
  border-left: 4px solid var(--cyan);
}

.page-news .type-pill--mix {
  border-left: 4px solid var(--rust);
}

.page-news .rules-steps {
  border: 1px solid rgba(28, 21, 18, 0.2);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.42);
}

.page-news .rules-steps-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin: 0 0 16px;
}

.page-news .steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-news .step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  align-items: start;
}

.page-news .step-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rust);
  opacity: 0.85;
}

.page-news .step-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  color: var(--paper-ink);
}

.page-news .step-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(28, 21, 18, 0.76);
}

.page-news .rules-footnote {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(28, 21, 18, 0.24);
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(28, 21, 18, 0.66);
}

/* ---------- 公告栏 ---------- */
.page-news .bulletin-section {
  background: radial-gradient(120% 90% at 85% 0%, rgba(139, 92, 246, 0.16), rgba(7, 11, 24, 0) 62%), var(--ink-deep);
}

.page-news .bulletin-shell {
  display: grid;
  gap: 22px;
}

.page-news .bulletin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-news .bulletin-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "code meta"
    "title title";
  gap: 4px 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.page-news .bulletin-item:hover {
  background: rgba(53, 242, 208, 0.05);
}

.page-news .bulletin-code {
  grid-area: code;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-news .bulletin-title {
  grid-area: title;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
}

.page-news .bulletin-meta {
  grid-area: meta;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-news .pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 6px 6px 0 -2px rgba(244, 232, 210, 0.4), 12px 12px 0 -4px rgba(244, 232, 210, 0.2);
}

.page-news .pager-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(28, 21, 18, 0.28);
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
}

.page-news .pager-btn[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #1a0d08;
}

.page-news .pager-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(28, 21, 18, 0.68);
}

.page-news .bulletin-figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}

.page-news .bulletin-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 20 / 13;
}

.page-news .bulletin-figure-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--mist);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 更新节奏 ---------- */
.page-news .rhythm-grid {
  display: grid;
  gap: 12px;
}

.page-news .rhythm-card {
  padding: 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(28, 21, 18, 0.18);
  border-top: 3px solid var(--rust);
  background: rgba(255, 255, 255, 0.5);
}

.page-news .rhythm-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin: 0 0 8px;
}

.page-news .rhythm-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--paper-ink);
}

.page-news .rhythm-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.78;
  color: rgba(28, 21, 18, 0.76);
}

.page-news .rhythm-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.page-news .rhythm-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(28, 21, 18, 0.2);
  background: rgba(28, 21, 18, 0.05);
  text-decoration: none;
  color: var(--paper-ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-news .rhythm-link:hover,
.page-news .rhythm-link:focus-visible {
  background: rgba(53, 242, 208, 0.22);
  border-color: rgba(28, 21, 18, 0.4);
}

.page-news .rhythm-link-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rust);
}

.page-news .rhythm-link-text {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(28, 21, 18, 0.8);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-news .entry-summary {
    grid-template-columns: 70px auto 1fr auto;
    grid-template-areas: "code tag title more";
    padding: 15px 18px;
  }

  .page-news .entry-body {
    padding: 12px 18px 18px;
  }

  .page-news .month-grid,
  .page-news .eval-grid,
  .page-news .rhythm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-news .bulletin-item {
    grid-template-columns: 78px 1fr auto;
    grid-template-areas: "code title meta";
    align-items: baseline;
  }

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

@media (min-width: 900px) {
  .page-news .section {
    padding-block: 64px;
  }

  .page-news .news-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
    padding-block: 34px 72px;
  }

  .page-news .hero-lede {
    font-size: 1.05rem;
  }

  .page-news .index-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
  }

  .page-news .rail-sticky {
    position: sticky;
    top: 96px;
  }

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

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

  .page-news .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    align-items: end;
    gap: 24px;
  }

  .page-news .section-head--split .lede {
    margin: 0 0 6px;
  }

  .page-news .rules-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
  }

  .page-news .bulletin-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
  }

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

@media (min-width: 1180px) {
  .page-news .month-card {
    padding: 24px 22px 22px;
  }

  .page-news .month-text,
  .page-news .eval-text {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .entry,
  .page-news .eval-card,
  .page-news .rhythm-link {
    transition: none;
  }

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