.page-news {
  --news-dim: rgba(246, 240, 226, 0.62);
  --news-line: rgba(224, 169, 60, 0.26);
  --news-line-soft: rgba(224, 169, 60, 0.14);
  --news-net: rgba(143, 216, 206, 0.055);
  display: block;
}

/* ---------- 面包屑 ---------- */
.page-news .news-topline {
  background: var(--c-abyss);
  border-bottom: 1px solid var(--news-line-soft);
  padding-block: 14px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(118% 88% at 86% 4%, rgba(43, 163, 148, 0.3), transparent 62%),
    radial-gradient(90% 70% at 8% 100%, rgba(200, 24, 43, 0.22), transparent 66%),
    linear-gradient(178deg, #0B2540 0%, #061726 100%);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--news-net) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, var(--news-net) 0 1px, transparent 1px 13px);
}

.page-news .news-hero .cx-wrap {
  position: relative;
  z-index: 1;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4.4vw, 46px);
  align-items: center;
}

.page-news .news-hero__copy .cx-h1 {
  margin: 10px 0 16px;
}

.page-news .news-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-news .news-hero__shot {
  margin: 0;
}

.page-news .news-hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(224, 169, 60, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(11, 37, 64, 0.45);
}

.page-news .news-hero__shot .cx-media__cap {
  display: block;
  margin-top: 10px;
  color: var(--news-dim);
}

.page-news .news-hero__meters {
  list-style: none;
  margin: clamp(28px, 4.6vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--news-line);
  border: 1px solid var(--news-line);
}

.page-news .news-meter {
  background: rgba(7, 27, 44, 0.82);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-news .news-meter__num {
  font-size: 26px;
  line-height: 1.1;
  color: var(--c-gold-lt);
  letter-spacing: 0.04em;
}

.page-news .news-meter__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--news-dim);
}

/* ---------- 专题条目列表 ---------- */
.page-news .news-roll-band {
  background:
    linear-gradient(180deg, #061726 0%, #0B2540 42%, #061726 100%);
  position: relative;
}

.page-news .news-roll__head {
  max-width: 46em;
}

.page-news .news-roll__note {
  margin-top: 14px;
  color: var(--news-dim);
  font-size: 16px;
  line-height: 1.75;
}

.page-news .news-roll {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--news-line);
}

.page-news .news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 18px 4px 18px 16px;
  border-bottom: 1px solid var(--news-line-soft);
  transition: background-color 260ms var(--speed), padding-left 260ms var(--speed);
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 3px;
  height: 17px;
  border-radius: 1px;
  background: var(--c-gold);
  transition: height 260ms var(--speed), top 260ms var(--speed);
}

.page-news .news-item--season::before { background: var(--c-red); }
.page-news .news-item--version::before { background: var(--c-gold); }
.page-news .news-item--play::before { background: var(--c-jade); }
.page-news .news-item--community::before { background: var(--c-jade-lt); }

.page-news .news-item:hover,
.page-news .news-item:focus-within {
  background: rgba(224, 169, 60, 0.05);
}

.page-news .news-item:hover::before,
.page-news .news-item:focus-within::before {
  height: 26px;
  top: 16px;
}

.page-news .news-item__tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--c-paper);
  border: 1px solid rgba(224, 169, 60, 0.42);
  border-radius: 2px;
  background: rgba(200, 24, 43, 0.14);
  transition: background-color 240ms var(--speed), border-color 240ms var(--speed), color 240ms var(--speed);
}

.page-news .news-item:hover .news-item__tag,
.page-news .news-item:focus-within .news-item__tag {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-paper);
}

.page-news .news-item__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-news .news-item__title a {
  color: var(--c-paper);
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--c-neon), var(--c-neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 340ms var(--speed), color 200ms var(--speed);
}

.page-news .news-item__title a:hover,
.page-news .news-item__title a:focus-visible {
  background-size: 100% 1px;
  color: var(--c-gold-lt);
}

.page-news .news-item__meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--news-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.page-news .news-item__meta .cx-mono {
  color: var(--c-gold);
  font-size: 12.5px;
}

.page-news .news-item__dot {
  color: rgba(224, 169, 60, 0.6);
}

/* ---------- 版本手记（纸带） ---------- */
.page-news .news-log {
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-log__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.page-news .news-log__intro {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #3b332c;
}

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

.page-news .news-log__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-gold) 0%, rgba(140, 16, 32, 0.35) 100%);
}

