/* ===== 趋势观察 /page-news 专属样式 ===== */

.page-news {
  --news-hair: rgba(41, 224, 200, 0.55);
  --news-card-bg: #12161C;
}

/* ---------- 首屏 ---------- */

.page-news .news-hero {
  padding-block: 26px 10px;
}

.page-news .news-hero .breadcrumbs {
  margin-bottom: 20px;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .news-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--mist);
  margin: 12px 0 0;
  max-width: 18em;
}

.page-news .news-hero__text {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

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

.page-news .news-hero__side {
  position: relative;
  border: 1px solid var(--graphite);
  background: var(--news-card-bg);
  padding: 22px 22px 20px;
  overflow: hidden;
}

.page-news .news-hero__side::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--orange), transparent 70%);
  opacity: 0.28;
  transform: rotate(12deg);
  pointer-events: none;
}

.page-news .news-hero__side-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-news .news-hero__side-title {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-news .news-hero__side-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

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

.page-news .news-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-news .news-hero__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  min-width: 4.6em;
}

@media (min-width: 900px) {
  .page-news .news-hero {
    padding-block: 40px 16px;
  }
  .page-news .news-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 46px;
    align-items: start;
  }
  .page-news .news-hero__side {
    margin-top: 42px;
  }
}

/* ---------- 条目筛选与列表 ---------- */

.page-news .news-latest {
  padding-top: 44px;
}

.page-news .news-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-news .news-filter__btn {
  appearance: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border: 1px solid var(--graphite);
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-news .news-filter__btn:hover {
  color: var(--mist);
  border-color: var(--news-hair);
}

.page-news .news-filter__btn[aria-selected="true"] {
  color: #06110F;
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-news .news-filter__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-news .news-feed {
  display: block;
}

.page-news .news-item {
  position: relative;
  border: 1px solid var(--graphite);
  background: var(--news-card-bg);
  padding: 20px 22px 20px 26px;
  margin-bottom: 14px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 180ms var(--ease);
}

.page-news .news-item:hover,
.page-news .news-item:focus-within {
  border-color: var(--news-hair);
  transform: translateX(4px);
  box-shadow: var(--glow-cyan);
}

.page-news .news-item:hover::before,
.page-news .news-item:focus-within::before {
  transform: scaleY(1);
}

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

.page-news .news-item__time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.02em;
}

.page-news .news-item__time::before {
  content: "◷ ";
  color: var(--blue);
}

.page-news .news-item__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-news .news-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 46em;
}

/* 首条大卡片 */

.page-news .news-item--lead {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.page-news .news-item--lead:hover,
.page-news .news-item--lead:focus-within {
  transform: none;
}

.page-news .news-item--lead::before {
  transform: scaleY(1);
  background: linear-gradient(to bottom, var(--orange), var(--cyan));
}

.page-news .news-item--lead .news-item__cover {
  min-height: 190px;
  background: var(--slate-2);
  overflow: hidden;
}

.page-news .news-item--lead .news-item__cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.page-news .news-item--lead .news-item__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news .news-item--lead .news-item__title {
  font-size: clamp(22px, 4.4vw, 30px);
  line-height: 1.24;
}

@media (min-width: 780px) {
  .page-news .news-item--lead {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
  .page-news .news-item--lead .news-item__cover {
    min-height: 260px;
  }
  .page-news .news-item--lead .news-item__cover img {
    min-height: 260px;
  }
}

/* ---------- 版本与性能 ---------- */

.page-news .news-versions {
  padding-top: 52px;
}

.page-news .news-versions__figure {
  margin: 0 0 30px;
}

.page-news .news-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), var(--amber) 32%, var(--blue) 64%, var(--cyan));
}

.page-news .news-timeline__item {
  position: relative;
  padding-bottom: 28px;
}

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

.page-news .news-timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.page-news .news-timeline__item:nth-child(2)::before {
  background: var(--amber);
}

.page-news .news-timeline__item:nth-child(3)::before {
  background: var(--blue);
}

.page-news .news-timeline__item:nth-child(4)::before {
  background: var(--cyan);
}

.page-news .news-timeline__when {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.page-news .news-timeline__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.36;
  color: var(--mist);
}

.page-news .news-timeline__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 42em;
}

.page-news .news-versions__foot {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-news .news-versions__foot a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 189, 245, 0.4);
  padding-bottom: 1px;
}

.page-news .news-versions__foot a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

@media (min-width: 860px) {
  .page-news .news-timeline {
    padding-left: 34px;
  }
  .page-news .news-timeline::before {
    left: 10px;
  }
  .page-news .news-timeline__item::before {
    left: -29px;
    width: 11px;
    height: 11px;
  }
}

/* ---------- 夜间使用笔记 ---------- */

.page-news .news-notes-section {
  padding-top: 52px;
}

.page-news .news-notes {
  border-top: 1px solid var(--graphite);
}

.page-news .news-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--graphite);
}

.page-news .news-note__no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-news .news-note__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.38;
  color: var(--mist);
}

.page-news .news-note__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 44em;
}

.page-news .news-note--with-figure .news-note__figure {
  width: 100%;
  max-width: 200px;
  margin: 4px 0 0;
  grid-column: 2;
}

@media (min-width: 760px) {
  .page-news .news-note--with-figure {
    grid-template-columns: auto 1fr 190px;
    align-items: center;
  }
  .page-news .news-note--with-figure .news-note__figure {
    grid-column: 3;
    max-width: 190px;
    margin: 0;
  }
}

/* ---------- 合作与共建 ---------- */

.page-news .news-coop-section {
  padding-top: 52px;
}

.page-news .news-coop__figure {
  margin: 0 0 26px;
}

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

.page-news .news-coop__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid var(--graphite);
  border-left: 3px solid var(--amber);
  background: var(--slate-2);
  padding: 18px 20px;
  transition: border-color 180ms var(--ease);
}

.page-news .news-coop__item:hover {
  border-color: var(--news-hair);
  border-left-color: var(--cyan);
}

.page-news .news-coop__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.36;
  color: var(--mist);
}

.page-news .news-coop__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 44em;
}

@media (min-width: 720px) {
  .page-news .news-coop__item {
    grid-template-columns: 110px 1fr;
    align-items: start;
    gap: 18px;
  }
}

/* ---------- 订阅这一栏 ---------- */

.page-news .news-sub-section {
  padding-top: 52px;
  padding-bottom: 72px;
}

.page-news .news-sub__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-news .news-sub__title {
  margin: 10px 0 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-news .news-sub__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.74;
  color: var(--muted);
  max-width: 38em;
}

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

.page-news .news-sub__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-news .news-sub__num {
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.page-news .news-sub__mail {
  border: 1px solid var(--graphite);
  border-radius: 2px;
  background: var(--slate-2);
  padding: 18px 20px;
}

.page-news .news-sub__mail-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-news .news-sub__mail-value {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.5;
}

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

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

.page-news .news-sub__mail-alt a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 189, 245, 0.4);
}

.page-news .news-sub__mail-alt a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

@media (min-width: 880px) {
  .page-news .news-sub__panel {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: start;
  }
}

/* ---------- 窄屏兜底 ---------- */

@media (max-width: 420px) {
  .page-news .news-item {
    padding: 18px 16px 18px 20px;
  }
  .page-news .news-note {
    gap: 10px 12px;
  }
  .page-news .news-sub__mail-value {
    font-size: 14px;
  }
}

/* ---------- 降低动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item,
  .page-news .news-item::before,
  .page-news .news-filter__btn {
    transition: none;
  }
  .page-news .news-item:hover,
  .page-news .news-item:focus-within {
    transform: none;
  }
}
