/* ============================================================
   更新动态页面 · page-news 专属样式
   移动端优先，桌面端在媒体查询中增强
   ============================================================ */

.page-news {
  background: var(--color-primary);
  color: var(--color-base-white);
  overflow-x: hidden;
}

/* ---------- Hero 面包屑深蓝背景反白 ---------- */
.page-news .news-hero .breadcrumb {
  margin-bottom: 48px;
}
.page-news .news-hero .breadcrumb__link {
  color: var(--color-primary-tint);
}
.page-news .news-hero .breadcrumb__link:hover {
  color: var(--color-accent-yellow);
}
.page-news .news-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35);
}
.page-news .news-hero .breadcrumb__current {
  color: var(--color-base-white);
}

/* ---------- Hero 主体 ---------- */
.page-news .news-hero {
  position: relative;
  padding: 28px 0 72px;
}
.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 120px;
  right: -30px;
  width: 160px;
  height: 14px;
  background: var(--gradient-yellow-orange);
  transform: rotate(-8deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  opacity: 0.9;
  z-index: 0;
}
.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--color-accent-orange) 0 18px, transparent 18px 36px);
  opacity: 0.28;
  z-index: 0;
}
.page-news .news-hero .container {
  position: relative;
  z-index: 1;
}

.page-news .news-hero__grid {
  display: grid;
  gap: 32px;
}
.page-news .news-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-yellow);
  text-transform: uppercase;
}
.page-news .news-hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-orange);
}
.page-news .news-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-base-white);
  letter-spacing: 0.015em;
  max-width: 760px;
}
.page-news .news-hero__desc {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-primary-tint);
}
.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.page-news .news-hero__stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}
.page-news .news-hero .stat {
  display: grid;
  gap: 8px;
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 14px 16px;
  min-height: 88px;
  backdrop-filter: blur(6px);
}
.page-news .news-hero .stat__label {
  font-size: 0.75rem;
  color: var(--color-primary-tint);
}
.page-news .news-hero .stat--yellow .news-hero__stat-num {
  color: var(--color-accent-yellow);
}
.page-news .news-hero .stat--orange .news-hero__stat-num {
  color: var(--color-accent-orange);
}

.page-news .news-hero__aside {
  position: relative;
}
.page-news .news-hero__thumb {
  margin: 0;
  max-width: 400px;
}
.page-news .news-hero__thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-news .news-hero__slope {
  display: none;
}

/* ---------- 近期更新 Feed ---------- */
.page-news .news-feed {
  position: relative;
  z-index: 2;
  background: var(--color-base-white);
  color: var(--color-primary);
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  padding: 44px 0 72px;
}
.page-news .news-feed__head {
  margin-bottom: 48px;
}
.page-news .news-feed__head .section-head__desc {
  color: var(--color-text-muted);
}
.page-news .news-feed__list {
  display: grid;
  gap: 52px;
}

/* ---------- 新闻条目 ---------- */
.page-news .news-item {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--color-primary-tint);
}
.page-news .news-item:nth-child(odd) {
  border-left-color: var(--color-accent-yellow);
}
.page-news .news-item:nth-child(even) {
  border-left-color: var(--color-accent-orange);
}
.page-news .news-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-accent-yellow);
  box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.18);
}
.page-news .news-item:nth-child(even)::before {
  background: var(--color-accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.16);
}

.page-news .news-item__rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.page-news .news-item__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  color: var(--color-base-white);
}
.page-news .news-item__badge--yellow {
  background: var(--color-accent-yellow);
  color: var(--color-primary);
}
.page-news .news-item__badge--orange {
  background: var(--color-accent-orange);
}
.page-news .news-item__badge--blue {
  background: var(--color-primary-lighter);
}
.page-news .news-item__badge--gray {
  background: var(--color-text-muted);
}
.page-news .news-item__version {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent-orange);
}

.page-news .news-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.page-news .news-item__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.page-news .news-item__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--font-card-title);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
}
.page-news .news-item__desc {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 720px;
}
.page-news .news-item__media {
  margin: 18px 0;
}
.page-news .news-item__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-news .news-item__details {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  max-width: 720px;
  background: var(--color-base-white);
}
.page-news .news-item__details summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color var(--ease-fast);
}
.page-news .news-item__details summary::-webkit-details-marker {
  display: none;
}
.page-news .news-item__details summary:hover {
  color: var(--color-accent-orange);
}
.page-news .news-item__details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--color-accent-orange);
  line-height: 1;
  transition: transform var(--ease-fast);
}
.page-news .news-item__details[open] summary::after {
  content: "−";
}
.page-news .news-item__detail-body {
  padding: 0 16px 16px;
}
.page-news .news-item__detail-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.page-news .news-item__detail-body li::marker {
  color: var(--color-accent-orange);
}

