.page-news {
  --nw-line: rgba(79, 216, 208, 0.22);
  --nw-line-soft: rgba(244, 239, 228, 0.11);
  --nw-pad: 20px;
}

.page-news [id] {
  scroll-margin-top: 84px;
}

.page-news section.panel {
  padding: 44px 0 52px;
}

.page-news section.panel + section.panel {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .page-news section.panel {
    padding: 76px 0 88px;
  }
  .page-news section.panel + section.panel {
    margin-top: 24px;
  }
}

.page-news .container {
  padding-inline: var(--nw-pad);
}

@media (min-width: 900px) {
  .page-news .container {
    padding-inline: 0;
  }
}

/* ---------- 通用排版 ---------- */
.page-news h1,
.page-news h2,
.page-news h3 {
  font-family: var(--font-display);
  color: var(--warm);
  margin: 0;
}

.page-news h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-size: clamp(32px, 7.4vw, 64px);
  margin-bottom: 20px;
}

.page-news h2 {
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.04;
  font-size: clamp(24px, 4.2vw, 40px);
  margin-bottom: 16px;
}

.page-news h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(17px, 2.2vw, 21px);
  margin-bottom: 8px;
}

.page-news p {
  margin: 0;
  line-height: 1.75;
  color: var(--mist);
  font-size: 16px;
}

@media (min-width: 900px) {
  .page-news p {
    font-size: 17px;
  }
}

.page-news .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 0 0 18px;
}

.page-news .eyebrow__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.45);
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.06em;
}

.page-news .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-news .img-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--nw-line-soft);
  background: var(--lift-blue);
}

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

.page-news .img-frame__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  padding: 10px 14px;
  border-top: 1px solid var(--nw-line-soft);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  padding-top: 26px;
}

.page-news .breadcrumb {
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 34px;
}

.page-news .breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 216, 208, 0.4);
  padding-bottom: 1px;
}

.page-news .breadcrumb a:hover {
  color: var(--orange-soft);
  border-bottom-color: var(--orange-soft);
}

.page-news .breadcrumb__sep {
  margin: 0 8px;
  color: rgba(159, 176, 201, 0.55);
}

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

@media (min-width: 900px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
  }
}

.page-news .news-hero__lede {
  max-width: 34em;
  font-size: 17px;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-news .news-hero__lede {
    font-size: 18px;
  }
}

.page-news .news-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-news .news-hero__side {
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.page-news .news-hero__side::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 107, 26, 0));
}

.page-news .news-hero__side-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange-soft);
  margin-bottom: 12px;
}

.page-news .news-hero__side-ver {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  color: var(--warm);
  line-height: 1;
  letter-spacing: 0.01em;
}

.page-news .news-hero__side-when {
  font-size: 13px;
  color: var(--cyan);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.page-news .news-hero__facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--nw-line-soft);
  display: grid;
  gap: 10px;
}

.page-news .news-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--mist);
}

.page-news .news-hero__facts .mono {
  font-size: 18px;
  font-weight: 700;
  color: var(--warm);
  min-width: 2.4em;
}

/* ---------- 本月更新要点 ---------- */
.page-news .news-month__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .page-news .news-month__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 52px;
  }
}

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

.page-news .news-month__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nw-line-soft);
}

.page-news .news-month__idx {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.4);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.page-news .news-month__body p {
  color: var(--mist);
}

.page-news .news-month__fig {
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .page-news .news-month__fig {
    margin-top: 46px;
  }
}

/* ---------- 版本时间线 ---------- */
.page-news .news-timeline__lede {
  max-width: 34em;
  margin-bottom: 26px;
}

.page-news .news-timeline__fig {
  margin-bottom: 22px;
}

.page-news .news-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--nw-line-soft);
}

.page-news .news-chips::-webkit-scrollbar {
  height: 4px;
}

.page-news .news-chips::-webkit-scrollbar-thumb {
  background: rgba(79, 216, 208, 0.3);
  border-radius: 2px;
}

