.page-news {
  --news-border: rgba(201, 209, 217, 0.14);
  --news-card-radius: 22px;
  --news-green-glow: rgba(0, 230, 118, 0.14);
  --news-orange-glow: rgba(255, 122, 0, 0.16);
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

/* 隐藏筛选输入，保留键盘可达性 */
.page-news .news-filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ─────────────── Hero 封面 ─────────────── */
.page-news .news-hero {
  position: relative;
  padding-top: clamp(20px, 4vw, 44px);
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 209, 217, 0.10);
}

.page-news .news-hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero__chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.page-news .news-hero__side {
  display: grid;
  gap: 14px;
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--text-3);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

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

.page-news .breadcrumb a:hover {
  color: var(--accent);
}

.page-news .news-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.page-news .news-hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-news .news-hero__brief {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  max-width: 42ch;
}

/* 左侧索引 */
.page-news .news-rail {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-news .news-rail__item {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-m);
  background: rgba(27, 43, 75, 0.55);
  border: 1px solid var(--news-border);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s;
}

.page-news .news-rail__item:hover {
  border-color: var(--accent);
  background: rgba(27, 43, 75, 0.8);
}

.page-news .news-rail__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: var(--text-2);
  text-decoration: none;
}

.page-news .news-rail__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  width: 2.2em;
  text-align: right;
  flex: 0 0 auto;
}

.page-news .news-rail__text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

/* 头条特色卡片 */
.page-news .news-feature {
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(27, 43, 75, 0.95), rgba(16, 30, 54, 0.98));
  border: 1px solid var(--news-border);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.page-news .news-feature__media {
  line-height: 0;
}

.page-news .news-feature__img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--news-border);
}

.page-news .news-feature__body {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 28px);
}

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

.page-news .news-feature__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-news .news-feature__excerpt {
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.98rem;
}

.page-news .news-feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.page-news .news-feature__time {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* 横向时间轴 */
.page-news .news-hero__timeline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-block: 14px 20px;
  border-top: 1px solid var(--news-border);
}

.page-news .news-hero__tl-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-news .news-hero__tl {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-news .news-hero__tl-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(27, 43, 75, 0.6);
  border: 1px solid var(--news-border);
  scroll-snap-align: start;
}

.page-news .news-hero__tl-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.page-news .news-hero__tl-link {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-news .news-hero__tl-link:hover {
  color: var(--accent-orange);
}

/* 通用组件标签 */
.page-news .tag {
  background: rgba(0, 230, 118, 0.10);
  border: 1px solid rgba(0, 230, 118, 0.24);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-block;
  letter-spacing: 0.02em;
}

.page-news .tag--orange {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.36);
  color: var(--accent-orange);
}

.page-news .btn--orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-orange);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.page-news .btn--orange:hover {
  transform: translateY(-1px);
  background: #ff8f2a;
}

/* 区块标题 */
.page-news .section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.page-news .section-heading__index {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.page-news .section-heading__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ─────────────── 分类卡片流 ─────────────── */
.page-news .news-stories {
  position: relative;
  padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 48px);
}

.page-news .news-stories::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 16px);
  pointer-events: none;
  z-index: 0;
}

.page-news .news-stories > .container {
  position: relative;
  z-index: 1;
}

.page-news .news-stories__head {
  display: grid;
  gap: 12px;
}

.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid rgba(201, 209, 217, 0.20);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.page-news .news-filter__pill:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.page-news .news-filter-hint {
  margin: 8px 0 0;
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 筛选激活态 */
.page-news #nfilter-all:checked ~ .news-stories .news-filter label[for="nfilter-all"],
.page-news #nfilter-cut:checked ~ .news-stories .news-filter label[for="nfilter-cut"],
.page-news #nfilter-stat:checked ~ .news-stories .news-filter label[for="nfilter-stat"],
.page-news #nfilter-browser:checked ~ .news-stories .news-filter label[for="nfilter-browser"],
.page-news #nfilter-commute:checked ~ .news-stories .news-filter label[for="nfilter-commute"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* 筛选显示 */
.page-news #nfilter-cut:checked ~ .news-stories .news-card[data-topic="cut"],
.page-news #nfilter-stat:checked ~ .news-stories .news-card[data-topic="stat"],
.page-news #nfilter-browser:checked ~ .news-stories .news-card[data-topic="browser"],
.page-news #nfilter-commute:checked ~ .news-stories .news-card[data-topic="commute"] {
  display: flex;
}