/* 特色条目：第23轮更新 */
.page-news .news-item--featured .news-item__body {
  background: var(--color-primary-tint);
  border-radius: 16px;
  padding: 24px;
}
.page-news .news-item--featured .news-item__title {
  color: var(--color-primary);
}
.page-news .news-item--featured .news-item__version {
  color: var(--color-primary);
  background: var(--color-accent-yellow);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ---------- 更新订阅 ---------- */
.page-news .news-subscribe {
  padding: 72px 0;
}
.page-news .news-subscribe__panel {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: 20px;
  background: var(--color-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--color-accent-orange);
}
.page-news .news-subscribe .section-head__index {
  margin-bottom: 14px;
}
.page-news .news-subscribe__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--font-section-title);
  color: var(--color-base-white);
}
.page-news .news-subscribe__desc {
  margin: 0 0 24px;
  max-width: 460px;
  color: var(--color-primary-tint);
  line-height: 1.7;
}
.page-news .news-subscribe__channels {
  display: grid;
  gap: 12px;
}
.page-news .news-subscribe__channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.page-news .news-subscribe__channel-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-yellow);
}
.page-news .news-subscribe__channel-desc {
  font-size: 0.875rem;
  color: var(--color-primary-tint);
}
.page-news .news-subscribe__link {
  color: var(--color-accent-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-news .news-subscribe__link:hover {
  color: var(--color-base-white);
}
.page-news .news-subscribe__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: var(--gradient-yellow-orange);
  border-radius: 14px;
}
.page-news .news-subscribe__visual::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 16px solid rgba(10, 31, 68, 0.14);
  border-radius: 50%;
}
.page-news .news-subscribe__icon {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}
.page-news .news-subscribe__status {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}
.page-news .news-subscribe__hint {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-primary);
  opacity: 0.78;
}

/* ---------- 热门标签 ---------- */
.page-news .news-tags {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  padding: 72px 0 80px;
  border-radius: 32px 32px 0 0;
}
.page-news .news-tags .section-head__desc {
  color: var(--color-text-muted);
}
.page-news .news-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 820px;
}
.page-news .news-tags__cloud .tag {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
}
.page-news .news-tags__cloud .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 31, 68, 0.14);
}
.page-news .news-tags__cloud .tag--yellow {
  background: var(--color-accent-yellow);
  color: var(--color-primary);
}
.page-news .news-tags__cloud .tag--orange {
  background: var(--color-accent-orange);
  color: var(--color-base-white);
}
.page-news .news-tags__cloud .tag--outline {
  color: var(--color-primary);
  border: 1px solid var(--color-primary-lighter);
  background: transparent;
}
.page-news .news-tags__note {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.page-news .news-tags__note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-news .news-tags__note a:hover {
  color: var(--color-accent-orange);
}

/* ---------- 桌面端断点 ---------- */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 40px 0 88px;
  }
  .page-news .news-hero__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .page-news .news-hero__title {
    letter-spacing: 0.02em;
  }
  .page-news .news-hero__stats {
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    justify-content: start;
  }
  .page-news .news-hero .stat {
    min-width: 132px;
  }
  .page-news .news-hero__slope {
    display: block;
    position: absolute;
    top: -20px;
    right: -20px;
    width: 96px;
    height: 96px;
    background: var(--color-accent-orange);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0.7;
    z-index: 2;
  }

  .page-news .news-feed {
    padding: 64px 0 88px;
  }
  .page-news .news-feed__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }

  .page-news .news-item {
    display: flex;
    gap: 40px;
  }
  .page-news .news-item__rail {
    width: 200px;
    flex-shrink: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    padding-right: 16px;
    border-right: 1px solid var(--color-primary-tint);
  }
  .page-news .news-item__body {
    flex: 1;
    max-width: 780px;
  }
  .page-news .news-item__media--portrait {
    max-width: 420px;
  }

  .page-news .news-subscribe {
    padding: 88px 0;
  }
  .page-news .news-subscribe__panel {
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    padding: 40px;
  }
  .page-news .news-subscribe__visual {
    min-height: 200px;
  }

  .page-news .news-tags {
    padding: 88px 0;
  }
  .page-news .news-tags__cloud .tag {
    font-size: 0.9375rem;
    padding: 10px 20px;
  }
}

@media (min-width: 992px) {
  .page-news .news-item {
    gap: 56px;
  }
  .page-news .news-item__rail {
    width: 220px;
  }
  .page-news .news-item__desc {
    font-size: 1rem;
  }
  .page-news .news-subscribe__panel {
    padding: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item__details summary::after,
  .page-news .news-tags__cloud .tag {
    transition: none;
  }
}
