/* ================= 资讯专栏 · page-news ================= */
.page-news {
  --news-line: var(--rx-stroke);
  --news-gap: clamp(16px, 2.4vw, 24px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-news .rx-breadcrumb {
  padding: clamp(16px, 2vw, 24px) 0 0;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--rx-ink);
}

.page-news h1 { font-size: var(--rx-fs-h1); }
.page-news h2 { font-size: var(--rx-fs-h2); }
.page-news h3 { font-size: var(--rx-fs-h3); }
.page-news p { margin: 0; }

.page-news .news-hero__grid > *,
.page-news .news-index > *,
.page-news .news-tips > *,
.page-news .news-feature > *,
.page-news .news-cta > * {
  min-width: 0;
}

/* ---------- 首屏 ---------- */
.news-hero {
  padding-top: clamp(22px, 4vw, 40px);
}

.news-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.news-hero__copy .rx-eyebrow {
  margin-bottom: 14px;
}

.news-hero__lead {
  margin-top: clamp(14px, 2vw, 18px);
  max-width: 62ch;
  font-size: var(--rx-fs-body);
  line-height: 1.75;
  color: var(--rx-ink-dim);
}

.news-hero__note {
  margin-top: 12px;
}

.news-hero__actions {
  margin-top: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-hero__panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  overflow: hidden;
  background: var(--rx-panel);
}

.news-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(34, 224, 200, 0.06) 0 1px,
    transparent 1px 6px
  );
  pointer-events: none;
}

.news-hero__panel-title {
  position: relative;
  margin: 0 0 12px;
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.14em;
  color: var(--rx-mute);
}

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

.news-hero__index li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--news-line);
  font-size: 15px;
}

.news-hero__index li:last-child { border-bottom: 0; }

.news-hero__index .rx-num {
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.14em;
  color: var(--rx-cyan);
}

.news-hero__index b {
  font-weight: 500;
  color: var(--rx-ink);
}

.news-hero__index em {
  font-style: normal;
  font-family: var(--rx-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rx-mute);
  margin-left: auto;
}

.news-hero__panel-foot {
  position: relative;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--news-line);
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.1em;
  color: var(--rx-mute);
}

/* ---------- 章节头 ---------- */
.news-sechead {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--news-line);
}

.news-sechead__no {
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.16em;
  color: var(--rx-cyan);
}

.news-sechead__desc {
  max-width: 68ch;
  font-size: var(--rx-fs-small);
  line-height: 1.75;
  color: var(--rx-mute);
}

/* ---------- 栏目索引卡 ---------- */
.news-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--news-gap);
}

.news-card {
  --card-accent: var(--rx-cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--news-line);
  border-top: 2px solid var(--card-accent);
  background: var(--rx-panel);
  box-shadow: var(--rx-shadow-soft);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-card--violet { --card-accent: var(--rx-violet); }
.news-card--amber { --card-accent: var(--rx-amber); }
.news-card--cyan:hover { box-shadow: var(--rx-shadow-lift); }

.news-card__no {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 12px;
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.16em;
  color: var(--rx-cyan);
  background: rgba(7, 11, 24, 0.86);
  border-right: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
}

.news-card__media {
  position: relative;
  overflow: hidden;
  background: var(--rx-raise);
}

.news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.05) brightness(0.86);
}

.news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.15), rgba(7, 11, 24, 0.78));
  pointer-events: none;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: clamp(16px, 2.2vw, 22px);
}

.news-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-top: 6px;
}

.news-card__name {
  font-size: var(--rx-fs-h3);
}

.news-card__rate {
  margin-left: auto;
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.12em;
  color: var(--card-accent);
}

.news-card__desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--rx-ink-dim);
}

.news-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--news-line);
}

.news-card__hint { display: block; }

/* ---------- 条目列表 ---------- */
.news-feed {
  display: block;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--news-line);
}

.news-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "no tag"
    "title title"
    "time action";
  gap: 8px 12px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--news-line);
  box-shadow: inset 3px 0 0 transparent;
  transition: box-shadow 0.2s ease;
}

.news-item:hover,
.news-item:focus-within {
  box-shadow: inset 3px 0 0 var(--rx-cyan);
}

.news-item__no {
  grid-area: no;
  align-self: start;
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.14em;
  color: var(--rx-mute);
}

