.page-news {
  --news-a: var(--cyan);
  --news-b: var(--amber);
  --news-c: var(--mist);
  --news-d: var(--gold);
}

.page-news .news-layout {
  row-gap: 44px;
}

@media (max-width: 1023px) {
  .page-news .news-side,
  .page-news .news-main {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .page-news .news-side {
    position: sticky;
    top: 32px;
    align-self: start;
  }
}

/* ---------- 侧栏 ---------- */
.page-news .news-side__block + .news-side__block {
  margin-top: 36px;
}

.page-news .news-side__label {
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.page-news .filter-list {
  display: grid;
  gap: 8px;
}

.page-news .filter-list__item {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 2px solid var(--line);
  border-left-width: 6px;
  border-left-color: var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-news .filter-list__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.page-news .filter-list__item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-news .filter-list__item.is-active {
  background: var(--layer);
  box-shadow: var(--shadow-soft);
}

.page-news .filter-list__item--all { border-left-color: var(--muted); }
.page-news .filter-list__item--update { border-left-color: var(--cyan); }
.page-news .filter-list__item--league { border-left-color: var(--amber); }
.page-news .filter-list__item--data { border-left-color: var(--mist); }
.page-news .filter-list__item--tips { border-left-color: var(--gold); }

.page-news .filter-list__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-news .filter-list__beat {
  font-size: 12px;
  color: var(--muted);
}

.page-news .rhythm-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  margin-bottom: 16px;
}

.page-news .rhythm-bar__seg {
  flex: 1;
  background: var(--line);
}

.page-news .rhythm-bar__seg--on {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.page-news .rhythm-cards {
  display: grid;
  gap: 10px;
}

.page-news .rhythm-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--layer);
}

.page-news .rhythm-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: 0;
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.page-news .rhythm-card__head:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-news .rhythm-card__sign {
  color: var(--cyan);
  font-size: 16px;
  line-height: 1;
}

.page-news .rhythm-card__body {
  padding: 0 12px 14px;
}

.page-news .rhythm-card__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-news .news-side__note {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

/* ---------- 置顶专题 ---------- */
.page-news .featured {
  margin-bottom: 44px;
  border: 2px solid var(--line);
  background: var(--layer);
  box-shadow: var(--shadow-hard);
}

.page-news .featured__band {
  padding: 24px 24px 54px;
  background: linear-gradient(112deg, rgba(52, 229, 200, 0.26), rgba(240, 180, 41, 0.16) 58%, rgba(10, 31, 26, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.page-news .featured__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.page-news .featured__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

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

.page-news .featured__pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

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

.page-news .featured__steps {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-news .featured__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-news .featured__step-num {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-news .featured__steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--paper);
}

/* ---------- 条目列表 ---------- */
.page-news .feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.page-news .feed-meta__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-news .feed-meta__sync {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-news .feed-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 18px;
  padding: 26px 0;
  border-bottom: 2px solid var(--line);
  transition: background 0.24s var(--ease);
}

.page-news .feed-item:hover {
  background: linear-gradient(90deg, rgba(52, 229, 200, 0.08), rgba(52, 229, 200, 0) 72%);
}

.page-news .feed-item__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-news .feed-item__idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-news .feed-item__time {
  writing-mode: vertical-rl;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.page-news .feed-item__body {
  min-width: 0;
}

.page-news .feed-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.page-news .feed-tag--update { color: var(--cyan); }
.page-news .feed-tag--league { color: var(--amber); }
.page-news .feed-tag--data { color: var(--mist); }
.page-news .feed-tag--tips { color: var(--gold); }

.page-news .feed-item__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 8px;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-news .feed-item__arrow {
  flex: none;
  color: var(--cyan);
  font-weight: 700;
  transition: transform 0.24s var(--ease);
}

.page-news .feed-item:hover .feed-item__arrow {
  transform: translateX(8px);
}

.page-news .feed-item__sum {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .feed-item__pic {
  margin: 0;
}

.page-news .feed-item__pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--line);
}

@media (min-width: 900px) {
  .page-news .feed-item--media {
    grid-template-columns: 40px minmax(0, 1fr) 210px;
  }
}

@media (max-width: 899px) {
  .page-news .feed-item__pic {
    grid-column: 1 / -1;
    margin-top: 16px;
    max-width: 420px;
  }
}

.page-news .feed-quote {
  margin: 0;
  padding: 26px 26px 26px 24px;
  border-bottom: 2px solid var(--line);
  border-left: 6px solid var(--amber);
  background: linear-gradient(96deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0) 68%);
}

.page-news .feed-quote__text {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--paper);
}

.page-news .feed-quote__src {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- 共建 ---------- */
.page-news .contribute__grid {
  row-gap: 32px;
}

@media (max-width: 899px) {
  .page-news .contribute__grid > .col-7,
  .page-news .contribute__grid > .col-5 {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.page-news .contribute__panel {
  padding: 22px 22px 26px;
}

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

.page-news .contribute__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--paper);
}

.page-news .contribute__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 767px) {
  .page-news .news-layout {
    row-gap: 32px;
  }

  .page-news .feed-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .page-news .feed-item__rail {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .page-news .feed-item__time {
    writing-mode: horizontal-tb;
    letter-spacing: 0.12em;
  }

  .page-news .feed-item__title {
    font-size: 1.12rem;
    gap: 10px;
  }

  .page-news .featured__band {
    padding: 20px 18px 46px;
  }

  .page-news .featured__body {
    padding: 20px 18px 24px;
  }

  .page-news .feed-quote {
    padding: 22px 18px 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .feed-item,
  .page-news .feed-item__arrow,
  .page-news .filter-list__item {
    transition: none;
  }

  .page-news .feed-item:hover .feed-item__arrow {
    transform: none;
  }

  .page-news .filter-list__item:hover {
    transform: none;
  }
}
