.page-news {
  --news-rail-w: 232px;
  --news-card-bg: rgba(12, 44, 74, 0.72);
  --news-edge: rgba(27, 59, 92, 0.95);
  display: block;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: clamp(48px, 8vw, 88px);
}

/* ============ 首屏 ============ */
.page-news .news-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px) 0 clamp(30px, 5vw, 58px);
  border-bottom: 1px solid var(--line-3);
  background:
    radial-gradient(130% 95% at 86% 0%, rgba(53, 242, 224, 0.14), transparent 58%),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-night) 130%);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -14%;
  width: min(64vw, 640px);
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.18), rgba(138, 91, 255, 0.14) 48%, transparent 72%);
  transform: rotate(16deg);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 59, 92, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 59, 92, 0.6) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.28) 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.28) 68%, transparent 100%);
  pointer-events: none;
}

.page-news .breadcrumb__current {
  color: var(--ink-3);
}

.page-news .news-hero__head {
  margin-top: clamp(20px, 4vw, 38px);
}

.page-news .news-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
}

.page-news .news-hero__kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-cyan);
}

.page-news .news-hero__title {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(29px, 6.4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0.025em;
  color: var(--ink);
}

.page-news .news-hero__lede {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

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

.page-news .news-hero__media {
  margin: clamp(26px, 4vw, 44px) 0 0;
}

/* ============ 主体骨架 ============ */
.page-news .news-body {
  padding-top: clamp(32px, 5vw, 64px);
}

.page-news .news-body__grid {
  display: grid;
  gap: 30px;
}

/* ============ 主题索引（移动端为胶囊标签） ============ */
.page-news .news-rail {
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}

.page-news .news-rail__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
}

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

.page-news .news-rail__link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.page-news .news-rail__link:hover,
.page-news .news-rail__link:focus-visible {
  color: var(--c-cyan);
  border-color: rgba(53, 242, 224, 0.55);
  background: rgba(53, 242, 224, 0.07);
}

.page-news .news-rail__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ============ 条目流与区块 ============ */
.page-news .news-flow {
  min-width: 0;
}

.page-news .news-block {
  padding-bottom: clamp(30px, 4vw, 48px);
}

.page-news .news-block__head {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-news .news-block__head .section__lead {
  max-width: 64ch;
}

.page-news .news-gauge {
  height: 12px;
  margin: 0 0 clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line-3);
  background-image: linear-gradient(to right, var(--line-2) 0 1px, transparent 1px);
  background-size: 26px 9px;
  background-repeat: repeat-x;
  background-position: left top;
  opacity: 0.85;
}

/* 最近更新条目 */
.page-news .news-log {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-log__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 18px 20px;
  background: var(--news-card-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow:
    4px 4px 0 -1px var(--c-deep),
    4px 4px 0 0 var(--news-edge);
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}

.page-news .news-log__item:hover {
  border-color: rgba(53, 242, 224, 0.5);
  background: rgba(12, 44, 74, 0.9);
  box-shadow:
    7px 7px 0 -1px var(--c-deep),
    7px 7px 0 0 rgba(53, 242, 224, 0.5);
}

.page-news .news-log__num {
  display: block;
  padding-top: 4px;
  border-top: 2px solid var(--c-amber);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-amber);
}

.page-news .news-log__body {
  min-width: 0;
}

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

.page-news .news-log__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.page-news .news-log__title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 3.4vw, 21px);
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.page-news .news-log__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--ink-2);
}

.page-news .news-log__media {
  margin: 16px 0 0;
}

.page-news .news-log__item--feature {
  border-left: 2px solid var(--c-cyan);
}

/* 按主题浏览 */
.page-news .news-block__head--split {
  display: grid;
  gap: 18px;
}

.page-news .news-topics__badge {
  width: min(46vw, 200px);
  margin: 0;
}

.page-news .news-topics {
  display: grid;
  gap: 14px;
}

.page-news .news-topic {
  position: relative;
  padding: 20px 20px 20px 22px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--c-cyan);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 44, 74, 0.92), rgba(12, 44, 74, 0.5));
  scroll-margin-top: calc(var(--header-h) + 26px);
  transition: border-color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}

