.page-news {
  --news-visual-h: 190px;
  --news-sidebar-w: 340px;
  background: var(--bg-deep);
  color: var(--text-primary);
}

.news-filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== Banner ===== */
.news-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + var(--space-4));
  padding-bottom: var(--space-5);
  background: linear-gradient(100deg, rgba(10, 14, 23, 0.96) 0%, rgba(10, 14, 23, 0.82) 48%, rgba(10, 14, 23, 0.5) 100%);
}

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

.news-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.9) contrast(1.05);
}

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

.news-banner__content {
  max-width: 760px;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(10, 14, 23, 0.78);
  border: 1px solid var(--line-subtle);
  backdrop-filter: blur(6px);
}

.news-banner__content h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: var(--space-2) 0 var(--space-3);
}

.news-banner__lead {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.news-banner__stats {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent-electric);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ===== 页面主体 ===== */
.news-page-body {
  padding: var(--space-5) 0 var(--space-6);
}

.news-layout {
  display: grid;
  gap: var(--space-5);
}

.news-section-head {
  margin-bottom: var(--space-4);
}

.news-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin: var(--space-1) 0 var(--space-2);
}

.news-section-head p:not(.site-kicker) {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ===== 最新文章卡片 ===== */
.news-latest {
  display: grid;
  gap: var(--space-3);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.news-card__visual {
  position: relative;
  height: var(--news-visual-h);
  overflow: hidden;
  background: #0d1420;
}

.news-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__visual img {
  transform: scale(1.04);
}

.news-card__index {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 14, 23, 0.72);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
}

.news-card__more {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  color: #fff;
  background: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-card:hover .news-card__more {
  opacity: 1;
  transform: none;
}

.news-card__chart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 22px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.05) 61%, transparent 61%, transparent 100%);
  background-size: 100% 25%;
}

.news-card__bar {
  display: block;
  width: 28%;
  border-radius: 4px 4px 0 0;
}

.news-card__bar--first {
  height: 44%;
  background: linear-gradient(180deg, var(--accent-primary), rgba(255, 107, 53, 0.45));
}

.news-card__bar--second {
  height: 68%;
  background: linear-gradient(180deg, var(--accent-electric), rgba(0, 229, 255, 0.4));
  opacity: 0.75;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  color: var(--text-secondary);
}

.news-card__cat {
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 107, 53, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.news-card__time {
  white-space: nowrap;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.35;
  margin: 0;
}

.news-card__excerpt {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.news-card__details {
  margin-top: auto;
  border-top: 1px solid var(--line-subtle);
  padding-top: var(--space-2);
}

.news-card__details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent-electric);
  user-select: none;
}

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

.news-card__details summary::before {
  content: "+ ";
  color: var(--accent-primary);
}

.news-card__details[open] summary::before {
  content: "− ";
}

.news-card__details p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: var(--space-2) 0 0;
  padding-left: var(--space-2);
  border-left: 2px solid var(--accent-primary);
}

/* ===== 侧边栏 ===== */
.news-layout__side {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.news-widget {
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.news-widget h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: var(--space-1) 0 var(--space-2);
}

.news-widget__desc {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-3);
}

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

.news-filter__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-subtle);
  font-size: var(--fs-caption);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-filter__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
}

.news-filter__link:hover {
  border-color: var(--accent-primary);
}

.news-filter__link--active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.news-filter__link--active .news-filter__num {
  color: #fff;
}

/* 分类筛选状态切换 */
.page-news #radio-product:checked ~ .news-page-body .news-filter__link--active,
.page-news #radio-guide:checked ~ .news-page-body .news-filter__link--active,
.page-news #radio-faq:checked ~ .news-page-body .news-filter__link--active,
.page-news #radio-season:checked ~ .news-page-body .news-filter__link--active {
  background: transparent;
  border-color: var(--line-subtle);
  color: var(--text-primary);
}

.page-news #radio-product:checked ~ .news-page-body .news-filter__link--active .news-filter__num,
.page-news #radio-guide:checked ~ .news-page-body .news-filter__link--active .news-filter__num,
.page-news #radio-faq:checked ~ .news-page-body .news-filter__link--active .news-filter__num,
.page-news #radio-season:checked ~ .news-page-body .news-filter__link--active .news-filter__num {
  color: var(--accent-electric);
}

