.page-news {
  --news-rail: 200px;
  color: var(--text);
  font-family: var(--font-body);
  padding-bottom: 72px;
}

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

.page-news .news-hero {
  position: relative;
  isolation: isolate;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: min(46%, 360px);
  height: calc(100% + 14px);
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(18, 224, 200, .16) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(18, 224, 200, .16) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(205deg, #000 8%, transparent 78%);
  mask-image: linear-gradient(205deg, #000 8%, transparent 78%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.page-news .news-hero h1 {
  margin: 10px 0 18px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.page-news .news-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(.95rem, 2.4vw, 1.06rem);
  line-height: 1.8;
  color: var(--text);
  opacity: .9;
}

.page-news .news-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 20px;
}

.page-news .news-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-news .news-meta--live {
  color: var(--cyan);
  border-color: rgba(18, 224, 200, .45);
}

.page-news .news-hero__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 200, .4);
  padding-bottom: 2px;
}

.page-news .news-hero__link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---------- 置顶通告 ---------- */
.page-news .news-pinned {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding: 22px 20px;
  background:
    linear-gradient(155deg, rgba(255, 77, 109, .12), rgba(12, 18, 24, .96) 46%, var(--panel));
  border: 1px solid rgba(255, 77, 109, .4);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-news .news-pinned__body h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.4vw, 1.85rem);
  line-height: 1.24;
  letter-spacing: -.01em;
}

.page-news .news-pinned__body p {
  margin: 0 0 14px;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-pinned__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text);
}

.page-news .news-pinned__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-news .news-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.page-news .news-dot--ok { background: var(--lime); box-shadow: 0 0 7px rgba(124, 255, 107, .55); }
.page-news .news-dot--warn { background: var(--orange); box-shadow: 0 0 7px rgba(255, 106, 31, .55); }
.page-news .news-dot--alert { background: var(--alert); box-shadow: 0 0 7px rgba(255, 77, 109, .6); }

.page-news .news-pinned__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-2);
}

.page-news .news-pinned__figure img {
  width: 100%;
  object-fit: cover;
}

/* ---------- 公告板图 ---------- */
.page-news .news-board {
  margin: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}

.page-news .news-board img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.page-news .news-board figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 动态列表 ---------- */
.page-news .news-log {
  display: grid;
  gap: 26px;
  margin-top: 44px;
}

.page-news .news-log__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: .01em;
}