.page-news .news-chips__hint {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(159, 176, 201, 0.7);
  white-space: nowrap;
  margin-left: 6px;
}

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

.page-news .news-tl__item {
  position: relative;
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.page-news .news-tl__item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--nw-line);
}

.page-news .news-tl__item:last-child::before {
  bottom: auto;
  height: 32px;
}

.page-news .news-tl__node {
  position: absolute;
  left: 4px;
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--ink);
  display: block;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}

.page-news .news-tl__node::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.page-news .news-tl__node--rev {
  border-color: var(--cyan);
  background: var(--cyan);
}

.page-news .news-tl__node:hover,
.page-news .news-tl__node:focus-visible {
  box-shadow: 0 0 0 4px rgba(79, 216, 208, 0.22);
  transform: scale(1.15);
}

.page-news .news-tl__item:target {
  background: rgba(255, 107, 26, 0.07);
  box-shadow: inset 3px 0 0 var(--orange);
}

.page-news .news-tl__item:focus-within {
  background: rgba(79, 216, 208, 0.05);
}

.page-news .news-tl__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .news-tl__when {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-news .news-ver {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(79, 216, 208, 0.09);
  border: 1px solid rgba(79, 216, 208, 0.34);
  border-radius: 999px;
  padding: 5px 13px;
  min-height: 32px;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.page-news .news-ver:hover,
.page-news .news-ver:focus-visible {
  background: rgba(79, 216, 208, 0.2);
  border-color: var(--cyan);
  color: var(--warm);
}

.page-news .news-ver[data-copied] {
  color: var(--orange-soft);
  border-color: var(--orange-soft);
}

.page-news .news-ver[data-copied]::after {
  content: "已复制";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--brown);
  background: var(--orange-soft);
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

.page-news .news-tl__desc {
  max-width: 46em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-news .news-tl__item {
    padding-left: 44px;
  }
  .page-news .news-tl__item::before {
    left: 15px;
  }
  .page-news .news-tl__node {
    left: 8px;
  }
  .page-news .news-tl__desc {
    font-size: 16px;
  }
}

/* ---------- 版本号规则 ---------- */
.page-news .news-rules__lede {
  max-width: 34em;
  margin-bottom: 30px;
}

.page-news .news-rules__diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--nw-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-blue);
}

@media (min-width: 760px) {
  .page-news .news-rules__diagram {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-news .news-rules__seg {
  padding: 22px 20px 24px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.page-news .news-rules__seg:last-child {
  border-bottom: none;
}

@media (min-width: 760px) {
  .page-news .news-rules__seg {
    border-bottom: none;
    border-right: 1px solid var(--nw-line-soft);
  }
  .page-news .news-rules__seg:last-child {
    border-right: none;
  }
}

.page-news .news-rules__tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
  margin-bottom: 14px;
}

.page-news .news-rules__val {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.page-news .news-rules__seg h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.page-news .news-rules__seg p {
  font-size: 14px;
  line-height: 1.68;
}

.page-news .news-rules__sub {
  margin-top: 36px;
  margin-bottom: 14px;
}

.page-news .news-rules__advice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .page-news .news-rules__advice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.page-news .news-rules__advice li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--nw-line-soft);
  border-radius: var(--radius);
  background: rgba(22, 38, 61, 0.55);
}

.page-news .news-rules__advice p {
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 兼容性 ---------- */
.page-news .news-compat__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 26px;
}

@media (min-width: 900px) {
  .page-news .news-compat__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 52px;
  }
}

.page-news .news-compat__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.page-news .news-compat__stats .stat {
  padding: 18px 16px;
  border: 1px solid var(--nw-line);
  border-radius: var(--radius);
  background: rgba(17, 30, 51, 0.7);
  display: grid;
  gap: 6px;
}

