/* ===== 页面作用域：.page-news ===== */
.page-news {
  --news-grid-line: rgba(28, 27, 24, 0.026);
  --news-panel-bg: #ffffff;
  position: relative;
  background-color: var(--color-snow);
  background-image:
    linear-gradient(to right, var(--news-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--news-grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ---- 顶部上下文条 ---- */
.page-news .news-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
}

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

/* ---- 页头 ---- */
.page-news .news-head {
  position: relative;
  margin-top: 24px;
  padding: 24px 0 8px 20px;
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(100deg, rgba(201, 162, 39, 0.1) 0%, rgba(247, 246, 242, 0) 62%);
}

.page-news .news-head .page-head__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-red);
  text-transform: uppercase;
}

.page-news .news-head .page-head__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--color-deep-blue);
}

.page-news .news-head .page-head__desc {
  max-width: 780px;
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--color-ink);
}

/* ---- 筛选命令栏 ---- */
.page-news .news-filter {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: 20px -16px 0;
  padding: 12px 16px;
  background: rgba(247, 246, 242, 0.93);
  border-bottom: 1px solid var(--color-stone);
  backdrop-filter: blur(8px);
}

.page-news .news-filter__label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-mist);
  text-transform: uppercase;
}

.page-news .news-filter .filter-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-news .news-filter .filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--color-stone);
  background-color: var(--color-snow);
  color: var(--color-deep-blue);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.page-news .news-filter .filter-btn.is-active {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff;
}

/* ---- 章节标题微调 ---- */
.page-news .section-head {
  margin-top: 32px;
}

.page-news .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-deep-blue);
  margin: 8px 0;
}

.page-news .section-lead {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--color-mist);
}

/* ---- 媒体占位 ---- */
.page-news .news-visual {
  position: relative;
  margin: 20px 0;
  border: 1px solid var(--color-stone);
  background: linear-gradient(120deg, rgba(226, 221, 209, 0.5), var(--color-snow) 72%);
  overflow: hidden;
}

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

.page-news .news-visual--top {
  margin-top: 28px;
}

.page-news .news-visual--bottom {
  margin-top: 8px;
}

/* ---- 最近更新：时间轴 ---- */
.page-news .news-timeline {
  position: relative;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 20px;
  top: 24px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-barley) 58%, var(--color-stone) 100%);
}

.page-news .news-timeline__item {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 0 58px;
}

.page-news .news-timeline__node {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-deep-blue);
  color: var(--color-snow);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.1);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 4px;
}

.page-news .news-timeline__card {
  position: relative;
  background: var(--news-panel-bg);
  border: 1px solid var(--color-stone);
  border-top: 3px solid var(--color-gold);
  padding: 18px 16px 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-news .news-timeline__card:hover {
  box-shadow: 0 10px 26px rgba(22, 42, 74, 0.08);
  transform: translateY(-2px);
}

.page-news .news-timeline__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.page-news .news-timeline__date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-mist);
}

.page-news .news-timeline__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-deep-blue);
}

.page-news .news-timeline__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
}

.page-news .news-timeline__details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-stone);
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-timeline__details summary {
  cursor: pointer;
  color: var(--color-gold);
  font-weight: 600;
  outline: none;
}

.page-news .news-timeline__details p {
  margin: 10px 0 0;
  color: var(--color-ink);
}

/* ---- 专题公告 ---- */
.page-news .news-bulletins {
  margin-top: 40px;
}

.page-news .news-bulletins__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.page-news .news-bulletins__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-stone);
  background-color: var(--news-panel-bg);
  border-radius: 0;
  transition: box-shadow 0.2s ease;
}

.page-news .news-bulletins__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 130%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red) 42%, var(--color-gold) 42%, var(--color-gold) 100%);
  transform: skewX(-24deg);
  transform-origin: left top;
}

.page-news .news-bulletins__card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold) 42%, var(--color-deep-blue) 42%, var(--color-deep-blue) 100%);
}

.page-news .news-bulletins__card .card__body {
  padding: 24px 22px 22px;
}

.page-news .news-bulletins__tagline {
  margin-bottom: 10px;
}

.page-news .news-bulletins__card .card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-deep-blue);
}

.page-news .news-bulletins__card .card__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
}

.page-news .news-bulletins__visual {
  margin-top: 24px;
}

/* ---- 版本记录索引 ---- */
.page-news .news-version-index {
  margin-top: 48px;
}

.page-news .news-version-index__layout {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.page-news .news-version-index__list {
  position: relative;
  border-left: 1px solid var(--color-stone);
  padding-left: 20px;
}

.page-news .news-version-index__year {
  position: relative;
  padding: 0 0 18px 14px;
}

.page-news .news-version-index__year::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.page-news .news-version-index__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-news .news-version-index__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px;
  background-color: var(--color-deep-blue);
  color: var(--color-snow);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.page-news .news-version-index__date {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-deep-blue);
}

.page-news .news-version-index__desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-mist);
}

.page-news .news-version-index__aside {
  position: relative;
  background-color: var(--color-deep-blue);
  color: var(--color-snow);
  padding: 24px 20px 22px;
  overflow: hidden;
}

.page-news .news-version-index__aside::after {
  content: "V3.2 → V4.0";
  position: absolute;
  right: -22px;
  bottom: -4px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: rgba(247, 246, 242, 0.07);
  white-space: nowrap;
  pointer-events: none;
}

.page-news .news-version-index__chart {
  margin: 0 0 18px;
}

.page-news .news-version-index__aside .news-version-index__chart img {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-news .news-version-index__note {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-snow);
  border-left: 3px solid var(--color-gold);
  padding-left: 12px;
}

.page-news .news-version-index__aside .btn {
  position: relative;
  z-index: 1;
}

/* ---- 订阅提示 ---- */
.page-news .news-subscribe {
  margin-top: 56px;
}

.page-news .news-subscribe__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(155deg, var(--color-deep-blue) 0%, var(--color-deep-blue) 62%, rgba(201, 162, 39, 0.88) 62%, var(--color-gold) 100%);
  color: var(--color-snow);
  padding: 40px 24px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-news .news-subscribe__index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 2px 10px;
  margin-bottom: 12px;
}

.page-news .news-subscribe__box .section-title {
  color: var(--color-snow);
  margin: 0 0 10px;
}

.page-news .news-subscribe__text {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 246, 242, 0.92);
}

.page-news .news-subscribe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .news-subscribe__actions .btn--ghost {
  border-color: rgba(247, 246, 242, 0.42);
  color: var(--color-snow);
}

.page-news .news-subscribe__actions .btn--ghost:hover {
  background: rgba(247, 246, 242, 0.1);
}

/* ---- 桌面端增强 ---- */
@media (min-width: 768px) {
  .page-news .news-filter {
    margin: 24px 0 0;
    padding: 14px 18px;
  }

  .page-news .news-filter .filter-group {
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-news .news-timeline {
    margin-top: 28px;
  }

  .page-news .news-timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }

  .page-news .news-timeline__item {
    width: 50%;
    margin: 0;
    padding: 0 56px 40px 0;
  }

  .page-news .news-timeline__item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 40px 56px;
  }

  .page-news .news-timeline__node {
    left: auto;
    right: -21px;
    top: 4px;
  }

  .page-news .news-timeline__item:nth-child(even) .news-timeline__node {
    right: auto;
    left: -21px;
  }

  .page-news .news-bulletins__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .page-news .news-version-index__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 40px;
  }

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

  .page-news .news-subscribe__actions {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-news .news-head .page-head__title {
    font-size: 40px;
  }

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

  .page-news .news-head .page-head__eyebrow {
    font-size: 14px;
  }
}