.news-item__tag {
  grid-area: tag;
  justify-self: start;
  align-self: start;
}

.news-item__title {
  grid-area: title;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--rx-ink);
}

.news-item__spark {
  display: none;
  color: var(--rx-mute);
}

.news-item__spark--up { color: var(--rx-cyan); }
.news-item__spark--down { color: var(--rx-amber); }
.news-item__spark svg { display: block; }

.news-item__time {
  grid-area: time;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rx-mute);
}

.news-item__copy {
  grid-area: action;
  justify-self: end;
  padding: 5px 12px;
  font-family: var(--rx-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rx-mute);
  background: transparent;
  border: 1px solid var(--news-line);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-item__copy:hover {
  color: var(--rx-cyan);
  border-color: var(--rx-cyan-soft);
}

.news-item__copy.is-copied {
  color: var(--rx-cyan);
  border-color: var(--rx-cyan);
}

/* ---------- 专题块 ---------- */
.news-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin: clamp(28px, 4vw, 48px) 0;
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid var(--news-line);
  background: var(--rx-raise);
  box-shadow: var(--rx-shadow-lift);
  overflow: hidden;
}

.news-feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 76px;
  background: var(--rx-cyan-fill);
  clip-path: polygon(100% 0, 24% 0, 100% 76%);
  pointer-events: none;
}

.news-feature__media .rx-media__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05) brightness(0.85);
}

.news-feature__body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.news-feature__body > p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rx-ink-dim);
}

.news-feature__link {
  margin-top: 2px;
  font-size: var(--rx-fs-small);
}

.news-fold {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--news-line);
}

.news-fold > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--rx-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rx-cyan);
}

.news-fold > summary::-webkit-details-marker { display: none; }

.news-fold > summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

.news-fold[open] > summary::before {
  content: "\2212";
  transform: rotate(180deg);
}

.news-fold__body {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--rx-ink-dim);
}

.news-fold__sample {
  padding: 12px 14px;
  border-left: 2px solid var(--rx-violet);
  background: var(--rx-violet-fill);
  font-family: var(--rx-font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--rx-ink);
  word-break: break-word;
}

/* ---------- 收藏与转发 ---------- */
.news-tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--news-gap);
}

.news-tip {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--news-line);
  background: var(--rx-panel);
  box-shadow: var(--rx-shadow-soft);
}

.news-tip__no {
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.18em;
  color: var(--rx-violet);
}

.news-tip h3 {
  font-size: 19px;
}

.news-tip p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--rx-ink-dim);
}

.news-tip .rx-btn {
  justify-self: start;
  margin-top: 4px;
}

/* ---------- 结尾命令栏 ---------- */
.news-cta {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--news-line);
  border-left: 3px solid var(--rx-cyan);
  background: var(--rx-panel);
  box-shadow: var(--rx-shadow-lift);
}

.news-cta__label {
  font-size: var(--rx-fs-mono);
  letter-spacing: 0.18em;
  color: var(--rx-cyan);
  margin-bottom: 10px;
}

.news-cta__copy p:last-child {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rx-ink-dim);
}

.news-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .news-item {
    grid-template-columns: 40px 112px minmax(0, 1fr) 92px;
    grid-template-areas:
      "no tag title title"
      ". time spark action";
    gap: 8px 16px;
  }

  .news-item__spark {
    display: block;
    justify-self: end;
  }

  .news-cta__links {
    justify-content: flex-start;
  }
}

@media (min-width: 780px) {
  .news-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-tips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .news-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(28px, 4vw, 56px);
  }

  .news-item {
    grid-template-columns: 46px 118px minmax(0, 1fr) 64px 104px 74px;
    grid-template-areas: "no tag title spark time action";
    gap: 4px 18px;
    padding: 15px 14px;
  }

  .news-item__no,
  .news-item__tag {
    align-self: center;
  }

  .news-item__copy {
    opacity: 0.42;
  }

  .news-item:hover .news-item__copy,
  .news-item:focus-within .news-item__copy {
    opacity: 1;
  }

  .news-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 3.4vw, 48px);
  }

  .news-feature--flip .news-feature__media { order: 2; }

  .news-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .news-cta__links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-card,
  .page-news .news-item,
  .page-news .news-fold > summary::before,
  .page-news .news-item__copy {
    transition: none;
  }
}