.page-news .news-compat__stats .stat__num {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.page-news .news-compat__stats .stat__label {
  font-size: 13px;
  color: var(--mist);
}

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

.page-news .news-compat__list li {
  padding: 15px 0 15px 18px;
  border-bottom: 1px solid var(--nw-line-soft);
  position: relative;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-news .news-compat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-news .news-compat__list strong {
  color: var(--warm);
  font-weight: 700;
  margin-right: 6px;
}

.page-news .news-compat__fig {
  border-radius: var(--radius);
}

/* ---------- 分类标签变更 ---------- */
.page-news .news-tags__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

@media (min-width: 900px) {
  .page-news .news-tags__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 52px;
  }
}

.page-news .news-tags__fig {
  border-radius: var(--radius);
}

.page-news .news-tags__lede {
  max-width: 34em;
  margin-bottom: 24px;
}

.page-news .news-tags__list {
  margin: 0;
  border-top: 1px solid var(--nw-line-soft);
}

.page-news .news-tags__row {
  padding: 16px 0;
  border-bottom: 1px solid var(--nw-line-soft);
  display: grid;
  gap: 6px;
}

@media (min-width: 620px) {
  .page-news .news-tags__row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }
}

.page-news .news-tags__row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--warm);
  line-height: 1.5;
}

.page-news .news-tags__k {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.4);
  border-radius: 2px;
  padding: 1px 6px;
  margin-right: 8px;
  vertical-align: 2px;
}

.page-news .news-tags__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-news .news-tags__note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 107, 26, 0.06);
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

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

@media (min-width: 700px) {
  .page-news .news-series__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1080px) {
  .page-news .news-series__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .page-news .news-series__card:nth-child(even) {
    transform: translateY(30px);
  }
}

.page-news .news-series__card {
  padding: 22px 20px 24px;
  border: 1px solid var(--nw-line-soft);
  border-radius: var(--radius);
  background: rgba(17, 30, 51, 0.62);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.page-news .news-series__card:hover {
  border-color: var(--nw-line);
  background: rgba(22, 38, 61, 0.82);
}

.page-news .news-series__idx {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin: 0;
}

.page-news .news-series__card h3 {
  font-size: 18px;
}

.page-news .news-series__card p {
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-series__when {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(159, 176, 201, 0.8);
  margin-top: auto;
  padding-top: 6px;
}

.page-news .news-series__link {
  display: inline-block;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 216, 208, 0.4);
  padding-bottom: 1px;
  align-self: flex-start;
  min-height: 24px;
}

.page-news .news-series__link:hover,
.page-news .news-series__link:focus-visible {
  color: var(--orange-soft);
  border-bottom-color: var(--orange-soft);
}

/* ---------- 订阅通知 ---------- */
.page-news .news-sub__box {
  border-radius: var(--radius);
  padding: 28px 22px;
  display: grid;
  gap: 26px;
}

@media (min-width: 900px) {
  .page-news .news-sub__box {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
    padding: 44px 40px;
    align-items: start;
  }
}

.page-news .news-sub__lede {
  max-width: 32em;
  margin-bottom: 24px;
}

.page-news .news-sub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .news-sub__details {
  border: 1px solid var(--nw-line-soft);
  border-radius: var(--radius);
  background: rgba(11, 20, 36, 0.4);
  padding: 4px 18px;
}

.page-news .news-sub__details summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--warm);
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
  padding-right: 26px;
}

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

.page-news .news-sub__details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--orange);
  transition: transform var(--t) var(--ease);
}

.page-news .news-sub__details[open] summary::after {
  content: "−";
}

.page-news .news-sub__details ul {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--nw-line-soft);
  padding-top: 14px;
}

.page-news .news-sub__details li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  padding-left: 14px;
  position: relative;
}

.page-news .news-sub__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-deep);
}

.page-news .news-sub__details strong {
  color: var(--cyan);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- 聚焦与减弱动效 ---------- */
.page-news a:focus-visible,
.page-news button:focus-visible,
.page-news summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .page-news .news-series__card:nth-child(even) {
    transform: none;
  }
}
