/* ===== 品牌日志 · 页面专属 ===== */
.page-news {
  --news-gap: 24px;
  --news-hard: 6px 6px 0 rgba(31, 31, 31, 0.92);
  --news-soft: 32px;
  --news-orbit: 44px;
  background: var(--paper);
  color: var(--ink);
}

.page-news .page-news__breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--page-gutter) 0;
  font-family: var(--font-head);
  font-size: 13px;
}

.page-news .page-news__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .page-news__breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gray-line);
}

.page-news .page-news__breadcrumbs a {
  color: var(--ink-soft);
  text-underline-offset: 4px;
  text-decoration-color: var(--cyber);
}

.page-news .page-news__breadcrumbs a:hover {
  color: var(--ink);
}

.page-news .section {
  padding: 56px var(--page-gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.page-news .section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.page-news .section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 6px;
}

.page-news .section-heading p {
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}

/* ---- 首屏 ---- */
.page-news .news-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px var(--page-gutter) 0;
}

.page-news .news-hero__intro {
  position: relative;
  padding: 8px 0 28px;
}

.page-news .news-hero__intro::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  width: clamp(160px, 40vw, 340px);
  height: 8px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--cyber) 100%);
  border-radius: 999px;
}

.page-news .news-hero__intro h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 12em;
  margin: 16px 0 12px;
}

.page-news .news-hero__intro .lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 42em;
}

.page-news .news-hero__feature {
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--news-soft);
  box-shadow: var(--news-hard);
  overflow: hidden;
  position: relative;
}

.page-news .news-hero__feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 180px;
  height: 4px;
  background: linear-gradient(135deg, var(--neon), var(--cyber));
  border-radius: 999px;
  z-index: 2;
}

.page-news .news-hero__media {
  overflow: hidden;
}

.page-news .news-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

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

.page-news .news-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-news .news-hero__body h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 10px;
}

.page-news .news-hero__body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  margin: 0 0 20px;
}

/* ---- 最新公告 ---- */
.page-news .latest-news {
  padding-top: 48px;
}

.page-news .notice-list {
  display: grid;
  gap: 28px;
}

.page-news .notice-card {
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--news-soft);
  padding: 26px 22px;
  box-shadow: var(--news-hard);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-news .notice-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(31, 31, 31, 0.92);
}

.page-news .notice-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .notice-card h3 {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.page-news .notice-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.page-news .notice-card details {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 14px;
}

.page-news .notice-card summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--cyber);
  padding-bottom: 2px;
}

.page-news .notice-card__list {
  margin: 12px 0 0;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-news .notice-card__link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-news .notice-card__link:hover {
  background: var(--neon);
}

/* ---- 版本更新日志 ---- */
.page-news .version-log {
  position: relative;
}

.page-news .version-log__groove {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(31, 31, 31, 0.12) 0,
    rgba(31, 31, 31, 0.12) 8px,
    transparent 8px,
    transparent 16px
  );
  border-radius: 999px;
}

.page-news .timeline {
  display: grid;
  gap: 28px;
  padding-left: 36px;
  position: relative;
}

.page-news .timeline-item {
  position: relative;
}

.page-news .timeline-item__marker {
  display: inline-block;
  background: var(--cyber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 rgba(31, 31, 31, 0.85);
}

.page-news .timeline-item__card {
  background: var(--paper-warm);
  border-radius: 24px;
  padding: 22px 20px;
  border-left: 6px solid var(--ink);
}

.page-news .timeline-item__card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 10px 0 8px;
}

.page-news .timeline-item__card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.page-news .version-log__media {
  margin-top: 40px;
  padding-left: 36px;
}

.page-news .version-log__media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  border: 2px solid var(--ink);
  box-shadow: var(--news-hard);
}

/* ---- 测试版专题 ---- */
.page-news .beta-spotlight {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--news-soft);
  padding: 40px var(--page-gutter);
  display: grid;
  gap: 28px;
  box-shadow: var(--news-hard);
  position: relative;
  overflow: hidden;
}

.page-news .beta-spotlight::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25), transparent 68%);
  pointer-events: none;
}

.page-news .beta-spotlight__media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 2px solid var(--paper);
  object-fit: cover;
}

.page-news .beta-spotlight__body {
  position: relative;
  z-index: 1;
}

.page-news .beta-spotlight__body h2 {
  font-family: var(--font-head);
  font-size: 28px;
  margin: 10px 0 12px;
}

.page-news .beta-spotlight__body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
}