.page-news .news-log__hint {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-news .news-filter {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-news .news-filter__link {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .24s var(--ease), background .24s var(--ease), border-color .24s var(--ease);
}

.page-news .news-filter__link:hover,
.page-news .news-filter__link:focus-visible {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.page-news .news-log__note {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .news-group {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--bar-h) + 24px);
}

.page-news .news-group:last-child { margin-bottom: 0; }

.page-news .news-group__head {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-news .news-group__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-news .news-group__head h3 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  letter-spacing: .01em;
}

.page-news .news-group__head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-news .news-item {
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-item__box summary {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot time status"
    "dot title title";
  gap: 6px 10px;
  padding: 15px 4px 15px 2px;
  cursor: pointer;
  list-style: none;
  transition: transform .26s var(--ease), background .26s var(--ease);
}

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

.page-news .news-item__box summary:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(18, 224, 200, .05), transparent 70%);
}

.page-news .news-item__box summary:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

.page-news .news-item__dot {
  grid-area: dot;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  color: var(--muted);
  background: currentColor;
  transition: box-shadow .26s var(--ease);
}

.page-news .news-item__dot--ok { color: var(--lime); }
.page-news .news-item__dot--warn { color: var(--orange); }
.page-news .news-item__dot--alert { color: var(--alert); }
.page-news .news-item__dot--info { color: var(--cyan); }
.page-news .news-item__dot--plan { color: var(--muted); }

.page-news .news-item__box summary:hover .news-item__dot {
  box-shadow: 0 0 9px currentColor;
}

.page-news .news-item__time {
  grid-area: time;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .24s var(--ease);
}

.page-news .news-item__box[open] .news-item__time { color: var(--cyan); }

.page-news .news-item__title {
  grid-area: title;
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.page-news .news-item__body {
  max-width: 66ch;
  padding: 2px 0 18px 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-item__body p { margin: 0 0 10px; }
.page-news .news-item__body p:last-child { margin-bottom: 0; }

.page-news .news-item__body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 200, .4);
}

.page-news .news-item__body a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.page-news .news-item__foot {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-news .news-ver {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: .1em;
}

.page-news .news-flow {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-2);
}

.page-news .news-flow img {
  width: 100%;
  object-fit: cover;
}

.page-news .news-flow figcaption {
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 状态标签 ---------- */
.page-news .news-status {
  grid-area: status;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: start;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  cursor: help;
}

.page-news .news-status--ok { color: var(--lime); }
.page-news .news-status--warn { color: var(--orange); }
.page-news .news-status--alert { color: var(--alert); }
.page-news .news-status--info { color: var(--cyan); }
.page-news .news-status--plan { color: var(--muted); border-style: dashed; }

.page-news .news-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: max-content;
  max-width: 216px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.page-news .news-status:hover .news-tip,
.page-news .news-status:focus-within .news-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 版本回溯 ---------- */
.page-news .news-archive {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.page-news .news-archive h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  letter-spacing: .01em;
}

.page-news .news-archive__lead {
  max-width: 60ch;
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-archive__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-news .news-archive__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-archive__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-news .news-archive__text h3 {
  margin: 8px 0 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.page-news .news-archive__text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 跟进 ---------- */
.page-news .news-follow {
  display: grid;
  gap: 22px;
  margin-top: 52px;
  padding: 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(120deg, rgba(18, 224, 200, .07), transparent 58%);
}

.page-news .news-follow h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.24;
  letter-spacing: .01em;
}

.page-news .news-follow p {
  margin: 0 0 18px;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

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

.page-news .news-follow__side p {
  margin-bottom: 12px;
  font-size: 13.5px;
}

.page-news .news-follow__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 200, .4);
  padding-bottom: 2px;
}

.page-news .news-follow__link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.page-news .news-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .24s var(--ease);
}

.page-news .news-top::before {
  content: "↑";
  color: var(--cyan);
}

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

@media (min-width: 720px) {
  .page-news .news-pinned {
    padding: 28px 26px;
  }

  .page-news .news-archive__row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 4px 22px;
  }

  .page-news .news-item__body {
    padding-left: 24px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero {
    padding: 40px 0 46px;
  }

  .page-news .news-pinned {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 28px;
    padding: 30px 30px;
  }

  .page-news .news-log {
    grid-template-columns: var(--news-rail) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-news .news-log__rail {
    position: sticky;
    top: calc(var(--bar-h) + 28px);
    padding-right: 8px;
  }

  .page-news .news-filter {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin-top: 18px;
    padding: 0;
    border-left: 1px solid var(--line);
  }

  .page-news .news-filter__link {
    border: 0;
    border-radius: 0;
    border-left: 2px solid transparent;
    margin-left: -1px;
    padding: 9px 14px;
    background: transparent;
  }

  .page-news .news-filter__link:hover,
  .page-news .news-filter__link:focus-visible {
    background: transparent;
    color: var(--cyan);
    border-left-color: var(--cyan);
  }

  .page-news .news-log__note {
    margin-top: 18px;
    padding-left: 14px;
  }

  .page-news .news-follow {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 36px;
    padding: 34px 32px;
  }

  .page-news .news-follow__side {
    border-left: 1px solid var(--line);
    padding-left: 28px;
  }
}

@media (min-width: 1180px) {
  .page-news {
    --news-rail: 224px;
  }

  .page-news .news-hero h1 {
    max-width: 22ch;
  }

  .page-news .news-item__box summary {
    gap: 8px 14px;
    padding: 18px 6px 18px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item__box summary,
  .page-news .news-status,
  .page-news .news-tip,
  .page-news .news-filter__link {
    transition: none;
  }

  .page-news .news-item__box summary:hover {
    transform: none;
  }
}
