/* ===== 更新动态页专属样式 ===== */
.page-news {
  --news-card-bg: #FBF3E8;
  --news-line: rgba(232, 163, 61, 0.22);
}

/* —— 面包屑 —— */
.page-news .breadcrumb {
  background: var(--brown-deep);
}

.page-news .breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0.875rem 0;
  font-size: 0.8125rem;
}

.page-news .breadcrumb__item {
  color: rgba(245, 230, 211, 0.6);
}

.page-news .breadcrumb__item + .breadcrumb__item::before {
  content: "⁄";
  margin-right: 0.5rem;
  color: var(--amber);
}

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

.page-news .breadcrumb__item[aria-current="page"] {
  color: var(--amber);
}

/* —— 首屏 Hero —— */
.page-news .news-hero {
  background: linear-gradient(135deg, #1B110D 0%, var(--brown-deep) 60%, #3A281C 100%);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--amber));
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 55%;
  height: 60%;
  background: rgba(232, 163, 61, 0.07);
  transform: skewX(-14deg);
  border-radius: 2rem;
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-news .news-hero__copy {
  flex: 1;
}

.page-news .news-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-news .news-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 1rem;
}

.page-news .news-hero__lead {
  color: rgba(245, 230, 211, 0.78);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 40rem;
}

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

.page-news .status-panel {
  background: rgba(245, 230, 211, 0.06);
  border: 1px solid rgba(232, 163, 61, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.page-news .status-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

.page-news .status-panel__row + .status-panel__row {
  border-top: 1px solid rgba(245, 230, 211, 0.08);
}

.page-news .status-panel__label {
  color: rgba(245, 230, 211, 0.55);
}

.page-news .status-panel__value {
  color: var(--cream);
  font-family: var(--font-mono);
}

.page-news .status-panel__value .signal-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 0.375rem;
  vertical-align: middle;
}

/* —— 区块标题 —— */
.page-news .section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--news-line);
}

.page-news .section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  color: var(--brown-deep);
  margin: 0;
}

.page-news .section-head__sub {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  max-width: 38rem;
}

.page-news .section-head__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--orange);
  margin: 0;
}

/* —— 最新头条区 —— */
.page-news .news-listing {
  padding: 3.5rem 0;
  background: var(--cream);
}

.page-news .news-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-news .news-filter__item {
  font-size: 0.8125rem;
  color: var(--brown-deep);
  background: rgba(245, 230, 211, 0.75);
  border: 1px solid var(--news-line);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-news .news-filter__item:hover {
  background: var(--light-amber);
  border-color: var(--amber);
}

/* —— 新闻卡片 —— */
.page-news .news-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--news-card-bg);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.375rem 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(43, 30, 22, 0.05);
  scroll-margin-top: 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-news .news-card:hover {
  background: var(--light-amber);
  border-left-color: var(--orange);
}

.page-news .news-card__time {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--orange);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-news .news-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0.5rem;
}

.page-news .news-card__tag--transfer {
  background: rgba(199, 91, 18, 0.14);
  color: var(--orange);
}

.page-news .news-card__tag--field {
  background: rgba(184, 134, 11, 0.15);
  color: var(--gold);
}

.page-news .news-card__tag--notice {
  background: rgba(107, 91, 79, 0.14);
  color: var(--gray);
}

.page-news .news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 0 0 0.375rem;
  color: var(--brown-deep);
}

.page-news .news-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

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

.page-news .news-card__thumb {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: block;
}

/* —— 新闻侧栏 —— */
.page-news .news-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-news .news-aside__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(43, 30, 22, 0.12);
}

.page-news .news-aside__caption {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

.page-news .news-aside__index {
  background: var(--brown-deep);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.page-news .news-aside__index h4 {
  color: var(--amber);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.page-news .news-aside__index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .news-aside__index li + li {
  margin-top: 0.5rem;
}

.page-news .news-aside__index a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-news .news-aside__index a:hover {
  border-bottom-color: var(--lime);
}

/* —— 版本更新记录 —— */
.page-news .version-log {
  background: var(--brown-deep);
  padding: 3.5rem 0;
}

.page-news .section-head--light {
  border-bottom-color: rgba(232, 163, 61, 0.25);
}

.page-news .section-head--light h2 {
  color: var(--cream);
}

.page-news .section-head--light .section-head__sub {
  color: rgba(245, 230, 211, 0.7);
}

.page-news .timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 0.375rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(127, 255, 0, 0.5), rgba(232, 163, 61, 0.2));
}

.page-news .timeline__item {
  position: relative;
  margin-bottom: 1.25rem;
}

.page-news .timeline__dot {
  position: absolute;
  left: -1.9375rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(127, 255, 0, 0.15);
}

.page-news .timeline__card {
  background: rgba(245, 230, 211, 0.06);
  border: 1px solid rgba(245, 230, 211, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.page-news .timeline__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.375rem;
}

.page-news .timeline summary {
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  outline: none;
  list-style: none;
}

.page-news .timeline summary::-webkit-details-marker {
  display: none;
}

.page-news .timeline summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.625rem;
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.page-news .timeline details[open] summary::before {
  content: "−";
}

.page-news .timeline details p {
  color: rgba(245, 230, 211, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0.625rem 0 0.25rem 1.75rem;
}

.page-news .version-log__banner {
  background: rgba(245, 230, 211, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}

.page-news .version-log__banner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-news .version-log__banner p {
  color: rgba(245, 230, 211, 0.7);
  font-size: 0.9375rem;
  margin: 0;
}

.page-news .version-log .btn--ghost {
  color: var(--cream);
  border-color: rgba(232, 163, 61, 0.6);
}

/* —— 历史数据区 —— */
.page-news .history-data {
  background: var(--cream);
  padding: 3.5rem 0;
}

.page-news .history-data__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-news .history-data__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-news .stat-block {
  background: var(--brown-deep);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  border-top: 3px solid var(--amber);
}

.page-news .stat-block__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}

.page-news .stat-block__label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(245, 230, 211, 0.65);
}

.page-news .history-data__tip {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.page-news .history-data__tip a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.4);
}

.page-news .history-data__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-news .history-data__tags span {
  font-size: 0.8125rem;
  color: var(--gray);
  background: rgba(245, 230, 211, 0.5);
  border: 1px solid var(--news-line);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
}

.page-news .history-data__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.page-news #latest,
.page-news #version,
.page-news #data {
  scroll-margin-top: 1.5rem;
}

/* —— 桌面端 —— */
@media (min-width: 768px) {
  .page-news .news-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 3rem;
  }

  .page-news .news-hero__console {
    width: 280px;
    flex-shrink: 0;
  }

  .page-news .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-news .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .page-news .news-card {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .page-news .news-card__time {
    justify-self: start;
  }

  .page-news .timeline {
    padding-left: 2.5rem;
  }

  .page-news .timeline__dot {
    left: -2.4375rem;
  }

  .page-news .history-data__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
  }

  .page-news .history-data__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