/* 筛选隐藏 */
.page-news #nfilter-cut:checked ~ .news-stories .news-card:not([data-topic="cut"]),
.page-news #nfilter-stat:checked ~ .news-stories .news-card:not([data-topic="stat"]),
.page-news #nfilter-browser:checked ~ .news-stories .news-card:not([data-topic="browser"]),
.page-news #nfilter-commute:checked ~ .news-stories .news-card:not([data-topic="commute"]) {
  display: none;
}

/* 卡片网格与卡片 */
.page-news .news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  margin-top: 26px;
}

.page-news .news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(27, 43, 75, 0.95), rgba(16, 30, 54, 0.98));
  border: 1px solid var(--news-border);
  border-radius: var(--news-card-radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-news .news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  opacity: 0.85;
  z-index: 2;
}

.page-news .news-card--hot::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.20);
  z-index: 3;
}

.page-news .news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.page-news .news-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--news-border);
}

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

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

.page-news .news-card__title {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

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

.page-news .news-card__title a:hover {
  color: var(--accent);
}

.page-news .news-card__excerpt {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-news .news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.page-news .news-card__time {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-news .news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.page-news .news-card__link::after {
  content: "→";
}

.page-news .news-card__link:hover {
  color: var(--accent-orange);
}

/* ─────────────── 编辑推荐 ─────────────── */
.page-news .news-editors {
  padding-block: clamp(28px, 5vw, 56px) clamp(32px, 6vw, 64px);
}

.page-news .news-editors__inner {
  display: grid;
  gap: 24px;
}

.page-news .news-editors__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.page-news .news-tracks {
  position: relative;
  display: grid;
  gap: 28px;
}

.page-news .news-tracks::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 230, 118, 0.14) 70%, transparent);
}

.page-news .news-track {
  position: relative;
  padding-left: 30px;
}

.page-news .news-track::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.15);
}

.page-news .news-track__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.page-news .news-track__list li {
  padding: 14px 16px;
  background: rgba(27, 43, 75, 0.5);
  border: 1px solid var(--news-border);
  border-radius: var(--radius-m);
  transition: border-color 0.2s var(--ease);
}

.page-news .news-track__list li:hover {
  border-color: var(--accent);
}

.page-news .news-track__link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.page-news .news-track__link:hover {
  color: var(--accent-orange);
}

.page-news .news-track__list p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.90rem;
  line-height: 1.6;
}

.page-news .news-editors__figure {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--news-border);
  background: var(--bg-2);
  align-self: start;
}

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

.page-news .news-editors__figure figcaption {
  padding: 16px 18px 18px;
  color: var(--text-2);
  font-size: 0.90rem;
  line-height: 1.65;
}

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

  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-news .news-editors__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

@media (min-width: 940px) {
  .page-news .news-hero__brief {
    font-size: 18px;
  }

  .page-news .news-filter {
    justify-content: flex-end;
  }

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

  .page-news .news-filter-hint {
    text-align: right;
    margin-top: 0;
  }

  .page-news .news-stories__head .section-heading {
    margin-bottom: 0;
  }
}

@media (min-width: 1120px) {
  .page-news .news-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-news .news-card:nth-child(1) {
    grid-column: span 7;
  }

  .page-news .news-card:nth-child(2) {
    grid-column: span 5;
  }

  .page-news .news-card:nth-child(3) {
    grid-column: span 4;
  }

  .page-news .news-card:nth-child(4) {
    grid-column: span 4;
  }

  .page-news .news-card:nth-child(5) {
    grid-column: span 4;
  }

  .page-news .news-card:nth-child(6) {
    grid-column: span 6;
  }
}
