.page-news {
  --news-border: rgba(0, 212, 255, 0.28);
  --news-border-dim: rgba(160, 170, 191, 0.14);
  --news-card-bg: #1A2332;
  --news-chip-bg: rgba(160, 170, 191, 0.08);
  position: relative;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* ===== 首屏：倾斜编辑部版式 ===== */
.page-news .news-hero {
  position: relative;
  padding: 40px 0 20px;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(0, 212, 255, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(107, 33, 255, 0.12) 0%, transparent 42%);
  border-bottom: 1px solid var(--news-border-dim);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 72px;
  width: 260px;
  height: 3px;
  background: var(--speed-gradient);
  transform: rotate(-18deg);
  border-radius: 999px;
  opacity: 0.7;
  pointer-events: none;
}

.page-news .news-hero__inner {
  display: grid;
  gap: 24px;
  padding-bottom: 30px;
}

.page-news .news-hero__title-block {
  margin-top: 14px;
}

.page-news .news-hero .display-title {
  margin: 10px 0 0;
  font-family: var(--font-headline);
  font-size: clamp(38px, 8.6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 11em;
}

.page-news .news-hero .lead {
  margin: 22px 0 0;
  max-width: 32em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.page-news .news-hero__side {
  position: relative;
  background: rgba(26, 35, 50, 0.72);
  border: 1px solid var(--news-border-dim);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.page-news .news-hero__side::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, transparent 62%, var(--yellow) 86%, transparent 96%);
  opacity: 0.8;
  pointer-events: none;
}

.page-news .news-hero__side-num {
  font-family: var(--font-headline);
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.page-news .news-hero__side-text {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 25em;
}

/* ===== 悬浮筛选条 ===== */
.page-news .news-filterbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -20px 0 8px;
  padding: 6px 2px 10px;
  z-index: 20;
}

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

@media (min-width: 700px) {
  .page-news .news-filterbar {
    position: sticky;
    top: 84px;
    flex-wrap: wrap;
    margin: -30px 0 8px;
    padding: 10px 0 12px;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.18), rgba(11, 15, 25, 0.9) 30%, rgba(11, 15, 25, 0.9));
    backdrop-filter: blur(10px);
  }
}

.page-news .chip-filter {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--news-border-dim);
  background: var(--news-chip-bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.page-news .chip-filter:hover {
  border-color: var(--blue);
  color: var(--white);
}

.page-news .chip-filter.is-active {
  border-color: var(--blue);
  color: var(--bg);
  background: var(--blue);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.28);
}

/* ===== 最新消息 ===== */
.page-news .section-head {
  margin-bottom: 24px;
}

.page-news .news-latest__grid {
  display: grid;
  gap: 20px;
}

.page-news .news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--news-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--news-border-dim);
  padding: 22px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-news .news-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--speed-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.page-news .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--news-border);
  box-shadow: var(--shadow-blue);
}

.page-news .news-card:hover::after {
  transform: scaleX(1);
}

.page-news .news-card--feature {
  padding: 0;
}

.page-news .news-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.page-news .news-card__media img,
.page-news .changelog-aside__media img,
.page-news .feature-card__media .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news .news-card--feature .news-card__body {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.page-news .news-card__time,
.page-news .news-timeline__version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-news .news-card__title,
.page-news .news-timeline__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-news .news-card--feature .news-card__title {
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.25;
}

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

.page-news .news-card__link {
  margin-top: 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .news-card__link:hover {
  color: var(--yellow);
}

.page-news .news-card--hot {
  background:
    linear-gradient(145deg, rgba(255, 59, 48, 0.08), transparent 60%),
    var(--news-card-bg);
}

@media (min-width: 760px) {
  .page-news .news-latest__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
  }

  .page-news .news-card--feature {
    grid-column: 1 / 5;
    grid-row: span 2;
  }

  .page-news .news-card--side {
    grid-column: 5 / 7;
    padding: 24px;
  }

  .page-news .news-card--inline {
    grid-column: span 3;
    padding: 24px;
  }

  .page-news .news-card--feature .news-card__media {
    aspect-ratio: 16 / 8;
  }
}

@media (min-width: 1100px) {
  .page-news .news-card--feature .news-card__media {
    aspect-ratio: 16 / 6;
  }
}

/* ===== 更新日志时间轴 ===== */
.page-news .news-changelog {
  padding-top: 40px;
}

.page-news .changelog-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

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

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--blue) 0%, var(--violet) 55%, var(--yellow) 100%);
  opacity: 0.9;
}