.page-news .news-log__row {
  position: relative;
  padding: 0 0 22px 26px;
}

.page-news .news-log__row:last-child {
  padding-bottom: 0;
}

.page-news .news-log__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 2px solid var(--c-red);
  box-shadow: 0 0 0 3px rgba(200, 24, 43, 0.12);
}

.page-news .news-log__when {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--c-red-deep);
  font-weight: 700;
}

.page-news .news-log__what {
  margin: 6px 0 6px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.page-news .news-log__desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3b332c;
  max-width: 40em;
}

/* ---------- 房间热度榜 ---------- */
.page-news .news-rank {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #061726 0%, #0B2540 68%, #061726 100%);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-rank__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.page-news .news-rank__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
}

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

.page-news .news-rank__head {
  max-width: 46em;
}

.page-news .news-rank__note {
  margin-top: 14px;
  color: var(--news-dim);
  font-size: 16px;
  line-height: 1.75;
}

.page-news .news-bars {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-news .news-bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.page-news .news-bar__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-paper);
  letter-spacing: -0.01em;
}

.page-news .news-bar__num {
  font-size: 20px;
  color: var(--c-gold-lt);
  letter-spacing: 0.04em;
}

.page-news .news-bar__track {
  position: relative;
  height: 10px;
  border-radius: 2px;
  background: rgba(246, 240, 226, 0.1);
  overflow: hidden;
}

.page-news .news-bar__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-gold) 56%, var(--c-neon) 100%);
}

.cx-js .page-news .news-bar__fill {
  width: 0;
  transition: width 820ms var(--speed);
}

.cx-js .page-news .news-bar.is-in .news-bar__fill {
  width: var(--w, 0%);
}

.page-news .news-bar__meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--news-dim);
}

.page-news .news-rank__foot {
  margin: clamp(26px, 4vw, 38px) 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--c-jade);
  background: rgba(43, 163, 148, 0.1);
  color: rgba(246, 240, 226, 0.84);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 玩法拆解与社区回声 ---------- */
.page-news .news-echo {
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(43, 163, 148, 0.16), transparent 62%),
    linear-gradient(180deg, #061726 0%, #0B2540 100%);
}

.page-news .news-echo__head {
  max-width: 46em;
}

.page-news .news-echo__note {
  margin-top: 14px;
  color: var(--news-dim);
  font-size: 16px;
  line-height: 1.75;
}

.page-news .news-echo__grid {
  margin-top: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-news .news-echo__shot {
  margin: 0;
  position: relative;
}

.page-news .news-echo__shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(224, 169, 60, 0.32);
  border-radius: var(--radius);
}

.page-news .news-echo__shot .cx-media__cap {
  display: block;
  margin-top: 9px;
  color: var(--news-dim);
}

.page-news .news-echo__cols {
  margin-top: clamp(28px, 4.4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
}

.page-news .news-echo__col .cx-h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--news-line);
  color: var(--c-gold-lt);
}

.page-news .news-echo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: echo;
}

.page-news .news-echo__list li {
  counter-increment: echo;
  position: relative;
  padding: 0 0 16px 34px;
}

.page-news .news-echo__list li:last-child {
  padding-bottom: 0;
}

.page-news .news-echo__list li::before {
  content: counter(echo, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--c-jade-lt);
}

.page-news .news-echo__item {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(246, 240, 226, 0.82);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-news .news-echo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 760px) {
  .page-news .news-item {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 20px;
    padding: 20px 8px 20px 18px;
  }

  .page-news .news-item__tag {
    justify-self: stretch;
    justify-content: center;
  }

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

  .page-news .news-item:hover::before,
  .page-news .news-item:focus-within::before {
    top: 19px;
  }

  .page-news .news-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-news .news-hero__meters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .news-log__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .page-news .news-log__aside {
    position: sticky;
    top: 96px;
  }

  .page-news .news-echo__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .page-news .news-roll__head,
  .page-news .news-rank__head,
  .page-news .news-echo__head {
    max-width: 42em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item,
  .page-news .news-item::before,
  .page-news .news-item__tag,
  .page-news .news-item__title a {
    transition: none;
  }

  .cx-js .page-news .news-bar__fill {
    width: var(--w, 0%);
    transition: none;
  }
}

.page-news {
  --w: 1rem;
}
