/* ===== MELBET 更新动态页 · 页面专属样式 ===== */
.page-news {
  --news-radius-sm: 10px;
  --news-radius-lg: 18px;
  --news-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-color: var(--bg-paper);
}

/* 背景细网格：比首页更淡 */
.page-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 35, 66, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 35, 66, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* ===== 面包屑 ===== */
.page-news .breadcrumb {
  padding: 1.25rem 0 0;
  font-size: var(--font-size-small, 0.875rem);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-news .breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--news-transition);
}

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

.page-news .breadcrumb span[aria-current="page"] {
  color: var(--gray-line);
  font-weight: 600;
}

/* ===== 页面头部 ===== */
.page-news .news-page-header {
  padding: 2.5rem 0 1.5rem;
}

.page-news .news-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: end;
}

.page-news .news-header-main .section-index {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-news .news-header-main .page-title {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.875rem;
  letter-spacing: -0.01em;
}

.page-news .news-header-main .page-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.75);
  max-width: 56ch;
  margin: 0;
}

.page-news .news-header-side .update-cycle-list {
  margin: 0;
  padding: 1.25rem 1.375rem;
  background: var(--navy);
  border-radius: var(--news-radius-lg);
  list-style: none;
  box-shadow: 0 10px 24px rgba(10, 35, 66, 0.16);
}

.page-news .update-cycle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-news .update-cycle-row:last-child {
  border-bottom: none;
}

.page-news .update-cycle-row dt {
  color: var(--light-blue);
  font-size: 0.875rem;
  font-weight: 500;
}

.page-news .update-cycle-row dd {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0;
  text-align: right;
  font-family: var(--font-headings);
}

/* ===== 通用章节标题 ===== */
.page-news .section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.25rem 0 1.25rem;
}

.page-news .section-heading .section-index {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--light-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.page-news .section-heading h2 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

.page-news .section-heading .section-line {
  flex: 1;
  height: 1px;
  background: var(--gray-line);
  opacity: 0.5;
}

/* ===== 精选卡片区 ===== */
.page-news .featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-news .featured-card {
  position: relative;
  border-radius: var(--news-radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--news-transition), box-shadow var(--news-transition);
  display: flex;
  flex-direction: column;
}

.page-news .featured-card:hover {
  transform: translate(4px, -4px);
  box-shadow: var(--shadow-hover);
}

.page-news .featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 0 0 4px 0;
  z-index: 2;
}

.page-news .featured-card-panel::before {
  background: var(--navy);
}

.page-news .featured-card-guide::before {
  background: var(--teal);
}

.page-news .featured-card-eval::before {
  background: var(--teal);
}

.page-news .featured-media {
  position: relative;
  overflow: hidden;
  background: var(--light-blue);
}

.page-news .featured-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}

.page-news .featured-card-eval .featured-media {
  display: none;
}

.page-news .featured-body {
  padding: 1.25rem 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.page-news .featured-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-news .featured-period,
.page-news .history-period {
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.6);
  font-weight: 500;
  white-space: nowrap;
}

.page-news .featured-title {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.page-news .featured-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.72);
  margin: 0;
}

.page-news .featured-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-line);
}

.page-news .featured-stat {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.page-news .featured-stat strong {
  font-family: var(--font-headings);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.page-news .featured-stat span {
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.62);
}

/* 主卡片：横向图文排布 */
.page-news .featured-card-main .featured-media {
  border-radius: 0;
}

.page-news .featured-card-main .featured-body {
  background: var(--light-blue);
}

/* 新手专题卡片：深底反白 */
.page-news .featured-card-guide .featured-body {
  background: var(--navy);
}

.page-news .featured-card-guide .featured-title {
  color: var(--white);
}

.page-news .featured-card-guide .featured-excerpt {
  color: rgba(255, 255, 255, 0.72);
}

.page-news .featured-card-guide .featured-period {
  color: rgba(255, 255, 255, 0.6);
}

/* 评测卡片：青色底 + 大按钮 */
.page-news .featured-card-eval {
  background: var(--teal);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.page-news .featured-eval-content {
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.page-news .featured-card-eval .featured-title {
  color: var(--ink);
  max-width: 24ch;
}

.page-news .featured-card-eval .featured-excerpt {
  color: rgba(26, 26, 26, 0.75);
}

.page-news .featured-card-eval .featured-stat-row {
  border-top-color: rgba(26, 26, 26, 0.25);
}

.page-news .featured-card-eval .featured-stat strong {
  color: var(--navy);
}

.page-news .btn-eval-link {
  margin: 0 1.5rem 1.5rem;
  align-self: flex-start;
}

.page-news .featured-eval-stats {
  display: none;
}

/* ===== 坐标小字 ===== */
.page-news .coordinate-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 35, 66, 0.82);
  color: var(--white);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.page-news .featured-card-guide .coordinate-label,
.page-news .featured-card-panel .coordinate-label {
  background: rgba(245, 241, 232, 0.92);
  color: var(--navy);
}

.page-news .coordinate-label-dark {
  background: rgba(6, 24, 46, 0.75);
  color: var(--white);
  top: 16px;
  right: 16px;
}

/* ===== 分类筛选 ===== */
.page-news .news-categories {
  margin-top: 1rem;
}

.page-news .categories-note {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.68);
  margin: -0.5rem 0 1.25rem;
  max-width: 58ch;
}

.page-news .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-news .filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color var(--news-transition), color var(--news-transition), background var(--news-transition), transform var(--news-transition);
}