.page-news .news-timeline__item {
  position: relative;
  padding: 0 0 30px 36px;
}

.page-news .news-timeline__dot {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.14), 0 0 14px rgba(0, 212, 255, 0.6);
}

.page-news .news-timeline__item:nth-child(even) .news-timeline__dot {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(242, 255, 0, 0.13), 0 0 14px rgba(242, 255, 0, 0.5);
}

.page-news .news-timeline__node {
  background: var(--news-card-bg);
  border: 1px solid var(--news-border-dim);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .news-timeline__node:hover {
  border-color: var(--news-border);
  box-shadow: var(--shadow-blue);
}

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

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

.page-news .changelog-aside__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--news-border-dim);
}

.page-news .changelog-aside__caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding: 0 6px;
}

@media (min-width: 900px) {
  .page-news .changelog-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-news .news-timeline::before {
    left: auto;
    right: -2px;
    bottom: 6px;
  }

  .page-news .news-timeline__item {
    padding: 0 44px 30px 0;
  }

  .page-news .news-timeline__dot {
    left: auto;
    right: -9px;
  }

  .page-news .news-timeline__item:nth-child(even) .news-timeline__dot {
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(242, 255, 0, 0.13), 0 0 14px rgba(242, 255, 0, 0.5);
  }

  .page-news .changelog-aside {
    margin-top: 48px;
    position: sticky;
    top: 150px;
  }
}

/* ===== 专题报道 ===== */
.page-news .news-feature-wrap {
  padding-top: 32px;
}

.page-news .news-feature__grid {
  display: grid;
  gap: 28px;
}

.page-news .feature-card {
  position: relative;
  background: var(--news-card-bg);
  border: 1px solid var(--news-border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-news .feature-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--news-border);
  box-shadow: var(--shadow-blue);
}

.page-news .feature-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.page-news .feature-card__media .image-frame {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}

.page-news .feature-card__media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  border: none;
}

.page-news .feature-card__body {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.page-news .feature-card__index {
  font-family: var(--font-headline);
  font-size: 26px;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.9;
}

.page-news .feature-card__title {
  margin: 0;
  font-size: clamp(19px, 2.8vw, 26px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.page-news .feature-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .feature-card--wide .feature-card__media {
  aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
  .page-news .news-feature__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .page-news .feature-card--narrow {
    margin-top: 72px;
  }

  .page-news .feature-card--wide .feature-card__media {
    aspect-ratio: 16 / 7;
  }
}

/* ===== 订阅提示 ===== */
.page-news .news-subscribe {
  padding-top: 16px;
}

.page-news .news-subscribe__inner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--news-border);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(107, 33, 255, 0.18) 58%, rgba(242, 255, 0, 0.05)),
    var(--news-card-bg);
  padding: 40px 26px 36px;
  overflow: hidden;
}

.page-news .news-subscribe__inner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 40%, rgba(0, 212, 255, 0.5) 68%, transparent 88%);
  pointer-events: none;
}

.page-news .news-subscribe .speedline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--speed-gradient);
  opacity: 0.8;
}

.page-news .news-subscribe__title {
  margin: 8px 0 0;
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

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

.page-news .news-subscribe__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

/* ===== 标签与按钮微调 ===== */
.page-news .tag--yellow {
  background: rgba(242, 255, 0, 0.14);
  color: var(--yellow);
  border-color: rgba(242, 255, 0, 0.4);
}

.page-news .button--primary {
  background: var(--blue);
  color: var(--bg);
  border-color: var(--blue);
}

.page-news .button--primary:hover {
  background: transparent;
  color: var(--blue);
}

/* ===== 移动端优化 ===== */
@media (max-width: 420px) {
  .page-news .news-hero {
    padding-top: 28px;
  }

  .page-news .news-card {
    border-radius: var(--radius-md);
    padding: 18px;
  }

  .page-news .news-card--feature .news-card__body {
    padding: 16px 18px 22px;
  }

  .page-news .news-subscribe__inner {
    padding: 32px 20px 30px;
    border-radius: var(--radius-md);
  }
}
