.page-news {
  background: var(--color-primary);
  color: #ffffff;
}

/* ===== Hero ===== */
.page-news .news-hero {
  position: relative;
  padding: 112px 0 48px;
  background:
    radial-gradient(circle at 18% 100%, rgba(0, 212, 255, 0.16), transparent 46%),
    radial-gradient(circle at 92% 12%, rgba(255, 107, 53, 0.18), transparent 40%),
    var(--color-primary);
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  overflow: hidden;
}

.page-news .news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .news-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 12px 0 16px;
  color: #ffffff;
}

.page-news .news-hero__desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0;
}

.page-news .news-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.16), rgba(0, 212, 255, 0.09));
  border: 1px solid rgba(255, 107, 53, 0.4);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.page-news .news-hero__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
}

.page-news .news-hero__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-news .news-hero__stat-value {
  font-family: var(--font-data);
  font-size: 28px;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.page-news .news-hero__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== 热门标签 ===== */
.page-news .news-tags {
  padding: 20px 0 8px;
  background: var(--color-primary);
}

.page-news .news-tags__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.16);
}

.page-news .news-tags__heading {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-news .news-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .news-tags__item {
  display: inline-flex;
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .news-tags__item:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--color-highlight);
}

.page-news .news-tags__item--accent {
  background: rgba(255, 107, 53, 0.2);
  border-color: rgba(255, 107, 53, 0.42);
  color: #ffd4c0;
}

.page-news .news-tags__item--highlight {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.4);
  color: #c9f6ff;
}

.page-news .news-tags__item--success {
  background: rgba(107, 142, 35, 0.22);
  border-color: rgba(107, 142, 35, 0.5);
  color: #dfeba8;
}

.page-news .news-tags__item--warning {
  background: rgba(210, 105, 30, 0.22);
  border-color: rgba(210, 105, 30, 0.5);
  color: #ffddbb;
}

/* ===== 日志主体 ===== */
.page-news .news-journal {
  padding: 56px 0 48px;
  background: var(--color-primary);
}

.page-news .news-journal__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.page-news .news-journal__heading {
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 1.2;
  color: #ffffff;
  margin: 8px 0 0;
}

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

.page-news .news-journal__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .news-journal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.page-news .news-journal__btn:hover {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.4);
}

.page-news .news-journal__btn--active {
  color: var(--color-primary);
  font-weight: 500;
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

/* ===== 时间轴 ===== */
.page-news .news-journal__timeline {
  position: relative;
}

.page-news .news-post {
  display: grid;
  grid-template-columns: 56px 12px 1fr;
  column-gap: 8px;
  margin-bottom: 32px;
  position: relative;
  scroll-margin-top: 96px;
}

.page-news .news-post__time {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-highlight);
  text-align: right;
  padding-top: 30px;
}

.page-news .news-post__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-news .news-post__rail::before {
  content: '';
  position: absolute;
  top: 42px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.45), rgba(0, 212, 255, 0.08));
}

.page-news .news-post:last-child .news-post__rail::before {
  bottom: 12px;
}

.page-news .news-post__dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.55), 0 0 12px rgba(255, 107, 53, 0.4);
}

/* ===== 文章卡片 ===== */
.page-news .news-post__card {
  position: relative;
  min-width: 0;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.045);
  border-left: 3px solid var(--color-highlight);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-news .news-post__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--color-accent);
}

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

.page-news .tag--accent {
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.42);
  color: #ffd7c3;
}

.page-news .tag--highlight {
  background: rgba(0, 212, 255, 0.16);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #c8f5ff;
}

.page-news .tag--success {
  background: rgba(107, 142, 35, 0.2);
  border: 1px solid rgba(107, 142, 35, 0.5);
  color: #dfe9ad;
}

.page-news .tag--warning {
  background: rgba(210, 105, 30, 0.2);
  border: 1px solid rgba(210, 105, 30, 0.5);
  color: #ffd9b6;
}

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

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

.page-news .news-post__title {
  font-family: var(--font-headline);
  font-size: 19px;
  line-height: 1.38;
  color: #ffffff;
  margin: 0 0 10px;
}

.page-news .news-post__excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 14px;
}

.page-news .news-post__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-highlight);
  transition: color 0.2s var(--ease);
}

.page-news .news-post__link:hover {
  color: var(--color-accent);
}

.page-news .news-post__figure {
  margin: 0;
  min-height: 160px;
  overflow: hidden;
  background: rgba(0, 212, 255, 0.1);
}

.page-news .news-post__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

/* ===== 底部 CTA ===== */
.page-news .news-cta {
  padding: 64px 0 80px;
  background: var(--color-bg-alt);
}

.page-news .news-cta__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 28px;
  background: var(--color-primary);
  border: 1px solid rgba(0, 212, 255, 0.25);
  overflow: hidden;
}

.page-news .news-cta__panel::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent 70%);
  pointer-events: none;
}

.page-news .news-cta__content {
  position: relative;
  z-index: 1;
}

.page-news .news-cta__title {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 8px;
}

.page-news .news-cta__text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.page-news .news-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== 桌面增强 ===== */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 132px 0 64px;
  }

  .page-news .news-hero__inner {
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
  }

  .page-news .news-hero__desc {
    font-size: 17px;
  }

  .page-news .news-journal__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }

  .page-news .news-journal__heading-block {
    max-width: 560px;
  }

  .page-news .news-post {
    grid-template-columns: 120px 32px 1fr;
    column-gap: 16px;
    margin-bottom: 40px;
  }

  .page-news .news-post__time {
    font-size: 14px;
    padding-top: 36px;
  }

  .page-news .news-post__rail::before {
    top: 52px;
    bottom: -40px;
  }

  .page-news .news-post__dot {
    width: 14px;
    height: 14px;
    margin-top: 36px;
  }

  .page-news .news-post__card {
    padding: 24px 26px;
  }

  .page-news .news-post__media {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 24px;
  }

  .page-news .news-post__media > .news-post__body {
    order: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-news .news-post__media > .news-post__figure {
    order: 1;
    height: 100%;
    min-height: 100%;
  }

  .page-news .news-post__media--flip > .news-post__body {
    order: 1;
  }

  .page-news .news-post__media--flip > .news-post__figure {
    order: 0;
  }

  .page-news .news-post__title {
    font-size: 21px;
  }

  .page-news .news-post__excerpt {
    font-size: 15px;
  }

  .page-news .news-cta__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 48px;
  }

  .page-news .news-cta__title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .page-news .news-post__media {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