.page-news .beta-spotlight__body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  margin: 20px 0 8px;
  color: var(--neon);
}

.page-news .beta-spotlight__list {
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: var(--paper);
}

.page-news .btn-ghost {
  display: inline-block;
  margin-top: 18px;
  border: 2px solid var(--paper);
  color: var(--paper);
  background: transparent;
  text-decoration: none;
  padding: 10px 20px;
}

.page-news .btn-ghost:hover {
  background: var(--cyber);
  color: var(--ink);
  border-color: var(--cyber);
}

/* ---- 栏目分类 ---- */
.page-news .category-index {
  padding-bottom: 24px;
}

.page-news .category-grid {
  display: grid;
  gap: 18px;
}

.page-news .category-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.85);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}

.page-news .category-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 rgba(31, 31, 31, 0.85);
}

.page-news .category-card__num {
  position: absolute;
  right: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.45;
}

.page-news .category-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 12px 0 6px;
}

.page-news .category-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.page-news .category-card--nav {
  border-left: 8px solid var(--cyber);
}

.page-news .category-card--beta {
  border-left: 8px solid var(--neon);
}

.page-news .category-card--guide {
  border-left: 8px solid var(--gold);
}

.page-news .category-card--hub {
  border-left: 8px solid var(--alert);
}

.page-news .category-visual {
  margin-top: 32px;
}

.page-news .category-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  border: 2px solid var(--ink);
  box-shadow: var(--news-hard);
}

/* ---- 相关页面 ---- */
.page-news .related-links {
  padding-top: 24px;
  padding-bottom: 72px;
}

.page-news .related-links h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin: 0 0 18px;
}

.page-news .related-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-news .related-links__item {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-news .related-links__item:hover {
  background: var(--neon);
}

/* ---- 运动显现 ---- */
.page-news [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.page-news [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-news [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 桌面增强 ---- */
@media (min-width: 760px) {
  .page-news {
    --news-gap: 32px;
  }

  .page-news .news-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    align-items: end;
    gap: 40px;
    padding-top: 48px;
  }

  .page-news .news-hero__intro {
    padding-bottom: 40px;
  }

  .page-news .news-hero__intro h1 {
    font-size: clamp(38px, 4.6vw, 52px);
  }

  .page-news .news-hero__feature {
    margin-top: 0;
  }

  .page-news .notice-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
  }

  .page-news .notice-card:nth-child(even) {
    margin-top: 48px;
  }

  .page-news .notice-card:nth-child(odd) {
    margin-right: 24px;
  }

  .page-news .version-log__groove {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-news .timeline {
    padding-left: 0;
    gap: 0;
  }

  .page-news .timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 44px;
  }

  .page-news .timeline-item:nth-child(odd) .timeline-item__card {
    grid-column: 1;
    text-align: right;
  }

  .page-news .timeline-item:nth-child(odd) .timeline-item__marker {
    grid-column: 1;
    justify-self: end;
  }

  .page-news .timeline-item:nth-child(odd) .tag {
    display: inline-block;
  }

  .page-news .timeline-item:nth-child(even) .timeline-item__card {
    grid-column: 2;
  }

  .page-news .timeline-item__marker {
    margin-bottom: 8px;
  }

  .page-news .timeline-item__card {
    border-left: none;
    border-top: 4px solid var(--ink);
    padding: 20px 24px;
  }

  .page-news .timeline-item:nth-child(even) .timeline-item__card {
    border-left: 6px solid var(--ink);
    border-top: none;
  }

  .page-news .timeline-item:nth-child(odd) .timeline-item__card {
    border-right: 6px solid var(--ink);
    border-top: none;
  }

  .page-news .timeline-item:nth-child(even) .timeline-item__marker {
    grid-column: 2;
    justify-self: start;
  }

  .page-news .version-log__media {
    padding-left: 0;
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }

  .page-news .beta-spotlight {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 48px 48px;
  }

  .page-news .beta-spotlight__media {
    order: 1;
  }

  .page-news .beta-spotlight__body {
    order: 2;
  }

  .page-news .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-news .category-visual {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-right: 8%;
  }
}

@media (min-width: 1024px) {
  .page-news .notice-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .notice-card:nth-child(even) {
    margin-top: 80px;
  }

  .page-news .notice-card:nth-child(odd) {
    margin-right: 12px;
  }

  .page-news .notice-card:nth-child(3) {
    margin-top: 0;
  }

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

@media (min-width: 1200px) {
  .page-news .news-hero {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
  }
}