.page-news #radio-product:checked ~ .news-page-body .news-filter__link[for="radio-product"],
.page-news #radio-guide:checked ~ .news-page-body .news-filter__link[for="radio-guide"],
.page-news #radio-faq:checked ~ .news-page-body .news-filter__link[for="radio-faq"],
.page-news #radio-season:checked ~ .news-page-body .news-filter__link[for="radio-season"] {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.page-news #radio-product:checked ~ .news-page-body .news-filter__link[for="radio-product"] .news-filter__num,
.page-news #radio-guide:checked ~ .news-page-body .news-filter__link[for="radio-guide"] .news-filter__num,
.page-news #radio-faq:checked ~ .news-page-body .news-filter__link[for="radio-faq"] .news-filter__num,
.page-news #radio-season:checked ~ .news-page-body .news-filter__link[for="radio-season"] .news-filter__num {
  color: #fff;
}

/* 文章卡片筛选 */
.page-news #radio-product:checked ~ .news-page-body .news-card,
.page-news #radio-guide:checked ~ .news-page-body .news-card,
.page-news #radio-faq:checked ~ .news-page-body .news-card,
.page-news #radio-season:checked ~ .news-page-body .news-card {
  display: none;
}

.page-news #radio-product:checked ~ .news-page-body .news-card[data-cat="product"],
.page-news #radio-guide:checked ~ .news-page-body .news-card[data-cat="guide"],
.page-news #radio-faq:checked ~ .news-page-body .news-card[data-cat="faq"],
.page-news #radio-season:checked ~ .news-page-body .news-card[data-cat="season"] {
  display: flex;
  animation: newsCardIn 0.3s ease both;
}

/* 索引行筛选 */
.page-news #radio-product:checked ~ .news-page-body .news-index-row,
.page-news #radio-guide:checked ~ .news-page-body .news-index-row,
.page-news #radio-faq:checked ~ .news-page-body .news-index-row,
.page-news #radio-season:checked ~ .news-page-body .news-index-row {
  display: none;
}

.page-news #radio-product:checked ~ .news-page-body .news-index-row[data-cat="product"],
.page-news #radio-guide:checked ~ .news-page-body .news-index-row[data-cat="guide"],
.page-news #radio-faq:checked ~ .news-page-body .news-index-row[data-cat="faq"],
.page-news #radio-season:checked ~ .news-page-body .news-index-row[data-cat="season"] {
  display: grid;
}

@keyframes newsCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 热读排行 ===== */
.news-hot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.news-hot__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-subtle);
}

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

.news-hot__rank {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--accent-primary);
}

.news-hot__link {
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-hot__link:hover {
  color: var(--accent-electric);
}

/* ===== 数据速览 ===== */
.news-data__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.news-data__item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.news-data__item dt {
  font-size: var(--fs-index);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.news-data__num {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.2;
  margin: 0;
}

/* ===== 支持卡片 ===== */
.news-support p {
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--text-secondary);
}

.news-support .site-btn {
  margin-top: var(--space-2);
  width: 100%;
  justify-content: center;
}

.news-support__contact {
  font-family: var(--font-mono);
  font-size: var(--fs-caption) !important;
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-subtle);
  line-height: 1.6;
}

/* ===== 文章索引 ===== */
.news-index-section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-subtle);
}

.news-index {
  margin-top: var(--space-4);
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-index-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas:
    "num cat title time"
    "num cat excerpt time";
  gap: 4px 16px;
  align-items: baseline;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 0.2s ease;
}

.news-index-row:last-child {
  border-bottom: 0;
}

.news-index-row:hover {
  background: rgba(0, 229, 255, 0.045);
}

.news-index-row__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: rgba(255, 107, 53, 0.55);
}

.news-index-row__cat {
  grid-area: cat;
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  color: var(--accent-electric);
  background: rgba(0, 229, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.news-index-row__title {
  grid-area: title;
  font-size: var(--fs-body);
  font-weight: 700;
  margin: 0;
}

.news-index-row__excerpt {
  grid-area: excerpt;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.news-index-row__time {
  grid-area: time;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

/* ===== 延伸阅读 ===== */
.news-extra {
  margin-top: var(--space-5);
}

.news-extra__panel {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.news-extra__panel:hover {
  border-color: var(--accent-electric);
  transform: translateY(-3px);
}

.news-extra__panel h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-2);
}

.news-extra__panel p {
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.news-extra__panel::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  color: var(--accent-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 680px) {
  .news-banner {
    min-height: 0;
    align-items: flex-start;
  }

  .news-banner__content {
    padding: var(--space-3);
  }

  .news-banner__content h1 {
    font-size: var(--fs-h2);
  }

  .news-index-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num cat"
      "num title"
      "num excerpt"
      "num time";
    gap: 6px 12px;
    padding: 16px;
  }

  .news-index-row__time {
    text-align: left;
  }
}

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

@media (min-width: 960px) {
  .news-layout {
    grid-template-columns: minmax(0, 1fr) var(--news-sidebar-w);
    align-items: start;
  }
}