.page-news .filter-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.page-news .filter-pill-all {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.page-news .filter-pill-all:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.page-news .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  background: var(--light-blue);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.page-news .filter-pill-all .filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* ===== 历史动态 ===== */
.page-news .history-banner {
  margin: 1.25rem 0 2rem;
  border-radius: var(--news-radius-lg);
  overflow: hidden;
  position: relative;
}

.page-news .history-banner-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 1;
  display: block;
  border-radius: var(--news-radius-lg);
}

.page-news .history-banner-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.875rem;
  margin: 0;
  font-size: 0.875rem;
  background: rgba(6, 24, 46, 0.78);
  color: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.page-news .history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .history-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid rgba(184, 178, 166, 0.55);
  position: relative;
}

.page-news .history-item:last-child {
  border-bottom: none;
}

.page-news .history-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.page-news .history-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(184, 178, 166, 0.6);
  transform: translateX(-50%);
  z-index: 0;
}

.page-news .history-item:first-child .history-rail::before {
  top: 12px;
}

.page-news .history-item:last-child .history-rail::before {
  bottom: auto;
  height: 12px;
}

.page-news .history-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border: 2px solid var(--navy);
  border-radius: 50%;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.page-news .history-year {
  position: relative;
  z-index: 1;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--bg-paper);
  padding: 0 0.25rem;
  line-height: 1.2;
}

.page-news .history-content {
  min-width: 0;
}

.page-news .history-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.page-news .history-title {
  font-family: var(--font-headings);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.375rem;
}

.page-news .history-item:hover .history-title {
  color: var(--orange);
  transition: color var(--news-transition);
}

.page-news .history-excerpt {
  font-size: 0.906rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.66);
  margin: 0;
  max-width: 66ch;
}

/* ===== 相关导航 ===== */
.page-news .news-related {
  margin: 3.5rem 0 4rem;
}

.page-news .related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-news .related-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-decoration: none;
  padding: 1.5rem 1.75rem;
  border-radius: var(--news-radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--news-transition), box-shadow var(--news-transition);
}

.page-news .related-card:hover {
  transform: translate(3px, -3px);
  box-shadow: var(--shadow-hover);
}

.page-news .related-card-navy {
  background: var(--navy);
  color: var(--white);
}

.page-news .related-card-teal {
  background: var(--teal);
  color: var(--ink);
}

.page-news .related-card-orange {
  background: var(--orange);
  color: var(--white);
}

.page-news .related-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.8;
  text-transform: uppercase;
}

.page-news .related-card-title {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 22ch;
}

.page-news .related-card-link {
  margin-top: 0.375rem;
  font-weight: 600;
  font-size: 0.906rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== 响应式：平板 ===== */
@media (min-width: 600px) {
  .page-news .news-header-grid {
    grid-template-columns: 1.5fr 0.9fr;
  }

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

  .page-news .featured-card-main {
    grid-column: span 2;
  }

  .page-news .featured-card-main .featured-media img {
    aspect-ratio: 16 / 8;
  }

  .page-news .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 响应式：桌面 ===== */
@media (min-width: 960px) {
  .page-news .news-page-header {
    padding: 3.5rem 0 2rem;
  }

  .page-news .news-header-main .page-title {
    font-size: 2.5rem;
  }

  .page-news .featured-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .page-news .featured-card-main {
    grid-column: span 7;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
  }

  .page-news .featured-card-main .featured-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 100%;
  }

  .page-news .featured-card-main .featured-media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-news .featured-card-main .featured-media img {
    min-height: 100%;
    object-fit: cover;
  }

  .page-news .featured-card-main .featured-body {
    grid-column: 2;
    grid-row: 1;
    padding: 1.75rem 1.75rem;
  }

  .page-news .featured-card-panel {
    grid-column: span 5;
  }

  .page-news .featured-card-guide {
    grid-column: span 5;
  }

  .page-news .featured-card-eval {
    grid-column: span 7;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .page-news .featured-eval-content {
    padding: 2rem 2rem 2rem 2.25rem;
  }

  .page-news .featured-card-eval .btn-eval-link {
    margin: 0 2.25rem 0 0;
    align-self: center;
    white-space: nowrap;
  }

  .page-news .featured-card-eval .featured-title {
    max-width: 30ch;
  }

  .page-news .featured-card-main .coordinate-label {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
  }

  .page-news .history-list {
    padding-left: 0.5rem;
  }

  .page-news .history-item {
    grid-template-columns: 4.5rem 1fr;
    gap: 1.75rem;
    padding: 1.75rem 0;
  }

  .page-news .history-excerpt {
    font-size: 0.9375rem;
  }
}

/* ===== 响应式：大屏优化 ===== */
@media (min-width: 1280px) {
  .page-news .featured-card-main .featured-body {
    padding: 2rem 2.25rem;
  }

  .page-news .featured-card-panel .featured-media img,
  .page-news .featured-card-guide .featured-media img {
    aspect-ratio: 16 / 9;
  }
}

.page-news {
  --font-size-small: 1rem;
}