.page-news .news-topic:hover {
  background: rgba(12, 44, 74, 0.95);
}

.page-news .news-topic--docs { border-left-color: var(--c-amber); }
.page-news .news-topic--speed { border-left-color: var(--c-cyan); }
.page-news .news-topic--city { border-left-color: var(--c-orange); }
.page-news .news-topic--device { border-left-color: var(--c-glitch); }

.page-news .news-topic__title {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-news .news-topic__text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.page-news .news-topic__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* 季度汇总 */
.page-news .news-quarter {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow-panel);
}

.page-news .news-quarter__band {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-amber) 40%, var(--c-orange) 70%, rgba(255, 122, 61, 0) 100%);
}

.page-news .news-quarter--current {
  display: grid;
  gap: 0;
}

.page-news .news-quarter__media {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.page-news .news-quarter__body {
  padding: 22px 20px 24px;
}

.page-news .news-quarter__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-amber);
}

.page-news .news-quarter__label--muted {
  color: var(--ink-3);
}

.page-news .news-quarter__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 23px);
  line-height: 1.42;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.page-news .news-quarter__list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-news .news-quarter__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.page-news .news-quarter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--c-cyan);
  border-radius: 50%;
}

.page-news .news-quarter__foot {
  margin: 0;
  font-size: 14px;
}

.page-news .news-quarter--past {
  padding-top: 4px;
  background: rgba(12, 44, 74, 0.5);
}

.page-news .news-quarter--past .news-quarter__body,
.page-news .news-quarter--past > .news-quarter__label,
.page-news .news-quarter--past > .news-quarter__title,
.page-news .news-quarter--past > .news-quarter__list,
.page-news .news-quarter--past > .news-quarter__foot {
  margin-left: 20px;
  margin-right: 20px;
}

.page-news .news-quarter--past > .news-quarter__label { margin-top: 20px; }

/* 持续跟进 */
.page-news .news-follow {
  display: grid;
  gap: 14px;
}

.page-news .news-follow__item {
  padding: 20px 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(12, 44, 74, 0.5);
}

.page-news .news-follow__item--lead {
  border-color: rgba(53, 242, 224, 0.36);
  background: linear-gradient(160deg, rgba(12, 44, 74, 0.96), rgba(6, 26, 46, 0.9));
}

.page-news .news-follow__num {
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--c-amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-amber);
}

.page-news .news-follow__title {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-news .news-follow__text {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

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

.page-news .news-follow__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

/* ============ 断点 ============ */
@media (min-width: 720px) {
  .page-news .news-log__item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px 24px;
  }

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

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

@media (min-width: 900px) {
  .page-news .news-quarter--current {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }

  .page-news .news-quarter--current .news-quarter__media {
    height: 100%;
  }

  .page-news .news-quarter--current .media-frame__inner {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-news .news-quarter--current .media-frame__img {
    height: 100%;
  }

  .page-news .news-block__head--split {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    align-items: end;
    gap: 32px;
  }

  .page-news .news-topics__badge {
    width: 100%;
  }
}

@media (min-width: 1000px) {
  .page-news .news-body__grid {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    border-top: 0;
    border-left: 1px solid var(--line-2);
    padding-top: 0;
    padding-left: 22px;
  }

  .page-news .news-rail__list {
    display: grid;
    gap: 2px;
  }

  .page-news .news-rail__link {
    position: relative;
    display: block;
    padding: 9px 10px 9px 24px;
    border: 0;
    border-radius: var(--radius);
  }

  .page-news .news-rail__link::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border: 1px solid var(--c-cyan);
    border-radius: 50%;
    transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  }

  .page-news .news-rail__link:hover::before,
  .page-news .news-rail__link:focus-visible::before {
    background: var(--c-cyan);
    box-shadow: 0 0 10px rgba(53, 242, 224, 0.8);
  }

  .page-news .news-follow {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-auto-rows: min-content;
  }

  .page-news .news-follow__item--lead {
    grid-row: span 2;
  }
}

@media (min-width: 1240px) {
  .page-news .news-log__item {
    padding: 24px 28px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-log__item,
  .page-news .news-topic,
  .page-news .news-rail__link,
  .page-news .news-rail__link::before {
    transition: none;
  }
}
