.page-news {
  --news-accent: var(--cyan-500);
  --news-card-bg: rgba(10, 37, 64, 0.72);
  padding-top: var(--header-h);
  color: var(--text-light);
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(25, 211, 230, 0.16), transparent 62%),
    radial-gradient(760px 460px at 96% 2%, rgba(242, 184, 75, 0.10), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 42%, var(--ink-900) 100%);
  overflow-x: hidden;
}

.page-news img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-news .section {
  padding-block: clamp(40px, 6vw, 76px);
}

.page-news .num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--amber-500);
  line-height: 1.1;
}

.page-news .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin: 0;
}

.page-news .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.page-news .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.page-news .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-news .breadcrumb a:hover {
  color: var(--cyan-300);
}

/* ---------- 首屏 ---------- */
.news-hero {
  padding-block: clamp(20px, 3.4vw, 38px) clamp(28px, 4vw, 46px);
}

.news-hero__grid {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.news-hero__title {
  margin: 12px 0 0;
  font-size: clamp(30px, 5.6vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.news-hero__lead {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

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

.news-hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  background: var(--ink-700);
}

.news-hero__figure img {
  width: 100%;
  object-fit: cover;
}

.news-stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 37, 64, 0.66);
}

.news-stats__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- 章节标题 ---------- */
.news-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 740px;
}

.news-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.news-head p:not(.eyebrow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-muted);
}

/* ---------- 筛选栏 ---------- */
.page-news .filter-bar {
  position: sticky;
  top: calc(var(--header-h) + 6px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(6, 26, 47, 0.9);
  backdrop-filter: blur(12px);
}

.page-news .filter-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-news .filter-btn:hover {
  color: var(--cyan-300);
  border-color: var(--cyan-300);
}

.page-news .filter-btn[aria-pressed="true"] {
  color: var(--ink-900);
  background: var(--cyan-500);
  border-color: var(--cyan-500);
}

.page-news .is-filtered-out {
  display: none !important;
}

/* ---------- 时间轴列表 ---------- */
.news-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(25, 211, 230, 0.85), rgba(25, 211, 230, 0.12));
}

.news-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 14px;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--accent, var(--cyan-500));
  box-sizing: border-box;
}

.news-item--version { --accent: var(--cyan-500); }
.news-item--sync { --accent: var(--cyan-300); }
.news-item--cost { --accent: var(--amber-500); }
.news-item--guide { --accent: var(--amber-300); }
.news-item--notice { --accent: var(--text-muted); }

.news-item__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--news-card-bg);
  padding: 16px 16px 18px 20px;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.news-item__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent, var(--cyan-500));
  transition: width 0.24s var(--ease);
}

.news-item:hover .news-item__card::before {
  width: 8px;
}

.news-item:hover .news-item__card {
  border-color: rgba(124, 234, 242, 0.4);
  background: rgba(16, 58, 92, 0.82);
}

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

.news-item__tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent, var(--cyan-500));
  color: var(--accent, var(--cyan-500));
  white-space: nowrap;
}

.news-item__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.news-item__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.015em;
  font-weight: 700;
}

.news-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-muted);
}

/* ---------- 本季目录版本 ---------- */
.news-quarter {
  padding-block: clamp(44px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(6, 26, 47, 0) 0%, rgba(16, 58, 92, 0.62) 16%, rgba(16, 58, 92, 0.62) 84%, rgba(6, 26, 47, 0) 100%);
}

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

.quarter-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.quarter-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(234, 243, 247, 0.95);
  color: var(--text-dark);
  border: 1px solid rgba(42, 74, 99, 0.28);
}

.quarter-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quarter-card__note {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(11, 31, 51, 0.72);
}

.news-quarter__accordion {
  margin-top: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(6, 26, 47, 0.6);
  overflow: hidden;
}

.page-news .accordion__trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text-light);
}

.page-news .accordion__trigger:hover {
  color: var(--cyan-300);
}

.page-news .accordion__panel > div {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-news .accordion__panel p {
  margin: 0 0 10px;
}

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

.news-inline-link {
  color: var(--cyan-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-quarter__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.news-quarter__figure img {
  width: 100%;
  object-fit: cover;
}

.news-quarter__figure figcaption {
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* ---------- 版本迭代 ---------- */
.news-epochs__grid {
  display: grid;
  gap: 26px;
}

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

.epoch {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.epoch:last-child {
  border-bottom: 0;
}

.epoch__range {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber-500);
}

.epoch__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.epoch__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-muted);
}

.news-epochs__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-700);
  align-self: start;
}

.news-epochs__figure img {
  width: 100%;
  object-fit: cover;
}

/* ---------- 更新节奏 ---------- */
.news-rhythm {
  background: linear-gradient(180deg, rgba(25, 211, 230, 0.06), rgba(6, 26, 47, 0));
}

.news-rhythm__grid {
  display: grid;
  gap: 26px;
}

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

.rhythm-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(10, 37, 64, 0.6);
}

.rhythm-item__cycle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan-300);
  align-self: start;
}

.rhythm-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.rhythm-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-muted);
}

.news-rhythm__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
  align-self: start;
}

.news-rhythm__figure img {
  width: 100%;
  object-fit: cover;
}

.news-rhythm__figure figcaption {
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* ---------- 返回费用页 ---------- */
.news-return__panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
}

.news-return__copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.news-return__copy p:not(.eyebrow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-muted);
}

.news-return__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.news-return__links {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.news-return__link {
  display: inline-block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(6, 26, 47, 0.5);
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.news-return__link:hover {
  border-color: var(--cyan-300);
  color: var(--cyan-300);
  transform: translateY(-1px);
}

.page-news .copy-btn {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--amber-500);
  background: rgba(242, 184, 75, 0.1);
  color: var(--amber-300);
  transition: background-color 0.2s var(--ease);
}

.page-news .copy-btn:hover {
  background: rgba(242, 184, 75, 0.2);
}

.news-return__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .news-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quarter-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .news-hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 40px;
  }

  .news-item {
    padding-left: 34px;
    padding-bottom: 16px;
  }

  .news-timeline::before {
    left: 9px;
  }

  .news-item::before {
    left: 3px;
    top: 24px;
  }

  .news-item__card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 22px 20px 24px;
  }

  .news-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding-top: 2px;
  }

  .epoch {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .rhythm-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .news-rhythm__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
  }
}

@media (min-width: 1040px) {
  .news-quarter__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
  }

  .quarter-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-epochs__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: start;
  }

  .news-return__panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 36px;
    align-items: start;
  }

  .news-return__links {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 0;
    padding-left: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .news-return__link:hover {
    transform: none;
  }
}
